diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..821c19db --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.github \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100755 index 00000000..4fb21e7c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021-present sms77 e.K. + +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/README.md b/README.md new file mode 100644 index 00000000..02b48ae3 --- /dev/null +++ b/README.md @@ -0,0 +1,57 @@ +![Sms77.io Logo](https://www.sms77.io/wp-content/uploads/2019/07/sms77-Logo-400x79.png "Sms77.io Logo") + +# Official Sms77.io Voice GitHub Action + +Send a Voice message from GitHub Actions. + +## Prerequisites + +- An account at Sms77.io. [Sign up for free](https://app.sms77.io/anmelden)! +- Account balance and an API + key [which you can get here](hhttps://app.sms77.io/settings#httpapi). + +## Usage + +1. Set up your credentials secrets in your repository settings by + specifying `SMS77_API_KEY`. + +2. Add the following to your workflow + +```yaml +- name: 'Send Voice' + uses: sms77io/github-action-voice@master + with: + from: 'Tommy Tester' + text: 'Sms77.io wishes you a nice day!' + to: '+4901234567890' + env: + SMS77_API_KEY: ${{ secrets.SMS77_API_KEY }} +``` + +## Inputs + +`apiKey` **Required** + +An API Key from Sms77.io. Alternatively use environment variable SMS77_API_KEY + +`to` **Required** + +Phone number to send the voice message to + +`text` **Required** + +The actual message content you want to send to the recipient(s) + +`from` + +Sender ID; max 16 numeric or 11 alphanumeric characters + +## Outputs + +`response` + +Returns the response from the API. + +## License + +[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](./LICENSE) \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 00000000..41d198e6 --- /dev/null +++ b/action.yml @@ -0,0 +1,26 @@ +name: 'Sms77.io Voice' +author: 'Sms77 e.K.' +description: 'Send Voice message through GitHub Actions via Sms77.io' +inputs: + apiKey: + description: 'A Sms77.io API Key. Alternatively stored in environment variable SMS77_API_KEY' + required: true + from: + description: 'Sender ID; A Sms77.io approved or shared number' + required: false + text: + description: 'The actual message content you want to send to the recipient(s)' + required: true + to: + description: 'Phone number' + required: true + +outputs: + response: + description: 'The API response' +runs: + using: 'node12' + main: 'dist/index.js' +branding: + color: 'green' + icon: 'message-square' \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 00000000..03169048 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,44 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const core_1 = require("@actions/core"); +const sms77_client_1 = __importDefault(require("sms77-client")); +const node_fetch_1 = __importDefault(require("node-fetch")); +const assert_1 = require("assert"); +global.fetch = node_fetch_1.default; +const voiceParams = { + from: undefined, + text: '', + to: '', +}; +const send = () => __awaiter(void 0, void 0, void 0, function* () { + Object.keys(voiceParams) + .forEach(k => voiceParams[k] = core_1.getInput(k)); + core_1.debug('Sending Voice'); + try { + const apiKey = core_1.getInput('apiKey') || process.env.SMS77_API_KEY; + assert_1.ok(apiKey); + const response = yield (new sms77_client_1.default(apiKey, 'github-action-voice')) + .voice(voiceParams); + core_1.debug('API reached, Voice dispatch ended.'); + core_1.setOutput('API response', response); + return response; + } + catch (e) { + core_1.error(e.message); + core_1.setFailed(e.message); + } +}); +exports.default = send; +send(); diff --git a/index.test.js b/index.test.js new file mode 100644 index 00000000..8e3337d1 --- /dev/null +++ b/index.test.js @@ -0,0 +1,29 @@ +const core = require('@actions/core'); +const Sms77Client = require('sms77-client'); +const send = require('./dist/index.js').default; + +jest.mock('@actions/core'); +jest.mock('sms77-client'); + +test('Log errors', async () => { + const unauthorizedMessage = '900'; + + Sms77Client.mockImplementation(() => { + throw new Error(unauthorizedMessage); + }); + + await send(); + + expect(core.error.mock.calls.toString()).toStrictEqual(unauthorizedMessage); + expect(core.setFailed.mock.calls.toString()).toStrictEqual(unauthorizedMessage); +}); + +test('Returns API response', async () => { + const successResponse = '100\n212578\n0.1'; + + Sms77Client.mockReturnValue({ + voice: () => successResponse, + }); + + expect(await send()).toEqual(successResponse); +}); diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 00000000..ca7ed8c6 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,4 @@ +module.exports = { + clearMocks: true, + testEnvironment: 'node', +}; \ 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..2d3b536a --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,44 @@ +{ + "name": "@sms77.io/github-action-voice", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "node_modules/@actions/core": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", + "integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==" + }, + "node_modules/date-fns": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.17.0.tgz", + "integrity": "sha512-ZEhqxUtEZeGgg9eHNSOAJ8O9xqSgiJdrL0lzSSfMF54x6KXWJiOH/xntSJ9YomJPrYH/p08t6gWjGWq1SDJlSA==", + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, + "node_modules/node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/sms77-client": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/sms77-client/-/sms77-client-2.5.1.tgz", + "integrity": "sha512-jL9P9qcjkaOA33ifapdXq7YB1A678RlC7VU8z4mrEYE9FpSl712/V/X5Je1zbh+bNp7xTvwCZhGtgQxD91N3Zg==", + "dependencies": { + "date-fns": "^2.16.1" + }, + "peerDependencies": { + "node-fetch": "^2.6.1" + } + } + } +} diff --git a/node_modules/@actions/core/LICENSE.md b/node_modules/@actions/core/LICENSE.md new file mode 100644 index 00000000..dbae2edb --- /dev/null +++ b/node_modules/@actions/core/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +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/@actions/core/README.md b/node_modules/@actions/core/README.md new file mode 100644 index 00000000..95428cf3 --- /dev/null +++ b/node_modules/@actions/core/README.md @@ -0,0 +1,147 @@ +# `@actions/core` + +> Core functions for setting results, logging, registering secrets and exporting variables across actions + +## Usage + +### Import the package + +```js +// javascript +const core = require('@actions/core'); + +// typescript +import * as core from '@actions/core'; +``` + +#### Inputs/Outputs + +Action inputs can be read with `getInput`. Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled. + +```js +const myInput = core.getInput('inputName', { required: true }); + +core.setOutput('outputKey', 'outputVal'); +``` + +#### Exporting variables + +Since each step runs in a separate process, you can use `exportVariable` to add it to this step and future steps environment blocks. + +```js +core.exportVariable('envVar', 'Val'); +``` + +#### Setting a secret + +Setting a secret registers the secret with the runner to ensure it is masked in logs. + +```js +core.setSecret('myPassword'); +``` + +#### PATH Manipulation + +To make a tool's path available in the path for the remainder of the job (without altering the machine or containers state), use `addPath`. The runner will prepend the path given to the jobs PATH. + +```js +core.addPath('/path/to/mytool'); +``` + +#### Exit codes + +You should use this library to set the failing exit code for your action. If status is not set and the script runs to completion, that will lead to a success. + +```js +const core = require('@actions/core'); + +try { + // Do stuff +} +catch (err) { + // setFailed logs the message and sets a failing exit code + core.setFailed(`Action failed with error ${err}`); +} + +Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned. + +``` + +#### Logging + +Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). + +```js +const core = require('@actions/core'); + +const myInput = core.getInput('input'); +try { + core.debug('Inside try block'); + + if (!myInput) { + core.warning('myInput was not set'); + } + + if (core.isDebug()) { + // curl -v https://github.com + } else { + // curl https://github.com + } + + // Do stuff + core.info('Output to the actions build log') +} +catch (err) { + core.error(`Error ${err}, action may still succeed though`); +} +``` + +This library can also wrap chunks of output in foldable groups. + +```js +const core = require('@actions/core') + +// Manually wrap output +core.startGroup('Do some function') +doSomeFunction() +core.endGroup() + +// Wrap an asynchronous function call +const result = await core.group('Do something async', async () => { + const response = await doSomeHTTPRequest() + return response +}) +``` + +#### Action state + +You can use this library to save state and get state for sharing information between a given wrapper action: + +**action.yml** +```yaml +name: 'Wrapper action sample' +inputs: + name: + default: 'GitHub' +runs: + using: 'node12' + main: 'main.js' + post: 'cleanup.js' +``` + +In action's `main.js`: + +```js +const core = require('@actions/core'); + +core.saveState("pidToKill", 12345); +``` + +In action's `cleanup.js`: +```js +const core = require('@actions/core'); + +var pid = core.getState("pidToKill"); + +process.kill(pid); +``` diff --git a/node_modules/@actions/core/lib/command.d.ts b/node_modules/@actions/core/lib/command.d.ts new file mode 100644 index 00000000..89eff668 --- /dev/null +++ b/node_modules/@actions/core/lib/command.d.ts @@ -0,0 +1,16 @@ +interface CommandProperties { + [key: string]: any; +} +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +export declare function issueCommand(command: string, properties: CommandProperties, message: any): void; +export declare function issue(name: string, message?: string): void; +export {}; diff --git a/node_modules/@actions/core/lib/command.js b/node_modules/@actions/core/lib/command.js new file mode 100644 index 00000000..10bf3ebb --- /dev/null +++ b/node_modules/@actions/core/lib/command.js @@ -0,0 +1,79 @@ +"use strict"; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const os = __importStar(require("os")); +const utils_1 = require("./utils"); +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } + else { + cmdStr += ','; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } +} +function escapeData(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A'); +} +function escapeProperty(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/:/g, '%3A') + .replace(/,/g, '%2C'); +} +//# sourceMappingURL=command.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/core/lib/command.js.map new file mode 100644 index 00000000..a95b303b --- /dev/null +++ b/node_modules/@actions/core/lib/command.js.map @@ -0,0 +1 @@ +{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/core/lib/core.d.ts new file mode 100644 index 00000000..8bb5093c --- /dev/null +++ b/node_modules/@actions/core/lib/core.d.ts @@ -0,0 +1,122 @@ +/** + * Interface for getInput options + */ +export interface InputOptions { + /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ + required?: boolean; +} +/** + * The code to exit an action + */ +export declare enum ExitCode { + /** + * A code indicating that the action was successful + */ + Success = 0, + /** + * A code indicating that the action was a failure + */ + Failure = 1 +} +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +export declare function exportVariable(name: string, val: any): void; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +export declare function setSecret(secret: string): void; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +export declare function addPath(inputPath: string): void; +/** + * Gets the value of an input. The value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +export declare function getInput(name: string, options?: InputOptions): string; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +export declare function setOutput(name: string, value: any): void; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +export declare function setCommandEcho(enabled: boolean): void; +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +export declare function setFailed(message: string | Error): void; +/** + * Gets whether Actions Step Debug is on or not + */ +export declare function isDebug(): boolean; +/** + * Writes debug message to user log + * @param message debug message + */ +export declare function debug(message: string): void; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + */ +export declare function error(message: string | Error): void; +/** + * Adds an warning issue + * @param message warning issue message. Errors will be converted to string via toString() + */ +export declare function warning(message: string | Error): void; +/** + * Writes info to log with console.log. + * @param message info message + */ +export declare function info(message: string): void; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +export declare function startGroup(name: string): void; +/** + * End an output group. + */ +export declare function endGroup(): void; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +export declare function group(name: string, fn: () => Promise): Promise; +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +export declare function saveState(name: string, value: any): void; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +export declare function getState(name: string): string; diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js new file mode 100644 index 00000000..8b331108 --- /dev/null +++ b/node_modules/@actions/core/lib/core.js @@ -0,0 +1,238 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const command_1 = require("./command"); +const file_command_1 = require("./file-command"); +const utils_1 = require("./utils"); +const os = __importStar(require("os")); +const path = __importStar(require("path")); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + const delimiter = '_GitHubActionsFileCommandDelimeter_'; + const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`; + file_command_1.issueCommand('ENV', commandValue); + } + else { + command_1.issueCommand('set-env', { name }, convertedVal); + } +} +exports.exportVariable = exportVariable; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +function setSecret(secret) { + command_1.issueCommand('add-mask', {}, secret); +} +exports.setSecret = setSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + file_command_1.issueCommand('PATH', inputPath); + } + else { + command_1.issueCommand('add-path', {}, inputPath); + } + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. The value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function setOutput(name, value) { + command_1.issueCommand('set-output', { name }, value); +} +exports.setOutput = setOutput; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +function setCommandEcho(enabled) { + command_1.issue('echo', enabled ? 'on' : 'off'); +} +exports.setCommandEcho = setCommandEcho; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + command_1.issueCommand('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + */ +function error(message) { + command_1.issue('error', message instanceof Error ? message.toString() : message); +} +exports.error = error; +/** + * Adds an warning issue + * @param message warning issue message. Errors will be converted to string via toString() + */ +function warning(message) { + command_1.issue('warning', message instanceof Error ? message.toString() : message); +} +exports.warning = warning; +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +exports.info = info; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + command_1.issue('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + command_1.issue('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; +//----------------------------------------------------------------------- +// Wrapper action state +//----------------------------------------------------------------------- +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function saveState(name, value) { + command_1.issueCommand('save-state', { name }, value); +} +exports.saveState = saveState; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +function getState(name) { + return process.env[`STATE_${name}`] || ''; +} +exports.getState = getState; +//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map new file mode 100644 index 00000000..7e7cbcca --- /dev/null +++ b/node_modules/@actions/core/lib/core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAA+D;AAC/D,mCAAsC;AAEtC,uCAAwB;AACxB,2CAA4B;AAU5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAED,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAQ;IACnD,MAAM,YAAY,GAAG,sBAAc,CAAC,GAAG,CAAC,CAAA;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,CAAA;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAA;IAChD,IAAI,QAAQ,EAAE;QACZ,MAAM,SAAS,GAAG,qCAAqC,CAAA;QACvD,MAAM,YAAY,GAAG,GAAG,IAAI,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,YAAY,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;QACzF,2BAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;KACtC;SAAM;QACL,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,YAAY,CAAC,CAAA;KAC9C;AACH,CAAC;AAZD,wCAYC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AACtC,CAAC;AAFD,8BAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACjD,IAAI,QAAQ,EAAE;QACZ,2BAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACpC;SAAM;QACL,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;KACxC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;AAC7E,CAAC;AARD,0BAQC;AAED;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,IAAY,EAAE,OAAsB;IAC3D,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAA;KAC5D;IAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;AACnB,CAAC;AARD,4BAQC;AAED;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAgB;IAC7C,eAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AACvC,CAAC;AAFD,wCAEC;AAED,yEAAyE;AACzE,UAAU;AACV,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAuB;IAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAA;IAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;AAChB,CAAC;AAJD,8BAIC;AAED,yEAAyE;AACzE,mBAAmB;AACnB,yEAAyE;AAEzE;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAA;AAC5C,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,sBAAY,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACpC,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAuB;IAC3C,eAAK,CAAC,OAAO,EAAE,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AACzE,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAuB;IAC7C,eAAK,CAAC,SAAS,EAAE,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AAC3E,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,oBAEC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,eAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,eAAK,CAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC;AAED,yEAAyE;AACzE,uBAAuB;AACvB,yEAAyE;AAEzE;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/file-command.d.ts b/node_modules/@actions/core/lib/file-command.d.ts new file mode 100644 index 00000000..ed408eb1 --- /dev/null +++ b/node_modules/@actions/core/lib/file-command.d.ts @@ -0,0 +1 @@ +export declare function issueCommand(command: string, message: any): void; diff --git a/node_modules/@actions/core/lib/file-command.js b/node_modules/@actions/core/lib/file-command.js new file mode 100644 index 00000000..10783c0c --- /dev/null +++ b/node_modules/@actions/core/lib/file-command.js @@ -0,0 +1,29 @@ +"use strict"; +// For internal use, subject to change. +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fs = __importStar(require("fs")); +const os = __importStar(require("os")); +const utils_1 = require("./utils"); +function issueCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); + } + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +exports.issueCommand = issueCommand; +//# sourceMappingURL=file-command.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/file-command.js.map b/node_modules/@actions/core/lib/file-command.js.map new file mode 100644 index 00000000..45fd8c4b --- /dev/null +++ b/node_modules/@actions/core/lib/file-command.js.map @@ -0,0 +1 @@ +{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,YAAY,CAAC,OAAe,EAAE,OAAY;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,oCAcC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/utils.d.ts b/node_modules/@actions/core/lib/utils.d.ts new file mode 100644 index 00000000..b39c9be9 --- /dev/null +++ b/node_modules/@actions/core/lib/utils.d.ts @@ -0,0 +1,5 @@ +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +export declare function toCommandValue(input: any): string; diff --git a/node_modules/@actions/core/lib/utils.js b/node_modules/@actions/core/lib/utils.js new file mode 100644 index 00000000..97cea339 --- /dev/null +++ b/node_modules/@actions/core/lib/utils.js @@ -0,0 +1,19 @@ +"use strict"; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); +} +exports.toCommandValue = toCommandValue; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/utils.js.map b/node_modules/@actions/core/lib/utils.js.map new file mode 100644 index 00000000..ce43f037 --- /dev/null +++ b/node_modules/@actions/core/lib/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;AAEvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json new file mode 100644 index 00000000..ffcced43 --- /dev/null +++ b/node_modules/@actions/core/package.json @@ -0,0 +1,41 @@ +{ + "name": "@actions/core", + "version": "1.2.6", + "description": "Actions core lib", + "keywords": [ + "github", + "actions", + "core" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", + "license": "MIT", + "main": "lib/core.js", + "types": "lib/core.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib", + "!.DS_Store" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/core" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "devDependencies": { + "@types/node": "^12.0.2" + } +} diff --git a/node_modules/date-fns/CHANGELOG.md b/node_modules/date-fns/CHANGELOG.md new file mode 100644 index 00000000..0003006c --- /dev/null +++ b/node_modules/date-fns/CHANGELOG.md @@ -0,0 +1,2202 @@ +# 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/ + +## [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 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 least but not least [@leshakoss](https://github.com/leshakoss)! + +### Fixed + +- [Set start of the week to the 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 + +- Fix 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) + +- Fix `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). + +- 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/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. + +- Fix 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, Su, Sa | + | 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, Su, Sa | + | 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, Su, Sa | + | 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, Su, Sa | + | 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 parse 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 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 throw `TypeError` exception if so. + +- **BREAKING**: all functions that accept numbers as arguments, now coerce + values using `Number()` and also round 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). + +- [Add 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)! + +- [Add 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. + +- [Fix 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 + +- [Improve 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 + +- Fix 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)) + +- Add `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 + +- Fix 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 + +- Fix 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) + +- Fix 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 + +- Fix 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 + +- Fix `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 + +- Fix 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 + +- Fix `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 + +- Fix 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)) + +- Add 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 + +- Fix TypeScript and flow typings for `isValid`. + See PR: [#310](https://github.com/date-fns/date-fns/pull/310) + +- Fix 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 + +- Fix 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 + +- Fix 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 + +- Fix 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 + +- Add an ability to pass negative numbers to `setDay`. + +## [1.1.1] - 2016-05-19 + +### Fixed + +- Fix [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 + +- Fix 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..a69dab1c --- /dev/null +++ b/node_modules/date-fns/LICENSE.md @@ -0,0 +1,6 @@ +Copyright (C) 2020 Sasha Koss and Lesha Koss + +# License + +date-fns is licensed under the [MIT license](http://kossnocorp.mit-license.org). +Read more about MIT at [TLDRLegal](https://tldrlegal.com/license/mit-license). diff --git a/node_modules/date-fns/README.md b/node_modules/date-fns/README.md new file mode 100644 index 00000000..23ec70aa --- /dev/null +++ b/node_modules/date-fns/README.md @@ -0,0 +1,67 @@ +

+ + 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/)   |   [🧑‍💻  JavaScript Jobs](https://jobs.date-fns.org/) +
+ +
+ +# It's like [Lodash](https://lodash.com) for dates + +- It has [**180+ functions** for all occasions](https://date-fns.org/docs/). +- **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..446398d0 --- /dev/null +++ b/node_modules/date-fns/_lib/assign/index.js @@ -0,0 +1,24 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = assign; + +function assign(target, dirtyObject) { + if (target == null) { + throw new TypeError('assign requires that input parameter not be null or undefined'); + } + + dirtyObject = dirtyObject || {}; + + for (var property in dirtyObject) { + if (dirtyObject.hasOwnProperty(property)) { + target[property] = dirtyObject[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..4fcbb9bf --- /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(dirtyObject) { + return (0, _index.default)({}, dirtyObject); +} + +module.exports = exports.default; \ 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..72065bf2 --- /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("../lightFormatters/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/getUTCDayOfYear/index.js")); + +var _index3 = _interopRequireDefault(require("../../../_lib/getUTCISOWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../../../_lib/getUTCISOWeekYear/index.js")); + +var _index5 = _interopRequireDefault(require("../../../_lib/getUTCWeek/index.js")); + +var _index6 = _interopRequireDefault(require("../../../_lib/getUTCWeekYear/index.js")); + +var _index7 = _interopRequireDefault(require("../../addLeadingZeros/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 (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 (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 _index.default.y(date, token); + }, + // Local week-numbering year + Y: function (date, token, localize, options) { + var signedWeekYear = (0, _index6.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, _index7.default)(twoDigitYear, 2); + } // Ordinal number + + + if (token === 'Yo') { + return localize.ordinalNumber(weekYear, { + unit: 'year' + }); + } // Padding + + + return (0, _index7.default)(weekYear, token.length); + }, + // ISO week-numbering year + R: function (date, token) { + var isoWeekYear = (0, _index4.default)(date); // Padding + + return (0, _index7.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 (date, token) { + var year = date.getUTCFullYear(); + return (0, _index7.default)(year, token.length); + }, + // Quarter + Q: function (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, _index7.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 (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, _index7.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 (date, token, localize) { + var month = date.getUTCMonth(); + + switch (token) { + case 'M': + case 'MM': + return _index.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 (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, _index7.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 (date, token, localize, options) { + var week = (0, _index5.default)(date, options); + + if (token === 'wo') { + return localize.ordinalNumber(week, { + unit: 'week' + }); + } + + return (0, _index7.default)(week, token.length); + }, + // ISO week of year + I: function (date, token, localize) { + var isoWeek = (0, _index3.default)(date); + + if (token === 'Io') { + return localize.ordinalNumber(isoWeek, { + unit: 'week' + }); + } + + return (0, _index7.default)(isoWeek, token.length); + }, + // Day of the month + d: function (date, token, localize) { + if (token === 'do') { + return localize.ordinalNumber(date.getUTCDate(), { + unit: 'date' + }); + } + + return _index.default.d(date, token); + }, + // Day of year + D: function (date, token, localize) { + var dayOfYear = (0, _index2.default)(date); + + if (token === 'Do') { + return localize.ordinalNumber(dayOfYear, { + unit: 'dayOfYear' + }); + } + + return (0, _index7.default)(dayOfYear, token.length); + }, + // Day of week + E: function (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 (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, _index7.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 (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, _index7.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 (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, _index7.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 (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 (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 (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 (date, token, localize) { + if (token === 'ho') { + var hours = date.getUTCHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return _index.default.h(date, token); + }, + // Hour [0-23] + H: function (date, token, localize) { + if (token === 'Ho') { + return localize.ordinalNumber(date.getUTCHours(), { + unit: 'hour' + }); + } + + return _index.default.H(date, token); + }, + // Hour [0-11] + K: function (date, token, localize) { + var hours = date.getUTCHours() % 12; + + if (token === 'Ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return (0, _index7.default)(hours, token.length); + }, + // Hour [1-24] + k: function (date, token, localize) { + var hours = date.getUTCHours(); + if (hours === 0) hours = 24; + + if (token === 'ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return (0, _index7.default)(hours, token.length); + }, + // Minute + m: function (date, token, localize) { + if (token === 'mo') { + return localize.ordinalNumber(date.getUTCMinutes(), { + unit: 'minute' + }); + } + + return _index.default.m(date, token); + }, + // Second + s: function (date, token, localize) { + if (token === 'so') { + return localize.ordinalNumber(date.getUTCSeconds(), { + unit: 'second' + }); + } + + return _index.default.s(date, token); + }, + // Fraction of second + S: function (date, token) { + return _index.default.S(date, token); + }, + // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) + X: function (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 (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 (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 (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 (date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = Math.floor(originalDate.getTime() / 1000); + return (0, _index7.default)(timestamp, token.length); + }, + // Milliseconds timestamp + T: function (date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = originalDate.getTime(); + return (0, _index7.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, _index7.default)(minutes, 2); +} + +function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { + if (offset % 60 === 0) { + var sign = offset > 0 ? '-' : '+'; + return sign + (0, _index7.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, _index7.default)(Math.floor(absOffset / 60), 2); + var minutes = (0, _index7.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..01822df0 --- /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 (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 (date, token) { + var month = date.getUTCMonth(); + return token === 'M' ? String(month + 1) : (0, _index.default)(month + 1, 2); + }, + // Day of the month + d: function (date, token) { + return (0, _index.default)(date.getUTCDate(), token.length); + }, + // AM or PM + a: function (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 (date, token) { + return (0, _index.default)(date.getUTCHours() % 12 || 12, token.length); + }, + // Hour [0-23] + H: function (date, token) { + return (0, _index.default)(date.getUTCHours(), token.length); + }, + // Minute + m: function (date, token) { + return (0, _index.default)(date.getUTCMinutes(), token.length); + }, + // Second + s: function (date, token) { + return (0, _index.default)(date.getUTCSeconds(), token.length); + }, + // Fraction of second + S: function (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..0f82e871 --- /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; + +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' + }); + } +} + +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' + }); + } +} + +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..ab29e80d --- /dev/null +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getTimezoneOffsetInMilliseconds; +var MILLISECONDS_IN_MINUTE = 60000; + +function getDateMillisecondsPart(date) { + return date.getTime() % MILLISECONDS_IN_MINUTE; +} +/** + * 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(dirtyDate) { + var date = new Date(dirtyDate.getTime()); + var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset()); + date.setSeconds(0, 0); + var hasNegativeUTCOffset = baseTimezoneOffset > 0; + var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date); + return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset; +} + +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..e38fe73c --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCDayOfYear/index.js @@ -0,0 +1,28 @@ +"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; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..1d3c820e --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCISOWeek/index.js @@ -0,0 +1,31 @@ +"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; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..154027ba --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCISOWeekYear/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUTCISOWeekYear; + +var _index = _interopRequireDefault(require("../../toDate/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 }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +function getUTCISOWeekYear(dirtyDate) { + (0, _index3.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, _index2.default)(fourthOfJanuaryOfNextYear); + var fourthOfJanuaryOfThisYear = new Date(0); + fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setUTCHours(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/_lib/getUTCWeek/index.js b/node_modules/date-fns/_lib/getUTCWeek/index.js new file mode 100644 index 00000000..83feea67 --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCWeek/index.js @@ -0,0 +1,31 @@ +"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; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..6e40457f --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCWeekYear/index.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUTCWeekYear; + +var _index = _interopRequireDefault(require("../toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfUTCWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +function getUTCWeekYear(dirtyDate, dirtyOptions) { + (0, _index4.default)(1, arguments); + var date = (0, _index2.default)(dirtyDate, dirtyOptions); + var year = date.getUTCFullYear(); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index.default)(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index.default)(options.firstWeekContainsDate); // 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, dirtyOptions); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); + var startOfThisYear = (0, _index3.default)(firstWeekOfThisYear, dirtyOptions); + + 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..3fbc654e --- /dev/null +++ b/node_modules/date-fns/_lib/isSameUTCWeek/index.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameUTCWeek; + +var _index = _interopRequireDefault(require("../startOfUTCWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +function isSameUTCWeek(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/_lib/protectedTokens/index.js b/node_modules/date-fns/_lib/protectedTokens/index.js new file mode 100644 index 00000000..c0121b54 --- /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://git.io/fxCyr")); + } 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://git.io/fxCyr")); + } 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://git.io/fxCyr")); + } 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://git.io/fxCyr")); + } +} \ 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/setUTCDay/index.js b/node_modules/date-fns/_lib/setUTCDay/index.js new file mode 100644 index 00000000..0ab51817 --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCDay/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setUTCDay; + +var _index = _interopRequireDefault(require("../toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) { + (0, _index3.default)(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index.default)(options.weekStartsOn); // 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, _index.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..44f13cb6 --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCISODay/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setUTCISODay; + +var _index = _interopRequireDefault(require("../toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +function setUTCISODay(dirtyDate, dirtyDay) { + (0, _index3.default)(2, arguments); + var day = (0, _index.default)(dirtyDay); + + if (day % 7 === 0) { + day = day - 7; + } + + var weekStartsOn = 1; + var date = (0, _index2.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..ce012705 --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCISOWeek/index.js @@ -0,0 +1,29 @@ +"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 }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +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..045ce71d --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCWeek/index.js @@ -0,0 +1,29 @@ +"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 }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +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..621790f8 --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCISOWeek/index.js @@ -0,0 +1,27 @@ +"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 }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +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..c6ba7df3 --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCISOWeekYear/index.js @@ -0,0 +1,28 @@ +"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 }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +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..a86fad81 --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCWeek/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfUTCWeek; + +var _index = _interopRequireDefault(require("../toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +function startOfUTCWeek(dirtyDate, dirtyOptions) { + (0, _index3.default)(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index.default)(options.weekStartsOn); // 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.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..ce42cd89 --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCWeekYear/index.js @@ -0,0 +1,35 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfUTCWeekYear; + +var _index = _interopRequireDefault(require("../toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../getUTCWeekYear/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfUTCWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 +function startOfUTCWeekYear(dirtyDate, dirtyOptions) { + (0, _index4.default)(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index.default)(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index.default)(options.firstWeekContainsDate); + var year = (0, _index2.default)(dirtyDate, dirtyOptions); + var firstWeek = new Date(0); + firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeek.setUTCHours(0, 0, 0, 0); + var date = (0, _index3.default)(firstWeek, dirtyOptions); + return date; +} + +module.exports = exports.default; \ 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..da39cf98 --- /dev/null +++ b/node_modules/date-fns/add/index.js @@ -0,0 +1,82 @@ +"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 }; } + +/** + * @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 = 'years' in duration ? (0, _index5.default)(duration.years) : 0; + var months = 'months' in duration ? (0, _index5.default)(duration.months) : 0; + var weeks = 'weeks' in duration ? (0, _index5.default)(duration.weeks) : 0; + var days = 'days' in duration ? (0, _index5.default)(duration.days) : 0; + var hours = 'hours' in duration ? (0, _index5.default)(duration.hours) : 0; + var minutes = 'minutes' in duration ? (0, _index5.default)(duration.minutes) : 0; + var seconds = 'seconds' in duration ? (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..ddd4be0d --- /dev/null +++ b/node_modules/date-fns/add/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..bfa844e6 --- /dev/null +++ b/node_modules/date-fns/addDays/index.js @@ -0,0 +1,56 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..43f5c393 --- /dev/null +++ b/node_modules/date-fns/addHours/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..91589520 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears/index.js @@ -0,0 +1,53 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `addISOYears` to `addISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..c49810c3 --- /dev/null +++ b/node_modules/date-fns/addMilliseconds/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..7484e520 --- /dev/null +++ b/node_modules/date-fns/addMinutes/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..793a92a7 --- /dev/null +++ b/node_modules/date-fns/addMonths/index.js @@ -0,0 +1,82 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, 1, 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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addMonths/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a59d6f75 --- /dev/null +++ b/node_modules/date-fns/addQuarters/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addQuarters/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..3679c3f1 --- /dev/null +++ b/node_modules/date-fns/addSeconds/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..c41c291b --- /dev/null +++ b/node_modules/date-fns/addWeeks/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addWeeks/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..93aa7b8e --- /dev/null +++ b/node_modules/date-fns/addYears/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/addYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..9de68149 --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping/index.js @@ -0,0 +1,126 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `areRangesOverlapping` to `areIntervalsOverlapping`. + * 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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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) + * ) + * + * // 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) } + * ) + * ``` + * + * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/types/Interval} + * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/types/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(dirtyIntervalLeft, dirtyIntervalRight) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { + inclusive: false + }; + (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'); + } + + if (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..b41b6131 --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..179245d6 --- /dev/null +++ b/node_modules/date-fns/closestIndexTo/index.js @@ -0,0 +1,85 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - Now, `closestIndexTo` doesn't throw an exception + * when the second argument is not an array, and returns Invalid Date instead. + * + * @param {Date|Number} dateToCompare - the date to compare with + * @param {Date[]|Number[]} datesArray - the array to search + * @returns {Number} an index of the date closest to the given date + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015? + * var dateToCompare = new Date(2015, 8, 6) + * var datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * var result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ +function closestIndexTo(dirtyDateToCompare, dirtyDatesArray) { + (0, _index2.default)(2, arguments); + var dateToCompare = (0, _index.default)(dirtyDateToCompare); + + if (isNaN(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(currentDate)) { + result = NaN; + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < 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..5e778071 --- /dev/null +++ b/node_modules/date-fns/closestIndexTo/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e97dff56 --- /dev/null +++ b/node_modules/date-fns/closestTo/index.js @@ -0,0 +1,83 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - Now, `closestTo` doesn't throw an exception + * when the second argument is not an array, and returns Invalid Date instead. + * + * @param {Date|Number} dateToCompare - the date to compare with + * @param {Date[]|Number[]} datesArray - the array to search + * @returns {Date} the date from the array closest to the given date + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * var dateToCompare = new Date(2015, 8, 6) + * var 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(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(currentDate)) { + result = new Date(NaN); + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < 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..3d875a04 --- /dev/null +++ b/node_modules/date-fns/closestTo/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..8a9e2e4b --- /dev/null +++ b/node_modules/date-fns/compareAsc/index.js @@ -0,0 +1,65 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/compareAsc/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..5b091895 --- /dev/null +++ b/node_modules/date-fns/compareDesc/index.js @@ -0,0 +1,65 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/compareDesc/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/constants/index.d.ts b/node_modules/date-fns/constants/index.d.ts new file mode 100644 index 00000000..64e4bfa6 --- /dev/null +++ b/node_modules/date-fns/constants/index.d.ts @@ -0,0 +1,2 @@ +export const maxTime: number +export const minTime: 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..780f67a7 --- /dev/null +++ b/node_modules/date-fns/constants/index.js @@ -0,0 +1,24 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.minTime = exports.maxTime = void 0; + +/** + * Maximum allowed time. + * @constant + * @type {number} + * @default + */ +var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; +/** + * Minimum allowed time. + * @constant + * @type {number} + * @default + */ + +exports.maxTime = maxTime; +var minTime = -maxTime; +exports.minTime = minTime; \ 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..d57a406e --- /dev/null +++ b/node_modules/date-fns/constants/index.js.flow @@ -0,0 +1,4 @@ +// @flow + +declare export var maxTime: number +declare export var minTime: number 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..f44b847a --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays/index.js @@ -0,0 +1,71 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInBusinessDays; + +var _index = _interopRequireDefault(require("../isValid/index.js")); + +var _index2 = _interopRequireDefault(require("../isWeekend/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index5 = _interopRequireDefault(require("../addDays/index.js")); + +var _index6 = _interopRequireDefault(require("../isSameDay/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index8 = _interopRequireDefault(require("../_lib/requiredArgs/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? + * var result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + */ +function differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) { + (0, _index8.default)(2, arguments); + var dateLeft = (0, _index3.default)(dirtyDateLeft); + var dateRight = (0, _index3.default)(dirtyDateRight); + if (!(0, _index.default)(dateLeft) || !(0, _index.default)(dateRight)) return new Date(NaN); + var calendarDifference = (0, _index4.default)(dateLeft, dateRight); + var sign = calendarDifference < 0 ? -1 : 1; + var weeks = (0, _index7.default)(calendarDifference / 7); + var result = weeks * 5; + dateRight = (0, _index5.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, _index6.default)(dateLeft, dateRight)) { + // sign is used to account for both negative and positive differences + result += (0, _index2.default)(dateRight) ? 0 : sign; + dateRight = (0, _index5.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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..7edfe0d3 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays/index.js @@ -0,0 +1,64 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..dc5127ab --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js @@ -0,0 +1,51 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `differenceInCalendarISOYears` to `differenceInCalendarISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..4bea12b1 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks/index.js @@ -0,0 +1,57 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..62f44647 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths/index.js @@ -0,0 +1,48 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..6376352b --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters/index.js @@ -0,0 +1,50 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1d767c2d --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks/index.js @@ -0,0 +1,69 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ + +function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, dirtyOptions) { + (0, _index3.default)(2, arguments); + var startOfWeekLeft = (0, _index.default)(dirtyDateLeft, dirtyOptions); + var startOfWeekRight = (0, _index.default)(dirtyDateRight, dirtyOptions); + 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..444d580b --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..bd368831 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..2584b30e --- /dev/null +++ b/node_modules/date-fns/differenceInDays/index.js @@ -0,0 +1,101 @@ +"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`. + * + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var 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. + * var 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 = 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInDays/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1c236048 --- /dev/null +++ b/node_modules/date-fns/differenceInHours/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInHours; + +var _index = _interopRequireDefault(require("../differenceInMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_HOUR = 3600000; +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ + +function differenceInHours(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_HOUR; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInHours/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a1820057 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears/index.js @@ -0,0 +1,68 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `differenceInISOYears` to `differenceInISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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? + * var 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 = (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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e7153773 --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds/index.js @@ -0,0 +1,47 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ +function differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + return dateLeft.getTime() - 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..03bebae8 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes/index.js @@ -0,0 +1,55 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInMinutes; + +var _index = _interopRequireDefault(require("../differenceInMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_MINUTE = 60000; +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are from 10:01:59 to 10:00:00 + * var result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ + +function differenceInMinutes(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_MINUTE; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..b934d555 --- /dev/null +++ b/node_modules/date-fns/differenceInMonths/index.js @@ -0,0 +1,68 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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)); // This will check if the date is end of Feb and assign a higher end of month date + // to compare it with Jan + + if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) { + 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; + } + + var result = sign * (difference - 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInMonths/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..01e94bc9 --- /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")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of full quarters between the given dates. + * + * @description + * Get the number of full quarters between the given dates. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ +function differenceInQuarters(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dirtyDateLeft, dirtyDateRight) / 3; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..0e6d86f2 --- /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")); + +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ +function differenceInSeconds(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dirtyDateLeft, dirtyDateRight) / 1000; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d9f9a328 --- /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")); + +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. + * + * 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`. + * + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var 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. + * var result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ +function differenceInWeeks(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dirtyDateLeft, dirtyDateRight) / 7; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1c2bb2a9 --- /dev/null +++ b/node_modules/date-fns/differenceInYears/index.js @@ -0,0 +1,58 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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 - 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/differenceInYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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/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..fe0de7b4 --- /dev/null +++ b/node_modules/date-fns/docs/Locale.js @@ -0,0 +1,64 @@ +/** + * @category Types + * @summary A locale object. + * + * @description + * A locale object. + * + * If you don't specify a locale in options, default locale is `en-US`. + * + * @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`, `endOfWeek`, `format`, `getWeek`, `getWeekOfMonth`, + * `getWeeksInMonth`, `isSameWeek`, `isSameWeek`, `lastDayOfWeek`, `parse`, `setDay`, + * `setWeek`, `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`, `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..51249b8c --- /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 +[**140+ 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..a606008f --- /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__ = 'en' +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__ = 'en' +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..3f4ef8ed --- /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 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 for "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, stand-alone month could be in the nominative case ("January"), +and formatting month could decline as a part of 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 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 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 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 of these strings as the argument: 'am', 'pm', 'midnight', 'noon', 'morning', 'afternoon', 'evening', 'night'. +`width` could be either 'narrow', 'abbreviated' or 'wide'. +From 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 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..1d6bc54d --- /dev/null +++ b/node_modules/date-fns/docs/index.js @@ -0,0 +1,143 @@ +const path = require('path') + +module.exports = { + groups: [ + 'General', + 'Types', + 'Common 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') + } + ] +} 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/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..4f058b46 --- /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#2.0.0-2019-08-20). + +### 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..9eb1c10b --- /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[\/\\]/, + 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..6ea03002 --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval/index.js @@ -0,0 +1,101 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `eachDay` to `eachDayOfInterval`. + * 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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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 + * + * eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20)) + * + * // v2.0.0 onward + * + * eachDayOfInterval( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) } + * ) + * ``` + * + * @param {Interval} interval - the interval. See [Interval]{@link docs/types/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) { + (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 = options && 'step' in options ? Number(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..c12c2c3e --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..96802d4f --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval/index.js @@ -0,0 +1,72 @@ +"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 docs/types/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 10 October 2014, 15:00 + * var 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) { + (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 = options && 'step' in options ? Number(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..c12c2c3e --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1e414142 --- /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 docs/types/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: + * var 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..f846923f --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ac23b345 --- /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 docs/types/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: + * var 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..f846923f --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..baeadea0 --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval/index.js @@ -0,0 +1,87 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Interval} interval - the interval. See [Interval]{@link docs/types/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: + * var 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..3122b7da --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..351f5c3c --- /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 docs/types/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 100755 index 00000000..f846923f --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..b7af7874 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..6efb0add --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear/index.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachWeekendOfYear; + +var _index = _interopRequireDefault(require("../eachWeekendOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfYear/index.js")); + +var _index3 = _interopRequireDefault(require("../endOfYear/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 + * var 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, _index2.default)(dirtyDate); + if (isNaN(startDate)) 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/eachWeekendOfYear/index.js.flow b/node_modules/date-fns/eachWeekendOfYear/index.js.flow new file mode 100644 index 00000000..b7af7874 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..cb42b51e --- /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 docs/types/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: + * var 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..f846923f --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..39bac9ad --- /dev/null +++ b/node_modules/date-fns/endOfDay/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfDay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..fe189a64 --- /dev/null +++ b/node_modules/date-fns/endOfDecade/index.js @@ -0,0 +1,48 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..1b492c1b --- /dev/null +++ b/node_modules/date-fns/endOfDecade/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ec662d43 --- /dev/null +++ b/node_modules/date-fns/endOfHour/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfHour/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ea629c74 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek/index.js @@ -0,0 +1,45 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1893d23a --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear/index.js @@ -0,0 +1,57 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `endOfISOYear` to `endOfISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..6e950361 --- /dev/null +++ b/node_modules/date-fns/endOfMinute/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfMinute/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..976a0e4c --- /dev/null +++ b/node_modules/date-fns/endOfMonth/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..dc1906c7 --- /dev/null +++ b/node_modules/date-fns/endOfQuarter/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d4c87ea8 --- /dev/null +++ b/node_modules/date-fns/endOfSecond/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfSecond/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..6e1be680 --- /dev/null +++ b/node_modules/date-fns/endOfToday/index.js @@ -0,0 +1,39 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @returns {Date} the end of today + * + * @example + * // If today is 6 October 2014: + * var 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..ae75385e --- /dev/null +++ b/node_modules/date-fns/endOfToday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..86c8243f --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..273e5709 --- /dev/null +++ b/node_modules/date-fns/endOfWeek/index.js @@ -0,0 +1,67 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfWeek; + +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 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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, dirtyOptions) { + (0, _index3.default)(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index2.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index2.default)(options.weekStartsOn); // 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) + 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..f162c393 --- /dev/null +++ b/node_modules/date-fns/endOfWeek/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..c4c42bff --- /dev/null +++ b/node_modules/date-fns/endOfYear/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/endOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..65593757 --- /dev/null +++ b/node_modules/date-fns/endOfYesterday/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/endOfYesterday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/_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..25059972 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/assign/index.js @@ -0,0 +1,15 @@ +export default function assign(target, dirtyObject) { + if (target == null) { + throw new TypeError('assign requires that input parameter not be null or undefined'); + } + + dirtyObject = dirtyObject || {}; + + for (var property in dirtyObject) { + if (dirtyObject.hasOwnProperty(property)) { + target[property] = dirtyObject[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..61c3b769 --- /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(dirtyObject) { + return assign({}, dirtyObject); +} \ 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..af4c9eec --- /dev/null +++ b/node_modules/date-fns/esm/_lib/format/formatters/index.js @@ -0,0 +1,866 @@ +import lightFormatters from "../lightFormatters/index.js"; +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"; +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 (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 (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 (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 (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 (date, token) { + var year = date.getUTCFullYear(); + return addLeadingZeros(year, token.length); + }, + // Quarter + Q: function (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 (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 (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 (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 (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 (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 (date, token, localize) { + if (token === 'do') { + return localize.ordinalNumber(date.getUTCDate(), { + unit: 'date' + }); + } + + return lightFormatters.d(date, token); + }, + // Day of year + D: function (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 (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 (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 (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 (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 (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 (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 (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 (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 (date, token, localize) { + if (token === 'Ho') { + return localize.ordinalNumber(date.getUTCHours(), { + unit: 'hour' + }); + } + + return lightFormatters.H(date, token); + }, + // Hour [0-11] + K: function (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 (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 (date, token, localize) { + if (token === 'mo') { + return localize.ordinalNumber(date.getUTCMinutes(), { + unit: 'minute' + }); + } + + return lightFormatters.m(date, token); + }, + // Second + s: function (date, token, localize) { + if (token === 'so') { + return localize.ordinalNumber(date.getUTCSeconds(), { + unit: 'second' + }); + } + + return lightFormatters.s(date, token); + }, + // Fraction of second + S: function (date, token) { + return lightFormatters.S(date, token); + }, + // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) + X: function (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 (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 (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 (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 (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 (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..271c2220 --- /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 (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 (date, token) { + var month = date.getUTCMonth(); + return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2); + }, + // Day of the month + d: function (date, token) { + return addLeadingZeros(date.getUTCDate(), token.length); + }, + // AM or PM + a: function (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 (date, token) { + return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length); + }, + // Hour [0-23] + H: function (date, token) { + return addLeadingZeros(date.getUTCHours(), token.length); + }, + // Minute + m: function (date, token) { + return addLeadingZeros(date.getUTCMinutes(), token.length); + }, + // Second + s: function (date, token) { + return addLeadingZeros(date.getUTCSeconds(), token.length); + }, + // Fraction of second + S: function (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..ca1a0dfc --- /dev/null +++ b/node_modules/date-fns/esm/_lib/format/longFormatters/index.js @@ -0,0 +1,96 @@ +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' + }); + } +} + +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' + }); + } +} + +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..80851486 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js @@ -0,0 +1,26 @@ +var MILLISECONDS_IN_MINUTE = 60000; + +function getDateMillisecondsPart(date) { + return date.getTime() % MILLISECONDS_IN_MINUTE; +} +/** + * 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(dirtyDate) { + var date = new Date(dirtyDate.getTime()); + var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset()); + date.setSeconds(0, 0); + var hasNegativeUTCOffset = baseTimezoneOffset > 0; + var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date); + return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset; +} \ 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..8096e35d --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js @@ -0,0 +1,15 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..53226b4a --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js @@ -0,0 +1,16 @@ +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; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..4c4cdce7 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js @@ -0,0 +1,26 @@ +import toDate from "../../toDate/index.js"; +import startOfUTCISOWeek from "../startOfUTCISOWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..e60d1989 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCWeek/index.js @@ -0,0 +1,16 @@ +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; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..0877ed08 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js @@ -0,0 +1,37 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import startOfUTCWeek from "../startOfUTCWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +export default function getUTCWeekYear(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate, dirtyOptions); + var year = date.getUTCFullYear(); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // 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, dirtyOptions); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); + var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions); + + 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..36dd4d6e --- /dev/null +++ b/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js @@ -0,0 +1,10 @@ +import startOfUTCWeek from "../startOfUTCWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..7a642618 --- /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://git.io/fxCyr")); + } 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://git.io/fxCyr")); + } 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://git.io/fxCyr")); + } 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://git.io/fxCyr")); + } +} \ 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/setUTCDay/index.js b/node_modules/date-fns/esm/_lib/setUTCDay/index.js new file mode 100644 index 00000000..f8845c1f --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCDay/index.js @@ -0,0 +1,26 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +export default function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) { + requiredArgs(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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..acddc9f4 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCISODay/index.js @@ -0,0 +1,22 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..8f9402e0 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js @@ -0,0 +1,14 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import getUTCISOWeek from "../getUTCISOWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..93ac5b55 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCWeek/index.js @@ -0,0 +1,14 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import getUTCWeek from "../getUTCWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..25064695 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js @@ -0,0 +1,14 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..e5b44600 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js @@ -0,0 +1,14 @@ +import getUTCISOWeekYear from "../getUTCISOWeekYear/index.js"; +import startOfUTCISOWeek from "../startOfUTCISOWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +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..e7b54db2 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js @@ -0,0 +1,24 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +export default function startOfUTCWeek(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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..d15cf289 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js @@ -0,0 +1,20 @@ +import toInteger from "../toInteger/index.js"; +import getUTCWeekYear from "../getUTCWeekYear/index.js"; +import startOfUTCWeek from "../startOfUTCWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; // This function will be a part of public API when UTC function will be implemented. +// See issue: https://github.com/date-fns/date-fns/issues/376 + +export default function startOfUTCWeekYear(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); + var year = getUTCWeekYear(dirtyDate, dirtyOptions); + var firstWeek = new Date(0); + firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeek.setUTCHours(0, 0, 0, 0); + var date = startOfUTCWeek(firstWeek, dirtyOptions); + return date; +} \ 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..d1c855b4 --- /dev/null +++ b/node_modules/date-fns/esm/add/index.js @@ -0,0 +1,67 @@ +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 = 'years' in duration ? toInteger(duration.years) : 0; + var months = 'months' in duration ? toInteger(duration.months) : 0; + var weeks = 'weeks' in duration ? toInteger(duration.weeks) : 0; + var days = 'days' in duration ? toInteger(duration.days) : 0; + var hours = 'hours' in duration ? toInteger(duration.hours) : 0; + var minutes = 'minutes' in duration ? toInteger(duration.minutes) : 0; + var seconds = 'seconds' in duration ? 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..ddd4be0d --- /dev/null +++ b/node_modules/date-fns/esm/add/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addBusinessDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9f6281eb --- /dev/null +++ b/node_modules/date-fns/esm/addDays/index.js @@ -0,0 +1,43 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..be848a76 --- /dev/null +++ b/node_modules/date-fns/esm/addHours/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e72666b4 --- /dev/null +++ b/node_modules/date-fns/esm/addISOWeekYears/index.js @@ -0,0 +1,39 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `addISOYears` to `addISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addISOWeekYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..ffc8cf54 --- /dev/null +++ b/node_modules/date-fns/esm/addMilliseconds/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..2d202cf8 --- /dev/null +++ b/node_modules/date-fns/esm/addMinutes/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1db8661e --- /dev/null +++ b/node_modules/date-fns/esm/addMonths/index.js @@ -0,0 +1,69 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, 1, 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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addMonths/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..d6d37133 --- /dev/null +++ b/node_modules/date-fns/esm/addQuarters/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addQuarters/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..72c0d780 --- /dev/null +++ b/node_modules/date-fns/esm/addSeconds/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a6463d80 --- /dev/null +++ b/node_modules/date-fns/esm/addWeeks/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addWeeks/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..188d3bef --- /dev/null +++ b/node_modules/date-fns/esm/addYears/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/addYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..ede9517c --- /dev/null +++ b/node_modules/date-fns/esm/areIntervalsOverlapping/index.js @@ -0,0 +1,114 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `areRangesOverlapping` to `areIntervalsOverlapping`. + * 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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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) + * ) + * + * // 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) } + * ) + * ``` + * + * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/types/Interval} + * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/types/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(dirtyIntervalLeft, dirtyIntervalRight) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { + inclusive: false + }; + 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'); + } + + if (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..b41b6131 --- /dev/null +++ b/node_modules/date-fns/esm/areIntervalsOverlapping/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, +} + +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/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..717da966 --- /dev/null +++ b/node_modules/date-fns/esm/closestIndexTo/index.js @@ -0,0 +1,73 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - Now, `closestIndexTo` doesn't throw an exception + * when the second argument is not an array, and returns Invalid Date instead. + * + * @param {Date|Number} dateToCompare - the date to compare with + * @param {Date[]|Number[]} datesArray - the array to search + * @returns {Number} an index of the date closest to the given date + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015? + * var dateToCompare = new Date(2015, 8, 6) + * var datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * var result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ + +export default function closestIndexTo(dirtyDateToCompare, dirtyDatesArray) { + requiredArgs(2, arguments); + var dateToCompare = toDate(dirtyDateToCompare); + + if (isNaN(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(currentDate)) { + result = NaN; + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < 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..5e778071 --- /dev/null +++ b/node_modules/date-fns/esm/closestIndexTo/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..2cfe2666 --- /dev/null +++ b/node_modules/date-fns/esm/closestTo/index.js @@ -0,0 +1,71 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - Now, `closestTo` doesn't throw an exception + * when the second argument is not an array, and returns Invalid Date instead. + * + * @param {Date|Number} dateToCompare - the date to compare with + * @param {Date[]|Number[]} datesArray - the array to search + * @returns {Date} the date from the array closest to the given date + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * var dateToCompare = new Date(2015, 8, 6) + * var 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(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(currentDate)) { + result = new Date(NaN); + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < 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..3d875a04 --- /dev/null +++ b/node_modules/date-fns/esm/closestTo/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..21c609b2 --- /dev/null +++ b/node_modules/date-fns/esm/compareAsc/index.js @@ -0,0 +1,53 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/compareAsc/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..331e19e4 --- /dev/null +++ b/node_modules/date-fns/esm/compareDesc/index.js @@ -0,0 +1,53 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/compareDesc/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..64e4bfa6 --- /dev/null +++ b/node_modules/date-fns/esm/constants/index.d.ts @@ -0,0 +1,2 @@ +export const maxTime: number +export const minTime: 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..c33bdeb5 --- /dev/null +++ b/node_modules/date-fns/esm/constants/index.js @@ -0,0 +1,15 @@ +/** + * Maximum allowed time. + * @constant + * @type {number} + * @default + */ +export var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; +/** + * Minimum allowed time. + * @constant + * @type {number} + * @default + */ + +export var minTime = -maxTime; \ 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..d57a406e --- /dev/null +++ b/node_modules/date-fns/esm/constants/index.js.flow @@ -0,0 +1,4 @@ +// @flow + +declare export var maxTime: number +declare export var minTime: number 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..128569d1 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInBusinessDays/index.js @@ -0,0 +1,53 @@ +import isValid from "../isValid/index.js"; +import isWeekend from "../isWeekend/index.js"; +import toDate from "../toDate/index.js"; +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import addDays from "../addDays/index.js"; +import isSameDay from "../isSameDay/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/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? + * var result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + */ + +export default function differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + if (!isValid(dateLeft) || !isValid(dateRight)) return new Date(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInBusinessDays/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..38c584fa --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarDays/index.js @@ -0,0 +1,50 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarDays/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e3ac1e0c --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js @@ -0,0 +1,39 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `differenceInCalendarISOYears` to `differenceInCalendarISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..df57b8f5 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js @@ -0,0 +1,43 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..ba1a2952 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarMonths/index.js @@ -0,0 +1,36 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarMonths/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..4e95d645 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js @@ -0,0 +1,37 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..0a0287cd --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarWeeks/index.js @@ -0,0 +1,55 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ + +export default function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, dirtyOptions) { + requiredArgs(2, arguments); + var startOfWeekLeft = startOfWeek(dirtyDateLeft, dirtyOptions); + var startOfWeekRight = startOfWeek(dirtyDateRight, dirtyOptions); + 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..444d580b --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarWeeks/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, +} + +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..5e70e719 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarYears/index.js @@ -0,0 +1,34 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..72255b8e --- /dev/null +++ b/node_modules/date-fns/esm/differenceInDays/index.js @@ -0,0 +1,87 @@ +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`. + * + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var 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. + * var 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 = 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInDays/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b8ebaaae --- /dev/null +++ b/node_modules/date-fns/esm/differenceInHours/index.js @@ -0,0 +1,34 @@ +import differenceInMilliseconds from "../differenceInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_HOUR = 3600000; +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ + +export default function differenceInHours(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var diff = differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_HOUR; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInHours/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..0acddb0b --- /dev/null +++ b/node_modules/date-fns/esm/differenceInISOWeekYears/index.js @@ -0,0 +1,53 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `differenceInISOYears` to `differenceInISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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? + * var 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 = 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInISOWeekYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1fe92707 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMilliseconds/index.js @@ -0,0 +1,35 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + return dateLeft.getTime() - 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMilliseconds/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..fbfa82c8 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMinutes/index.js @@ -0,0 +1,42 @@ +import differenceInMilliseconds from "../differenceInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_MINUTE = 60000; +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are from 10:01:59 to 10:00:00 + * var result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ + +export default function differenceInMinutes(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var diff = differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_MINUTE; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMinutes/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..b4edc62b --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMonths/index.js @@ -0,0 +1,53 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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)); // This will check if the date is end of Feb and assign a higher end of month date + // to compare it with Jan + + if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) { + 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; + } + + var result = sign * (difference - 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMonths/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7c34c7ee --- /dev/null +++ b/node_modules/date-fns/esm/differenceInQuarters/index.js @@ -0,0 +1,30 @@ +import differenceInMonths from "../differenceInMonths/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of full quarters between the given dates. + * + * @description + * Get the number of full quarters between the given dates. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ + +export default function differenceInQuarters(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var diff = differenceInMonths(dirtyDateLeft, dirtyDateRight) / 3; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInQuarters/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..46d814c9 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInSeconds/index.js @@ -0,0 +1,34 @@ +import differenceInMilliseconds from "../differenceInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var 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(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var diff = differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) / 1000; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInSeconds/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..2847f272 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInWeeks/index.js @@ -0,0 +1,51 @@ +import differenceInDays from "../differenceInDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * 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`. + * + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @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? + * var 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. + * var result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ + +export default function differenceInWeeks(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var diff = differenceInDays(dirtyDateLeft, dirtyDateRight) / 7; + return diff > 0 ? Math.floor(diff) : Math.ceil(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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInWeeks/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => 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..481f75e3 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInYears/index.js @@ -0,0 +1,44 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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 - 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..b6453ae6 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInYears/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..f545fa7b --- /dev/null +++ b/node_modules/date-fns/esm/eachDayOfInterval/index.js @@ -0,0 +1,89 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `eachDay` to `eachDayOfInterval`. + * 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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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 + * + * eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20)) + * + * // v2.0.0 onward + * + * eachDayOfInterval( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) } + * ) + * ``` + * + * @param {Interval} interval - the interval. See [Interval]{@link docs/types/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) { + 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 = options && 'step' in options ? Number(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..c12c2c3e --- /dev/null +++ b/node_modules/date-fns/esm/eachDayOfInterval/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, +} + +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..3aa84c77 --- /dev/null +++ b/node_modules/date-fns/esm/eachHourOfInterval/index.js @@ -0,0 +1,59 @@ +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 docs/types/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 10 October 2014, 15:00 + * var 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) { + 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 = options && 'step' in options ? Number(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..c12c2c3e --- /dev/null +++ b/node_modules/date-fns/esm/eachHourOfInterval/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, +} + +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/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..54e0acf2 --- /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 docs/types/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: + * var 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..f846923f --- /dev/null +++ b/node_modules/date-fns/esm/eachMonthOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..c495126e --- /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 docs/types/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: + * var 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..f846923f --- /dev/null +++ b/node_modules/date-fns/esm/eachQuarterOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b15760da --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekOfInterval/index.js @@ -0,0 +1,73 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Interval} interval - the interval. See [Interval]{@link docs/types/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: + * var 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..3122b7da --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekOfInterval/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, +} + +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..7f0b210d --- /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 docs/types/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 100755 index 00000000..f846923f --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b7af7874 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b69691d4 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfYear/index.js @@ -0,0 +1,39 @@ +import eachWeekendOfInterval from "../eachWeekendOfInterval/index.js"; +import startOfYear from "../startOfYear/index.js"; +import endOfYear from "../endOfYear/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 + * var 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); + if (isNaN(startDate)) throw new RangeError('The passed date is invalid'); + 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..b7af7874 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1992af46 --- /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 docs/types/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: + * var 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..f846923f --- /dev/null +++ b/node_modules/date-fns/esm/eachYearOfInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..3a2dae3a --- /dev/null +++ b/node_modules/date-fns/esm/endOfDay/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfDay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..2fe9d20e --- /dev/null +++ b/node_modules/date-fns/esm/endOfDecade/index.js @@ -0,0 +1,36 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..1b492c1b --- /dev/null +++ b/node_modules/date-fns/esm/endOfDecade/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, +} + +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..99489bd0 --- /dev/null +++ b/node_modules/date-fns/esm/endOfHour/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfHour/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..bb6053e6 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeek/index.js @@ -0,0 +1,33 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..8dc72cb1 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeekYear/index.js @@ -0,0 +1,44 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `endOfISOYear` to `endOfISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..01eefb40 --- /dev/null +++ b/node_modules/date-fns/esm/endOfMinute/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfMinute/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1eaddda9 --- /dev/null +++ b/node_modules/date-fns/esm/endOfMonth/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..75f11104 --- /dev/null +++ b/node_modules/date-fns/esm/endOfQuarter/index.js @@ -0,0 +1,34 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..13030775 --- /dev/null +++ b/node_modules/date-fns/esm/endOfSecond/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfSecond/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7ce804fc --- /dev/null +++ b/node_modules/date-fns/esm/endOfToday/index.js @@ -0,0 +1,28 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @returns {Date} the end of today + * + * @example + * // If today is 6 October 2014: + * var 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..ae75385e --- /dev/null +++ b/node_modules/date-fns/esm/endOfToday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..74f39c4f --- /dev/null +++ b/node_modules/date-fns/esm/endOfTomorrow/index.js @@ -0,0 +1,33 @@ +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/esm/endOfTomorrow/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..2b3891a1 --- /dev/null +++ b/node_modules/date-fns/esm/endOfWeek/index.js @@ -0,0 +1,54 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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..f162c393 --- /dev/null +++ b/node_modules/date-fns/esm/endOfWeek/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, +} + +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..0917f724 --- /dev/null +++ b/node_modules/date-fns/esm/endOfYear/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/endOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..dee8b55c --- /dev/null +++ b/node_modules/date-fns/esm/endOfYesterday/index.js @@ -0,0 +1,33 @@ +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/esm/endOfYesterday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..30674bd6 --- /dev/null +++ b/node_modules/date-fns/esm/format/index.js @@ -0,0 +1,433 @@ +import isValid from "../isValid/index.js"; +import defaultLocale from "../locale/en-US/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"; // 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://git.io/fxCyr + * + * 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, Su, Sa | | + * | 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, Su, Sa | 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, Su, Sa | | + * | 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, Su, Sa | | + * | 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, 0001, ..., 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://git.io/fxCyr + * + * 9. `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://git.io/fxCyr + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The second argument is now 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") + * ``` + * + * - 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. + * + * - Characters are now escaped using single quote symbols (`'`) instead of square brackets. + * + * @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://git.io/fxCyr + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://git.io/fxCyr + * @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://git.io/fxCyr + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * var 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' + * var 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: + * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ + +export default function format(dirtyDate, dirtyFormatStr, dirtyOptions) { + requiredArgs(2, arguments); + var formatStr = String(dirtyFormatStr); + var options = dirtyOptions || {}; + var locale = options.locale || defaultLocale; + var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // 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 localeWeekStartsOn = locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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, formatterOptions); + } + + 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.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) { + throwProtectedError(substring, dirtyFormatStr, dirtyDate); + } + + if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) { + throwProtectedError(substring, dirtyFormatStr, 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) { + return input.match(escapedStringRegExp)[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..7f73e277 --- /dev/null +++ b/node_modules/date-fns/esm/format/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, +} + +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..2434b949 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistance/index.js @@ -0,0 +1,213 @@ +import compareAsc from "../compareAsc/index.js"; +import differenceInMonths from "../differenceInMonths/index.js"; +import differenceInSeconds from "../differenceInSeconds/index.js"; +import defaultLocale from "../locale/en-US/index.js"; +import toDate from "../toDate/index.js"; +import cloneObject from "../_lib/cloneObject/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 | + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `distanceInWords ` to `formatDistance` + * to make its name consistent with `format` and `formatRelative`. + * + * - The order of arguments is swapped to make the function + * 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' + * ``` + * + * @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? + * var 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? + * var 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? + * var 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' + * var result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ + +export default function formatDistance(dirtyDate, dirtyBaseDate, dirtyOptions) { + requiredArgs(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale || 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 = cloneObject(options); + localizeOptions.addSuffix = Boolean(options.addSuffix); + localizeOptions.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.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', null, 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..1fa1aaa5 --- /dev/null +++ b/node_modules/date-fns/esm/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, +} + +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..5b475e3a --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceStrict/index.js @@ -0,0 +1,247 @@ +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import compareAsc from "../compareAsc/index.js"; +import toDate from "../toDate/index.js"; +import differenceInSeconds from "../differenceInSeconds/index.js"; +import cloneObject from "../_lib/cloneObject/index.js"; +import defaultLocale from "../locale/en-US/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MINUTES_IN_DAY = 1440; +var MINUTES_IN_MONTH = 43200; +var MINUTES_IN_YEAR = 525600; +/** + * @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 | + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict` + * to make its name consistent with `format` and `formatRelative`. + * + * - The order of arguments is swapped to make the function + * consistent with `differenceIn...` functions. + * + * ```javascript + * // Before v2.0.0 + * + * distanceInWordsStrict( + * new Date(2015, 0, 2), + * new Date(2014, 6, 2) + * ) //=> '6 months' + * + * // v2.0.0 onward + * + * formatDistanceStrict( + * new Date(2014, 6, 2), + * new Date(2015, 0, 2) + * ) //=> '6 months' + * ``` + * + * - `partialMethod` option 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' + * ``` + * + * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`. + * + * - `unit` option 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' } + * ) + * ``` + * + * @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? + * var 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? + * var 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? + * var 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? + * var 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? + * var 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' + * var result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ + +export default function formatDistanceStrict(dirtyDate, dirtyBaseDate, dirtyOptions) { + requiredArgs(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale || 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 = cloneObject(options); + localizeOptions.addSuffix = Boolean(options.addSuffix); + localizeOptions.comparison = comparison; + var dateLeft; + var dateRight; + + if (comparison > 0) { + dateLeft = toDate(dirtyBaseDate); + dateRight = toDate(dirtyDate); + } else { + dateLeft = toDate(dirtyDate); + dateRight = toDate(dirtyBaseDate); + } + + var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod); + 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 seconds = differenceInSeconds(dateRight, dateLeft); + var offsetInSeconds = (getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft)) / 1000; + var minutes = roundingMethodFn((seconds - offsetInSeconds) / 60); + var unit; + + if (options.unit == null) { + if (minutes < 1) { + unit = 'second'; + } else if (minutes < 60) { + unit = 'minute'; + } else if (minutes < MINUTES_IN_DAY) { + unit = 'hour'; + } else if (minutes < MINUTES_IN_MONTH) { + unit = 'day'; + } else if (minutes < MINUTES_IN_YEAR) { + unit = 'month'; + } else { + unit = 'year'; + } + } else { + unit = String(options.unit); + } // 0 up to 60 seconds + + + if (unit === 'second') { + return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins + } else if (unit === 'minute') { + return locale.formatDistance('xMinutes', minutes, 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(minutes / MINUTES_IN_DAY); + return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months + } else if (unit === 'month') { + var months = roundingMethodFn(minutes / MINUTES_IN_MONTH); + return locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date + } else if (unit === 'year') { + var years = roundingMethodFn(minutes / 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..056861a4 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceStrict/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, +} + +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..1b18004a --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNow/index.js @@ -0,0 +1,112 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `distanceInWordsToNow ` to `formatDistanceToNow` + * to make its name consistent with `format` and `formatRelative`. + * + * ```javascript + * // Before v2.0.0 + * + * distanceInWordsToNow(new Date(2014, 6, 2), { addSuffix: true }) + * //=> 'in 6 months' + * + * // v2.0.0 onward + * + * formatDistanceToNow(new Date(2014, 6, 2), { addSuffix: true }) + * //=> 'in 6 months' + * ``` + * + * @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? + * var 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? + * var 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? + * var 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? + * var eoLocale = require('date-fns/locale/eo') + * var result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ + +export default function formatDistanceToNow(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + return distanceInWords(dirtyDate, Date.now(), dirtyOptions); +} \ 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..2f3fd980 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNow/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, +} + +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..be4f5279 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNowStrict/index.js @@ -0,0 +1,81 @@ +import distanceInStrictWords 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? + * var 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? + * var result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * var 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?? + * var 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 August 2016 in Esperanto? + * var eoLocale = require('date-fns/locale/eo') + * var result = formatDistanceToNowStrict( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ + +export default function formatDistanceToNowStrict(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + return distanceInStrictWords(dirtyDate, Date.now(), dirtyOptions); +} \ 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..6d99cccd --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNowStrict/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, +} + +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..f7ad2f74 --- /dev/null +++ b/node_modules/date-fns/esm/formatDuration/index.js @@ -0,0 +1,86 @@ +import defaultLocale from "../locale/en-US/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 be 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 }, null, { 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) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (arguments.length < 1) { + throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); + } + + var format = options.format || defaultFormat; + var locale = options.locale || defaultLocale; + var zero = options.zero || false; + var delimiter = options.delimiter || ' '; + var result = format.reduce(function (acc, unit) { + var token = "x".concat(unit.replace(/(^.)/, function (m) { + return m.toUpperCase(); + })); + var addChunk = typeof duration[unit] === 'number' && (zero || duration[unit]); + return addChunk ? acc.concat(locale.formatDistance(token, duration[unit])) : 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..ba67d293 --- /dev/null +++ b/node_modules/date-fns/esm/formatDuration/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, +} + +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..47ed6d24 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO/index.js @@ -0,0 +1,107 @@ +import toDate from "../toDate/index.js"; +import isValid from "../isValid/index.js"; +import addLeadingZeros from "../_lib/addLeadingZeros/index.js"; +/** + * @name formatISO + * @category Common Helpers + * @summary Format the date according to the ISO 8601 standard (http://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 time zone, 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.represenation` must be 'date', 'time' or 'complete' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (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 (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 (UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ + +export default function formatISO(dirtyDate, dirtyOptions) { + 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 options = dirtyOptions || {}; + var format = options.format == null ? 'extended' : String(options.format); + var representation = options.representation == null ? 'complete' : String(options.representation); + + 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..9e581d38 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO/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, +} + +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..c41bbc55 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO9075/index.js @@ -0,0 +1,90 @@ +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.represenation` 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, dirtyOptions) { + 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 options = dirtyOptions || {}; + var format = options.format == null ? 'extended' : String(options.format); + var representation = options.representation == null ? 'complete' : String(options.representation); + + 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..9e581d38 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO9075/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, +} + +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..f9989d5c --- /dev/null +++ b/node_modules/date-fns/esm/formatISODuration/index.js @@ -0,0 +1,45 @@ +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 + * 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..72e43fb2 --- /dev/null +++ b/node_modules/date-fns/esm/formatISODuration/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..612f03dd --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC3339/index.js @@ -0,0 +1,84 @@ +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, dirtyOptions) { + 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 options = dirtyOptions || {}; + var fractionDigits = options.fractionDigits == null ? 0 : toInteger(options.fractionDigits); // 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..499f0d39 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC3339/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, +} + +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..40049843 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC7231/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..d5bb9be9 --- /dev/null +++ b/node_modules/date-fns/esm/formatRelative/index.js @@ -0,0 +1,91 @@ +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import format from "../format/index.js"; +import defaultLocale from "../locale/en-US/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"; +/** + * @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 | + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + */ + +export default function formatRelative(dirtyDate, dirtyBaseDate, dirtyOptions) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var baseDate = toDate(dirtyBaseDate); + var options = dirtyOptions || {}; + var locale = options.locale || defaultLocale; + + 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, options); + return format(date, formatStr, options); +} \ 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..a95dd75e --- /dev/null +++ b/node_modules/date-fns/esm/formatRelative/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, +} + +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..e10fdd84 --- /dev/null +++ b/node_modules/date-fns/esm/fp/_lib/convertToFP/index.js @@ -0,0 +1,12 @@ +export default function convertToFP(fn, arity, a) { + a = a || []; + + if (a.length >= arity) { + return fn.apply(null, a.slice(0, arity).reverse()); + } + + return function () { + var args = Array.prototype.slice.call(arguments); + 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..4feaf4be --- /dev/null +++ b/node_modules/date-fns/esm/fp/add/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../add/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var add = convertToFP(fn, 2); +export default add; \ 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..9f0b49ee --- /dev/null +++ b/node_modules/date-fns/esm/fp/add/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, +} + +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..f40f044a --- /dev/null +++ b/node_modules/date-fns/esm/fp/addBusinessDays/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addBusinessDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addBusinessDays = convertToFP(fn, 2); +export default addBusinessDays; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addBusinessDays/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, +} + +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..0ed77a07 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addDays/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addDays = convertToFP(fn, 2); +export default addDays; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addDays/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, +} + +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..0169ad57 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addHours/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addHours = convertToFP(fn, 2); +export default addHours; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addHours/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, +} + +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..fa634d36 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addISOWeekYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addISOWeekYears = convertToFP(fn, 2); +export default addISOWeekYears; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addISOWeekYears/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, +} + +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..2f3838bb --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMilliseconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addMilliseconds = convertToFP(fn, 2); +export default addMilliseconds; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMilliseconds/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, +} + +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..f62bbcbd --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMinutes/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addMinutes = convertToFP(fn, 2); +export default addMinutes; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMinutes/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, +} + +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..f35dfc29 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMonths/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addMonths = convertToFP(fn, 2); +export default addMonths; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMonths/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, +} + +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..ef39dc47 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addQuarters/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addQuarters = convertToFP(fn, 2); +export default addQuarters; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addQuarters/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, +} + +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..a47f8a41 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addSeconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addSeconds = convertToFP(fn, 2); +export default addSeconds; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addSeconds/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, +} + +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..e48543be --- /dev/null +++ b/node_modules/date-fns/esm/fp/addWeeks/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addWeeks = convertToFP(fn, 2); +export default addWeeks; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addWeeks/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, +} + +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..4bde4a99 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../addYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var addYears = convertToFP(fn, 2); +export default addYears; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addYears/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, +} + +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..6033c5da --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../areIntervalsOverlapping/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var areIntervalsOverlapping = convertToFP(fn, 2); +export default areIntervalsOverlapping; \ 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..6f8df81b --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/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, +} + +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..cbfb65cf --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../areIntervalsOverlapping/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var areIntervalsOverlappingWithOptions = convertToFP(fn, 3); +export default areIntervalsOverlappingWithOptions; \ 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..f9199fa2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/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, +} + +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/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..3e2d818f --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestIndexTo/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../closestIndexTo/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var closestIndexTo = convertToFP(fn, 2); +export default closestIndexTo; \ 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..90fbe5d5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestIndexTo/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, +} + +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..cd69f2b4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestTo/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../closestTo/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var closestTo = convertToFP(fn, 2); +export default closestTo; \ 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..63875509 --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestTo/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, +} + +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..4dc43dba --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareAsc/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../compareAsc/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var compareAsc = convertToFP(fn, 2); +export default compareAsc; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareAsc/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, +} + +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..c2017dca --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareDesc/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../compareDesc/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var compareDesc = convertToFP(fn, 2); +export default compareDesc; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareDesc/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, +} + +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/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..5a368ba6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInBusinessDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInBusinessDays = convertToFP(fn, 2); +export default differenceInBusinessDays; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInBusinessDays/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, +} + +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..2466fd19 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarDays = convertToFP(fn, 2); +export default differenceInCalendarDays; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarDays/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, +} + +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..d5a18888 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarISOWeekYears = convertToFP(fn, 2); +export default differenceInCalendarISOWeekYears; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/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, +} + +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..7820b3e3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarISOWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarISOWeeks = convertToFP(fn, 2); +export default differenceInCalendarISOWeeks; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/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, +} + +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..b5e0c5f9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarMonths = convertToFP(fn, 2); +export default differenceInCalendarMonths; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/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, +} + +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..a1d6bdc9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarQuarters = convertToFP(fn, 2); +export default differenceInCalendarQuarters; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/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, +} + +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..8cf9e320 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarWeeks = convertToFP(fn, 2); +export default differenceInCalendarWeeks; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/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, +} + +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..8c13bc7d --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarWeeksWithOptions = convertToFP(fn, 3); +export default differenceInCalendarWeeksWithOptions; \ 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..f6a6a698 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..38a24fd8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInCalendarYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInCalendarYears = convertToFP(fn, 2); +export default differenceInCalendarYears; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarYears/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, +} + +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..43dc4bfd --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInDays/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInDays = convertToFP(fn, 2); +export default differenceInDays; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInDays/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, +} + +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..c57c0746 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHours/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInHours = convertToFP(fn, 2); +export default differenceInHours; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHours/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, +} + +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/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..7900d3d8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInISOWeekYears = convertToFP(fn, 2); +export default differenceInISOWeekYears; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/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, +} + +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..c7ed50b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInMilliseconds = convertToFP(fn, 2); +export default differenceInMilliseconds; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMilliseconds/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, +} + +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..82e229c0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutes/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInMinutes = convertToFP(fn, 2); +export default differenceInMinutes; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutes/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, +} + +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/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..25268cb5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMonths/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInMonths = convertToFP(fn, 2); +export default differenceInMonths; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMonths/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, +} + +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..aadbdfd4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuarters/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInQuarters = convertToFP(fn, 2); +export default differenceInQuarters; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuarters/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, +} + +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/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..b8179df5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSeconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInSeconds = convertToFP(fn, 2); +export default differenceInSeconds; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSeconds/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, +} + +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/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..04fc82a4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeks/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInWeeks = convertToFP(fn, 2); +export default differenceInWeeks; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeks/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, +} + +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/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..13b73575 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../differenceInYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var differenceInYears = convertToFP(fn, 2); +export default differenceInYears; \ 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..3e690072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInYears/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, +} + +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..371e638e --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachDayOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachDayOfInterval = convertToFP(fn, 1); +export default eachDayOfInterval; \ 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..c49503ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..eabf1b96 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachDayOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachDayOfIntervalWithOptions = convertToFP(fn, 2); +export default eachDayOfIntervalWithOptions; \ 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..f1fc6cf6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/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, +} + +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..49d6c9b5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachHourOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachHourOfInterval = convertToFP(fn, 1); +export default eachHourOfInterval; \ 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..c49503ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..060b4465 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachHourOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachHourOfIntervalWithOptions = convertToFP(fn, 2); +export default eachHourOfIntervalWithOptions; \ 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..f1fc6cf6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/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, +} + +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/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..fa4e94c0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachMonthOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachMonthOfInterval = convertToFP(fn, 1); +export default eachMonthOfInterval; \ 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..c49503ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..31edea2b --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachQuarterOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachQuarterOfInterval = convertToFP(fn, 1); +export default eachQuarterOfInterval; \ 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..c49503ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..bba8f3b9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachWeekOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachWeekOfInterval = convertToFP(fn, 1); +export default eachWeekOfInterval; \ 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..c49503ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..794663ea --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachWeekOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachWeekOfIntervalWithOptions = convertToFP(fn, 2); +export default eachWeekOfIntervalWithOptions; \ 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..c373b9e8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/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, +} + +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..c0ab76d9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachWeekendOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachWeekendOfInterval = convertToFP(fn, 1); +export default eachWeekendOfInterval; \ 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..c49503ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..0d0461b4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachWeekendOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachWeekendOfMonth = convertToFP(fn, 1); +export default eachWeekendOfMonth; \ 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..4deed11e --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..ead24da9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachWeekendOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachWeekendOfYear = convertToFP(fn, 1); +export default eachWeekendOfYear; \ 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..4deed11e --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..7f0de6ff --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachYearOfInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../eachYearOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var eachYearOfInterval = convertToFP(fn, 1); +export default eachYearOfInterval; \ 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..c49503ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..b648423a --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDay/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfDay = convertToFP(fn, 1); +export default endOfDay; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..0bfba223 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecade/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfDecade = convertToFP(fn, 1); +export default endOfDecade; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a531cc7e --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfDecadeWithOptions = convertToFP(fn, 2); +export default endOfDecadeWithOptions; \ 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..2944a51a --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/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, +} + +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..dd980d0c --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfHour/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfHour/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfHour = convertToFP(fn, 1); +export default endOfHour; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..e3d656f3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfISOWeek = convertToFP(fn, 1); +export default endOfISOWeek; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..ede5c7b7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfISOWeekYear = convertToFP(fn, 1); +export default endOfISOWeekYear; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..828968a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMinute/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfMinute/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfMinute = convertToFP(fn, 1); +export default endOfMinute; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..771377b1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfMonth = convertToFP(fn, 1); +export default endOfMonth; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..d5729ff6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfQuarter/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfQuarter = convertToFP(fn, 1); +export default endOfQuarter; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..81c94fb1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfSecond/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfSecond/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfSecond = convertToFP(fn, 1); +export default endOfSecond; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c913fede --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfWeek = convertToFP(fn, 1); +export default endOfWeek; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..bddacaba --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfWeekWithOptions = convertToFP(fn, 2); +export default endOfWeekWithOptions; \ 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..52687aa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/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, +} + +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..527fffc8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../endOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var endOfYear = convertToFP(fn, 1); +export default endOfYear; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..a97d8784 --- /dev/null +++ b/node_modules/date-fns/esm/fp/format/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../format/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var format = convertToFP(fn, 2); +export default format; \ 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..3fe0835f --- /dev/null +++ b/node_modules/date-fns/esm/fp/format/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, +} + +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..7d1c6c60 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistance/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatDistance/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatDistance = convertToFP(fn, 2); +export default formatDistance; \ 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..fd2a0f90 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistance/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, +} + +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..efb607b4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrict/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatDistanceStrict/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatDistanceStrict = convertToFP(fn, 2); +export default formatDistanceStrict; \ 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..fd2a0f90 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrict/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, +} + +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..4aa62b12 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatDistanceStrict/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatDistanceStrictWithOptions = convertToFP(fn, 3); +export default formatDistanceStrictWithOptions; \ 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..828653b5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/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, +} + +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..67150fb0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatDistance/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatDistanceWithOptions = convertToFP(fn, 3); +export default formatDistanceWithOptions; \ 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..b7d22d19 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/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, +} + +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..13323073 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDuration/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatDuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatDuration = convertToFP(fn, 1); +export default formatDuration; \ 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..c94df096 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDuration/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..755135f2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatDuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatDurationWithOptions = convertToFP(fn, 2); +export default formatDurationWithOptions; \ 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..23943145 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDurationWithOptions/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, +} + +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..9fb28079 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatISO = convertToFP(fn, 1); +export default formatISO; \ 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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..f657420e --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatISO9075/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatISO9075 = convertToFP(fn, 1); +export default formatISO9075; \ 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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..c191a2bc --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatISO9075/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatISO9075WithOptions = convertToFP(fn, 2); +export default formatISO9075WithOptions; \ 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..c64426ed --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/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, +} + +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..6c2a35e9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISODuration/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatISODuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatISODuration = convertToFP(fn, 1); +export default formatISODuration; \ 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..c94df096 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..41119f57 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISOWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatISOWithOptions = convertToFP(fn, 2); +export default formatISOWithOptions; \ 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..c64426ed --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISOWithOptions/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, +} + +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..2c66aadb --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatRFC3339/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatRFC3339 = convertToFP(fn, 1); +export default formatRFC3339; \ 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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..6f3ba62b --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatRFC3339/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatRFC3339WithOptions = convertToFP(fn, 2); +export default formatRFC3339WithOptions; \ 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..421763b3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/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, +} + +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..84536748 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC7231/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatRFC7231/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatRFC7231 = convertToFP(fn, 1); +export default formatRFC7231; \ 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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c329f62a --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelative/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatRelative/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatRelative = convertToFP(fn, 2); +export default formatRelative; \ 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..fd2a0f90 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelative/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, +} + +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..6f7948d8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../formatRelative/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatRelativeWithOptions = convertToFP(fn, 3); +export default formatRelativeWithOptions; \ 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..2765a7dc --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..58b8d8ec --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../format/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var formatWithOptions = convertToFP(fn, 3); +export default formatWithOptions; \ 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..36e22421 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatWithOptions/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, +} + +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..049087dd --- /dev/null +++ b/node_modules/date-fns/esm/fp/fromUnixTime/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../fromUnixTime/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var fromUnixTime = convertToFP(fn, 1); +export default fromUnixTime; \ 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..b49b31d1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..1d4da5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDate/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getDate = convertToFP(fn, 1); +export default getDate; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..0dfbe833 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDay/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getDay = convertToFP(fn, 1); +export default getDay; \ 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..21212366 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c95dac68 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDayOfYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getDayOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getDayOfYear = convertToFP(fn, 1); +export default getDayOfYear; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c417ba0c --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getDaysInMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getDaysInMonth = convertToFP(fn, 1); +export default getDaysInMonth; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..8a1cbef8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getDaysInYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getDaysInYear = convertToFP(fn, 1); +export default getDaysInYear; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..5f91f8ec --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDecade/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getDecade = convertToFP(fn, 1); +export default getDecade; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..e20e34f7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getHours/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getHours = convertToFP(fn, 1); +export default getHours; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..75080297 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISODay/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getISODay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getISODay = convertToFP(fn, 1); +export default getISODay; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..792276bd --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getISOWeek = convertToFP(fn, 1); +export default getISOWeek; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..76d442a8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getISOWeekYear = convertToFP(fn, 1); +export default getISOWeekYear; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..451a2935 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getISOWeeksInYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getISOWeeksInYear = convertToFP(fn, 1); +export default getISOWeeksInYear; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..74886632 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMilliseconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getMilliseconds = convertToFP(fn, 1); +export default getMilliseconds; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..1d7868b0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMinutes/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getMinutes = convertToFP(fn, 1); +export default getMinutes; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..6ef18530 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getMonth = convertToFP(fn, 1); +export default getMonth; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..f7c2b818 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getOverlappingDaysInIntervals/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getOverlappingDaysInIntervals = convertToFP(fn, 2); +export default getOverlappingDaysInIntervals; \ 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..5a5dce24 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/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, +} + +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..13cee715 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getQuarter/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getQuarter = convertToFP(fn, 1); +export default getQuarter; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..0cf3e7f6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getSeconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getSeconds = convertToFP(fn, 1); +export default getSeconds; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..06334191 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getTime/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getTime/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getTime = convertToFP(fn, 1); +export default getTime; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..be2a1eba --- /dev/null +++ b/node_modules/date-fns/esm/fp/getUnixTime/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getUnixTime/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getUnixTime = convertToFP(fn, 1); +export default getUnixTime; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..54724a28 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeek = convertToFP(fn, 1); +export default getWeek; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..39d102f8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeekOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeekOfMonth = convertToFP(fn, 1); +export default getWeekOfMonth; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..62d125e9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeekOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeekOfMonthWithOptions = convertToFP(fn, 2); +export default getWeekOfMonthWithOptions; \ 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..52f7aa74 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/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, +} + +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..05c13acc --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeekWithOptions = convertToFP(fn, 2); +export default getWeekWithOptions; \ 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..d0fd53a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekWithOptions/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, +} + +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..d150241b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeekYear = convertToFP(fn, 1); +export default getWeekYear; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b26c8753 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeekYearWithOptions = convertToFP(fn, 2); +export default getWeekYearWithOptions; \ 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..d0fd53a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/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, +} + +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..a7fde33a --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeeksInMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeeksInMonth = convertToFP(fn, 1); +export default getWeeksInMonth; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..8cdc8b34 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getWeeksInMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getWeeksInMonthWithOptions = convertToFP(fn, 2); +export default getWeeksInMonthWithOptions; \ 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..52f7aa74 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/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, +} + +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..659518c8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../getYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var getYear = convertToFP(fn, 1); +export default getYear; \ 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..dee8533d --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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/index.js b/node_modules/date-fns/esm/fp/index.js new file mode 100644 index 00000000..978b3119 --- /dev/null +++ b/node_modules/date-fns/esm/fp/index.js @@ -0,0 +1,209 @@ +// This file is generated automatically by `scripts/build/indices.js`. 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 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 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 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 eachDayOfIntervalWithOptions } from "./eachDayOfIntervalWithOptions/index.js"; +export { default as eachHourOfInterval } from "./eachHourOfInterval/index.js"; +export { default as eachHourOfIntervalWithOptions } from "./eachHourOfIntervalWithOptions/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 intervalToDuration } from "./intervalToDuration/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 min } from "./min/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 roundToNearestMinutes } from "./roundToNearestMinutes/index.js"; +export { default as roundToNearestMinutesWithOptions } from "./roundToNearestMinutesWithOptions/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 * 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..ea1d588a --- /dev/null +++ b/node_modules/date-fns/esm/fp/index.js.flow @@ -0,0 +1,555 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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 + >, + closestIndexTo: CurriedFn2<(Date | number)[], Date | number, number>, + closestTo: CurriedFn2<(Date | number)[], Date | number, Date>, + compareAsc: CurriedFn2, + compareDesc: CurriedFn2, + 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, + differenceInISOWeekYears: CurriedFn2, + differenceInMilliseconds: CurriedFn2, + differenceInMinutes: CurriedFn2, + differenceInMonths: CurriedFn2, + differenceInQuarters: CurriedFn2, + differenceInSeconds: CurriedFn2, + differenceInWeeks: CurriedFn2, + differenceInYears: CurriedFn2, + eachDayOfInterval: CurriedFn1, + eachDayOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachHourOfInterval: CurriedFn1, + eachHourOfIntervalWithOptions: 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, + intervalToDuration: CurriedFn1, + 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, + min: CurriedFn1<(Date | number)[], Date>, + 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 + >, + roundToNearestMinutes: CurriedFn1, + roundToNearestMinutesWithOptions: CurriedFn2< + { + nearestTo?: number, + }, + Date | number, + Date + >, + 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, + maxTime: number, + minTime: 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..f08eaf46 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intervalToDuration/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../intervalToDuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var intervalToDuration = convertToFP(fn, 1); +export default intervalToDuration; \ 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..3d34c99a --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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/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..690b0085 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isAfter/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isAfter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isAfter = convertToFP(fn, 2); +export default isAfter; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isAfter/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, +} + +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..ec7016ee --- /dev/null +++ b/node_modules/date-fns/esm/fp/isBefore/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isBefore/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isBefore = convertToFP(fn, 2); +export default isBefore; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isBefore/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, +} + +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..46441db1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isDate/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isDate = convertToFP(fn, 1); +export default isDate; \ 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..0cb8b791 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..47272ed8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isEqual/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isEqual/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isEqual = convertToFP(fn, 2); +export default isEqual; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isEqual/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, +} + +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..2e1bfd02 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isExists/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isExists/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isExists = convertToFP(fn, 3); +export default isExists; \ 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..17a25b58 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isExists/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, +} + +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..cf86201a --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isFirstDayOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isFirstDayOfMonth = convertToFP(fn, 1); +export default isFirstDayOfMonth; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c87b7383 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFriday/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isFriday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isFriday = convertToFP(fn, 1); +export default isFriday; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..fc60552e --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isLastDayOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isLastDayOfMonth = convertToFP(fn, 1); +export default isLastDayOfMonth; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..eacee8e8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLeapYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isLeapYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isLeapYear = convertToFP(fn, 1); +export default isLeapYear; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..e9927bec --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatch/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isMatch/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isMatch = convertToFP(fn, 2); +export default isMatch; \ 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..0aae0c11 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatch/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, +} + +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..359cad43 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatchWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isMatch/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isMatchWithOptions = convertToFP(fn, 3); +export default isMatchWithOptions; \ 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..a159e48a --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatchWithOptions/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, +} + +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..a39ed5cd --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMonday/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isMonday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isMonday = convertToFP(fn, 1); +export default isMonday; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..57a72d10 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameDay/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameDay = convertToFP(fn, 2); +export default isSameDay; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameDay/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, +} + +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..af3fb952 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameHour/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameHour/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameHour = convertToFP(fn, 2); +export default isSameHour; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameHour/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, +} + +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..292ad800 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameISOWeek = convertToFP(fn, 2); +export default isSameISOWeek; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeek/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, +} + +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..a37c13f2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameISOWeekYear = convertToFP(fn, 2); +export default isSameISOWeekYear; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeekYear/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, +} + +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..d6f28cb7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMinute/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameMinute/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameMinute = convertToFP(fn, 2); +export default isSameMinute; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMinute/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, +} + +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..7e4acba0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameMonth = convertToFP(fn, 2); +export default isSameMonth; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMonth/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, +} + +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..de60932c --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameQuarter/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameQuarter = convertToFP(fn, 2); +export default isSameQuarter; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameQuarter/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, +} + +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..2d8f52b7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameSecond/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameSecond/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameSecond = convertToFP(fn, 2); +export default isSameSecond; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameSecond/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, +} + +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..b35edc6b --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameWeek = convertToFP(fn, 2); +export default isSameWeek; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeek/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, +} + +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..fe1bac36 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameWeekWithOptions = convertToFP(fn, 3); +export default isSameWeekWithOptions; \ 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..f82ed29d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..d16353f4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSameYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSameYear = convertToFP(fn, 2); +export default isSameYear; \ 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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameYear/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, +} + +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..df062a16 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSaturday/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSaturday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSaturday = convertToFP(fn, 1); +export default isSaturday; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..5bd39128 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSunday/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isSunday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isSunday = convertToFP(fn, 1); +export default isSunday; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..67a11218 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isThursday/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isThursday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isThursday = convertToFP(fn, 1); +export default isThursday; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c4d31f21 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isTuesday/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isTuesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isTuesday = convertToFP(fn, 1); +export default isTuesday; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c18e05d1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isValid/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isValid/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isValid = convertToFP(fn, 1); +export default isValid; \ 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..0cb8b791 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..bc697141 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWednesday/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isWednesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isWednesday = convertToFP(fn, 1); +export default isWednesday; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..bc6661f5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWeekend/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isWeekend/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isWeekend = convertToFP(fn, 1); +export default isWeekend; \ 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..51be201c --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..57d0c6c4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWithinInterval/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../isWithinInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var isWithinInterval = convertToFP(fn, 2); +export default isWithinInterval; \ 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..80633e13 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWithinInterval/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, +} + +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..22103c74 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfDecade/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfDecade = convertToFP(fn, 1); +export default lastDayOfDecade; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..b78b231b --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfISOWeek = convertToFP(fn, 1); +export default lastDayOfISOWeek; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..16959f58 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfISOWeekYear = convertToFP(fn, 1); +export default lastDayOfISOWeekYear; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..72674f0a --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfMonth = convertToFP(fn, 1); +export default lastDayOfMonth; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..19f86892 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfQuarter = convertToFP(fn, 1); +export default lastDayOfQuarter; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..39845151 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfQuarterWithOptions = convertToFP(fn, 2); +export default lastDayOfQuarterWithOptions; \ 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..2944a51a --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/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, +} + +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..6a36217f --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfWeek = convertToFP(fn, 1); +export default lastDayOfWeek; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..0587a4fd --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfWeekWithOptions = convertToFP(fn, 2); +export default lastDayOfWeekWithOptions; \ 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..52687aa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/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, +} + +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..092a333f --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lastDayOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lastDayOfYear = convertToFP(fn, 1); +export default lastDayOfYear; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..a32eb84f --- /dev/null +++ b/node_modules/date-fns/esm/fp/lightFormat/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../lightFormat/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var lightFormat = convertToFP(fn, 2); +export default lightFormat; \ 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..3fe0835f --- /dev/null +++ b/node_modules/date-fns/esm/fp/lightFormat/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, +} + +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..b941c400 --- /dev/null +++ b/node_modules/date-fns/esm/fp/max/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../max/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var max = convertToFP(fn, 1); +export default max; \ 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..4c233e25 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..95ef4089 --- /dev/null +++ b/node_modules/date-fns/esm/fp/milliseconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../milliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var milliseconds = convertToFP(fn, 1); +export default milliseconds; \ 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..5f50929b --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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/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..7a0e08c1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/min/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../min/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var min = convertToFP(fn, 1); +export default min; \ 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..4c233e25 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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/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..b07ca2b8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parse/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../parse/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var parse = convertToFP(fn, 3); +export default parse; \ 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..d0ed4b6d --- /dev/null +++ b/node_modules/date-fns/esm/fp/parse/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, +} + +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..e2b3a504 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISO/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../parseISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var parseISO = convertToFP(fn, 1); +export default parseISO; \ 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..4a3ce9c1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISO/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..98a6c596 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISOWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../parseISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var parseISOWithOptions = convertToFP(fn, 2); +export default parseISOWithOptions; \ 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..d76c85ab --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISOWithOptions/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, +} + +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..977f1f1b --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseJSON/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../parseJSON/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var parseJSON = convertToFP(fn, 1); +export default parseJSON; \ 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..f21d6c42 --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..06c45ac5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../parse/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var parseWithOptions = convertToFP(fn, 4); +export default parseWithOptions; \ 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..b513b360 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseWithOptions/index.js.flow @@ -0,0 +1,92 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/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..a43ad8a0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../roundToNearestMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var roundToNearestMinutes = convertToFP(fn, 1); +export default roundToNearestMinutes; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..617ad4ae --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../roundToNearestMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var roundToNearestMinutesWithOptions = convertToFP(fn, 2); +export default roundToNearestMinutesWithOptions; \ 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..463ddda9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/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, +} + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + 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/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..75772ba9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/set/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../set/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var set = convertToFP(fn, 2); +export default set; \ 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..d2e122f6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/set/index.js.flow @@ -0,0 +1,68 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7fa078cc --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDate/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setDate = convertToFP(fn, 2); +export default setDate; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDate/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, +} + +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..fa56b34e --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDay/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setDay = convertToFP(fn, 2); +export default setDay; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDay/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, +} + +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..f08960fc --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayOfYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setDayOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setDayOfYear = convertToFP(fn, 2); +export default setDayOfYear; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayOfYear/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, +} + +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..54dad534 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setDayWithOptions = convertToFP(fn, 3); +export default setDayWithOptions; \ 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..316d73be --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..2284348a --- /dev/null +++ b/node_modules/date-fns/esm/fp/setHours/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setHours = convertToFP(fn, 2); +export default setHours; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setHours/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, +} + +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..d94d73b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISODay/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setISODay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setISODay = convertToFP(fn, 2); +export default setISODay; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISODay/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, +} + +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..920298a0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setISOWeek = convertToFP(fn, 2); +export default setISOWeek; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeek/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, +} + +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..1727e014 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setISOWeekYear = convertToFP(fn, 2); +export default setISOWeekYear; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeekYear/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, +} + +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..29757285 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMilliseconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setMilliseconds = convertToFP(fn, 2); +export default setMilliseconds; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMilliseconds/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, +} + +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..49b45132 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMinutes/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setMinutes = convertToFP(fn, 2); +export default setMinutes; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMinutes/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, +} + +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..25fd0e7e --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setMonth = convertToFP(fn, 2); +export default setMonth; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMonth/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, +} + +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..8c6aea8e --- /dev/null +++ b/node_modules/date-fns/esm/fp/setQuarter/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setQuarter = convertToFP(fn, 2); +export default setQuarter; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setQuarter/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, +} + +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..d2ecbd96 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setSeconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setSeconds = convertToFP(fn, 2); +export default setSeconds; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setSeconds/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, +} + +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..422edd7c --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setWeek = convertToFP(fn, 2); +export default setWeek; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeek/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, +} + +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..0cf85f52 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setWeekWithOptions = convertToFP(fn, 3); +export default setWeekWithOptions; \ 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..396f111e --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekWithOptions/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, +} + +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..417c15e2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setWeekYear = convertToFP(fn, 2); +export default setWeekYear; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYear/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, +} + +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..bc3bb8bb --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setWeekYearWithOptions = convertToFP(fn, 3); +export default setWeekYearWithOptions; \ 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..396f111e --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/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, +} + +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..c81b4981 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../setYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var setYear = convertToFP(fn, 2); +export default setYear; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setYear/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, +} + +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..e5201b24 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDay/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfDay = convertToFP(fn, 1); +export default startOfDay; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..1409f553 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDecade/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfDecade = convertToFP(fn, 1); +export default startOfDecade; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..1ced260a --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfHour/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfHour/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfHour = convertToFP(fn, 1); +export default startOfHour; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..4727d017 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfISOWeek = convertToFP(fn, 1); +export default startOfISOWeek; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..c044cfe9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfISOWeekYear = convertToFP(fn, 1); +export default startOfISOWeekYear; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..cf997c74 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMinute/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfMinute/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfMinute = convertToFP(fn, 1); +export default startOfMinute; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..7907d9e9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMonth/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfMonth = convertToFP(fn, 1); +export default startOfMonth; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..e831ebad --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfQuarter/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfQuarter = convertToFP(fn, 1); +export default startOfQuarter; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..ae52bd40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfSecond/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfSecond/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfSecond = convertToFP(fn, 1); +export default startOfSecond; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..f2b28ccb --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeek/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfWeek = convertToFP(fn, 1); +export default startOfWeek; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..63358181 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfWeekWithOptions = convertToFP(fn, 2); +export default startOfWeekWithOptions; \ 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..52687aa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/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, +} + +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..f614c040 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfWeekYear = convertToFP(fn, 1); +export default startOfWeekYear; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..0dc6daba --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfWeekYearWithOptions = convertToFP(fn, 2); +export default startOfWeekYearWithOptions; \ 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..7889527b --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/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, +} + +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..a22b59ee --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfYear/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../startOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var startOfYear = convertToFP(fn, 1); +export default startOfYear; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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..a7749c3d --- /dev/null +++ b/node_modules/date-fns/esm/fp/sub/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../sub/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var sub = convertToFP(fn, 2); +export default sub; \ 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..9f0b49ee --- /dev/null +++ b/node_modules/date-fns/esm/fp/sub/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, +} + +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..53f0297f --- /dev/null +++ b/node_modules/date-fns/esm/fp/subBusinessDays/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subBusinessDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subBusinessDays = convertToFP(fn, 2); +export default subBusinessDays; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subBusinessDays/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, +} + +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..9712a449 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subDays/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subDays = convertToFP(fn, 2); +export default subDays; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subDays/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, +} + +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..954ec53c --- /dev/null +++ b/node_modules/date-fns/esm/fp/subHours/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subHours = convertToFP(fn, 2); +export default subHours; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subHours/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, +} + +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..e3b9abc0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subISOWeekYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subISOWeekYears = convertToFP(fn, 2); +export default subISOWeekYears; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subISOWeekYears/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, +} + +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..aad814d1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMilliseconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subMilliseconds = convertToFP(fn, 2); +export default subMilliseconds; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMilliseconds/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, +} + +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..9110d6ef --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMinutes/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subMinutes = convertToFP(fn, 2); +export default subMinutes; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMinutes/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, +} + +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..f4461660 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMonths/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subMonths = convertToFP(fn, 2); +export default subMonths; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMonths/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, +} + +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..6167660d --- /dev/null +++ b/node_modules/date-fns/esm/fp/subQuarters/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subQuarters = convertToFP(fn, 2); +export default subQuarters; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subQuarters/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, +} + +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..e2de1438 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subSeconds/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subSeconds = convertToFP(fn, 2); +export default subSeconds; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subSeconds/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, +} + +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..1b92ad92 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subWeeks/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subWeeks = convertToFP(fn, 2); +export default subWeeks; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subWeeks/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, +} + +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..5bb9b5c7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subYears/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../subYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var subYears = convertToFP(fn, 2); +export default subYears; \ 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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subYears/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, +} + +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..1892066a --- /dev/null +++ b/node_modules/date-fns/esm/fp/toDate/index.js @@ -0,0 +1,5 @@ +// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. +import fn from "../../toDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +var toDate = convertToFP(fn, 1); +export default toDate; \ 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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/esm/fp/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, +} + +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/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..0446e189 --- /dev/null +++ b/node_modules/date-fns/esm/fromUnixTime/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Number} unixTime - the given Unix timestamp + * @returns {Date} the date + * @throws {TypeError} 1 argument required + * + * @example + * // Create the date 29 February 2012 11:45:05: + * var 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..9bf2ed46 --- /dev/null +++ b/node_modules/date-fns/esm/fromUnixTime/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..86d182be --- /dev/null +++ b/node_modules/date-fns/esm/getDate/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..41ec9780 --- /dev/null +++ b/node_modules/date-fns/esm/getDay/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..2a861ca9 --- /dev/null +++ b/node_modules/date-fns/esm/getDay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..91c5afe4 --- /dev/null +++ b/node_modules/date-fns/esm/getDayOfYear/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getDayOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e6049fd5 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInMonth/index.js @@ -0,0 +1,34 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..2a8ed996 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInYear/index.js @@ -0,0 +1,35 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..ca03ed5a --- /dev/null +++ b/node_modules/date-fns/esm/getDecade/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getDecade/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/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..edd69d11 --- /dev/null +++ b/node_modules/date-fns/esm/getHours/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..6c283b57 --- /dev/null +++ b/node_modules/date-fns/esm/getISODay/index.js @@ -0,0 +1,38 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getISODay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1a78c989 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeek/index.js @@ -0,0 +1,38 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..be703533 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeekYear/index.js @@ -0,0 +1,54 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `getISOYear` to `getISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..73070e6c --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeeksInYear/index.js @@ -0,0 +1,38 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeeksInYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..ebc772d1 --- /dev/null +++ b/node_modules/date-fns/esm/getMilliseconds/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..34d3868c --- /dev/null +++ b/node_modules/date-fns/esm/getMinutes/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9be769ce --- /dev/null +++ b/node_modules/date-fns/esm/getMonth/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..4cda5358 --- /dev/null +++ b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js @@ -0,0 +1,93 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `getOverlappingDaysInRanges` to `getOverlappingDaysInIntervals`. + * 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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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 + * + * getOverlappingDaysInRanges( + * new Date(2014, 0, 10), new Date(2014, 0, 20), + * new Date(2014, 0, 17), new Date(2014, 0, 21) + * ) + * + * // v2.0.0 onward + * + * 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) } + * ) + * ``` + * + * @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..d84e2312 --- /dev/null +++ b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..bf9d420d --- /dev/null +++ b/node_modules/date-fns/esm/getQuarter/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b88b1fa7 --- /dev/null +++ b/node_modules/date-fns/esm/getSeconds/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a3ebf5c4 --- /dev/null +++ b/node_modules/date-fns/esm/getTime/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getTime/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7ed0e5c9 --- /dev/null +++ b/node_modules/date-fns/esm/getUnixTime/index.js @@ -0,0 +1,28 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getUnixTime/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..46c0595b --- /dev/null +++ b/node_modules/date-fns/esm/getWeek/index.js @@ -0,0 +1,57 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = getISOWeek(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? + * var result = getISOWeek(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..a0750be5 --- /dev/null +++ b/node_modules/date-fns/esm/getWeek/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, +} + +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..5d148c4f --- /dev/null +++ b/node_modules/date-fns/esm/getWeekOfMonth/index.js @@ -0,0 +1,67 @@ +import getDate from "../getDate/index.js"; +import getDay from "../getDay/index.js"; +import startOfMonth from "../startOfMonth/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * + * @example + * // Which week of the month is 9 November 2017? + * var result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ + +export default function getWeekOfMonth(date, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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 currentDayOfMonth = getDate(date); + + if (isNaN(currentDayOfMonth)) { + return currentDayOfMonth; + } + + var startWeekDay = getDay(startOfMonth(date)); + var lastDayOfFirstWeek = 0; + + if (startWeekDay >= weekStartsOn) { + lastDayOfFirstWeek = weekStartsOn + 7 - startWeekDay; + } else { + lastDayOfFirstWeek = weekStartsOn - startWeekDay; + } + + var weekNumber = 1; + + if (currentDayOfMonth > lastDayOfFirstWeek) { + var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + weekNumber = weekNumber + Math.ceil(remainingDaysAfterFirstWeek / 7); + } + + return weekNumber; +} \ 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..cfa29783 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekOfMonth/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, +} + +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..33563565 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekYear/index.js @@ -0,0 +1,79 @@ +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"; +/** + * @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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * var 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? + * var result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ + +export default function getWeekYear(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // 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, dirtyOptions); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = startOfWeek(firstWeekOfThisYear, dirtyOptions); + + 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..a0750be5 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekYear/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, +} + +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..b60fd419 --- /dev/null +++ b/node_modules/date-fns/esm/getWeeksInMonth/index.js @@ -0,0 +1,40 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * var 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..cfa29783 --- /dev/null +++ b/node_modules/date-fns/esm/getWeeksInMonth/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, +} + +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..491ed147 --- /dev/null +++ b/node_modules/date-fns/esm/getYear/index.js @@ -0,0 +1,30 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + return year; +} \ 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..19d21186 --- /dev/null +++ b/node_modules/date-fns/esm/getYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/index.js b/node_modules/date-fns/esm/index.js new file mode 100644 index 00000000..82eba43c --- /dev/null +++ b/node_modules/date-fns/esm/index.js @@ -0,0 +1,199 @@ +// This file is generated automatically by `scripts/build/indices.js`. 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 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 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 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 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 intervalToDuration } from "./intervalToDuration/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 min } from "./min/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 roundToNearestMinutes } from "./roundToNearestMinutes/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 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 * 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..6e1b129b --- /dev/null +++ b/node_modules/date-fns/esm/index.js.flow @@ -0,0 +1,753 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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, + + 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, + + 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 + ) => number, + + differenceInISOWeekYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMilliseconds: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMinutes: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMonths: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInQuarters: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInSeconds: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInWeeks: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + eachDayOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachHourOfInterval: ( + 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, + + 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, + + intervalToDuration: (interval: Interval) => Duration, + + 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, + + min: (datesArray: (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, + + roundToNearestMinutes: ( + date: Date | number, + options?: { + nearestTo?: number, + } + ) => Date, + + 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, + + 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, + + maxTime: number, + + minTime: 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..cfd86ca5 --- /dev/null +++ b/node_modules/date-fns/esm/intervalToDuration/index.js @@ -0,0 +1,82 @@ +import compareAsc from "../compareAsc/index.js"; +import differenceInYears from "../differenceInYears/index.js"; +import differenceInMonths from "../differenceInMonths/index.js"; +import differenceInDays from "../differenceInDays/index.js"; +import differenceInHours from "../differenceInHours/index.js"; +import differenceInMinutes from "../differenceInMinutes/index.js"; +import differenceInSeconds from "../differenceInSeconds/index.js"; +import isValid from "../isValid/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toDate from "../toDate/index.js"; +import sub from "../sub/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(_ref) { + var start = _ref.start, + end = _ref.end; + requiredArgs(1, arguments); + var dateLeft = toDate(start); + var dateRight = toDate(end); + + if (!isValid(dateLeft)) { + throw new RangeError('Start Date is invalid'); + } + + if (!isValid(dateRight)) { + throw new RangeError('End Date is invalid'); + } + + var duration = { + years: 0, + months: 0, + days: 0, + hours: 0, + minutes: 0, + seconds: 0 + }; + var sign = compareAsc(dateLeft, dateRight); + duration.years = Math.abs(differenceInYears(dateLeft, dateRight)); + var remainingMonths = sub(dateLeft, { + years: sign * duration.years + }); + duration.months = Math.abs(differenceInMonths(remainingMonths, dateRight)); + var remainingDays = sub(remainingMonths, { + months: sign * duration.months + }); + duration.days = Math.abs(differenceInDays(remainingDays, dateRight)); + var remainingHours = sub(remainingDays, { + days: sign * duration.days + }); + duration.hours = Math.abs(differenceInHours(remainingHours, dateRight)); + var remainingMinutes = sub(remainingHours, { + hours: sign * duration.hours + }); + duration.minutes = Math.abs(differenceInMinutes(remainingMinutes, dateRight)); + var remainingSeconds = sub(remainingMinutes, { + minutes: sign * duration.minutes + }); + duration.seconds = Math.abs(differenceInSeconds(remainingSeconds, dateRight)); + 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..7fb5d4e7 --- /dev/null +++ b/node_modules/date-fns/esm/intervalToDuration/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/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..eb4ff675 --- /dev/null +++ b/node_modules/date-fns/esm/isAfter/index.js @@ -0,0 +1,31 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..272a77ac --- /dev/null +++ b/node_modules/date-fns/esm/isAfter/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..935d2688 --- /dev/null +++ b/node_modules/date-fns/esm/isBefore/index.js @@ -0,0 +1,31 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..272a77ac --- /dev/null +++ b/node_modules/date-fns/esm/isBefore/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9675ff73 --- /dev/null +++ b/node_modules/date-fns/esm/isDate/index.js @@ -0,0 +1,42 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * var result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * var result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * var 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..cc9d003a --- /dev/null +++ b/node_modules/date-fns/esm/isDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..ddb1baec --- /dev/null +++ b/node_modules/date-fns/esm/isEqual/index.js @@ -0,0 +1,34 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isEqual/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..d8ffc348 --- /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: + * var result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * var 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..d06beaa3 --- /dev/null +++ b/node_modules/date-fns/esm/isExists/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..f933d6a1 --- /dev/null +++ b/node_modules/date-fns/esm/isFirstDayOfMonth/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isFirstDayOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..f1e2ee33 --- /dev/null +++ b/node_modules/date-fns/esm/isFriday/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isFriday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..c3b80ac1 --- /dev/null +++ b/node_modules/date-fns/esm/isFuture/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isFuture/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..f385b081 --- /dev/null +++ b/node_modules/date-fns/esm/isLastDayOfMonth/index.js @@ -0,0 +1,31 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isLastDayOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a40b2e5b --- /dev/null +++ b/node_modules/date-fns/esm/isLeapYear/index.js @@ -0,0 +1,30 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isLeapYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b2e86050 --- /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://git.io/fxCyr + * + * 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, Su, Sa | | + * | 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, Su, Sa | 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, Su, Sa | | + * | 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, Su, Sa | | + * | 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, 0001, ..., 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://git.io/fxCyr + * + * 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://git.io/fxCyr + * + * 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://git.io/fxCyr + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://git.io/fxCyr + * @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://git.io/fxCyr + * @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr + * @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * var 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' + * var result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ + +export default function isMatch(dateString, formatString, dirtyOptions) { + requiredArgs(2, arguments); + return isValid(parse(dateString, formatString, new Date(), dirtyOptions)); +} \ 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..28a49222 --- /dev/null +++ b/node_modules/date-fns/esm/isMatch/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, +} + +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..883891ee --- /dev/null +++ b/node_modules/date-fns/esm/isMonday/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ + +export default function isMonday(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isMonday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1969c7e4 --- /dev/null +++ b/node_modules/date-fns/esm/isPast/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isPast/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..59a1c03e --- /dev/null +++ b/node_modules/date-fns/esm/isSameDay/index.js @@ -0,0 +1,31 @@ +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? + * + * @description + * Are the given dates in the same day? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + */ + +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameDay/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..4752a6f0 --- /dev/null +++ b/node_modules/date-fns/esm/isSameHour/index.js @@ -0,0 +1,31 @@ +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? + * + * @description + * Are the given dates in the same hour? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * var result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + */ + +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameHour/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..3f4892d1 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeek/index.js @@ -0,0 +1,33 @@ +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? + * + * @description + * Are the given dates in the same ISO week? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * var result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + */ + +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeek/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..af898dc3 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeekYear/index.js @@ -0,0 +1,38 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `isSameISOYear` to `isSameISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. + * + * @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? + * var 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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeekYear/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..0d118118 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMinute/index.js @@ -0,0 +1,35 @@ +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? + * + * @description + * Are the given dates in the same minute? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 + * // in the same minute? + * var result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + */ + +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMinute/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..434f10dc --- /dev/null +++ b/node_modules/date-fns/esm/isSameMonth/index.js @@ -0,0 +1,31 @@ +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? + * + * @description + * Are the given dates in the same month? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ + +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMonth/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e54e150b --- /dev/null +++ b/node_modules/date-fns/esm/isSameQuarter/index.js @@ -0,0 +1,31 @@ +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 year quarter? + * + * @description + * Are the given dates in the same year quarter? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * var result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + */ + +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameQuarter/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..ffe5d64e --- /dev/null +++ b/node_modules/date-fns/esm/isSameSecond/index.js @@ -0,0 +1,35 @@ +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? + * + * @description + * Are the given dates in the same second? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @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? + * var result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + */ + +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameSecond/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..0319cc3d --- /dev/null +++ b/node_modules/date-fns/esm/isSameWeek/index.js @@ -0,0 +1,43 @@ +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? + * + * @description + * Are the given dates in the same week? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @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? + * var 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? + * var result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + */ + +export default function isSameWeek(dirtyDateLeft, dirtyDateRight, dirtyOptions) { + requiredArgs(2, arguments); + var dateLeftStartOfWeek = startOfWeek(dirtyDateLeft, dirtyOptions); + var dateRightStartOfWeek = startOfWeek(dirtyDateRight, dirtyOptions); + 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..ed59e848 --- /dev/null +++ b/node_modules/date-fns/esm/isSameWeek/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, +} + +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..748203f2 --- /dev/null +++ b/node_modules/date-fns/esm/isSameYear/index.js @@ -0,0 +1,31 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/esm/isSameYear/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..18e4b32a --- /dev/null +++ b/node_modules/date-fns/esm/isSaturday/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isSaturday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..30ed2682 --- /dev/null +++ b/node_modules/date-fns/esm/isSunday/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isSunday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7425e258 --- /dev/null +++ b/node_modules/date-fns/esm/isThisHour/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThisHour/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a2ee5186 --- /dev/null +++ b/node_modules/date-fns/esm/isThisISOWeek/index.js @@ -0,0 +1,34 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThisISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..fb288a26 --- /dev/null +++ b/node_modules/date-fns/esm/isThisMinute/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThisMinute/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..97b083db --- /dev/null +++ b/node_modules/date-fns/esm/isThisMonth/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThisMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e61443fa --- /dev/null +++ b/node_modules/date-fns/esm/isThisQuarter/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThisQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a48c1f77 --- /dev/null +++ b/node_modules/date-fns/esm/isThisSecond/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThisSecond/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..4e234bf1 --- /dev/null +++ b/node_modules/date-fns/esm/isThisWeek/index.js @@ -0,0 +1,42 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var 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..7b0bd6ca --- /dev/null +++ b/node_modules/date-fns/esm/isThisWeek/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, +} + +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..b1e01ca0 --- /dev/null +++ b/node_modules/date-fns/esm/isThisYear/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThisYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9b708a97 --- /dev/null +++ b/node_modules/date-fns/esm/isThursday/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isThursday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..f3aae008 --- /dev/null +++ b/node_modules/date-fns/esm/isToday/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isToday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..c7aafd3c --- /dev/null +++ b/node_modules/date-fns/esm/isTomorrow/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isTomorrow/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..6e8898e2 --- /dev/null +++ b/node_modules/date-fns/esm/isTuesday/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isTuesday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1fb740a9 --- /dev/null +++ b/node_modules/date-fns/esm/isValid/index.js @@ -0,0 +1,65 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - 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). + * + * @param {*} date - the date to check + * @returns {Boolean} the date is valid + * @throws {TypeError} 1 argument required + * + * @example + * // For the valid date: + * var result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertable into a date: + * var result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * var result = isValid(new Date('')) + * //=> false + */ + +export default function isValid(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + return !isNaN(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..e6c83333 --- /dev/null +++ b/node_modules/date-fns/esm/isValid/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7db01d61 --- /dev/null +++ b/node_modules/date-fns/esm/isWednesday/index.js @@ -0,0 +1,28 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isWednesday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..86f05d66 --- /dev/null +++ b/node_modules/date-fns/esm/isWeekend/index.js @@ -0,0 +1,30 @@ +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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isWeekend/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7021d8ce --- /dev/null +++ b/node_modules/date-fns/esm/isWithinInterval/index.js @@ -0,0 +1,89 @@ +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.) + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `isWithinRange` to `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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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 + * + * isWithinRange( + * new Date(2014, 0, 3), + * new Date(2014, 0, 1), new Date(2014, 0, 7) + * ) + * + * // v2.0.0 onward + * + * isWithinInterval( + * new Date(2014, 0, 3), + * { start: new Date(2014, 0, 1), end: new Date(2014, 0, 7) } + * ) + * ``` + * + * @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, dirtyInterval) { + requiredArgs(2, arguments); + var interval = dirtyInterval || {}; + 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..0bb8caa7 --- /dev/null +++ b/node_modules/date-fns/esm/isWithinInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..21e78ce1 --- /dev/null +++ b/node_modules/date-fns/esm/isYesterday/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/esm/isYesterday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..07dbfb58 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfDecade/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfDecade/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a8c88e32 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeek/index.js @@ -0,0 +1,33 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..712db231 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js @@ -0,0 +1,44 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `lastDayOfISOYear` to `lastDayOfISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..63a1beda --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfMonth/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..81516231 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfQuarter/index.js @@ -0,0 +1,37 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..1b492c1b --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfQuarter/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, +} + +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..5658ad0b --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfWeek/index.js @@ -0,0 +1,54 @@ +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ + +export default function lastDayOfWeek(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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..f162c393 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfWeek/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, +} + +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..d1c89cab --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfYear/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..44d42b3e --- /dev/null +++ b/node_modules/date-fns/esm/lightFormat/index.js @@ -0,0 +1,119 @@ +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://git.io/fxCyr + * + * 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, 0001, ..., 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 + * var result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ + +export default function lightFormat(dirtyDate, dirtyFormatStr) { + requiredArgs(2, arguments); + var formatStr = String(dirtyFormatStr); + 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 result = formatStr.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) { + return formatter(utcDate, substring, null, {}); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } + + return substring; + }).join(''); + return result; +} + +function cleanEscapedString(input) { + return input.match(escapedStringRegExp)[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..6dbe40b9 --- /dev/null +++ b/node_modules/date-fns/esm/lightFormat/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..7de4d9a7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js @@ -0,0 +1,8 @@ +export default function buildFormatLongFn(args) { + return function (dirtyOptions) { + var options = dirtyOptions || {}; + 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..1b1990f7 --- /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, dirtyOptions) { + var options = dirtyOptions || {}; + var context = options.context ? String(options.context) : 'standalone'; + var valuesArray; + + if (context === 'formatting' && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + + var _width = options.width ? String(options.width) : args.defaultWidth; + + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + + var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; + 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..290ba54d --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js @@ -0,0 +1,50 @@ +export default function buildMatchFn(args) { + return function (dirtyString, dirtyOptions) { + var string = String(dirtyString); + var options = dirtyOptions || {}; + 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 value; + + if (Object.prototype.toString.call(parsePatterns) === '[object Array]') { + value = findIndex(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }); + } else { + value = findKey(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }); + } + + value = args.valueCallback ? args.valueCallback(value) : value; + value = options.valueCallback ? options.valueCallback(value) : value; + return { + value: value, + rest: string.slice(matchedString.length) + }; + }; +} + +function findKey(object, predicate) { + for (var key in object) { + if (object.hasOwnProperty(key) && predicate(object[key])) { + return key; + } + } +} + +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) { + if (predicate(array[key])) { + return key; + } + } +} \ 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..253145d5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js @@ -0,0 +1,25 @@ +export default function buildMatchPatternFn(args) { + return function (dirtyString, dirtyOptions) { + var string = String(dirtyString); + var options = dirtyOptions || {}; + 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; + return { + value: value, + rest: string.slice(matchedString.length) + }; + }; +} \ 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..793787bf --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'oor ' + result; + } else { + return result + ' gelede'; + } + } + + return result; +} \ 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..db8c9f23 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token) { + return formatRelativeLocale[token]; +} \ 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..1d4c95db --- /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' + } +}; + +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 (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/af/_lib/match/index.js b/node_modules/date-fns/esm/locale/af/_lib/match/index.js new file mode 100644 index 00000000..d220ce08 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..7036aed8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatDistance/index.js @@ -0,0 +1,119 @@ +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}} عام تقريباً' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else if (count <= 10) { + result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +} \ 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..8d900fed --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..5d028732 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/localize/index.js @@ -0,0 +1,118 @@ +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: 'في الصباح', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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..a5476dc8 --- /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 (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; \ 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..aef14c16 --- /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-MA/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatDistance/index.js new file mode 100644 index 00000000..7036aed8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatDistance/index.js @@ -0,0 +1,119 @@ +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}} عام تقريباً' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else if (count <= 10) { + result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +} \ 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..8d900fed --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..747fd8a8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/localize/index.js @@ -0,0 +1,118 @@ +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: 'في الصباح', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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..c75cd744 --- /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 (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; \ 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..e11b2597 --- /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..7036aed8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatDistance/index.js @@ -0,0 +1,119 @@ +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}} عام تقريباً' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else if (count <= 10) { + result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +} \ 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..8d900fed --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..3c1aa968 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/localize/index.js @@ -0,0 +1,118 @@ +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: 'في الصباح', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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-SA/_lib/match/index.js b/node_modules/date-fns/esm/locale/ar-SA/_lib/match/index.js new file mode 100644 index 00000000..78a768bb --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_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 (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; \ 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/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js new file mode 100644 index 00000000..b4625eb0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js @@ -0,0 +1,77 @@ +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}} أيام' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + other: '{{count}} أشهر تقريباً' + }, + xMonths: { + one: 'شهر واحد', + other: '{{count}} أشهر' + }, + aboutXYears: { + one: 'عام واحد تقريباً', + other: '{{count}} أعوام تقريباً' + }, + xYears: { + one: 'عام واحد', + other: '{{count}} أعوام' + }, + overXYears: { + one: 'أكثر من عام', + other: 'أكثر من {{count}} أعوام' + }, + almostXYears: { + one: 'عام واحد تقريباً', + other: '{{count}} أعوام تقريباً' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +} \ 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..c695fdd9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js @@ -0,0 +1,10 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var formatLong = buildFormatLongFn({ + LT: 'h:mm aa', + LTS: 'h:mm:ss aa', + L: 'MM/DD/YYYY', + LL: 'MMMM D YYYY', + LLL: 'MMMM D YYYY h:mm aa', + LLLL: 'dddd, MMMM D YYYY h:mm aa' +}); +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..9c7b1ce3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: '[last] dddd [at] LT', + yesterday: '[yesterday at] LT', + today: '[today at] LT', + tomorrow: '[tomorrow at] LT', + nextWeek: 'dddd [at] LT', + other: 'L' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..db54a61d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js @@ -0,0 +1,33 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +import buildLocalizeArrayFn from "../../../_lib/buildLocalizeArrayFn/index.js"; +var weekdayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + long: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var monthValues = { + short: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], + long: ['كانون الثاني يناير', 'شباط فبراير', 'آذار مارس', 'نيسان أبريل', 'أيار مايو', 'حزيران يونيو', 'تموز يوليو', 'آب أغسطس', 'أيلول سبتمبر', 'تشرين الأول أكتوبر', 'تشرين الثاني نوفمبر', 'كانون الأول ديسمبر'] +}; +var timeOfDayValues = { + uppercase: ['صباح', 'مساء'], + lowercase: ['ص', 'م'], + long: ['صباحاً', 'مساءً'] +}; + +function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +} + +var localize = { + ordinalNumber: ordinalNumber, + weekday: buildLocalizeFn(weekdayValues, 'long'), + weekdays: buildLocalizeArrayFn(weekdayValues, 'long'), + month: buildLocalizeFn(monthValues, 'long'), + months: buildLocalizeArrayFn(monthValues, 'long'), + timeOfDay: buildLocalizeFn(timeOfDayValues, 'long', function (hours) { + return hours / 12 >= 1 ? 1 : 0; + }), + timesOfDay: buildLocalizeArrayFn(timeOfDayValues, 'long') +}; +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..6baa63a3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/match/index.js @@ -0,0 +1,38 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildParseFn from "../../../_lib/buildParseFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import parseDecimal from "../../../_lib/parseDecimal/index.js"; +var matchOrdinalNumbersPattern = /^(\d+)(th|st|nd|rd)?/i; +var matchWeekdaysPatterns = { + narrow: /^(su|mo|tu|we|th|fr|sa)/i, + short: /^(sun|mon|tue|wed|thu|fri|sat)/i, + long: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i +}; +var parseWeekdayPatterns = { + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchMonthsPatterns = { + short: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + long: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i +}; +var parseMonthPatterns = { + 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 matchTimesOfDayPatterns = { + short: /^(am|pm)/i, + long: /^([ap]\.?\s?m\.?)/i +}; +var parseTimeOfDayPatterns = { + any: [/^a/i, /^p/i] +}; +var match = { + ordinalNumbers: buildMatchPatternFn(matchOrdinalNumbersPattern), + ordinalNumber: parseDecimal, + weekdays: buildMatchFn(matchWeekdaysPatterns, 'long'), + weekday: buildParseFn(parseWeekdayPatterns, 'any'), + months: buildMatchFn(matchMonthsPatterns, 'long'), + month: buildParseFn(parseMonthPatterns, 'any'), + timesOfDay: buildMatchFn(matchTimesOfDayPatterns, 'long'), + timeOfDay: buildParseFn(parseTimeOfDayPatterns, '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..33fd9e14 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/index.js @@ -0,0 +1,28 @@ +// import formatDistance from './_lib/formatDistance/index' +// import formatLong from './_lib/formatLong/index' +// import formatRelative from './_lib/formatRelative/index' +// import localize from './_lib/localize/index' +// import match from './_lib/match/index' + +/** + * @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} + */ +// var locale = { +// code: 'ar', +// formatDistance: formatDistance, +// formatLong: formatLong, +// formatRelative: formatRelative, +// localize: localize, +// match: match, +// options: { +// weekStartsOn: 6 /* Saturday */, +// firstWeekContainsDate: 1 +// } +// } +// export default locale +throw new Error('ar 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/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..1fa33a35 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' əvvəl'; + } else { + return result + ' sonra'; + } + } + + return result; +} \ 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..7aeea164 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..051da194 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/localize/index.js @@ -0,0 +1,158 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['B', 'A'], + abbreviated: ['BC', 'AD'], + wide: ["Hz. İsa'dan öncə", 'Anno Domini'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1ci kvartal', '2ci kvartal', '3cü kvartal', '4cü kvartal'] // 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', 'İ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ı' +}; + +function getSuffix(number) { + if (number === 0) { + // special case for zero + return number + '-ıncı'; + } + + var a = number % 10, + b = number % 100 - a, + c = number >= 100 ? 100 : null; + return suffixes[a] || suffixes[b] || suffixes[c]; +} + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/az/_lib/match/index.js b/node_modules/date-fns/esm/locale/az/_lib/match/index.js new file mode 100644 index 00000000..ac2d455b --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/match/index.js @@ -0,0 +1,101 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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: /^(Hz. İsa'dan öncə|ümumi eradan əvvəl|anno domini|ümumi dövr)$/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\.e$/i, /^Çər$/i, /^Çər\.a$/i, /^Cüm$/i, /^Cüm\.a$/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 (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; \ 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/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/be/_lib/formatDistance/index.js new file mode 100644 index 00000000..0b632c1b --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/formatDistance/index.js @@ -0,0 +1,242 @@ +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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 (_, options) { + if (options.addSuffix) { + if (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}} гадзін' + }, + 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}} гадоў' + } + }) +}; +export default function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} \ 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..d8f7b849 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/formatRelative/index.js @@ -0,0 +1,75 @@ +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 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; +} \ 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..e1036a44 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/localize/index.js @@ -0,0 +1,152 @@ +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: 'ночы' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(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 (quarter) { + return Number(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..2de37f78 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_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: /^((да )?н\.?\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 (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: '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..ec00871c --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} години' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'след ' + result; + } else { + return 'преди ' + result; + } + } + + return result; +} \ 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..69558d48 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/formatRelative/index.js @@ -0,0 +1,83 @@ +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 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; +} \ 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..b22fecd7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/localize/index.js @@ -0,0 +1,106 @@ +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; +} + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(options.unit); + var number = Number(dirtyNumber); + + 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 (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/bg/_lib/match/index.js b/node_modules/date-fns/esm/locale/bg/_lib/match/index.js new file mode 100644 index 00000000..a21f083c --- /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 (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; \ 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..f3c18641 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/formatDistance/index.js @@ -0,0 +1,86 @@ +import localize 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}} বছর' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', localize.numberToLocale(count)); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' এর মধ্যে'; + } else { + return result + ' আগে'; + } + } + + return result; +} \ 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..5aea0957 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'গত' eeee 'সময়' p", + yesterday: "'গতকাল' 'সময়' p", + today: "'আজ' 'সময়' p", + tomorrow: "'আগামীকাল' 'সময়' p", + nextWeek: "eeee 'সময়' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..f06135bf --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/localize/index.js @@ -0,0 +1,211 @@ +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 + 'ই'; + } + } +} + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = localize.localeToNumber(dirtyNumber); + var localeNumber = localize.numberToLocale(number); + var unit = dirtyOptions.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 + 'ষ্ঠ'; + + case 1: + case 5: + case 7: + case 8: + case 9: + case 0: + return localeNumber + 'ম'; + } +} + +function localeToNumber(locale) { + var number = locale.toString().replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { + return numberValues.number[match]; + }); + return Number(number); +} + +function numberToLocale(number) { + return number.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +var localize = { + localeToNumber: localeToNumber, + numberToLocale: numberToLocale, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/bn/_lib/match/index.js b/node_modules/date-fns/esm/locale/bn/_lib/match/index.js new file mode 100644 index 00000000..5668226b --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/match/index.js @@ -0,0 +1,102 @@ +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: /^(খ্রিঃপূঃ|খ্রিঃ)/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 (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; \ 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/ca/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ca/_lib/formatDistance/index.js new file mode 100644 index 00000000..a7ddbdcd --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/formatDistance/index.js @@ -0,0 +1,100 @@ +/** + * 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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 11 && formatDistanceLocale[token].eleven) { + result = formatDistanceLocale[token].eleven; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'fa ' + result; + } + } + + return result; +} \ 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..c16d5097 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/formatRelative/index.js @@ -0,0 +1,23 @@ +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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} \ 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..b095edc5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/localize/index.js @@ -0,0 +1,189 @@ +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 + * + * @param {Number} dirtyNumber + * @param {Object} [_dirtyOptions] + */ + +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/ca/_lib/match/index.js b/node_modules/date-fns/esm/locale/ca/_lib/match/index.js new file mode 100644 index 00000000..0ff3b48e --- /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 (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; \ 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..6081b837 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/_lib/formatDistance/index.js @@ -0,0 +1,295 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: 'méně než vteřina', + past: 'před méně než vteřinou', + future: 'za méně než vteřinu' + }, + few: { + regular: 'méně než {{count}} vteřiny', + past: 'před méně než {{count}} vteřinami', + future: 'za méně než {{count}} vteřiny' + }, + many: { + regular: 'méně než {{count}} vteřin', + past: 'před méně než {{count}} vteřinami', + future: 'za méně než {{count}} vteřin' + } + }, + xSeconds: { + one: { + regular: 'vteřina', + past: 'před vteřinou', + future: 'za vteřinu' + }, + few: { + regular: '{{count}} vteřiny', + past: 'před {{count}} vteřinami', + future: 'za {{count}} vteřiny' + }, + many: { + regular: '{{count}} vteřin', + past: 'před {{count}} vteřinami', + future: 'za {{count}} vteřin' + } + }, + halfAMinute: { + 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ů' + } + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var scheme = formatDistanceLocale[token]; // cs pluralization + + var pluralToken; + + if (typeof scheme.other === 'object') { + pluralToken = 'other'; + } else if (count === 1) { + pluralToken = 'one'; + } else if (count > 1 && count < 5 || count === 0) { + pluralToken = 'few'; + } else { + pluralToken = 'many'; + } // times + + + var suffixExist = options.addSuffix === true; + var comparison = options.comparison; + var timeToken; + + if (suffixExist && comparison === -1) { + timeToken = 'past'; + } else if (suffixExist && comparison === 1) { + timeToken = 'future'; + } else { + timeToken = 'regular'; + } + + return scheme[pluralToken][timeToken].replace('{{count}}', count); +} \ 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..81b14b09 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/_lib/formatRelative/index.js @@ -0,0 +1,21 @@ +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 (date, _baseDate, _options) { + var day = date.getUTCDay(); + return "'v " + accusativeWeekdays[day] + " o' p"; + }, + 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; +} \ 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..038611b9 --- /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' + } +}; + +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 (quarter) { + return Number(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..6223a1af --- /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\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pe[řr]ed Kr\.|pe[řr]ed n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(p[řr]ed Kristem|pred 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: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/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, /^ut/i, /^st/i, /^[čc]t/i, /^p/i, /^so/i] +}; +var matchDayPeriodPatterns = { + any: /^dopoledne|dop\.?|odpoledne|odp\.?|pů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 (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; \ 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..3013f18f --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/formatDistance/index.js @@ -0,0 +1,98 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2 && !!formatDistanceLocale[token].two) { + result = formatDistanceLocale[token].two; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'mewn ' + result; + } else { + return result + ' yn ôl'; + } + } + + return result; +} \ 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..6c2c5a7e --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..d4b81569 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/cy/_lib/match/index.js b/node_modules/date-fns/esm/locale/cy/_lib/match/index.js new file mode 100644 index 00000000..c640a7de --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..0bd09540 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +} \ 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..934e91ec --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..3b42927d --- /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' + } +}; + +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 (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/da/_lib/match/index.js b/node_modules/date-fns/esm/locale/da/_lib/match/index.js new file mode 100644 index 00000000..9a649382 --- /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 (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; \ 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/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js new file mode 100644 index 00000000..03816307 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js @@ -0,0 +1,179 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'weniger als eine Sekunde', + other: 'weniger als {{count}} Sekunden' + }, + withPreposition: { + one: 'weniger als einer Sekunde', + other: 'weniger als {{count}} Sekunden' + } + }, + xSeconds: { + standalone: { + one: 'eine Sekunde', + other: '{{count}} Sekunden' + }, + withPreposition: { + one: 'einer Sekunde', + other: '{{count}} Sekunden' + } + }, + halfAMinute: { + standalone: 'eine halbe Minute', + withPreposition: 'einer halben Minute' + }, + lessThanXMinutes: { + standalone: { + one: 'weniger als eine Minute', + other: 'weniger als {{count}} Minuten' + }, + withPreposition: { + one: 'weniger als einer Minute', + other: 'weniger als {{count}} Minuten' + } + }, + xMinutes: { + standalone: { + one: 'eine Minute', + other: '{{count}} Minuten' + }, + withPreposition: { + one: 'einer Minute', + other: '{{count}} Minuten' + } + }, + aboutXHours: { + standalone: { + one: 'etwa eine Stunde', + other: 'etwa {{count}} Stunden' + }, + withPreposition: { + one: 'etwa einer Stunde', + other: 'etwa {{count}} Stunden' + } + }, + xHours: { + standalone: { + one: 'eine Stunde', + other: '{{count}} Stunden' + }, + withPreposition: { + one: 'einer Stunde', + other: '{{count}} Stunden' + } + }, + xDays: { + standalone: { + one: 'ein Tag', + other: '{{count}} Tage' + }, + withPreposition: { + one: 'einem Tag', + other: '{{count}} Tagen' + } + }, + aboutXWeeks: { + standalone: { + one: 'etwa ein Woche', + other: 'etwa {{count}} Wochen' + }, + withPreposition: { + one: 'etwa einem Woche', + other: 'etwa {{count}} Wochen' + } + }, + xWeeks: { + standalone: { + one: 'ein Woche', + other: '{{count}} Wochen' + }, + withPreposition: { + one: 'einem Woche', + other: '{{count}} Wochen' + } + }, + aboutXMonths: { + standalone: { + one: 'etwa ein Monat', + other: 'etwa {{count}} Monate' + }, + withPreposition: { + one: 'etwa einem Monat', + other: 'etwa {{count}} Monaten' + } + }, + xMonths: { + standalone: { + one: 'ein Monat', + other: '{{count}} Monate' + }, + withPreposition: { + one: 'einem Monat', + other: '{{count}} Monaten' + } + }, + aboutXYears: { + standalone: { + one: 'etwa ein Jahr', + other: 'etwa {{count}} Jahre' + }, + withPreposition: { + one: 'etwa einem Jahr', + other: 'etwa {{count}} Jahren' + } + }, + xYears: { + standalone: { + one: 'ein Jahr', + other: '{{count}} Jahre' + }, + withPreposition: { + one: 'einem Jahr', + other: '{{count}} Jahren' + } + }, + overXYears: { + standalone: { + one: 'mehr als ein Jahr', + other: 'mehr als {{count}} Jahre' + }, + withPreposition: { + one: 'mehr als einem Jahr', + other: 'mehr als {{count}} Jahren' + } + }, + almostXYears: { + standalone: { + one: 'fast ein Jahr', + other: 'fast {{count}} Jahre' + }, + withPreposition: { + one: 'fast einem Jahr', + other: 'fast {{count}} Jahren' + } + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'in ' + result; + } else { + return 'vor ' + result; + } + } + + return result; +} \ 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..b246ba16 --- /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..447e7762 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..111375e9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/localize/index.js @@ -0,0 +1,126 @@ +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'] +}; +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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + '.'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/de/_lib/match/index.js b/node_modules/date-fns/esm/locale/de/_lib/match/index.js new file mode 100644 index 00000000..531186ce --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/match/index.js @@ -0,0 +1,100 @@ +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: /^(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: /^(jan|feb|mär|apr|mai|jun|jul|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: [/^ja/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 (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: '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..0ded1edb --- /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..74e99b04 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} χρόνια' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'σε ' + result; + } else { + return result + ' πριν'; + } + } + + return result; +} \ 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..9936ac8c --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +var formatRelativeLocale = { + lastWeek: function (date) { + switch (date.getUTCDay()) { + case 6: + //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + 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; +} \ 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..e28d9ae7 --- /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: 'νύχτα' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(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 dirtyNumber + suffix; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..542d3891 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/match/index.js @@ -0,0 +1,98 @@ +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: /^(πΧ|μΧ)/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 (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; \ 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..00141322 --- /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..c39f3c96 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +} \ 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..d3053d20 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_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 (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..a6d164aa --- /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 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 (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-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..b2a87320 --- /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 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 (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..6559b610 --- /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 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 (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..14b6c06a --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +} \ 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..70e18643 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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]; +} \ 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..3775c8d5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js @@ -0,0 +1,149 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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 (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/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..308c84ae --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js @@ -0,0 +1,98 @@ +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; \ 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..977579cb --- /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..502df03c --- /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, 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-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..0739fe0b --- /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 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 (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..96080725 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'post ' + result; + } else { + return 'antaŭ ' + result; + } + } + + return result; +} \ 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..8280cd17 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..4a140090 --- /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' + } +}; + +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 (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..15b97795 --- /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 (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: '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..f9721624 --- /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 Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ + +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..be563f0b --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'hace ' + result; + } + } + + return result; +} \ 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..97cd599c --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js @@ -0,0 +1,23 @@ +var formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' LT", + 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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} \ 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..7de29702 --- /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', 'sa'], + 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' + } +}; + +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 (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..850466b7 --- /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|sa)/i, + abbreviated: /^(dom|lun|mar|mie|jue|vie|sab)/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 (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; \ 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..6de3772a --- /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..235b99b2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/formatDistance/index.js @@ -0,0 +1,179 @@ +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' + } + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' pärast'; + } else { + return result + ' eest'; + } + } + + return result; +} \ 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..fc00e7bf --- /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..dce2acda --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..f22a65e9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/localize/index.js @@ -0,0 +1,122 @@ +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' + } +}; + +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 (quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + formattingValues: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + formattingValues: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + formattingValues: formattingDayPeriodValues, + defaultWidth: '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..91645457 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_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: /^(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, /^jun/i, /^jul/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öö|keskpäev|hommik|pärastlõuna|õhtu|öö)/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 (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; \ 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..34a3a74e --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'duela ' + result; + } + } + + return result; +} \ 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..e3aad2e4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/formatRelative/index.js @@ -0,0 +1,23 @@ +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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} \ 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..d7c427ce --- /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' + } +}; + +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 (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/eu/_lib/match/index.js b/node_modules/date-fns/esm/locale/eu/_lib/match/index.js new file mode 100644 index 00000000..72d41945 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/match/index.js @@ -0,0 +1,112 @@ +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: /^(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 (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; \ 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..71e3308b --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} سال' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'در ' + result; + } else { + return result + ' قبل'; + } + } + + return result; +} \ 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..095215d4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..5c13c260 --- /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: 'شب' + } +}; + +function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/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..b6245c68 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_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?م\.?|م\.?\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 (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; \ 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..aafed510 --- /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: 0 + /* Sunday */ + , + 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..014ec248 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/formatDistance/index.js @@ -0,0 +1,127 @@ +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 (_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 + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var distance = formatDistanceLocale[token]; + var result = count === 1 ? distance.one : distance.other.replace('{{count}}', count); + + if (options.addSuffix) { + if (options.comparison > 0) { + return distance.futureTense(result) + ' kuluttua'; + } else { + return result + ' sitten'; + } + } + + return result; +} \ 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..7aecbea7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..bfa5dab0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/localize/index.js @@ -0,0 +1,104 @@ +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: monthValues.wide.map(function (name) { + return name + 'ta'; + }) +}; +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: dayValues.wide.map(function (name) { + return name + 'na'; + }) +}; +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ä' + } +}; + +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 (quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + formattingValues: formattingDayValues, + 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/fi/_lib/match/index.js b/node_modules/date-fns/esm/locale/fi/_lib/match/index.js new file mode 100644 index 00000000..0fa70eef --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/match/index.js @@ -0,0 +1,98 @@ +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: /^(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 (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; \ 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/fil/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/fil/_lib/formatDistance/index.js new file mode 100644 index 00000000..10b7c334 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/_lib/formatDistance/index.js @@ -0,0 +1,89 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mas maliit sa isang segundo', + other: 'mas maliit sa {{count}} segundo' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundo' + }, + halfAMinute: 'kalahating minuto', + lessThanXMinutes: { + one: 'mas maliit sa isang minuto', + other: 'mas maliit sa {{count}} minuto' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minuto' + }, + aboutXHours: { + one: 'mga 1 oras', + other: 'mga {{count}} oras' + }, + xHours: { + one: '1 oras', + other: '{{count}} oras' + }, + xDays: { + one: '1 araw', + other: '{{count}} araw' + }, + aboutXWeeks: { + one: 'mga 1 buwan', + // TODO + other: 'mga {{count}} buwan' // TODO + + }, + xWeeks: { + one: '1 buwan', + // TODO + other: '{{count}} buwan' // TODO + + }, + aboutXMonths: { + one: 'mga 1 buwan', + other: 'mga {{count}} buwan' + }, + xMonths: { + one: '1 buwan', + other: '{{count}} buwan' + }, + aboutXYears: { + one: 'mga 1 taon', + other: 'mga {{count}} taon' + }, + xYears: { + one: '1 taon', + other: '{{count}} taon' + }, + overXYears: { + one: 'higit sa 1 taon', + other: 'higit sa {{count}} taon' + }, + almostXYears: { + one: 'halos 1 taon', + other: 'halos {{count}} taon' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'sa loob ng ' + result; + } else { + return result + ' ang nakalipas'; + } + } + + return result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fil/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/fil/_lib/formatLong/index.js new file mode 100644 index 00000000..c695fdd9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/_lib/formatLong/index.js @@ -0,0 +1,10 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var formatLong = buildFormatLongFn({ + LT: 'h:mm aa', + LTS: 'h:mm:ss aa', + L: 'MM/DD/YYYY', + LL: 'MMMM D YYYY', + LLL: 'MMMM D YYYY h:mm aa', + LLLL: 'dddd, MMMM D YYYY h:mm aa' +}); +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fil/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/fil/_lib/formatRelative/index.js new file mode 100644 index 00000000..9c7b1ce3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: '[last] dddd [at] LT', + yesterday: '[yesterday at] LT', + today: '[today at] LT', + tomorrow: '[tomorrow at] LT', + nextWeek: 'dddd [at] LT', + other: 'L' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fil/_lib/localize/index.js b/node_modules/date-fns/esm/locale/fil/_lib/localize/index.js new file mode 100644 index 00000000..97cd698b --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/_lib/localize/index.js @@ -0,0 +1,46 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +import buildLocalizeArrayFn from "../../../_lib/buildLocalizeArrayFn/index.js"; +var weekdayValues = { + narrow: ['Li', 'Lu', 'Ma', 'Mi', 'Hu', 'Bi', 'Sa'], + short: ['Lin', 'Lun', 'Mar', 'Miy', 'Huw', 'Biy', 'Sab'], + long: ['Linggo', 'Lunes', 'Martes', 'Miyerkules', 'Huwebes', 'Biyernes', 'Sabado'] +}; +var monthValues = { + short: ['Ene', 'Peb', 'Mar', 'Abr', 'May', 'Hun', 'Hul', 'Ago', 'Set', 'Okt', 'Nob', 'Dis'], + long: ['Enero', 'Pebrero', 'Marso', 'Abril', 'Mayo', 'Hunyo', 'Hulyo', 'Agosto', 'Setyembre', 'Oktubre', 'Nobyembre', 'Disyembre'] +}; +var timeOfDayValues = { + uppercase: ['NU', 'NT', 'NH', 'NG'], + lowercase: ['nu', 'nt', 'nh', 'ng'], + long: ['ng umaga', 'ng tanghali', 'ng hapon', 'ng gabi'] +}; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return 'ika-' + number; +} + +var localize = { + ordinalNumber: ordinalNumber, + weekday: buildLocalizeFn(weekdayValues, 'long'), + weekdays: buildLocalizeArrayFn(weekdayValues, 'long'), + month: buildLocalizeFn(monthValues, 'long'), + months: buildLocalizeArrayFn(monthValues, 'long'), + timeOfDay: buildLocalizeFn(timeOfDayValues, 'long', function (hours) { + if (hours > 12) { + var modulo = hours % 12; + + if (modulo < 6) { + return 2; + } else { + return 3; + } + } else if (hours < 12) { + return 0; + } else { + return 1; + } + }), + timesOfDay: buildLocalizeArrayFn(timeOfDayValues, 'long') +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fil/_lib/match/index.js b/node_modules/date-fns/esm/locale/fil/_lib/match/index.js new file mode 100644 index 00000000..6baa63a3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/_lib/match/index.js @@ -0,0 +1,38 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildParseFn from "../../../_lib/buildParseFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import parseDecimal from "../../../_lib/parseDecimal/index.js"; +var matchOrdinalNumbersPattern = /^(\d+)(th|st|nd|rd)?/i; +var matchWeekdaysPatterns = { + narrow: /^(su|mo|tu|we|th|fr|sa)/i, + short: /^(sun|mon|tue|wed|thu|fri|sat)/i, + long: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i +}; +var parseWeekdayPatterns = { + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchMonthsPatterns = { + short: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + long: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i +}; +var parseMonthPatterns = { + 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 matchTimesOfDayPatterns = { + short: /^(am|pm)/i, + long: /^([ap]\.?\s?m\.?)/i +}; +var parseTimeOfDayPatterns = { + any: [/^a/i, /^p/i] +}; +var match = { + ordinalNumbers: buildMatchPatternFn(matchOrdinalNumbersPattern), + ordinalNumber: parseDecimal, + weekdays: buildMatchFn(matchWeekdaysPatterns, 'long'), + weekday: buildParseFn(parseWeekdayPatterns, 'any'), + months: buildMatchFn(matchMonthsPatterns, 'long'), + month: buildParseFn(parseMonthPatterns, 'any'), + timesOfDay: buildMatchFn(matchTimesOfDayPatterns, 'long'), + timeOfDay: buildParseFn(parseTimeOfDayPatterns, 'any') +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fil/index.d.ts b/node_modules/date-fns/esm/locale/fil/index.d.ts new file mode 100644 index 00000000..edd13d6b --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fil } from 'date-fns/locale' +export default fil diff --git a/node_modules/date-fns/esm/locale/fil/index.js b/node_modules/date-fns/esm/locale/fil/index.js new file mode 100644 index 00000000..9f9f01b2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/index.js @@ -0,0 +1,28 @@ +// import formatDistance from './_lib/formatDistance/index' +// import formatLong from './_lib/formatLong/index' +// import formatRelative from './_lib/formatRelative/index' +// import localize from './_lib/localize/index' +// import match from './_lib/match/index' + +/** + * @type {Locale} + * @category Locales + * @summary Filipino locale. + * @language Filipino + * @iso-639-2 fil + * @author Ian De La Cruz [@RIanDeLaCruz]{@link https://github.com/RIanDeLaCruz} + */ +// var locale = { +// code: 'fil', +// formatDistance: formatDistance, +// formatLong: formatLong, +// formatRelative: formatRelative, +// localize: localize, +// match: match, +// options: { +// weekStartsOn: 0 /* Sunday */, +// firstWeekContainsDate: 1 +// } +// } +// export default locale +throw new Error('fil 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/fil/index.js.flow b/node_modules/date-fns/esm/locale/fil/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/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/fil/package.json b/node_modules/date-fns/esm/locale/fil/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fil/package.json @@ -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..abb5fab6 --- /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/formatDistance/index.js b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatDistance/index.js new file mode 100644 index 00000000..65e6c74d --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dans ' + result; + } else { + return 'il y a ' + result; + } + } + + return result; +} \ 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..0dee6bcb --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CH/_lib/formatters/index.js b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatters/index.js new file mode 100644 index 00000000..dc6ed250 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatters/index.js @@ -0,0 +1,15 @@ +var formatters = {}; // Special case for day of month ordinals in long date format context: +// 1er mars, 2 mars, 3 mars, … +// See https://github.com/date-fns/date-fns/issues/437 + +var monthsTokens = ['MMM', 'MMMM']; +monthsTokens.forEach(function (monthToken) { + formatters['Do ' + monthToken] = function (date, options) { + var commonFormatters = options.formatters; + var dayOfMonthToken = date.getUTCDate() === 1 ? 'Do' : 'D'; + var dayOfMonthFormatter = commonFormatters[dayOfMonthToken]; + var monthFormatter = commonFormatters[monthToken]; + return dayOfMonthFormatter(date, options) + ' ' + monthFormatter(date, options); + }; +}); +export default formatters; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CH/_lib/localize/index.js b/node_modules/date-fns/esm/locale/fr-CH/_lib/localize/index.js new file mode 100644 index 00000000..6f5845db --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/_lib/localize/index.js @@ -0,0 +1,109 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + var suffix; + + if (number === 0) { + return number; + } + + if (unit === 'year' || unit === 'hour' || unit === 'week') { + if (number === 1) { + suffix = 'ère'; + } else { + suffix = 'ème'; + } + } else { + if (number === 1) { + suffix = '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 (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/fr-CH/_lib/match/index.js b/node_modules/date-fns/esm/locale/fr-CH/_lib/match/index.js new file mode 100644 index 00000000..73327e76 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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: /^[1234]/i, + abbreviated: /^t[1234]/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 (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; \ 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..25ccb4f8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/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 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} + * @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..65e6c74d --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dans ' + result; + } else { + return 'il y a ' + result; + } + } + + return result; +} \ 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..0ebf78de --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/_lib/formatters/index.js b/node_modules/date-fns/esm/locale/fr/_lib/formatters/index.js new file mode 100644 index 00000000..dc6ed250 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/formatters/index.js @@ -0,0 +1,15 @@ +var formatters = {}; // Special case for day of month ordinals in long date format context: +// 1er mars, 2 mars, 3 mars, … +// See https://github.com/date-fns/date-fns/issues/437 + +var monthsTokens = ['MMM', 'MMMM']; +monthsTokens.forEach(function (monthToken) { + formatters['Do ' + monthToken] = function (date, options) { + var commonFormatters = options.formatters; + var dayOfMonthToken = date.getUTCDate() === 1 ? 'Do' : 'D'; + var dayOfMonthFormatter = commonFormatters[dayOfMonthToken]; + var monthFormatter = commonFormatters[monthToken]; + return dayOfMonthFormatter(date, options) + ' ' + monthFormatter(date, options); + }; +}); +export default formatters; \ 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..6f5845db --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js @@ -0,0 +1,109 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + var suffix; + + if (number === 0) { + return number; + } + + if (unit === 'year' || unit === 'hour' || unit === 'week') { + if (number === 1) { + suffix = 'ère'; + } else { + suffix = 'ème'; + } + } else { + if (number === 1) { + suffix = '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 (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/fr/_lib/match/index.js b/node_modules/date-fns/esm/locale/fr/_lib/match/index.js new file mode 100644 index 00000000..73327e76 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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: /^[1234]/i, + abbreviated: /^t[1234]/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 (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; \ 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..24f3f7d6 --- /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: 1 + } +}; +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/gd/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/gd/_lib/formatDistance/index.js new file mode 100644 index 00000000..4f281fe4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/formatDistance/index.js @@ -0,0 +1,99 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2 && !!formatDistanceLocale[token].two) { + result = formatDistanceLocale[token].two; + } else if (count === 9 && !!formatDistanceLocale[token].nine) { + result = formatDistanceLocale[token].nine; + } else if (count === 20 && !!formatDistanceLocale[token].twenty) { + result = formatDistanceLocale[token].twenty; + } else if (count === 30 && !!formatDistanceLocale[token].thirty) { + result = formatDistanceLocale[token].thirty; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'ann an ' + result; + } else { + return 'o chionn ' + result; + } + } + + return result; +} \ 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..71658443 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/formatRelative/index.js @@ -0,0 +1,12 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..e4f6ad9c --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/localize/index.js @@ -0,0 +1,150 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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 + '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 (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/gd/_lib/match/index.js b/node_modules/date-fns/esm/locale/gd/_lib/match/index.js new file mode 100644 index 00000000..90f29042 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..05eacd34 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'hai ' + result; + } + } + + return result; +} \ 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..2fbc5419 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_lib/formatRelative/index.js @@ -0,0 +1,23 @@ +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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} \ 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..88021ef6 --- /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' + } +}; + +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 (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/gl/_lib/match/index.js b/node_modules/date-fns/esm/locale/gl/_lib/match/index.js new file mode 100644 index 00000000..330b4ea4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_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 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 (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; \ 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..819a5773 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +// 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}} વર્ષ' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + 'માં'; + } else { + return result + ' પહેલાં'; + } + } + + return result; +} \ 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..d1ab71ab --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/formatRelative/index.js @@ -0,0 +1,17 @@ +// 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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..eca2852b --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/localize/index.js @@ -0,0 +1,149 @@ +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: 'રાત્રે' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/gu/_lib/match/index.js b/node_modules/date-fns/esm/locale/gu/_lib/match/index.js new file mode 100644 index 00000000..b7ca0763 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/match/index.js @@ -0,0 +1,98 @@ +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: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i +}; +var parseEraPatterns = { + any: [/^(ઈસપૂ|ઈસ)/i, /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/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 = { + 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 (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; \ 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..ba179f79 --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/formatDistance/index.js @@ -0,0 +1,115 @@ +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}} שנים' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; // Return word instead of `in one day` or `one day ago` + + if (token === 'xDays' && options.addSuffix && count <= 2) { + var past = { + 1: 'אתמול', + 2: 'שלשום' + }; + var future = { + 1: 'מחר', + 2: 'מחרתיים' + }; + return options.comparison > 0 ? future[count] : past[count]; + } + + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'בעוד ' + result; + } else { + return 'לפני ' + result; + } + } + + return result; +} \ 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..0f6e7a4f --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..ac27d49e --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/localize/index.js @@ -0,0 +1,129 @@ +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: 'בלילה' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); // We only show words till 10 + + if (number <= 0 || number > 10) return number; + var options = dirtyOptions || {}; + var unit = String(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 (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/he/_lib/match/index.js b/node_modules/date-fns/esm/locale/he/_lib/match/index.js new file mode 100644 index 00000000..0fed34ab --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/match/index.js @@ -0,0 +1,100 @@ +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: /^ל(ספירה|פנה״ס)/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 (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 (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..8e798bcd --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/formatDistance/index.js @@ -0,0 +1,93 @@ +import localize 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}} वर्ष' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', localize.numberToLocale(count)); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + 'मे '; + } else { + return result + ' पहले'; + } + } + + return result; +} \ 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..e7594ab3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..3963aa73 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/localize/index.js @@ -0,0 +1,186 @@ +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: 'रात' + } +}; + +function ordinalNumber(dirtyNumber) { + var number = localize.localeToNumber(dirtyNumber); + var localeNumber = localize.numberToLocale(number); + var rem10 = number % 10; + + switch (rem10) { + case 2: + case 3: + case 4: + case 6: + case 1: + case 5: + case 7: + case 8: + case 9: + case 0: + return localeNumber; + } +} + +function localeToNumber(locale) { + var number = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(number); +} + +function numberToLocale(number) { + return number.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +var localize = { + localeToNumber: localeToNumber, + numberToLocale: numberToLocale, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/hi/_lib/match/index.js b/node_modules/date-fns/esm/locale/hi/_lib/match/index.js new file mode 100644 index 00000000..6b51e31f --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import localize 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 = { + 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: localize.localeToNumber + }), + 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; \ 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..a3ccc531 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/_lib/formatDistance/index.js @@ -0,0 +1,172 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix) { + if (options.comparison > 0) { + result = formatDistanceLocale[token].one.withPrepositionIn; + } else { + result = formatDistanceLocale[token].one.withPrepositionAgo; + } + } else { + result = formatDistanceLocale[token].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 = formatDistanceLocale[token].dual.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'za ' + result; + } else { + return 'prije ' + result; + } + } + + return result; +} \ 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..0bd7eb50 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/_lib/formatRelative/index.js @@ -0,0 +1,49 @@ +var formatRelativeLocale = { + lastWeek: function (date) { + var day = date.getUTCDay(); + + switch (day) { + 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 (date) { + var day = date.getUTCDay(); + + switch (day) { + 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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} \ 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..d6f28cef --- /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"; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Kr.', 'po. Kr.'], + wide: ['Prije Krista', 'Poslije Krista'] +}; +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 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 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 localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..567f4389 --- /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: [/(10|11|12|[123456789])/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 (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: '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/hu/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/hu/_lib/formatDistance/index.js new file mode 100644 index 00000000..60343abf --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_lib/formatDistance/index.js @@ -0,0 +1,82 @@ +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' + } +}; + +function translate(number, addSuffix, key, comparison) { + var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; + + if (key === 'halfaminute') { + return translated; + } + + return number + translated; +} + +export default function formatDistance(token, count, options) { + options = options || {}; + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = token.replace(adverb, ''); + var result; + result = translate(count, options.addSuffix, unit.toLowerCase(), options.comparison); + + if (adverb) { + result = translations[adverb[0].toLowerCase()] + ' ' + result; + } + + return result; +} \ 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..9876a9f9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_lib/formatRelative/index.js @@ -0,0 +1,26 @@ +var accusativeWeekdays = ['vasárnap', 'hétfőn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton']; + +function week(isFuture) { + return function (date, _baseDate, _options) { + var day = date.getUTCDay(); + return (isFuture ? '' : "'múlt' ") + "'" + accusativeWeekdays[day] + "'" + " p'-kor'"; + }; +} + +var formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + 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; +} \ 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..26d5202e --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + '.'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + argumentCallback: function (quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + defaultFormattingWidth: '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..68477f85 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_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: /^(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 (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; \ 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..3e1d65b7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/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 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..eecae453 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} տարի' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' հետո'; + } else { + return result + ' առաջ'; + } + } + + return result; +} \ 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..57a8dd02 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..61dbd24b --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/localize/index.js @@ -0,0 +1,138 @@ +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: 'գիշերը' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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 (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/hy/_lib/match/index.js b/node_modules/date-fns/esm/locale/hy/_lib/match/index.js new file mode 100644 index 00000000..feaefdfb --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/match/index.js @@ -0,0 +1,100 @@ +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: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i +}; +var parseEraPatterns = { + any: [/^(ք|մ)/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 (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; \ 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..297a552d --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dalam waktu ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +} \ 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..7a60ee9c --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..85434dca --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/localize/index.js @@ -0,0 +1,131 @@ +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', 'Ags', '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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed + + switch (number) { + default: + return 'ke-' + number; + } +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/id/_lib/match/index.js b/node_modules/date-fns/esm/locale/id/_lib/match/index.js new file mode 100644 index 00000000..df2c3afc --- /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 (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; \ 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..c2f97514 --- /dev/null +++ b/node_modules/date-fns/esm/locale/index.js @@ -0,0 +1,77 @@ +// This file is generated automatically by `scripts/build/indices.js`. Please, don't change it. +export { default as af } from "./af/index.js"; +export { default as arDZ } from "./ar-DZ/index.js"; +export { default as arMA } from "./ar-MA/index.js"; +export { default as arSA } from "./ar-SA/index.js"; +export { default as az } from "./az/index.js"; +export { default as be } from "./be/index.js"; +export { default as bg } from "./bg/index.js"; +export { default as bn } from "./bn/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 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 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 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 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 ja } from "./ja/index.js"; +export { default as ka } from "./ka/index.js"; +export { default as kk } from "./kk/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 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 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 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 vi } from "./vi/index.js"; +export { default as zhCN } from "./zh-CN/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..ee5baf35 --- /dev/null +++ b/node_modules/date-fns/esm/locale/index.js.flow @@ -0,0 +1,114 @@ +// @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, + arMA: Locale, + arSA: Locale, + az: Locale, + be: Locale, + bg: Locale, + bn: Locale, + ca: Locale, + cs: Locale, + cy: Locale, + da: Locale, + de: Locale, + el: Locale, + enAU: Locale, + enCA: Locale, + enGB: Locale, + enIN: Locale, + enNZ: Locale, + enUS: Locale, + enZA: Locale, + eo: Locale, + es: Locale, + et: Locale, + eu: Locale, + faIR: Locale, + fi: Locale, + fil: Locale, + fr: Locale, + frCA: Locale, + frCH: Locale, + gd: Locale, + gl: Locale, + gu: Locale, + he: Locale, + hi: Locale, + hr: Locale, + hu: Locale, + hy: Locale, + id: Locale, + is: Locale, + it: Locale, + ja: Locale, + ka: Locale, + kk: Locale, + kn: Locale, + ko: Locale, + lb: Locale, + lt: Locale, + lv: Locale, + mk: Locale, + ms: Locale, + mt: Locale, + nb: Locale, + nl: Locale, + nlBE: Locale, + nn: Locale, + pl: Locale, + pt: Locale, + ptBR: Locale, + ro: Locale, + ru: Locale, + sk: Locale, + sl: Locale, + sr: Locale, + srLatn: Locale, + sv: Locale, + ta: Locale, + te: Locale, + th: Locale, + tr: Locale, + ug: Locale, + uk: Locale, + uz: Locale, + vi: Locale, + zhCN: 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..38b30402 --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'í ' + result; + } else { + return result + ' síðan'; + } + } + + return result; +} \ 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..a3fbee3b --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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: 'L' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..5a7ed38e --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + '.'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/is/_lib/match/index.js b/node_modules/date-fns/esm/locale/is/_lib/match/index.js new file mode 100644 index 00000000..b029037b --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/match/index.js @@ -0,0 +1,98 @@ +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: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i +}; +var parseEraPatterns = { + any: [/^(f\.Kr\.|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|februar|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 (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; \ 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/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js new file mode 100644 index 00000000..fe9b352f --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'tra ' + result; + } else { + return result + ' fa'; + } + } + + return result; +} \ 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..3604a5c5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js @@ -0,0 +1,60 @@ +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 (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 (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; +} \ 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..2f155569 --- /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' + } +}; + +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 (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/it/_lib/match/index.js b/node_modules/date-fns/esm/locale/it/_lib/match/index.js new file mode 100644 index 00000000..9e0c13e4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/match/index.js @@ -0,0 +1,98 @@ +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)/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 (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; \ 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/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ja/_lib/formatDistance/index.js new file mode 100644 index 00000000..f33ac45d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/formatDistance/index.js @@ -0,0 +1,97 @@ +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}}年近く' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix && formatDistanceLocale[token].oneWithSuffix) { + result = formatDistanceLocale[token].oneWithSuffix; + } else { + result = formatDistanceLocale[token].one; + } + } else { + if (options.addSuffix && formatDistanceLocale[token].otherWithSuffix) { + result = formatDistanceLocale[token].otherWithSuffix.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + '後'; + } else { + return result + '前'; + } + } + + return result; +} \ 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..9758dedb --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: '先週のeeeeのp', + yesterday: '昨日のp', + today: '今日のp', + tomorrow: '明日のp', + nextWeek: '翌週のeeeeのp', + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..e061e945 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/localize/index.js @@ -0,0 +1,141 @@ +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: '深夜' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + var options = dirtyOptions || {}; + var unit = String(options.unit); + + if (unit === 'date') { + return number + '日'; + } + + if (unit === 'year') { + return number + '年'; + } + + return number; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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..f6d111c2 --- /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 (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; \ 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..e4bebf78 --- /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..71220fce --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/formatDistance/index.js @@ -0,0 +1,98 @@ +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}} წელში' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (options.addSuffix && options.comparison > 0) { + result = formatDistanceLocale[token].future.replace('{{count}}', count); + } else if (options.addSuffix && options.comparison <= 0) { + result = formatDistanceLocale[token].past.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].present.replace('{{count}}', count); + } + + return result; +} \ 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..faeca311 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'წინა' eeee LT'-ზე'", + yesterday: "'გუშინ' LT'-ზე'", + today: "'დღეს' LT'-ზე'", + tomorrow: "'ხვალ' LT'-ზე'", + nextWeek: "'შემდეგი' eeee LT'-ზე'", + other: 'L' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..906174e2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/localize/index.js @@ -0,0 +1,138 @@ +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: 'ღამით' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + 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 (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/ka/_lib/match/index.js b/node_modules/date-fns/esm/locale/ka/_lib/match/index.js new file mode 100644 index 00000000..6f48593e --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/match/index.js @@ -0,0 +1,92 @@ +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: /^(ჩვ?\.წ)/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, + long: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/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 (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; \ 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..b8f7fb41 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/formatDistance/index.js @@ -0,0 +1,225 @@ +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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: '1 секундтан аз', + 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 (_, options) { + if (options.addSuffix) { + if (options.comparison > 0) { + return 'жарты минут ішінде'; + } else { + return 'жарты минут бұрын'; + } + } + + return 'жарты минут'; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: '1 минуттан аз', + 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}} күн' + }, + future: { + singularNominative: '{{count}} күннен кейін', + singularGenitive: '{{count}} күннен кейін', + pluralGenitive: '{{count}} күннен кейін' + } + }), + aboutXWeeks: { + one: 'шамамен 1 апта', + other: 'шамамен {{count}} апта' + }, + xWeeks: { + one: '1 апта', + other: '{{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}} жыл' + }, + future: { + 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}} жылдан кейін' + } + }) +}; +export default function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} \ 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..9f8d8a27 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js @@ -0,0 +1,51 @@ +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 (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; +} \ 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..3bd60c13 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/localize/index.js @@ -0,0 +1,132 @@ +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: '-ші' +}; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var a = number % 10; + var b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..fed82d38 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/match/index.js @@ -0,0 +1,100 @@ +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: /^((б )?з\.?\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 (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: '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/kn/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/kn/_lib/formatDistance/index.js new file mode 100644 index 00000000..01258807 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/formatDistance/index.js @@ -0,0 +1,192 @@ +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}} ದಿನಗಳ ಹಿಂದೆ' + } + }, + 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.addSuffix) { + if (options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + + return parentToken.default; +} + +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = getResultByTense(formatDistanceLocale[token].one, options); + } else { + result = getResultByTense(formatDistanceLocale[token].other, options); + } + + return result.replace('{{count}}', count); +} \ 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..a60139f7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/formatLong/index.js @@ -0,0 +1,47 @@ +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +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..4300a3fe --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", + yesterday: "'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", + today: "'ಇಂದು' p 'ಕ್ಕೆ'", + tomorrow: "'ನಾಳೆ' p 'ಕ್ಕೆ'", + nextWeek: "eeee p 'ಕ್ಕೆ'", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..279fe909 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/localize/index.js @@ -0,0 +1,129 @@ +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +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: 'ರಾತ್ರಿ' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + 'ನೇ'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/kn/_lib/match/index.js b/node_modules/date-fns/esm/locale/kn/_lib/match/index.js new file mode 100644 index 00000000..e76dde3e --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/match/index.js @@ -0,0 +1,98 @@ +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: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/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 (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; \ 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..b27c1694 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}}년' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' 후'; + } else { + return result + ' 전'; + } + } + + return result; +} \ 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..399ae268 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..7b273d2d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/localize/index.js @@ -0,0 +1,134 @@ +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: '밤' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + + switch (unit) { + case 'minute': + case 'second': + return 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 (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/ko/_lib/match/index.js b/node_modules/date-fns/esm/locale/ko/_lib/match/index.js new file mode 100644 index 00000000..7884be1b --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/match/index.js @@ -0,0 +1,95 @@ +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\.?\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 (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; \ 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..5d35a978 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/formatDistance/index.js @@ -0,0 +1,204 @@ +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; +} + +export default function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'a' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } else { + return 'viru' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } + } + + return result; +} \ 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..31bb3c40 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/formatRelative/index.js @@ -0,0 +1,28 @@ +var formatRelativeLocale = { + lastWeek: function (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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} \ 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..18e05063 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + '.'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/lb/_lib/match/index.js b/node_modules/date-fns/esm/locale/lb/_lib/match/index.js new file mode 100644 index 00000000..534eb519 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/match/index.js @@ -0,0 +1,100 @@ +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: /^(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 (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: '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..5b439c94 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/formatDistance/index.js @@ -0,0 +1,147 @@ +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 + }, + aboutWeeks: { + 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 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' +}; + +function translateSeconds(number, addSuffix, key, isFuture) { + if (!addSuffix) { + return 'kelios sekundės'; + } else { + return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; + } +} + +function translateSingular(number, addSuffix, key, isFuture) { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +} + +function special(number) { + return number % 10 === 0 || number > 10 && number < 20; +} + +function forms(key) { + return translations[key].split('_'); +} + +function translate(number, addSuffix, key, isFuture) { + var result = number + ' '; + + if (number === 1) { + return result + translateSingular(number, addSuffix, key[0], 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]); + } + } +} + +export default function formatDistance(token, count, options) { + options = options || {}; + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = token.replace(adverb, ''); + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one(count, options.addSuffix, unit.toLowerCase() + '_one'); + } else { + result = formatDistanceLocale[token].other(count, options.addSuffix, unit.toLowerCase() + '_other'); + } + + if (adverb) { + result = translations[adverb[0].toLowerCase()] + ' ' + result; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'po ' + result; + } else { + return 'prieš ' + result; + } + } + + return result; +} \ 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..ecfb5531 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: 'eeee p', + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..dceaf9c8 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (quarter) { + return Number(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..f272a347 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/match/index.js @@ -0,0 +1,111 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..56137209 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/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 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..121db027 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/formatDistance/index.js @@ -0,0 +1,104 @@ +function buildLocalizeTokenFn(schema) { + return function (count, options) { + if (count === 1) { + if (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.addSuffix) { + return schema.other[0].replace('{{time}}', rem ? schema.other[3] : schema.other[4]).replace('{{count}}', count); + } else { + return schema.other[0].replace('{{time}}', rem ? schema.other[1] : schema.other[2]).replace('{{count}}', 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 (count, options) { + if (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'] + }) +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result = formatDistanceLocale[token](count, options); + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'pēc ' + result; + } else { + return 'pirms ' + result; + } + } + + return result; +} \ 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..8bcb738b --- /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: "y. 'gada' M. MMMM., EEEE", + long: "y. 'gada' M. 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..3e2e654a --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/formatRelative/index.js @@ -0,0 +1,33 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var weekdays = ['svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā']; +var formatRelativeLocale = { + lastWeek: function (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 (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' +}; +export default function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} \ 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..f6765cdd --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/localize/index.js @@ -0,0 +1,142 @@ +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ī' + } +}; + +function ordinalNumber(number, _options) { + return number + '.'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..8f88b3e5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/match/index.js @@ -0,0 +1,101 @@ +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: /^(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 (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; \ 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..aab6f241 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} години' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'за ' + result; + } else { + return 'пред ' + result; + } + } + + return result; +} \ 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..c106ad5e --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/_lib/formatRelative/index.js @@ -0,0 +1,87 @@ +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 (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; +} \ 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..94f91c57 --- /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: 'ноќе' + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/mk/_lib/match/index.js b/node_modules/date-fns/esm/locale/mk/_lib/match/index.js new file mode 100644 index 00000000..666bb983 --- /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 (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; \ 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/ms/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ms/_lib/formatDistance/index.js new file mode 100644 index 00000000..6fa02658 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dalam masa ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +} \ 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..f6309e16 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..d0ce62da --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/localize/index.js @@ -0,0 +1,131 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed + + switch (number) { + default: + return 'ke-' + number; + } +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/ms/_lib/match/index.js b/node_modules/date-fns/esm/locale/ms/_lib/match/index.js new file mode 100644 index 00000000..331ca52e --- /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 (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; \ 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..55cfb019 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/formatDistance/index.js @@ -0,0 +1,92 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var adverb = token.match(/years/i); + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2 && adverb) { + result = formatDistanceLocale[token].two; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return "f'" + result; + } else { + return result + ' ilu'; + } + } + + return result; +} \ 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..a5e3270c --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..d535da6b --- /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' + } +}; + +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 (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/mt/_lib/match/index.js b/node_modules/date-fns/esm/locale/mt/_lib/match/index.js new file mode 100644 index 00000000..b7da2009 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/match/index.js @@ -0,0 +1,98 @@ +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: /^(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 (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; \ 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..2223f3b4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/formatDistance/index.js @@ -0,0 +1,93 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + singular: 'mindre enn ett sekund', + plural: 'mindre enn {{count}} sekunder' + }, + xSeconds: { + singular: 'ett sekund', + plural: '{{count}} sekunder' + }, + halfAMinute: 'et halvt minutt', + lessThanXMinutes: { + singular: 'mindre enn ett minutt', + plural: 'mindre enn {{count}} minutter' + }, + xMinutes: { + singular: 'ett minutt', + plural: '{{count}} minutter' + }, + aboutXHours: { + singular: 'omtrent en time', + plural: 'omtrent {{count}} timer' + }, + xHours: { + singular: 'en time', + plural: '{{count}} timer' + }, + xDays: { + singular: 'en dag', + plural: '{{count}} dager' + }, + aboutXWeeks: { + singular: 'omtrent en uke', + plural: 'omtrent {{count}} uker' + }, + xWeeks: { + singular: 'en uke', + plural: '{{count}} uker' + }, + aboutXMonths: { + singular: 'omtrent en måned', + plural: 'omtrent {{count}} måneder' + }, + xMonths: { + singular: 'en måned', + plural: '{{count}} måneder' + }, + aboutXYears: { + singular: 'omtrent ett år', + plural: 'omtrent {{count}} år' + }, + xYears: { + singular: 'ett år', + plural: '{{count}} år' + }, + overXYears: { + singular: 'over ett år', + plural: 'over {{count}} år' + }, + almostXYears: { + singular: 'nesten ett år', + plural: 'nesten {{count}} år' + } +}; +var wordMapping = ['null', 'en', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'åtte', 'ni', 'ti', 'elleve', 'tolv']; +export default function formatDistance(token, count, options) { + options = options || { + onlyNumeric: false + }; + var translation = formatDistanceLocale[token]; + var result; + + if (typeof translation === 'string') { + result = translation; + } else if (count === 0 || count > 1) { + if (options.onlyNumeric) { + result = translation.plural.replace('{{count}}', count); + } else { + result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); + } + } else { + result = translation.singular; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +} \ 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..93c5d55f --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..b2ab1ceb --- /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' + } +}; + +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 (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/nb/_lib/match/index.js b/node_modules/date-fns/esm/locale/nb/_lib/match/index.js new file mode 100644 index 00000000..6ad997e7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/match/index.js @@ -0,0 +1,97 @@ +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: /^(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 (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; \ 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..3285010d --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +} \ 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..1eb3157b --- /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..e5b723ad --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..1361c87d --- /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" + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/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..2d2b7a7c --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..3285010d --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +} \ 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..af49d919 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..4170c2e0 --- /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" + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/nl/_lib/match/index.js b/node_modules/date-fns/esm/locale/nl/_lib/match/index.js new file mode 100644 index 00000000..2d2b7a7c --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..36edbad2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/formatDistance/index.js @@ -0,0 +1,93 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + singular: 'mindre enn eitt sekund', + plural: 'mindre enn {{count}} sekund' + }, + xSeconds: { + singular: 'eitt sekund', + plural: '{{count}} sekund' + }, + halfAMinute: 'eit halvt minutt', + lessThanXMinutes: { + singular: 'mindre enn eitt minutt', + plural: 'mindre enn {{count}} minutt' + }, + xMinutes: { + singular: 'eitt minutt', + plural: '{{count}} minutt' + }, + aboutXHours: { + singular: 'omtrent ein time', + plural: 'omtrent {{count}} timar' + }, + xHours: { + singular: 'ein time', + plural: '{{count}} timar' + }, + xDays: { + singular: 'ein dag', + plural: '{{count}} dagar' + }, + aboutXWeeks: { + singular: 'omtrent ei veke', + plural: 'omtrent {{count}} veker' + }, + xWeeks: { + singular: 'ei veke', + plural: '{{count}} veker' + }, + aboutXMonths: { + singular: 'omtrent ein månad', + plural: 'omtrent {{count}} månader' + }, + xMonths: { + singular: 'ein månad', + plural: '{{count}} månader' + }, + aboutXYears: { + singular: 'omtrent eitt år', + plural: 'omtrent {{count}} år' + }, + xYears: { + singular: 'eitt år', + plural: '{{count}} år' + }, + overXYears: { + singular: 'over eitt år', + plural: 'over {{count}} år' + }, + almostXYears: { + singular: 'nesten eitt år', + plural: 'nesten {{count}} år' + } +}; +var wordMapping = ['null', 'ein', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'åtte', 'ni', 'ti', 'elleve', 'tolv']; +export default function formatDistance(token, count, options) { + options = options || { + onlyNumeric: false + }; + var translation = formatDistanceLocale[token]; + var result; + + if (typeof translation === 'string') { + result = translation; + } else if (count === 0 || count > 1) { + if (options.onlyNumeric) { + result = translation.plural.replace('{{count}}', count); + } else { + result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); + } + } else { + result = translation.singular; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sidan'; + } + } + + return result; +} \ 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..227e3344 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..3576fc71 --- /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' + } +}; + +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 (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/nn/_lib/match/index.js b/node_modules/date-fns/esm/locale/nn/_lib/match/index.js new file mode 100644 index 00000000..3d874164 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/match/index.js @@ -0,0 +1,97 @@ +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: /^(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 (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; \ 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/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..f3e8e005 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/formatDistance/index.js @@ -0,0 +1,151 @@ +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) { + time = time || 'regular'; + var group = declensionGroup(scheme, count); + var finalText = group[time] || group; + return finalText.replace('{{count}}', count); +} + +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var scheme = formatDistanceLocale[token]; + + if (!options.addSuffix) { + return declension(scheme, count); + } + + if (options.comparison > 0) { + return 'za ' + declension(scheme, count, 'future'); + } else { + return declension(scheme, count, 'past') + ' temu'; + } +} \ 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..34419d45 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js @@ -0,0 +1,64 @@ +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 getAdjectives(token, date, baseDate, options) { + if (isSameUTCWeek(date, baseDate, options)) { + return adjectivesThisWeek; + } else if (token === 'lastWeek') { + return adjectivesLastWeek; + } else if (token === 'nextWeek') { + return adjectivesNextWeek; + } else { + throw new Error("Cannot determine adjectives for token ".concat(token)); + } +} + +function getAdjective(token, date, baseDate, options) { + var day = date.getUTCDay(); + var adjectives = getAdjectives(token, date, baseDate, options); + var grammaticalGender = dayGrammaticalGender[day]; + return adjectives[grammaticalGender]; +} + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + var adjective = getAdjective(token, date, baseDate, options); + 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' +}; +export default function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(token, date, baseDate, options); + } + + return format; +} \ 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..e67d554e --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/localize/index.js @@ -0,0 +1,136 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number); +} + +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 localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..1399cbbd --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/match/index.js @@ -0,0 +1,110 @@ +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: /^(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 (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; \ 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..2297049b --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'em ' + result; + } else { + return 'há ' + result; + } + } + + return result; +} \ 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..ad2ad2a0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatRelative/index.js @@ -0,0 +1,21 @@ +var formatRelativeLocale = { + lastWeek: function (date, _baseDate, _options) { + 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' +}; +export default function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} \ 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..898240d0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/localize/index.js @@ -0,0 +1,128 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + + if (unit === 'week' || unit === 'isoWeek') { + return number + 'ª'; + } + + return number + 'º'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/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..d8a5e116 --- /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 (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; \ 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..56936d03 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'daqui a ' + result; + } else { + return 'há ' + result; + } + } + + return result; +} \ 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..6a2d6898 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'na última' eeee 'às' p", + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..bea7e7e1 --- /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"; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + 'º'; +} + +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 localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/pt/_lib/match/index.js b/node_modules/date-fns/esm/locale/pt/_lib/match/index.js new file mode 100644 index 00000000..12ad0b23 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_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 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 (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; \ 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..fa9eb9ef --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'în ' + result; + } else { + return result + ' în urmă'; + } + } + + return result; +} \ 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..95a77ee9 --- /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..38467e41 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..39183e9b --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/localize/index.js @@ -0,0 +1,121 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/ro/_lib/match/index.js b/node_modules/date-fns/esm/locale/ro/_lib/match/index.js new file mode 100644 index 00000000..8d434465 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_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: /^(Î|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 (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; \ 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..584d79e7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_lib/formatDistance/index.js @@ -0,0 +1,226 @@ +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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 (_, options) { + if (options.addSuffix) { + if (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}} лет' + } + }) +}; +export default function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} \ 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..8176ce3a --- /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, 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 = { + 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..6cc8f64c --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_lib/formatRelative/index.js @@ -0,0 +1,86 @@ +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 (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; +} \ 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..646e7fb4 --- /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: 'ночи' + } +}; + +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; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..140641d1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_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: /^((до )?н\.?\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 (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: '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..358bef9b --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_lib/formatDistance/index.js @@ -0,0 +1,213 @@ +// NOTE: should prolly be improved +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + if (count >= 2 && count <= 4) { + 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] || group; + return finalText.replace('{{count}}', 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: { + regular: 'sekunda', + past: 'sekundou', + future: 'sekundu' + }, + twoFour: { + regular: '{{count}} sekundy', + past: '{{count}} sekundami', + future: '{{count}} sekundy' + }, + other: { + regular: '{{count}} sekúnd', + past: '{{count}} sekundami', + future: '{{count}} sekúnd' + } + }, + halfAMinute: { + other: { + regular: 'pol minúty', + past: 'pol minútou', + future: 'pol minúty' + } + }, + xMinutes: { + one: { + regular: 'minúta', + past: 'minútou', + future: 'minútu' + }, + twoFour: { + regular: '{{count}} minúty', + past: '{{count}} minútami', + future: '{{count}} minúty' + }, + other: { + regular: '{{count}} minút', + past: '{{count}} minútami', + future: '{{count}} minút' + } + }, + xHours: { + one: { + regular: 'hodina', + past: 'hodinou', + future: 'hodinu' + }, + twoFour: { + regular: '{{count}} hodiny', + past: '{{count}} hodinami', + future: '{{count}} hodiny' + }, + other: { + regular: '{{count}} hodín', + past: '{{count}} hodinami', + future: '{{count}} hodín' + } + }, + xDays: { + one: { + regular: 'deň', + past: 'dňom', + future: 'deň' + }, + twoFour: { + regular: '{{count}} dni', + past: '{{count}} dňami', + future: '{{count}} dni' + }, + other: { + regular: '{{count}} dní', + past: '{{count}} dňami', + future: '{{count}} dní' + } + }, + xWeeks: { + one: { + regular: 'mesiac', + // TODO + past: 'mesiacom', + // TODO + future: 'mesiac' // TODO + + }, + twoFour: { + regular: '{{count}} mesiace', + // TODO + past: '{{count}} mesiacmi', + // TODO + future: '{{count}} mesiace' // TODO + + }, + other: { + regular: '{{count}} mesiacov', + // TODO + past: '{{count}} mesiacmi', + // TODO + future: '{{count}} mesiacov' // TODO + + } + }, + xMonths: { + one: { + regular: 'mesiac', + past: 'mesiacom', + future: 'mesiac' + }, + twoFour: { + regular: '{{count}} mesiace', + past: '{{count}} mesiacmi', + future: '{{count}} mesiace' + }, + other: { + regular: '{{count}} mesiacov', + past: '{{count}} mesiacmi', + future: '{{count}} mesiacov' + } + }, + xYears: { + one: { + regular: 'rok', + past: 'rokom', + future: 'rok' + }, + twoFour: { + regular: '{{count}} roky', + past: '{{count}} rokmi', + future: '{{count}} roky' + }, + other: { + regular: '{{count}} rokov', + past: '{{count}} rokmi', + future: '{{count}} rokov' + } + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var preposition = extractPreposition(token) || ''; + var key = lowercaseFirstLetter(token.substring(preposition.length)); + var scheme = formatDistanceLocale[key]; + + if (!options.addSuffix) { + return prefixPreposition(preposition) + suffixPreposition(preposition) + declension(scheme, count, 'regular'); + } + + if (options.comparison > 0) { + return prefixPreposition(preposition) + 'o ' + suffixPreposition(preposition) + declension(scheme, count, 'future'); + } else { + return prefixPreposition(preposition) + 'pred ' + suffixPreposition(preposition) + declension(scheme, count, 'past'); + } +} \ 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..92ed0a80 --- /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..9927d13a --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_lib/formatRelative/index.js @@ -0,0 +1,89 @@ +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 (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 (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; +} \ 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..beab0623 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + '.'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues // defaultWidth: 'wide' + + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..e7fa94f5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_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: /^(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 (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; \ 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..c5d5d0ef --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/_lib/formatDistance/index.js @@ -0,0 +1,297 @@ +var distanceInWordsLocale = { + lessThanXSeconds: { + one: 'manj kot {{count}} sekunda', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + }, + xSeconds: { + one: '{{count}} sekunda', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + one: 'manj kot {{count}} minuta', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + }, + xMinutes: { + one: '{{count}} minuta', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + }, + aboutXHours: { + one: 'približno {{count}} ura', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + }, + xHours: { + one: '{{count}} ura', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + }, + xDays: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + }, + aboutXWeeks: { + one: 'približno {{count}} teden', + two: 'približno {{count}} tedna', + few: 'približno {{count}} tedne', + other: 'približno {{count}} tednov' + }, + xWeeks: { + one: '{{count}} teden', + two: '{{count}} tedna', + few: '{{count}} tedne', + other: '{{count}} tednov' + }, + aboutXMonths: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + }, + xMonths: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} meseci', + other: '{{count}} mesecev' + }, + aboutXYears: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + }, + xYears: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + }, + overXYears: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + }, + almostXYears: { + one: 'skoraj {{count}} leto', + two: 'skoraj {{count}} leti', + few: 'skoraj {{count}} leta', + other: 'skoraj {{count}} let' + } +}; +var distanceInWordsLocalePast = { + lessThanXSeconds: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundama', + few: 'manj kot {{count}} sekundami', + other: 'manj kot {{count}} sekundami' + }, + xSeconds: { + one: '{{count}} sekundo', + two: '{{count}} sekundama', + few: '{{count}} sekundami', + other: '{{count}} sekundami' + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minutama', + few: 'manj kot {{count}} minutami', + other: 'manj kot {{count}} minutami' + }, + xMinutes: { + one: '{{count}} minuto', + two: '{{count}} minutama', + few: '{{count}} minutami', + other: '{{count}} minutami' + }, + aboutXHours: { + one: 'približno {{count}} uro', + two: 'približno {{count}} urama', + few: 'približno {{count}} urami', + other: 'približno {{count}} urami' + }, + xHours: { + one: '{{count}} uro', + two: '{{count}} urama', + few: '{{count}} urami', + other: '{{count}} urami' + }, + xDays: { + one: '{{count}} dnem', + two: '{{count}} dnevoma', + few: '{{count}} dnevi', + other: '{{count}} dnevi' + }, + aboutXMonths: { + one: 'približno {{count}} mesecem', + two: 'približno {{count}} mesecema', + few: 'približno {{count}} meseci', + other: 'približno {{count}} meseci' + }, + xMonths: { + one: '{{count}} mesecem', + two: '{{count}} mesecema', + few: '{{count}} meseci', + other: '{{count}} meseci' + }, + aboutXYears: { + one: 'približno {{count}} letom', + two: 'približno {{count}} letoma', + few: 'približno {{count}} leti', + other: 'približno {{count}} leti' + }, + xYears: { + one: '{{count}} letom', + two: '{{count}} letoma', + few: '{{count}} leti', + other: '{{count}} leti' + }, + overXYears: { + one: 'več kot {{count}} letom', + two: 'več kot {{count}} letoma', + few: 'več kot {{count}} leti', + other: 'več kot {{count}} leti' + }, + almostXYears: { + one: 'skoraj {{count}} letom', + two: 'skoraj {{count}} letoma', + few: 'skoraj {{count}} leti', + other: 'skoraj {{count}} leti' + } +}; +var distanceInWordsLocaleFuture = { + lessThanXSeconds: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + }, + xSeconds: { + one: '{{count}} sekundo', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + }, + xMinutes: { + one: '{{count}} minuto', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + }, + aboutXHours: { + one: 'približno {{count}} uro', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + }, + xHours: { + one: '{{count}} uro', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + }, + xDays: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + }, + aboutXMonths: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + }, + xMonths: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} mesece', + other: '{{count}} mesecev' + }, + aboutXYears: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + }, + xYears: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + }, + overXYears: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + }, + almostXYears: { + 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'; + } +} + +export default function formatDistance(token, count, options) { + options = options || {}; + var localeObject = distanceInWordsLocale; + var result = ''; + + if (options.addSuffix) { + if (options.comparison > 0) { + localeObject = distanceInWordsLocaleFuture; + result += 'čez '; + } else { + localeObject = distanceInWordsLocalePast; + result += 'pred '; + } + } + + if (typeof localeObject[token] === 'string') { + result += localeObject[token]; + } else { + var form = getFormFromCount(count); + result += localeObject[token][form].replace('{{count}}', count); + } + + return result; +} \ 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..e0f1b95f --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/_lib/formatRelative/index.js @@ -0,0 +1,49 @@ +var formatRelativeLocale = { + lastWeek: function (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 (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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} \ 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..97333b77 --- /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"; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +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 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 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 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 dayPeriodValuesStandalone = { + 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 dayPeriodValuesFormatting = { + 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 localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValuesStandalone, + defaultWidth: 'wide', + formattingValues: dayPeriodValuesFormatting, + 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..bb2ccd34 --- /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 (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: '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/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..64808e1d --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatDistance/index.js @@ -0,0 +1,172 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix) { + if (options.comparison > 0) { + result = formatDistanceLocale[token].one.withPrepositionIn; + } else { + result = formatDistanceLocale[token].one.withPrepositionAgo; + } + } else { + result = formatDistanceLocale[token].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 = formatDistanceLocale[token].dual.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'za ' + result; + } else { + return 'pre ' + result; + } + } + + return result; +} \ 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..1822cedf --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatRelative/index.js @@ -0,0 +1,49 @@ +var formatRelativeLocale = { + lastWeek: function (date) { + var day = date.getUTCDay(); + + switch (day) { + 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 (date) { + var day = date.getUTCDay(); + + switch (day) { + 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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} \ 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..07459d65 --- /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"; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Hr.', 'po. Hr.'], + wide: ['Pre Hrista', 'Posle Hrista'] +}; +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 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 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 localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..7d2036cb --- /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: [/(10|11|12|[123456789])/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 (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; \ 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..f9a6dfd8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/_lib/formatDistance/index.js @@ -0,0 +1,172 @@ +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}} година' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix) { + if (options.comparison > 0) { + result = formatDistanceLocale[token].one.withPrepositionIn; + } else { + result = formatDistanceLocale[token].one.withPrepositionAgo; + } + } else { + result = formatDistanceLocale[token].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 = formatDistanceLocale[token].dual.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'за ' + result; + } else { + return 'пре ' + result; + } + } + + return result; +} \ 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..6e49d103 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/_lib/formatRelative/index.js @@ -0,0 +1,49 @@ +var formatRelativeLocale = { + lastWeek: function (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 (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' +}; +export default function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} \ 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..546cf60b --- /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"; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +var eraValues = { + narrow: ['пр.н.е.', 'АД'], + abbreviated: ['пр. Хр.', 'по. Хр.'], + wide: ['Пре Христа', 'После Христа'] +}; +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 quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. кв.', '2. кв.', '3. кв.', '4. кв.'], + wide: ['1. квартал', '2. квартал', '3. квартал', '4. квартал'] +}; +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 localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..6388d52e --- /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: [/(10|11|12|[123456789])/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], + 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 (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; \ 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..3e900765 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_lib/formatDistance/index.js @@ -0,0 +1,93 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + singular: 'mindre än en sekund', + plural: 'mindre än {{count}} sekunder' + }, + xSeconds: { + singular: 'en sekund', + plural: '{{count}} sekunder' + }, + halfAMinute: 'en halv minut', + lessThanXMinutes: { + singular: 'mindre än en minut', + plural: 'mindre än {{count}} minuter' + }, + xMinutes: { + singular: 'en minut', + plural: '{{count}} minuter' + }, + aboutXHours: { + singular: 'ungefär en timme', + plural: 'ungefär {{count}} timmar' + }, + xHours: { + singular: 'en timme', + plural: '{{count}} timmar' + }, + xDays: { + singular: 'en dag', + plural: '{{count}} dagar' + }, + aboutXWeeks: { + singular: 'ungefär en vecka', + plural: 'ungefär {{count}} vecka' + }, + xWeeks: { + singular: 'en vecka', + plural: '{{count}} vecka' + }, + aboutXMonths: { + singular: 'ungefär en månad', + plural: 'ungefär {{count}} månader' + }, + xMonths: { + singular: 'en månad', + plural: '{{count}} månader' + }, + aboutXYears: { + singular: 'ungefär ett år', + plural: 'ungefär {{count}} år' + }, + xYears: { + singular: 'ett år', + plural: '{{count}} år' + }, + overXYears: { + singular: 'över ett år', + plural: 'över {{count}} år' + }, + almostXYears: { + singular: 'nästan ett år', + plural: 'nästan {{count}} år' + } +}; +var wordMapping = ['noll', 'en', 'två', 'tre', 'fyra', 'fem', 'sex', 'sju', 'åtta', 'nio', 'tio', 'elva', 'tolv']; +export default function formatDistance(token, count, options) { + options = options || { + onlyNumeric: false + }; + var translation = formatDistanceLocale[token]; + var result; + + if (typeof translation === 'string') { + result = translation; + } else if (count === 0 || count > 1) { + if (options.onlyNumeric) { + result = translation.plural.replace('{{count}}', count); + } else { + result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); + } + } else { + result = translation.singular; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sedan'; + } + } + + return result; +} \ 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..b0f5fe26 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..7cf306cc --- /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', 'tor', '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' + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/sv/_lib/match/index.js b/node_modules/date-fns/esm/locale/sv/_lib/match/index.js new file mode 100644 index 00000000..37c1b8e5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_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+)(: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|apr|maj|jun|jul|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|tor|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 (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; \ 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..8a1214cb --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/formatDistance/index.js @@ -0,0 +1,214 @@ +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}} ஆண்டுகளுக்கு முன்பு' + } + } +}; + +function getFormatDistanceLocaleWithSuffix(resultObj, options) { + if (options.addSuffix) { + if (options.comparison > 0) { + return resultObj.in; + } else { + return resultObj.ago; + } + } + + return resultObj.default; +} + +export default function formatDistance(token, count) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var result; + + if (formatDistanceLocale[token].default) { + result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token], options); + } else if (count === 1) { + result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token].one, options); + } else { + result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token].other, options); + } + + return result.replace('{{count}}', count); +} \ 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..2b56bda5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/formatLong/index.js @@ -0,0 +1,37 @@ +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; // 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..57a5898c --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'கடந்த' eeee p 'மணிக்கு'", + yesterday: "'நேற்று ' p 'மணிக்கு'", + today: "'இன்று ' p 'மணிக்கு'", + tomorrow: "'நாளை ' p 'மணிக்கு'", + nextWeek: "eeee p 'மணிக்கு'", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..5749fc94 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/localize/index.js @@ -0,0 +1,176 @@ +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +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: 'இரவு' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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' + + return number; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/ta/_lib/match/index.js b/node_modules/date-fns/esm/locale/ta/_lib/match/index.js new file mode 100644 index 00000000..060d7562 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_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: /^(கி.மு.|கி.பி.)/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 (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; \ 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..ddf58d2d --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/formatDistance/index.js @@ -0,0 +1,187 @@ +// 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}} సంవత్సరాల' + } + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + 'లో'; + } else { + return result + ' క్రితం'; + } + } + + return result; +} \ 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..e58a193f --- /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..4e9ac6ca --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/formatRelative/index.js @@ -0,0 +1,17 @@ +// 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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..a5b61478 --- /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: 'రాత్రి' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + 'వ'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/te/_lib/match/index.js b/node_modules/date-fns/esm/locale/te/_lib/match/index.js new file mode 100644 index 00000000..e9aa69a6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/match/index.js @@ -0,0 +1,98 @@ +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: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/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 (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; \ 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..47315d4d --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js @@ -0,0 +1,89 @@ +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}} ปี' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + if (token === 'halfAMinute') { + return 'ใน' + result; + } else { + return 'ใน ' + result; + } + } else { + return result + 'ที่ผ่านมา'; + } + } + + return result; +} \ 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..5bd8613c --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "eeee'ที่แล้วเวลา' p", + yesterday: "'เมื่อวานนี้เวลา' p", + today: "'วันนี้เวลา' p", + tomorrow: "'พรุ่งนี้เวลา' p", + nextWeek: "eeee 'เวลา' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..fecc8a51 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/localize/index.js @@ -0,0 +1,121 @@ +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: 'ตอนกลางคืน' + } +}; + +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 (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/th/_lib/match/index.js b/node_modules/date-fns/esm/locale/th/_lib/match/index.js new file mode 100644 index 00000000..830ee43f --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/match/index.js @@ -0,0 +1,97 @@ +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: /^([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 (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; \ 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..b242466e --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' sonra'; + } else { + return result + ' önce'; + } + } + + return result; +} \ 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..1de3d4ac --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..acab5bf5 --- /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 = { + abbreviated: ['MÖ', 'MS'], + narrow: ['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', 'Pts', '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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); + return number + '.'; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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, + defaulFormattingWidth: '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..8acf5571 --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/match/index.js @@ -0,0 +1,101 @@ +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: /^(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|pts|sal|çar|per|cum|cts)/i, + wide: /^(pazar|pazartesi|salı|çarşamba|perşembe|cuma|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/i, /^pazartesi/i, /^salı/i, /^çarşamba/i, /^perşembe/i, /^cuma/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 (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; \ 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..a1c65e68 --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/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 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 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..e69de29b 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..3731ddd7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} ئاساسەن' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result; + } else { + return result + ' بولدى'; + } + } + + return result; +} \ 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..b57ad527 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'ئ‍ۆتكەن' eeee 'دە' p", + yesterday: "'تۈنۈگۈن دە' p", + today: "'بۈگۈن دە' p", + tomorrow: "'ئەتە دە' p", + nextWeek: "eeee 'دە' p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..0562c64b --- /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: 'كىچىدە' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + return String(dirtyNumber); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/ug/_lib/match/index.js b/node_modules/date-fns/esm/locale/ug/_lib/match/index.js new file mode 100644 index 00000000..55bf7da9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/match/index.js @@ -0,0 +1,97 @@ +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, + 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 (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; \ 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..8e691d85 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_lib/formatDistance/index.js @@ -0,0 +1,226 @@ +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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 (_, options) { + if (options.addSuffix) { + if (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}} років' + } + }) +}; +export default function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} \ 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..0f2d47d7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_lib/formatRelative/index.js @@ -0,0 +1,75 @@ +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 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; +} \ 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..f21d82f1 --- /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: 'ночі' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(options.unit); + var suffix; + + if (unit === 'date') { + if (dirtyNumber === 3 || dirtyNumber === 23) { + suffix = '-є'; + } else { + suffix = '-е'; + } + } else if (unit === 'minute' || unit === 'second' || unit === 'hour') { + suffix = '-а'; + } else { + suffix = '-й'; + } + + return dirtyNumber + suffix; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..6392cc53 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_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: /^((до )?н\.?\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 (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: '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/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/uz/_lib/formatDistance/index.js new file mode 100644 index 00000000..af567208 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' dan keyin'; + } else { + return result + ' oldin'; + } + } + + return result; +} \ 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..95189347 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..72e2e356 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/localize/index.js @@ -0,0 +1,134 @@ +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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + return number; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/uz/_lib/match/index.js b/node_modules/date-fns/esm/locale/uz/_lib/match/index.js new file mode 100644 index 00000000..344dce40 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..98e9d46c --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' nữa'; + } else { + return result + ' trước'; + } + } + + return result; +} \ 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..5705bba5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..eb39ba9d --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/localize/index.js @@ -0,0 +1,221 @@ +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' + } // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'month', 'quarter', 'week', 'isoWeek', 'dayOfYear', + // 'dayOfMonth' or 'dayOfWeek' + +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(options.unit); + var number = parseInt(dirtyNumber, 10); + + 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 number; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..8c36d848 --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/match/index.js @@ -0,0 +1,106 @@ +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: /^(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 (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; \ 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..0f9ff7e5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} 年' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + '内'; + } else { + return result + '前'; + } + } + + return result; +} \ 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..4715eb0c --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatRelative/index.js @@ -0,0 +1,31 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; + +function checkWeek(_date, _baseDate, _options, baseFormat) { + 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' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(_date, _baseDate, _options, 'eeee p'); + } + + return format; +} \ 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..2cae399f --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/localize/index.js @@ -0,0 +1,148 @@ +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: '夜间' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + + switch (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 (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/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..6a420ee4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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-TW/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatDistance/index.js new file mode 100644 index 00000000..fe6d898b --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +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}} 年' + } +}; +export default function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + '內'; + } else { + return result + '前'; + } + } + + return result; +} \ 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..c0b65a56 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatRelative/index.js @@ -0,0 +1,11 @@ +var formatRelativeLocale = { + lastWeek: "'上個' eeee p", + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: "'下個' eeee p", + other: 'P' +}; +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} \ 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..4de9088b --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/localize/index.js @@ -0,0 +1,148 @@ +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: '夜間' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + var options = dirtyOptions || {}; + var unit = String(options.unit); + + switch (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 (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/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..a29ed87b --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/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 (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; \ 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..a7cbb5eb --- /dev/null +++ b/node_modules/date-fns/esm/max/index.js @@ -0,0 +1,65 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - `max` function now accepts an array of dates rather than spread arguments. + * + * ```javascript + * // Before v2.0.0 + * var date1 = new Date(1989, 6, 10) + * var date2 = new Date(1987, 1, 11) + * var maxDate = max(date1, date2) + * + * // v2.0.0 onward: + * var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)] + * var maxDate = max(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? + * var 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(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..9fb2f515 --- /dev/null +++ b/node_modules/date-fns/esm/max/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..2caf7f68 --- /dev/null +++ b/node_modules/date-fns/esm/milliseconds/index.js @@ -0,0 +1,53 @@ +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 yearInDays = 365.2425; +/** + * @name milliseconds + * @category Millisecond Helpers + * @summary 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 devided by 12. + * + * @description + * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. + * + * @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({ year: 1 }) + * //=> 31556952000 + * + * // 3 months in milliseconds + * milliseconds({ month: 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 * yearInDays; + if (months) totalDays += months * (yearInDays / 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..9616a496 --- /dev/null +++ b/node_modules/date-fns/esm/milliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/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..656b0a33 --- /dev/null +++ b/node_modules/date-fns/esm/min/index.js @@ -0,0 +1,65 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name min + * @category Common Helpers + * @summary Return the earliest of the given dates. + * + * @description + * Return the earliest of the given dates. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - `min` function now accepts an array of dates rather than spread arguments. + * + * ```javascript + * // Before v2.0.0 + * var date1 = new Date(1989, 6, 10) + * var date2 = new Date(1987, 1, 11) + * var minDate = min(date1, date2) + * + * // v2.0.0 onward: + * var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)] + * var minDate = min(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? + * var 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)) { + 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..9fb2f515 --- /dev/null +++ b/node_modules/date-fns/esm/min/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/parse/_lib/parsers/index.js b/node_modules/date-fns/esm/parse/_lib/parsers/index.js new file mode 100644 index 00000000..dd509338 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/index.js @@ -0,0 +1,1503 @@ +import getUTCWeekYear from "../../../_lib/getUTCWeekYear/index.js"; +import setUTCDay from "../../../_lib/setUTCDay/index.js"; +import setUTCISODay from "../../../_lib/setUTCISODay/index.js"; +import setUTCISOWeek from "../../../_lib/setUTCISOWeek/index.js"; +import setUTCWeek from "../../../_lib/setUTCWeek/index.js"; +import startOfUTCISOWeek from "../../../_lib/startOfUTCISOWeek/index.js"; +import startOfUTCWeek from "../../../_lib/startOfUTCWeek/index.js"; +var MILLISECONDS_IN_HOUR = 3600000; +var MILLISECONDS_IN_MINUTE = 60000; +var MILLISECONDS_IN_SECOND = 1000; +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 + +}; +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/ +}; + +function parseNumericPattern(pattern, string, valueCallback) { + var matchResult = string.match(pattern); + + if (!matchResult) { + return null; + } + + var value = parseInt(matchResult[0], 10); + return { + value: valueCallback ? valueCallback(value) : value, + rest: string.slice(matchResult[0].length) + }; +} + +function parseTimezonePattern(pattern, string) { + var matchResult = string.match(pattern); + + if (!matchResult) { + return null; + } // Input is 'Z' + + + if (matchResult[0] === 'Z') { + return { + value: 0, + rest: string.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 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND), + rest: string.slice(matchResult[0].length) + }; +} + +function parseAnyDigitsSigned(string, valueCallback) { + return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback); +} + +function parseNDigits(n, string, valueCallback) { + switch (n) { + case 1: + return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback); + + case 2: + return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback); + + case 3: + return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback); + + case 4: + return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback); + + default: + return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback); + } +} + +function parseNDigitsSigned(n, string, valueCallback) { + switch (n) { + case 1: + return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback); + + case 2: + return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback); + + case 3: + return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback); + + case 4: + return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback); + + default: + return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback); + } +} + +function dayPeriodEnumToHours(enumValue) { + switch (enumValue) { + 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; +} + +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]; // User for validation + +function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +/* + * | | 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 = { + // Era + G: { + priority: 140, + parse: function (string, token, match, _options) { + switch (token) { + // AD, BC + case 'G': + case 'GG': + case 'GGG': + return match.era(string, { + width: 'abbreviated' + }) || match.era(string, { + width: 'narrow' + }); + // A, B + + case 'GGGGG': + return match.era(string, { + width: 'narrow' + }); + // Anno Domini, Before Christ + + case 'GGGG': + default: + return match.era(string, { + width: 'wide' + }) || match.era(string, { + width: 'abbreviated' + }) || match.era(string, { + width: 'narrow' + }); + } + }, + set: function (date, flags, value, _options) { + flags.era = value; + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['R', 'u', 't', 'T'] + }, + // Year + y: { + // 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 | + priority: 130, + parse: function (string, token, match, _options) { + var valueCallback = function (year) { + return { + year: year, + isTwoDigitYear: token === 'yy' + }; + }; + + switch (token) { + case 'y': + return parseNDigits(4, string, valueCallback); + + case 'yo': + return match.ordinalNumber(string, { + unit: 'year', + valueCallback: valueCallback + }); + + default: + return parseNDigits(token.length, string, valueCallback); + } + }, + validate: function (_date, value, _options) { + return value.isTwoDigitYear || value.year > 0; + }, + set: function (date, flags, value, _options) { + 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; + }, + incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T'] + }, + // Local week-numbering year + Y: { + priority: 130, + parse: function (string, token, match, _options) { + var valueCallback = function (year) { + return { + year: year, + isTwoDigitYear: token === 'YY' + }; + }; + + switch (token) { + case 'Y': + return parseNDigits(4, string, valueCallback); + + case 'Yo': + return match.ordinalNumber(string, { + unit: 'year', + valueCallback: valueCallback + }); + + default: + return parseNDigits(token.length, string, valueCallback); + } + }, + validate: function (_date, value, _options) { + return value.isTwoDigitYear || value.year > 0; + }, + set: function (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); + }, + incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] + }, + // ISO week-numbering year + R: { + priority: 130, + parse: function (string, token, _match, _options) { + if (token === 'R') { + return parseNDigitsSigned(4, string); + } + + return parseNDigitsSigned(token.length, string); + }, + set: function (_date, _flags, value, _options) { + var firstWeekOfYear = new Date(0); + firstWeekOfYear.setUTCFullYear(value, 0, 4); + firstWeekOfYear.setUTCHours(0, 0, 0, 0); + return startOfUTCISOWeek(firstWeekOfYear); + }, + incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] + }, + // Extended year + u: { + priority: 130, + parse: function (string, token, _match, _options) { + if (token === 'u') { + return parseNDigitsSigned(4, string); + } + + return parseNDigitsSigned(token.length, string); + }, + set: function (date, _flags, value, _options) { + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T'] + }, + // Quarter + Q: { + priority: 120, + parse: function (string, token, match, _options) { + switch (token) { + // 1, 2, 3, 4 + case 'Q': + case 'QQ': + // 01, 02, 03, 04 + return parseNDigits(token.length, string); + // 1st, 2nd, 3rd, 4th + + case 'Qo': + return match.ordinalNumber(string, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'QQQ': + return match.quarter(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(string, { + width: 'narrow', + context: 'formatting' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'QQQQQ': + return match.quarter(string, { + width: 'narrow', + context: 'formatting' + }); + // 1st quarter, 2nd quarter, ... + + case 'QQQQ': + default: + return match.quarter(string, { + width: 'wide', + context: 'formatting' + }) || match.quarter(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 4; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Stand-alone quarter + q: { + priority: 120, + parse: function (string, token, match, _options) { + switch (token) { + // 1, 2, 3, 4 + case 'q': + case 'qq': + // 01, 02, 03, 04 + return parseNDigits(token.length, string); + // 1st, 2nd, 3rd, 4th + + case 'qo': + return match.ordinalNumber(string, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'qqq': + return match.quarter(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(string, { + width: 'narrow', + context: 'standalone' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'qqqqq': + return match.quarter(string, { + width: 'narrow', + context: 'standalone' + }); + // 1st quarter, 2nd quarter, ... + + case 'qqqq': + default: + return match.quarter(string, { + width: 'wide', + context: 'standalone' + }) || match.quarter(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(string, { + width: 'narrow', + context: 'standalone' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 4; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Month + M: { + priority: 110, + parse: function (string, token, match, _options) { + var valueCallback = function (value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'M': + return parseNumericPattern(numericPatterns.month, string, valueCallback); + // 01, 02, ..., 12 + + case 'MM': + return parseNDigits(2, string, valueCallback); + // 1st, 2nd, ..., 12th + + case 'Mo': + return match.ordinalNumber(string, { + unit: 'month', + valueCallback: valueCallback + }); + // Jan, Feb, ..., Dec + + case 'MMM': + return match.month(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(string, { + width: 'narrow', + context: 'formatting' + }); + // J, F, ..., D + + case 'MMMMM': + return match.month(string, { + width: 'narrow', + context: 'formatting' + }); + // January, February, ..., December + + case 'MMMM': + default: + return match.month(string, { + width: 'wide', + context: 'formatting' + }) || match.month(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 11; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Stand-alone month + L: { + priority: 110, + parse: function (string, token, match, _options) { + var valueCallback = function (value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'L': + return parseNumericPattern(numericPatterns.month, string, valueCallback); + // 01, 02, ..., 12 + + case 'LL': + return parseNDigits(2, string, valueCallback); + // 1st, 2nd, ..., 12th + + case 'Lo': + return match.ordinalNumber(string, { + unit: 'month', + valueCallback: valueCallback + }); + // Jan, Feb, ..., Dec + + case 'LLL': + return match.month(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(string, { + width: 'narrow', + context: 'standalone' + }); + // J, F, ..., D + + case 'LLLLL': + return match.month(string, { + width: 'narrow', + context: 'standalone' + }); + // January, February, ..., December + + case 'LLLL': + default: + return match.month(string, { + width: 'wide', + context: 'standalone' + }) || match.month(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(string, { + width: 'narrow', + context: 'standalone' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 11; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Local week of year + w: { + priority: 100, + parse: function (string, token, match, _options) { + switch (token) { + case 'w': + return parseNumericPattern(numericPatterns.week, string); + + case 'wo': + return match.ordinalNumber(string, { + unit: 'week' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 53; + }, + set: function (date, _flags, value, options) { + return startOfUTCWeek(setUTCWeek(date, value, options), options); + }, + incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] + }, + // ISO week of year + I: { + priority: 100, + parse: function (string, token, match, _options) { + switch (token) { + case 'I': + return parseNumericPattern(numericPatterns.week, string); + + case 'Io': + return match.ordinalNumber(string, { + unit: 'week' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 53; + }, + set: function (date, _flags, value, options) { + return startOfUTCISOWeek(setUTCISOWeek(date, value, options), options); + }, + incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] + }, + // Day of the month + d: { + priority: 90, + subPriority: 1, + parse: function (string, token, match, _options) { + switch (token) { + case 'd': + return parseNumericPattern(numericPatterns.date, string); + + case 'do': + return match.ordinalNumber(string, { + unit: 'date' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (date, value, _options) { + 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]; + } + }, + set: function (date, _flags, value, _options) { + date.setUTCDate(value); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Day of year + D: { + priority: 90, + subPriority: 1, + parse: function (string, token, match, _options) { + switch (token) { + case 'D': + case 'DD': + return parseNumericPattern(numericPatterns.dayOfYear, string); + + case 'Do': + return match.ordinalNumber(string, { + unit: 'date' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (date, value, _options) { + var year = date.getUTCFullYear(); + var isLeapYear = isLeapYearIndex(year); + + if (isLeapYear) { + return value >= 1 && value <= 366; + } else { + return value >= 1 && value <= 365; + } + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth(0, value); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T'] + }, + // Day of week + E: { + priority: 90, + parse: function (string, token, match, _options) { + switch (token) { + // Tue + case 'E': + case 'EE': + case 'EEE': + return match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'EEEEE': + return match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'EEEEEE': + return match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'EEEE': + default: + return match.day(string, { + width: 'wide', + context: 'formatting' + }) || match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 6; + }, + set: function (date, _flags, value, options) { + date = setUTCDay(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T'] + }, + // Local day of week + e: { + priority: 90, + parse: function (string, token, match, options) { + var valueCallback = function (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 parseNDigits(token.length, string, valueCallback); + // 3rd + + case 'eo': + return match.ordinalNumber(string, { + unit: 'day', + valueCallback: valueCallback + }); + // Tue + + case 'eee': + return match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'eeeee': + return match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'eeeeee': + return match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'eeee': + default: + return match.day(string, { + width: 'wide', + context: 'formatting' + }) || match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 6; + }, + set: function (date, _flags, value, options) { + date = setUTCDay(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T'] + }, + // Stand-alone local day of week + c: { + priority: 90, + parse: function (string, token, match, options) { + var valueCallback = function (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 parseNDigits(token.length, string, valueCallback); + // 3rd + + case 'co': + return match.ordinalNumber(string, { + unit: 'day', + valueCallback: valueCallback + }); + // Tue + + case 'ccc': + return match.day(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(string, { + width: 'short', + context: 'standalone' + }) || match.day(string, { + width: 'narrow', + context: 'standalone' + }); + // T + + case 'ccccc': + return match.day(string, { + width: 'narrow', + context: 'standalone' + }); + // Tu + + case 'cccccc': + return match.day(string, { + width: 'short', + context: 'standalone' + }) || match.day(string, { + width: 'narrow', + context: 'standalone' + }); + // Tuesday + + case 'cccc': + default: + return match.day(string, { + width: 'wide', + context: 'standalone' + }) || match.day(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(string, { + width: 'short', + context: 'standalone' + }) || match.day(string, { + width: 'narrow', + context: 'standalone' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 6; + }, + set: function (date, _flags, value, options) { + date = setUTCDay(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T'] + }, + // ISO day of week + i: { + priority: 90, + parse: function (string, token, match, _options) { + var valueCallback = function (value) { + if (value === 0) { + return 7; + } + + return value; + }; + + switch (token) { + // 2 + case 'i': + case 'ii': + // 02 + return parseNDigits(token.length, string); + // 2nd + + case 'io': + return match.ordinalNumber(string, { + unit: 'day' + }); + // Tue + + case 'iii': + return match.day(string, { + width: 'abbreviated', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'short', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + // T + + case 'iiiii': + return match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + // Tu + + case 'iiiiii': + return match.day(string, { + width: 'short', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + // Tuesday + + case 'iiii': + default: + return match.day(string, { + width: 'wide', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'abbreviated', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'short', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 7; + }, + set: function (date, _flags, value, options) { + date = setUTCISODay(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T'] + }, + // AM or PM + a: { + priority: 80, + parse: function (string, token, match, _options) { + switch (token) { + case 'a': + case 'aa': + case 'aaa': + return match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaaa': + return match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaa': + default: + return match.dayPeriod(string, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + }, + incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T'] + }, + // AM, PM, midnight + b: { + priority: 80, + parse: function (string, token, match, _options) { + switch (token) { + case 'b': + case 'bb': + case 'bbb': + return match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbbb': + return match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbb': + default: + return match.dayPeriod(string, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T'] + }, + // in the morning, in the afternoon, in the evening, at night + B: { + priority: 80, + parse: function (string, token, match, _options) { + switch (token) { + case 'B': + case 'BB': + case 'BBB': + return match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBBB': + return match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBB': + default: + return match.dayPeriod(string, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'b', 't', 'T'] + }, + // Hour [1-12] + h: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'h': + return parseNumericPattern(numericPatterns.hour12h, string); + + case 'ho': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 12; + }, + set: function (date, _flags, value, _options) { + 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; + }, + incompatibleTokens: ['H', 'K', 'k', 't', 'T'] + }, + // Hour [0-23] + H: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'H': + return parseNumericPattern(numericPatterns.hour23h, string); + + case 'Ho': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 23; + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(value, 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T'] + }, + // Hour [0-11] + K: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'K': + return parseNumericPattern(numericPatterns.hour11h, string); + + case 'Ko': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 11; + }, + set: function (date, _flags, value, _options) { + 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; + }, + incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T'] + }, + // Hour [1-24] + k: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'k': + return parseNumericPattern(numericPatterns.hour24h, string); + + case 'ko': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 24; + }, + set: function (date, _flags, value, _options) { + var hours = value <= 24 ? value % 24 : value; + date.setUTCHours(hours, 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T'] + }, + // Minute + m: { + priority: 60, + parse: function (string, token, match, _options) { + switch (token) { + case 'm': + return parseNumericPattern(numericPatterns.minute, string); + + case 'mo': + return match.ordinalNumber(string, { + unit: 'minute' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 59; + }, + set: function (date, _flags, value, _options) { + date.setUTCMinutes(value, 0, 0); + return date; + }, + incompatibleTokens: ['t', 'T'] + }, + // Second + s: { + priority: 50, + parse: function (string, token, match, _options) { + switch (token) { + case 's': + return parseNumericPattern(numericPatterns.second, string); + + case 'so': + return match.ordinalNumber(string, { + unit: 'second' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 59; + }, + set: function (date, _flags, value, _options) { + date.setUTCSeconds(value, 0); + return date; + }, + incompatibleTokens: ['t', 'T'] + }, + // Fraction of second + S: { + priority: 30, + parse: function (string, token, _match, _options) { + var valueCallback = function (value) { + return Math.floor(value * Math.pow(10, -token.length + 3)); + }; + + return parseNDigits(token.length, string, valueCallback); + }, + set: function (date, _flags, value, _options) { + date.setUTCMilliseconds(value); + return date; + }, + incompatibleTokens: ['t', 'T'] + }, + // Timezone (ISO-8601. +00:00 is `'Z'`) + X: { + priority: 10, + parse: function (string, token, _match, _options) { + switch (token) { + case 'X': + return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); + + case 'XX': + return parseTimezonePattern(timezonePatterns.basic, string); + + case 'XXXX': + return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); + + case 'XXXXX': + return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); + + case 'XXX': + default: + return parseTimezonePattern(timezonePatterns.extended, string); + } + }, + set: function (date, flags, value, _options) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + }, + incompatibleTokens: ['t', 'T', 'x'] + }, + // Timezone (ISO-8601) + x: { + priority: 10, + parse: function (string, token, _match, _options) { + switch (token) { + case 'x': + return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); + + case 'xx': + return parseTimezonePattern(timezonePatterns.basic, string); + + case 'xxxx': + return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); + + case 'xxxxx': + return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); + + case 'xxx': + default: + return parseTimezonePattern(timezonePatterns.extended, string); + } + }, + set: function (date, flags, value, _options) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + }, + incompatibleTokens: ['t', 'T', 'X'] + }, + // Seconds timestamp + t: { + priority: 40, + parse: function (string, _token, _match, _options) { + return parseAnyDigitsSigned(string); + }, + set: function (_date, _flags, value, _options) { + return [new Date(value * 1000), { + timestampIsSet: true + }]; + }, + incompatibleTokens: '*' + }, + // Milliseconds timestamp + T: { + priority: 20, + parse: function (string, _token, _match, _options) { + return parseAnyDigitsSigned(string); + }, + set: function (_date, _flags, value, _options) { + return [new Date(value), { + timestampIsSet: true + }]; + }, + incompatibleTokens: '*' + } +}; +export default parsers; \ 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..9f9437da --- /dev/null +++ b/node_modules/date-fns/esm/parse/index.js @@ -0,0 +1,551 @@ +import defaultLocale from "../locale/en-US/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 parsers from "./_lib/parsers/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var TIMEZONE_UNIT_PRIORITY = 10; // 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://git.io/fxCyr + * + * 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, Su, Sa | | + * | 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, Su, Sa | 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, Su, Sa | | + * | 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, Su, Sa | | + * | 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, 0001, ..., 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://git.io/fxCyr + * + * 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://git.io/fxCyr + * + * 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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - Old `parse` was renamed to `toDate`. + * Now `parse` is a new function which parses a string using a provided format. + * + * ```javascript + * // Before v2.0.0 + * parse('2016-01-01') + * + * // v2.0.0 onward (toDate no longer accepts a string) + * toDate(1392098430000) // Unix to timestamp + * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date + * parse('2016-01-01', 'yyyy-MM-dd', new Date()) + * ``` + * + * @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://git.io/fxCyr + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://git.io/fxCyr + * @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://git.io/fxCyr + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @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, dirtyOptions) { + requiredArgs(3, arguments); + var dateString = String(dirtyDateString); + var formatString = String(dirtyFormatString); + var options = dirtyOptions || {}; + var locale = options.locale || defaultLocale; + + if (!locale.match) { + throw new RangeError('locale must contain match property'); + } + + var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // 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 localeWeekStartsOn = locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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 = [{ + priority: TIMEZONE_UNIT_PRIORITY, + subPriority: -1, + set: dateToSystemTimezone, + index: 0 + }]; + var i; + var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + + if (firstCharacter === 'p' || firstCharacter === 'P') { + var longFormatter = longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong, subFnOptions); + } + + return substring; + }).join('').match(formattingTokensRegExp); + var usedTokens = []; + + for (i = 0; i < tokens.length; i++) { + var token = tokens[i]; + + if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) { + throwProtectedError(token, formatString, dirtyDateString); + } + + if (!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 = void 0; + + for (var _i = 0; _i < usedTokens.length; _i++) { + var usedToken = usedTokens[_i].token; + + if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) { + incompatibleToken = usedTokens[_i]; + break; + } + } + + 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) { + 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.parse(dateString, token, locale.match, subFnOptions); + + if (!parseResult) { + return new Date(NaN); + } + + setters.push({ + priority: parser.priority, + subPriority: parser.subPriority || 0, + set: parser.set, + validate: parser.validate, + value: parseResult.value, + index: setters.length + }); + 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 new Date(NaN); + } + } + } // Check if the remaining input contains something other than whitespace + + + 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)) { + return new Date(NaN); + } // 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/37 + + + var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date)); + var flags = {}; + + for (i = 0; i < uniquePrioritySetters.length; i++) { + var setter = uniquePrioritySetters[i]; + + if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) { + return new Date(NaN); + } + + var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags) + + if (result[0]) { + utcDate = result[0]; + assign(flags, result[1]); // Result is date + } else { + utcDate = result; + } + } + + return utcDate; +} + +function dateToSystemTimezone(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; +} + +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..4ba9db50 --- /dev/null +++ b/node_modules/date-fns/esm/parse/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, +} + +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..54e99784 --- /dev/null +++ b/node_modules/date-fns/esm/parseISO/index.js @@ -0,0 +1,290 @@ +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_HOUR = 3600000; +var MILLISECONDS_IN_MINUTE = 60000; +var DEFAULT_ADDITIONAL_DIGITS = 2; +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}))?$/; +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The previous `parse` implementation was renamed to `parseISO`. + * + * ```javascript + * // Before v2.0.0 + * parse('2016-01-01') + * + * // v2.0.0 onward + * parseISO('2016-01-01') + * ``` + * + * - `parseISO` now validates separate date and time values in ISO-8601 strings + * and returns `Invalid Date` if the date is invalid. + * + * ```javascript + * parseISO('2018-13-32') + * //=> Invalid Date + * ``` + * + * - `parseISO` now doesn't fall back to `new Date` constructor + * if it fails to parse a string argument. Instead, 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: + * var 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: + * var result = parseISO('+02014101', { additionalDigits: 1 }) + * //=> Fri Apr 11 2014 00:00:00 + */ + +export default function parseISO(argument, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : toInteger(options.additionalDigits); + + 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 (isNaN(date) || !date) { + return new Date(NaN); + } + + var timestamp = date.getTime(); + var time = 0; + var offset; + + if (dateStrings.time) { + time = parseTime(dateStrings.time); + + if (isNaN(time) || time === null) { + 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(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate(), dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); + result.setFullYear(dirtyDate.getUTCFullYear()); + return result; + } + + return new Date(timestamp + time + offset); +} + +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])) { + dateStrings.date = null; + 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: null + }; + var year = captures[1] && parseInt(captures[1]); + var century = captures[2] && parseInt(captures[2]); + 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 null; + var captures = dateString.match(dateRegex); // Invalid ISO-formatted string + + if (!captures) return null; + 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 null; // 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 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + 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 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE); +} + +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; +} + +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..00713b77 --- /dev/null +++ b/node_modules/date-fns/esm/parseISO/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, +} + +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..28aa73ad --- /dev/null +++ b/node_modules/date-fns/esm/parseJSON/index.js @@ -0,0 +1,51 @@ +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+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|\+00:?00)?/); + + if (parts) { + return new Date(Date.UTC(+parts[1], parts[2] - 1, +parts[3], +parts[4], +parts[5], +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..8252b82a --- /dev/null +++ b/node_modules/date-fns/esm/parseJSON/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/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..d797cebb --- /dev/null +++ b/node_modules/date-fns/esm/roundToNearestMinutes/index.js @@ -0,0 +1,54 @@ +import toDate from "../toDate/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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. + * @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: + * var 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: + * var 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) { + if (arguments.length < 1) { + throw new TypeError('1 argument required, but only none provided present'); + } + + var nearestTo = options && 'nearestTo' in options ? toInteger(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 roundedMinutes = Math.floor(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..6840b6c7 --- /dev/null +++ b/node_modules/date-fns/esm/roundToNearestMinutes/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, +} + +declare module.exports: ( + date: Date | number, + options?: { + nearestTo?: number, + } +) => 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/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..02fed54d --- /dev/null +++ b/node_modules/date-fns/esm/set/index.js @@ -0,0 +1,86 @@ +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: + * var 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: + * var 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)) { + 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..9cbf33be --- /dev/null +++ b/node_modules/date-fns/esm/set/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, +} + +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..7be3856b --- /dev/null +++ b/node_modules/date-fns/esm/setDate/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..a4356915 --- /dev/null +++ b/node_modules/date-fns/esm/setDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..465e99a2 --- /dev/null +++ b/node_modules/date-fns/esm/setDay/index.js @@ -0,0 +1,57 @@ +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"; +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ + +export default function setDay(dirtyDate, dirtyDay, dirtyOptions) { + requiredArgs(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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, options); + 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, options); +} \ 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..5014b16a --- /dev/null +++ b/node_modules/date-fns/esm/setDay/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, +} + +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..b5b1c460 --- /dev/null +++ b/node_modules/date-fns/esm/setDayOfYear/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 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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..0447af73 --- /dev/null +++ b/node_modules/date-fns/esm/setDayOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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/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..237f9b3c --- /dev/null +++ b/node_modules/date-fns/esm/setHours/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..ca1a60ec --- /dev/null +++ b/node_modules/date-fns/esm/setHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..59846175 --- /dev/null +++ b/node_modules/date-fns/esm/setISODay/index.js @@ -0,0 +1,38 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..6d4ca391 --- /dev/null +++ b/node_modules/date-fns/esm/setISODay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9624f9b4 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeek/index.js @@ -0,0 +1,37 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..c95423d2 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..cf293911 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeekYear/index.js @@ -0,0 +1,48 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `setISOYear` to `setISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `setWeekYear`. + * + * @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: + * var 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..8ea89ac0 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..8726fa7e --- /dev/null +++ b/node_modules/date-fns/esm/setMilliseconds/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..fa09d6f2 --- /dev/null +++ b/node_modules/date-fns/esm/setMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..99c46d0d --- /dev/null +++ b/node_modules/date-fns/esm/setMinutes/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..6409daa0 --- /dev/null +++ b/node_modules/date-fns/esm/setMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e976b94b --- /dev/null +++ b/node_modules/date-fns/esm/setMonth/index.js @@ -0,0 +1,42 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..d7e76e6f --- /dev/null +++ b/node_modules/date-fns/esm/setMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..3f756200 --- /dev/null +++ b/node_modules/date-fns/esm/setQuarter/index.js @@ -0,0 +1,35 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..7a3ee084 --- /dev/null +++ b/node_modules/date-fns/esm/setQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..d2c8821d --- /dev/null +++ b/node_modules/date-fns/esm/setSeconds/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..1f402f53 --- /dev/null +++ b/node_modules/date-fns/esm/setSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..84bce899 --- /dev/null +++ b/node_modules/date-fns/esm/setWeek/index.js @@ -0,0 +1,57 @@ +import getWeek from "../getWeek/index.js"; +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var 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, dirtyOptions) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var week = toInteger(dirtyWeek); + var diff = getWeek(date, dirtyOptions) - 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..0cbe8029 --- /dev/null +++ b/node_modules/date-fns/esm/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, +} + +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..0d384d93 --- /dev/null +++ b/node_modules/date-fns/esm/setWeekYear/index.js @@ -0,0 +1,68 @@ +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"; +/** + * @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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var 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, dirtyOptions) { + requiredArgs(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); + var date = toDate(dirtyDate); + var weekYear = toInteger(dirtyWeekYear); + var diff = differenceInCalendarDays(date, startOfWeekYear(date, dirtyOptions)); + var firstWeek = new Date(0); + firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + date = startOfWeekYear(firstWeek, dirtyOptions); + 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..9f0b1b93 --- /dev/null +++ b/node_modules/date-fns/esm/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, +} + +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..f18c5d5d --- /dev/null +++ b/node_modules/date-fns/esm/setYear/index.js @@ -0,0 +1,38 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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)) { + 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..fbf67e19 --- /dev/null +++ b/node_modules/date-fns/esm/setYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..0a491b42 --- /dev/null +++ b/node_modules/date-fns/esm/startOfDay/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfDay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..a35515a2 --- /dev/null +++ b/node_modules/date-fns/esm/startOfDecade/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfDecade/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..825a3c58 --- /dev/null +++ b/node_modules/date-fns/esm/startOfHour/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfHour/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e850619b --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeek/index.js @@ -0,0 +1,33 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..155e3bc5 --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeekYear/index.js @@ -0,0 +1,38 @@ +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..dea647e6 --- /dev/null +++ b/node_modules/date-fns/esm/startOfMinute/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfMinute/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9f701482 --- /dev/null +++ b/node_modules/date-fns/esm/startOfMonth/index.js @@ -0,0 +1,32 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9df61003 --- /dev/null +++ b/node_modules/date-fns/esm/startOfQuarter/index.js @@ -0,0 +1,34 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..bdbc509e --- /dev/null +++ b/node_modules/date-fns/esm/startOfSecond/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfSecond/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..68bd14c2 --- /dev/null +++ b/node_modules/date-fns/esm/startOfToday/index.js @@ -0,0 +1,28 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @returns {Date} the start of today + * + * @example + * // If today is 6 October 2014: + * var 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..ae75385e --- /dev/null +++ b/node_modules/date-fns/esm/startOfToday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..dac0ae67 --- /dev/null +++ b/node_modules/date-fns/esm/startOfTomorrow/index.js @@ -0,0 +1,33 @@ +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/esm/startOfTomorrow/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..5e1598a0 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeek/index.js @@ -0,0 +1,54 @@ +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Mon Sep 01 2014 00:00:00 + */ + +export default function startOfWeek(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // 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..f162c393 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeek/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, +} + +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..94606e94 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeekYear/index.js @@ -0,0 +1,62 @@ +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"; +/** + * @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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = startOfWeekYear(new Date(2005, 6, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Mon Jan 03 2005 00:00:00 + */ + +export default function startOfWeekYear(dirtyDate, dirtyOptions) { + requiredArgs(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); + var year = getWeekYear(dirtyDate, dirtyOptions); + var firstWeek = new Date(0); + firstWeek.setFullYear(year, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + var date = startOfWeek(firstWeek, dirtyOptions); + 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..9f321d3a --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeekYear/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, +} + +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..0c7a0dd0 --- /dev/null +++ b/node_modules/date-fns/esm/startOfYear/index.js @@ -0,0 +1,33 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/esm/startOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..173e85a5 --- /dev/null +++ b/node_modules/date-fns/esm/startOfYesterday/index.js @@ -0,0 +1,33 @@ +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/esm/startOfYesterday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..49ce8d03 --- /dev/null +++ b/node_modules/date-fns/esm/sub/index.js @@ -0,0 +1,66 @@ +import subDays from "../subDays/index.js"; +import subMonths from "../subMonths/index.js"; +import toDate from "../toDate/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(dirtyDate, duration) { + requiredArgs(2, arguments); + if (!duration || typeof duration !== 'object') return new Date(NaN); + var years = 'years' in duration ? toInteger(duration.years) : 0; + var months = 'months' in duration ? toInteger(duration.months) : 0; + var weeks = 'weeks' in duration ? toInteger(duration.weeks) : 0; + var days = 'days' in duration ? toInteger(duration.days) : 0; + var hours = 'hours' in duration ? toInteger(duration.hours) : 0; + var minutes = 'minutes' in duration ? toInteger(duration.minutes) : 0; + var seconds = 'seconds' in duration ? toInteger(duration.seconds) : 0; // Subtract years and months + + var dateWithoutMonths = subMonths(toDate(dirtyDate), 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..ddd4be0d --- /dev/null +++ b/node_modules/date-fns/esm/sub/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..5363551f --- /dev/null +++ b/node_modules/date-fns/esm/subBusinessDays/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addBusinessDays from "../addBusinessDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/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: + * var 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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subBusinessDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1869734a --- /dev/null +++ b/node_modules/date-fns/esm/subDays/index.js @@ -0,0 +1,31 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addDays from "../addDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..9185718d --- /dev/null +++ b/node_modules/date-fns/esm/subHours/index.js @@ -0,0 +1,31 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addHours from "../addHours/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..43a9e935 --- /dev/null +++ b/node_modules/date-fns/esm/subISOWeekYears/index.js @@ -0,0 +1,38 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addISOWeekYears from "../addISOWeekYears/index.js"; +import requiredArgs from "../_lib/requiredArgs/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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `subISOYears` to `subISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `setWeekYear`. + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subISOWeekYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..735cc024 --- /dev/null +++ b/node_modules/date-fns/esm/subMilliseconds/index.js @@ -0,0 +1,31 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMilliseconds from "../addMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..fd6aae96 --- /dev/null +++ b/node_modules/date-fns/esm/subMinutes/index.js @@ -0,0 +1,31 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMinutes from "../addMinutes/index.js"; +import requiredArgs from "../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..52f72355 --- /dev/null +++ b/node_modules/date-fns/esm/subMonths/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subMonths/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..5eadcc68 --- /dev/null +++ b/node_modules/date-fns/esm/subQuarters/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subQuarters/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..d77b55ae --- /dev/null +++ b/node_modules/date-fns/esm/subSeconds/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..d6b39ab9 --- /dev/null +++ b/node_modules/date-fns/esm/subWeeks/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subWeeks/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..1bbbb19b --- /dev/null +++ b/node_modules/date-fns/esm/subYears/index.js @@ -0,0 +1,31 @@ +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/esm/subYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..650b5e2f --- /dev/null +++ b/node_modules/date-fns/esm/toDate/index.js @@ -0,0 +1,52 @@ +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://git.io/fjule"); // 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..225abf5b --- /dev/null +++ b/node_modules/date-fns/esm/toDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..e69de29b 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..6427de02 --- /dev/null +++ b/node_modules/date-fns/format/index.js @@ -0,0 +1,454 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = format; + +var _index = _interopRequireDefault(require("../isValid/index.js")); + +var _index2 = _interopRequireDefault(require("../locale/en-US/index.js")); + +var _index3 = _interopRequireDefault(require("../subMilliseconds/index.js")); + +var _index4 = _interopRequireDefault(require("../toDate/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/format/formatters/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/format/longFormatters/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index8 = require("../_lib/protectedTokens/index.js"); + +var _index9 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index10 = _interopRequireDefault(require("../_lib/requiredArgs/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://git.io/fxCyr + * + * 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, Su, Sa | | + * | 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, Su, Sa | 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, Su, Sa | | + * | 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, Su, Sa | | + * | 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, 0001, ..., 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://git.io/fxCyr + * + * 9. `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://git.io/fxCyr + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The second argument is now 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") + * ``` + * + * - 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. + * + * - Characters are now escaped using single quote symbols (`'`) instead of square brackets. + * + * @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://git.io/fxCyr + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://git.io/fxCyr + * @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://git.io/fxCyr + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * var 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' + * var 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: + * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ + +function format(dirtyDate, dirtyFormatStr, dirtyOptions) { + (0, _index10.default)(2, arguments); + var formatStr = String(dirtyFormatStr); + var options = dirtyOptions || {}; + var locale = options.locale || _index2.default; + var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index9.default)(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index9.default)(options.firstWeekContainsDate); // 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 localeWeekStartsOn = locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index9.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index9.default)(options.weekStartsOn); // 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, _index4.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, _index7.default)(originalDate); + var utcDate = (0, _index3.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 = _index6.default[firstCharacter]; + return longFormatter(substring, locale.formatLong, formatterOptions); + } + + 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 = _index5.default[firstCharacter]; + + if (formatter) { + if (!options.useAdditionalWeekYearTokens && (0, _index8.isProtectedWeekYearToken)(substring)) { + (0, _index8.throwProtectedError)(substring, dirtyFormatStr, dirtyDate); + } + + if (!options.useAdditionalDayOfYearTokens && (0, _index8.isProtectedDayOfYearToken)(substring)) { + (0, _index8.throwProtectedError)(substring, dirtyFormatStr, 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) { + return input.match(escapedStringRegExp)[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..7f73e277 --- /dev/null +++ b/node_modules/date-fns/format/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..b5837e57 --- /dev/null +++ b/node_modules/date-fns/formatDistance/index.js @@ -0,0 +1,232 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +var _index = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index2 = _interopRequireDefault(require("../differenceInMonths/index.js")); + +var _index3 = _interopRequireDefault(require("../differenceInSeconds/index.js")); + +var _index4 = _interopRequireDefault(require("../locale/en-US/index.js")); + +var _index5 = _interopRequireDefault(require("../toDate/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/cloneObject/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index8 = _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 | + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `distanceInWords ` to `formatDistance` + * to make its name consistent with `format` and `formatRelative`. + * + * - The order of arguments is swapped to make the function + * 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' + * ``` + * + * @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? + * var 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? + * var 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? + * var 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' + * var result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ + +function formatDistance(dirtyDate, dirtyBaseDate, dirtyOptions) { + (0, _index8.default)(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale || _index4.default; + + if (!locale.formatDistance) { + throw new RangeError('locale must contain formatDistance property'); + } + + var comparison = (0, _index.default)(dirtyDate, dirtyBaseDate); + + if (isNaN(comparison)) { + throw new RangeError('Invalid time value'); + } + + var localizeOptions = (0, _index6.default)(options); + localizeOptions.addSuffix = Boolean(options.addSuffix); + localizeOptions.comparison = comparison; + var dateLeft; + var dateRight; + + if (comparison > 0) { + dateLeft = (0, _index5.default)(dirtyBaseDate); + dateRight = (0, _index5.default)(dirtyDate); + } else { + dateLeft = (0, _index5.default)(dirtyDate); + dateRight = (0, _index5.default)(dirtyBaseDate); + } + + var seconds = (0, _index3.default)(dateRight, dateLeft); + var offsetInSeconds = ((0, _index7.default)(dateRight) - (0, _index7.default)(dateLeft)) / 1000; + var minutes = Math.round((seconds - offsetInSeconds) / 60); + var months; // 0 up to 2 mins + + if (minutes < 2) { + if (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', null, 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, _index2.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..1fa1aaa5 --- /dev/null +++ b/node_modules/date-fns/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..8a28d264 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict/index.js @@ -0,0 +1,265 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistanceStrict; + +var _index = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../differenceInSeconds/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/cloneObject/index.js")); + +var _index6 = _interopRequireDefault(require("../locale/en-US/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MINUTES_IN_DAY = 1440; +var MINUTES_IN_MONTH = 43200; +var MINUTES_IN_YEAR = 525600; +/** + * @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 | + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict` + * to make its name consistent with `format` and `formatRelative`. + * + * - The order of arguments is swapped to make the function + * consistent with `differenceIn...` functions. + * + * ```javascript + * // Before v2.0.0 + * + * distanceInWordsStrict( + * new Date(2015, 0, 2), + * new Date(2014, 6, 2) + * ) //=> '6 months' + * + * // v2.0.0 onward + * + * formatDistanceStrict( + * new Date(2014, 6, 2), + * new Date(2015, 0, 2) + * ) //=> '6 months' + * ``` + * + * - `partialMethod` option 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' + * ``` + * + * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`. + * + * - `unit` option 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' } + * ) + * ``` + * + * @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? + * var 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? + * var 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? + * var 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? + * var 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? + * var 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' + * var result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ + +function formatDistanceStrict(dirtyDate, dirtyBaseDate, dirtyOptions) { + (0, _index7.default)(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale || _index6.default; + + if (!locale.formatDistance) { + throw new RangeError('locale must contain localize.formatDistance property'); + } + + var comparison = (0, _index2.default)(dirtyDate, dirtyBaseDate); + + if (isNaN(comparison)) { + throw new RangeError('Invalid time value'); + } + + var localizeOptions = (0, _index5.default)(options); + localizeOptions.addSuffix = Boolean(options.addSuffix); + localizeOptions.comparison = comparison; + var dateLeft; + var dateRight; + + if (comparison > 0) { + dateLeft = (0, _index3.default)(dirtyBaseDate); + dateRight = (0, _index3.default)(dirtyDate); + } else { + dateLeft = (0, _index3.default)(dirtyDate); + dateRight = (0, _index3.default)(dirtyBaseDate); + } + + var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod); + 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 seconds = (0, _index4.default)(dateRight, dateLeft); + var offsetInSeconds = ((0, _index.default)(dateRight) - (0, _index.default)(dateLeft)) / 1000; + var minutes = roundingMethodFn((seconds - offsetInSeconds) / 60); + var unit; + + if (options.unit == null) { + if (minutes < 1) { + unit = 'second'; + } else if (minutes < 60) { + unit = 'minute'; + } else if (minutes < MINUTES_IN_DAY) { + unit = 'hour'; + } else if (minutes < MINUTES_IN_MONTH) { + unit = 'day'; + } else if (minutes < MINUTES_IN_YEAR) { + unit = 'month'; + } else { + unit = 'year'; + } + } else { + unit = String(options.unit); + } // 0 up to 60 seconds + + + if (unit === 'second') { + return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins + } else if (unit === 'minute') { + return locale.formatDistance('xMinutes', minutes, 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(minutes / MINUTES_IN_DAY); + return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months + } else if (unit === 'month') { + var months = roundingMethodFn(minutes / MINUTES_IN_MONTH); + return locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date + } else if (unit === 'year') { + var years = roundingMethodFn(minutes / 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..056861a4 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..2c732c32 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow/index.js @@ -0,0 +1,124 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `distanceInWordsToNow ` to `formatDistanceToNow` + * to make its name consistent with `format` and `formatRelative`. + * + * ```javascript + * // Before v2.0.0 + * + * distanceInWordsToNow(new Date(2014, 6, 2), { addSuffix: true }) + * //=> 'in 6 months' + * + * // v2.0.0 onward + * + * formatDistanceToNow(new Date(2014, 6, 2), { addSuffix: true }) + * //=> 'in 6 months' + * ``` + * + * @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? + * var 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? + * var 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? + * var 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? + * var eoLocale = require('date-fns/locale/eo') + * var result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +function formatDistanceToNow(dirtyDate, dirtyOptions) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now(), dirtyOptions); +} + +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..2f3fd980 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a9ac3667 --- /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? + * var 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? + * var result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * var 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?? + * var 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 August 2016 in Esperanto? + * var eoLocale = require('date-fns/locale/eo') + * var result = formatDistanceToNowStrict( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ +function formatDistanceToNowStrict(dirtyDate, dirtyOptions) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now(), dirtyOptions); +} + +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..6d99cccd --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..4d5c506c --- /dev/null +++ b/node_modules/date-fns/formatDuration/index.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDuration; + +var _index = _interopRequireDefault(require("../locale/en-US/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 be 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 }, null, { 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) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + if (arguments.length < 1) { + throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); + } + + var format = options.format || defaultFormat; + var locale = options.locale || _index.default; + var zero = options.zero || false; + var delimiter = options.delimiter || ' '; + var result = format.reduce(function (acc, unit) { + var token = "x".concat(unit.replace(/(^.)/, function (m) { + return m.toUpperCase(); + })); + var addChunk = typeof duration[unit] === 'number' && (zero || duration[unit]); + return addChunk ? acc.concat(locale.formatDistance(token, duration[unit])) : 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..ba67d293 --- /dev/null +++ b/node_modules/date-fns/formatDuration/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e76ae9b4 --- /dev/null +++ b/node_modules/date-fns/formatISO/index.js @@ -0,0 +1,120 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatISO; + +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 formatISO + * @category Common Helpers + * @summary Format the date according to the ISO 8601 standard (http://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 time zone, 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.represenation` must be 'date', 'time' or 'complete' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (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 (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 (UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ +function formatISO(dirtyDate, dirtyOptions) { + 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 options = dirtyOptions || {}; + var format = options.format == null ? 'extended' : String(options.format); + var representation = options.representation == null ? 'complete' : String(options.representation); + + 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, _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') { + // Add the timezone. + var offset = originalDate.getTimezoneOffset(); + + if (offset !== 0) { + var absoluteOffset = Math.abs(offset); + var hourOffset = (0, _index3.default)(Math.floor(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 = offset < 0 ? '+' : '-'; + tzOffset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); + } else { + tzOffset = 'Z'; + } + + 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 '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..9e581d38 --- /dev/null +++ b/node_modules/date-fns/formatISO/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..73486f35 --- /dev/null +++ b/node_modules/date-fns/formatISO9075/index.js @@ -0,0 +1,103 @@ +"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.represenation` 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, dirtyOptions) { + 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 options = dirtyOptions || {}; + var format = options.format == null ? 'extended' : String(options.format); + var representation = options.representation == null ? 'complete' : String(options.representation); + + 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..9e581d38 --- /dev/null +++ b/node_modules/date-fns/formatISO9075/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..db14765f --- /dev/null +++ b/node_modules/date-fns/formatISODuration/index.js @@ -0,0 +1,56 @@ +"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 }; } + +/** + * @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 + * 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..72e43fb2 --- /dev/null +++ b/node_modules/date-fns/formatISODuration/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1294b3ef --- /dev/null +++ b/node_modules/date-fns/formatRFC3339/index.js @@ -0,0 +1,98 @@ +"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, dirtyOptions) { + 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 options = dirtyOptions || {}; + var fractionDigits = options.fractionDigits == null ? 0 : (0, _index4.default)(options.fractionDigits); // 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..499f0d39 --- /dev/null +++ b/node_modules/date-fns/formatRFC3339/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..40049843 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..05c684da --- /dev/null +++ b/node_modules/date-fns/formatRelative/index.js @@ -0,0 +1,108 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +var _index = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index2 = _interopRequireDefault(require("../format/index.js")); + +var _index3 = _interopRequireDefault(require("../locale/en-US/index.js")); + +var _index4 = _interopRequireDefault(require("../subMilliseconds/index.js")); + +var _index5 = _interopRequireDefault(require("../toDate/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/requiredArgs/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 | + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + */ +function formatRelative(dirtyDate, dirtyBaseDate, dirtyOptions) { + (0, _index7.default)(2, arguments); + var date = (0, _index5.default)(dirtyDate); + var baseDate = (0, _index5.default)(dirtyBaseDate); + var options = dirtyOptions || {}; + var locale = options.locale || _index3.default; + + 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, _index.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, _index4.default)(date, (0, _index6.default)(date)); + var utcBaseDate = (0, _index4.default)(baseDate, (0, _index6.default)(baseDate)); + var formatStr = locale.formatRelative(token, utcDate, utcBaseDate, options); + return (0, _index2.default)(date, formatStr, options); +} + +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..a95dd75e --- /dev/null +++ b/node_modules/date-fns/formatRelative/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/fp/_lib/convertToFP/index.js b/node_modules/date-fns/fp/_lib/convertToFP/index.js new file mode 100644 index 00000000..914b4cf8 --- /dev/null +++ b/node_modules/date-fns/fp/_lib/convertToFP/index.js @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = convertToFP; + +function convertToFP(fn, arity, a) { + a = a || []; + + if (a.length >= arity) { + return fn.apply(null, a.slice(0, arity).reverse()); + } + + return function () { + var args = Array.prototype.slice.call(arguments); + 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..6314d83a --- /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.js`. Please, don't change it. +var add = (0, _index2.default)(_index.default, 2); +var _default = add; +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..9f0b49ee --- /dev/null +++ b/node_modules/date-fns/fp/add/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f25ef566 --- /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.js`. Please, don't change it. +var addBusinessDays = (0, _index2.default)(_index.default, 2); +var _default = addBusinessDays; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..99108f0c --- /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.js`. Please, don't change it. +var addDays = (0, _index2.default)(_index.default, 2); +var _default = addDays; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addDays/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..0e0a4fa0 --- /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.js`. Please, don't change it. +var addHours = (0, _index2.default)(_index.default, 2); +var _default = addHours; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addHours/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..3e868bf6 --- /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.js`. Please, don't change it. +var addISOWeekYears = (0, _index2.default)(_index.default, 2); +var _default = addISOWeekYears; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..136309f4 --- /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.js`. Please, don't change it. +var addMilliseconds = (0, _index2.default)(_index.default, 2); +var _default = addMilliseconds; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..1a8a6a56 --- /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.js`. Please, don't change it. +var addMinutes = (0, _index2.default)(_index.default, 2); +var _default = addMinutes; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..9677ef39 --- /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.js`. Please, don't change it. +var addMonths = (0, _index2.default)(_index.default, 2); +var _default = addMonths; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addMonths/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..2aa81ce6 --- /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.js`. Please, don't change it. +var addQuarters = (0, _index2.default)(_index.default, 2); +var _default = addQuarters; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..c797e9c4 --- /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.js`. Please, don't change it. +var addSeconds = (0, _index2.default)(_index.default, 2); +var _default = addSeconds; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..0c9d93a4 --- /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.js`. Please, don't change it. +var addWeeks = (0, _index2.default)(_index.default, 2); +var _default = addWeeks; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..18fb7ec3 --- /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.js`. Please, don't change it. +var addYears = (0, _index2.default)(_index.default, 2); +var _default = addYears; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/addYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..263c7842 --- /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.js`. Please, don't change it. +var areIntervalsOverlapping = (0, _index2.default)(_index.default, 2); +var _default = areIntervalsOverlapping; +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..6f8df81b --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..39043c2a --- /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.js`. Please, don't change it. +var areIntervalsOverlappingWithOptions = (0, _index2.default)(_index.default, 3); +var _default = areIntervalsOverlappingWithOptions; +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..f9199fa2 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..359568eb --- /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.js`. Please, don't change it. +var closestIndexTo = (0, _index2.default)(_index.default, 2); +var _default = closestIndexTo; +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..90fbe5d5 --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5cabafc7 --- /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.js`. Please, don't change it. +var closestTo = (0, _index2.default)(_index.default, 2); +var _default = closestTo; +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..63875509 --- /dev/null +++ b/node_modules/date-fns/fp/closestTo/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..90743dc8 --- /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.js`. Please, don't change it. +var compareAsc = (0, _index2.default)(_index.default, 2); +var _default = compareAsc; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e4dcb17d --- /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.js`. Please, don't change it. +var compareDesc = (0, _index2.default)(_index.default, 2); +var _default = compareDesc; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f1984ec9 --- /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.js`. Please, don't change it. +var differenceInBusinessDays = (0, _index2.default)(_index.default, 2); +var _default = differenceInBusinessDays; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..614c0879 --- /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.js`. Please, don't change it. +var differenceInCalendarDays = (0, _index2.default)(_index.default, 2); +var _default = differenceInCalendarDays; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f7021cc5 --- /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.js`. Please, don't change it. +var differenceInCalendarISOWeekYears = (0, _index2.default)(_index.default, 2); +var _default = differenceInCalendarISOWeekYears; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..53d6420a --- /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.js`. Please, don't change it. +var differenceInCalendarISOWeeks = (0, _index2.default)(_index.default, 2); +var _default = differenceInCalendarISOWeeks; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..caffac1a --- /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.js`. Please, don't change it. +var differenceInCalendarMonths = (0, _index2.default)(_index.default, 2); +var _default = differenceInCalendarMonths; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..4e68bdac --- /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.js`. Please, don't change it. +var differenceInCalendarQuarters = (0, _index2.default)(_index.default, 2); +var _default = differenceInCalendarQuarters; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..09f3cbc1 --- /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.js`. Please, don't change it. +var differenceInCalendarWeeks = (0, _index2.default)(_index.default, 2); +var _default = differenceInCalendarWeeks; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..92aa2be6 --- /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.js`. Please, don't change it. +var differenceInCalendarWeeksWithOptions = (0, _index2.default)(_index.default, 3); +var _default = differenceInCalendarWeeksWithOptions; +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..f6a6a698 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a50d278f --- /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.js`. Please, don't change it. +var differenceInCalendarYears = (0, _index2.default)(_index.default, 2); +var _default = differenceInCalendarYears; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..d5ed085d --- /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.js`. Please, don't change it. +var differenceInDays = (0, _index2.default)(_index.default, 2); +var _default = differenceInDays; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..cb6914ed --- /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.js`. Please, don't change it. +var differenceInHours = (0, _index2.default)(_index.default, 2); +var _default = differenceInHours; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..86d58127 --- /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.js`. Please, don't change it. +var differenceInISOWeekYears = (0, _index2.default)(_index.default, 2); +var _default = differenceInISOWeekYears; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5be011bf --- /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.js`. Please, don't change it. +var differenceInMilliseconds = (0, _index2.default)(_index.default, 2); +var _default = differenceInMilliseconds; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..659e4095 --- /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.js`. Please, don't change it. +var differenceInMinutes = (0, _index2.default)(_index.default, 2); +var _default = differenceInMinutes; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b67a3b0d --- /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.js`. Please, don't change it. +var differenceInMonths = (0, _index2.default)(_index.default, 2); +var _default = differenceInMonths; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a192dd14 --- /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.js`. Please, don't change it. +var differenceInQuarters = (0, _index2.default)(_index.default, 2); +var _default = differenceInQuarters; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5e8d490f --- /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.js`. Please, don't change it. +var differenceInSeconds = (0, _index2.default)(_index.default, 2); +var _default = differenceInSeconds; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..161d84dc --- /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.js`. Please, don't change it. +var differenceInWeeks = (0, _index2.default)(_index.default, 2); +var _default = differenceInWeeks; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..3bc8b69d --- /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.js`. Please, don't change it. +var differenceInYears = (0, _index2.default)(_index.default, 2); +var _default = differenceInYears; +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..3e690072 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..40375070 --- /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.js`. Please, don't change it. +var eachDayOfInterval = (0, _index2.default)(_index.default, 1); +var _default = eachDayOfInterval; +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..c49503ab --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a5c2df3c --- /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.js`. Please, don't change it. +var eachDayOfIntervalWithOptions = (0, _index2.default)(_index.default, 2); +var _default = eachDayOfIntervalWithOptions; +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..f1fc6cf6 --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..1b140cd2 --- /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.js`. Please, don't change it. +var eachHourOfInterval = (0, _index2.default)(_index.default, 1); +var _default = eachHourOfInterval; +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..c49503ab --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..069905b4 --- /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.js`. Please, don't change it. +var eachHourOfIntervalWithOptions = (0, _index2.default)(_index.default, 2); +var _default = eachHourOfIntervalWithOptions; +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..f1fc6cf6 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f8c9e3e8 --- /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.js`. Please, don't change it. +var eachMonthOfInterval = (0, _index2.default)(_index.default, 1); +var _default = eachMonthOfInterval; +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..c49503ab --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b4f5ea25 --- /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.js`. Please, don't change it. +var eachQuarterOfInterval = (0, _index2.default)(_index.default, 1); +var _default = eachQuarterOfInterval; +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..c49503ab --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..646e9e4c --- /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.js`. Please, don't change it. +var eachWeekOfInterval = (0, _index2.default)(_index.default, 1); +var _default = eachWeekOfInterval; +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..c49503ab --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f86a9b61 --- /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.js`. Please, don't change it. +var eachWeekOfIntervalWithOptions = (0, _index2.default)(_index.default, 2); +var _default = eachWeekOfIntervalWithOptions; +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..c373b9e8 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..c938c907 --- /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.js`. Please, don't change it. +var eachWeekendOfInterval = (0, _index2.default)(_index.default, 1); +var _default = eachWeekendOfInterval; +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..c49503ab --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..795b3e8d --- /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.js`. Please, don't change it. +var eachWeekendOfMonth = (0, _index2.default)(_index.default, 1); +var _default = eachWeekendOfMonth; +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..4deed11e --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f806b388 --- /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.js`. Please, don't change it. +var eachWeekendOfYear = (0, _index2.default)(_index.default, 1); +var _default = eachWeekendOfYear; +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..4deed11e --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..97d90ffe --- /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.js`. Please, don't change it. +var eachYearOfInterval = (0, _index2.default)(_index.default, 1); +var _default = eachYearOfInterval; +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..c49503ab --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..24fc42c0 --- /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.js`. Please, don't change it. +var endOfDay = (0, _index2.default)(_index.default, 1); +var _default = endOfDay; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..2bcd7f34 --- /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.js`. Please, don't change it. +var endOfDecade = (0, _index2.default)(_index.default, 1); +var _default = endOfDecade; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..4bb38702 --- /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.js`. Please, don't change it. +var endOfDecadeWithOptions = (0, _index2.default)(_index.default, 2); +var _default = endOfDecadeWithOptions; +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..2944a51a --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..eaf07223 --- /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.js`. Please, don't change it. +var endOfHour = (0, _index2.default)(_index.default, 1); +var _default = endOfHour; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..2f94ba26 --- /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.js`. Please, don't change it. +var endOfISOWeek = (0, _index2.default)(_index.default, 1); +var _default = endOfISOWeek; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..7e0aa760 --- /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.js`. Please, don't change it. +var endOfISOWeekYear = (0, _index2.default)(_index.default, 1); +var _default = endOfISOWeekYear; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..1d8ad354 --- /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.js`. Please, don't change it. +var endOfMinute = (0, _index2.default)(_index.default, 1); +var _default = endOfMinute; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..66955391 --- /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.js`. Please, don't change it. +var endOfMonth = (0, _index2.default)(_index.default, 1); +var _default = endOfMonth; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..17607ae8 --- /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.js`. Please, don't change it. +var endOfQuarter = (0, _index2.default)(_index.default, 1); +var _default = endOfQuarter; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..3d4eedcd --- /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.js`. Please, don't change it. +var endOfSecond = (0, _index2.default)(_index.default, 1); +var _default = endOfSecond; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..9a5e8112 --- /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.js`. Please, don't change it. +var endOfWeek = (0, _index2.default)(_index.default, 1); +var _default = endOfWeek; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..43216a48 --- /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.js`. Please, don't change it. +var endOfWeekWithOptions = (0, _index2.default)(_index.default, 2); +var _default = endOfWeekWithOptions; +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..52687aa6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e3f9b412 --- /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.js`. Please, don't change it. +var endOfYear = (0, _index2.default)(_index.default, 1); +var _default = endOfYear; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..97bee1dc --- /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.js`. Please, don't change it. +var format = (0, _index2.default)(_index.default, 2); +var _default = format; +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..3fe0835f --- /dev/null +++ b/node_modules/date-fns/fp/format/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..81a7b3dc --- /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.js`. Please, don't change it. +var formatDistance = (0, _index2.default)(_index.default, 2); +var _default = formatDistance; +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..fd2a0f90 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..2fa487d5 --- /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.js`. Please, don't change it. +var formatDistanceStrict = (0, _index2.default)(_index.default, 2); +var _default = formatDistanceStrict; +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..fd2a0f90 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..9fd20c4f --- /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.js`. Please, don't change it. +var formatDistanceStrictWithOptions = (0, _index2.default)(_index.default, 3); +var _default = formatDistanceStrictWithOptions; +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..828653b5 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..1225fd56 --- /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.js`. Please, don't change it. +var formatDistanceWithOptions = (0, _index2.default)(_index.default, 3); +var _default = formatDistanceWithOptions; +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..b7d22d19 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b40010f3 --- /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.js`. Please, don't change it. +var formatDuration = (0, _index2.default)(_index.default, 1); +var _default = formatDuration; +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..c94df096 --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..bff3ba49 --- /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.js`. Please, don't change it. +var formatDurationWithOptions = (0, _index2.default)(_index.default, 2); +var _default = formatDurationWithOptions; +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..23943145 --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..c448a8f2 --- /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.js`. Please, don't change it. +var formatISO = (0, _index2.default)(_index.default, 1); +var _default = formatISO; +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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..ce89bf81 --- /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.js`. Please, don't change it. +var formatISO9075 = (0, _index2.default)(_index.default, 1); +var _default = formatISO9075; +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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a9715c8b --- /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.js`. Please, don't change it. +var formatISO9075WithOptions = (0, _index2.default)(_index.default, 2); +var _default = formatISO9075WithOptions; +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..c64426ed --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..19d75fdb --- /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.js`. Please, don't change it. +var formatISODuration = (0, _index2.default)(_index.default, 1); +var _default = formatISODuration; +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..c94df096 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..6ddfb310 --- /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.js`. Please, don't change it. +var formatISOWithOptions = (0, _index2.default)(_index.default, 2); +var _default = formatISOWithOptions; +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..c64426ed --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..05037b41 --- /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.js`. Please, don't change it. +var formatRFC3339 = (0, _index2.default)(_index.default, 1); +var _default = formatRFC3339; +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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..70bf55ab --- /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.js`. Please, don't change it. +var formatRFC3339WithOptions = (0, _index2.default)(_index.default, 2); +var _default = formatRFC3339WithOptions; +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..421763b3 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..cd02191b --- /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.js`. Please, don't change it. +var formatRFC7231 = (0, _index2.default)(_index.default, 1); +var _default = formatRFC7231; +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..01f15cd9 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..166c310d --- /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.js`. Please, don't change it. +var formatRelative = (0, _index2.default)(_index.default, 2); +var _default = formatRelative; +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..fd2a0f90 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..4c0f3b08 --- /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.js`. Please, don't change it. +var formatRelativeWithOptions = (0, _index2.default)(_index.default, 3); +var _default = formatRelativeWithOptions; +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..2765a7dc --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..fe54e256 --- /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.js`. Please, don't change it. +var formatWithOptions = (0, _index2.default)(_index.default, 3); +var _default = formatWithOptions; +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..36e22421 --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..26500b8c --- /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.js`. Please, don't change it. +var fromUnixTime = (0, _index2.default)(_index.default, 1); +var _default = fromUnixTime; +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..b49b31d1 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..0353fdba --- /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.js`. Please, don't change it. +var getDate = (0, _index2.default)(_index.default, 1); +var _default = getDate; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..9a23b4fb --- /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.js`. Please, don't change it. +var getDay = (0, _index2.default)(_index.default, 1); +var _default = getDay; +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..21212366 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..fb626d4f --- /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.js`. Please, don't change it. +var getDayOfYear = (0, _index2.default)(_index.default, 1); +var _default = getDayOfYear; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a8aaf298 --- /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.js`. Please, don't change it. +var getDaysInMonth = (0, _index2.default)(_index.default, 1); +var _default = getDaysInMonth; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5d4bb89b --- /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.js`. Please, don't change it. +var getDaysInYear = (0, _index2.default)(_index.default, 1); +var _default = getDaysInYear; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..2107f829 --- /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.js`. Please, don't change it. +var getDecade = (0, _index2.default)(_index.default, 1); +var _default = getDecade; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..818d7cee --- /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.js`. Please, don't change it. +var getHours = (0, _index2.default)(_index.default, 1); +var _default = getHours; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a9e1d371 --- /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.js`. Please, don't change it. +var getISODay = (0, _index2.default)(_index.default, 1); +var _default = getISODay; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..66f9c8b1 --- /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.js`. Please, don't change it. +var getISOWeek = (0, _index2.default)(_index.default, 1); +var _default = getISOWeek; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..658fe2d9 --- /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.js`. Please, don't change it. +var getISOWeekYear = (0, _index2.default)(_index.default, 1); +var _default = getISOWeekYear; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..af4644a4 --- /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.js`. Please, don't change it. +var getISOWeeksInYear = (0, _index2.default)(_index.default, 1); +var _default = getISOWeeksInYear; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..39da567f --- /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.js`. Please, don't change it. +var getMilliseconds = (0, _index2.default)(_index.default, 1); +var _default = getMilliseconds; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5d8c50ed --- /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.js`. Please, don't change it. +var getMinutes = (0, _index2.default)(_index.default, 1); +var _default = getMinutes; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..66fb5329 --- /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.js`. Please, don't change it. +var getMonth = (0, _index2.default)(_index.default, 1); +var _default = getMonth; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b5913512 --- /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.js`. Please, don't change it. +var getOverlappingDaysInIntervals = (0, _index2.default)(_index.default, 2); +var _default = getOverlappingDaysInIntervals; +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..5a5dce24 --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e70c5e69 --- /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.js`. Please, don't change it. +var getQuarter = (0, _index2.default)(_index.default, 1); +var _default = getQuarter; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b9da5c23 --- /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.js`. Please, don't change it. +var getSeconds = (0, _index2.default)(_index.default, 1); +var _default = getSeconds; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5c6b9b1b --- /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.js`. Please, don't change it. +var getTime = (0, _index2.default)(_index.default, 1); +var _default = getTime; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..ab1814f4 --- /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.js`. Please, don't change it. +var getUnixTime = (0, _index2.default)(_index.default, 1); +var _default = getUnixTime; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..8ab73742 --- /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.js`. Please, don't change it. +var getWeek = (0, _index2.default)(_index.default, 1); +var _default = getWeek; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/getWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..1906f083 --- /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.js`. Please, don't change it. +var getWeekOfMonth = (0, _index2.default)(_index.default, 1); +var _default = getWeekOfMonth; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a2abe55f --- /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.js`. Please, don't change it. +var getWeekOfMonthWithOptions = (0, _index2.default)(_index.default, 2); +var _default = getWeekOfMonthWithOptions; +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..52f7aa74 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..71872005 --- /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.js`. Please, don't change it. +var getWeekWithOptions = (0, _index2.default)(_index.default, 2); +var _default = getWeekWithOptions; +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..d0fd53a7 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..bcca76c6 --- /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.js`. Please, don't change it. +var getWeekYear = (0, _index2.default)(_index.default, 1); +var _default = getWeekYear; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..bf72a440 --- /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.js`. Please, don't change it. +var getWeekYearWithOptions = (0, _index2.default)(_index.default, 2); +var _default = getWeekYearWithOptions; +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..d0fd53a7 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..dfa4fb5b --- /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.js`. Please, don't change it. +var getWeeksInMonth = (0, _index2.default)(_index.default, 1); +var _default = getWeeksInMonth; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..c4a55632 --- /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.js`. Please, don't change it. +var getWeeksInMonthWithOptions = (0, _index2.default)(_index.default, 2); +var _default = getWeeksInMonthWithOptions; +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..52f7aa74 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..bc878126 --- /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.js`. Please, don't change it. +var getYear = (0, _index2.default)(_index.default, 1); +var _default = getYear; +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..dee8533d --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/fp/index.js b/node_modules/date-fns/fp/index.js new file mode 100644 index 00000000..fd07f58d --- /dev/null +++ b/node_modules/date-fns/fp/index.js @@ -0,0 +1,1885 @@ +"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, + closestIndexTo: true, + closestTo: true, + compareAsc: true, + compareDesc: true, + differenceInBusinessDays: true, + differenceInCalendarDays: true, + differenceInCalendarISOWeekYears: true, + differenceInCalendarISOWeeks: true, + differenceInCalendarMonths: true, + differenceInCalendarQuarters: true, + differenceInCalendarWeeks: true, + differenceInCalendarWeeksWithOptions: 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, + eachDayOfIntervalWithOptions: true, + eachHourOfInterval: true, + eachHourOfIntervalWithOptions: 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, + intervalToDuration: 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, + min: true, + parse: true, + parseISO: true, + parseISOWithOptions: true, + parseJSON: true, + parseWithOptions: true, + roundToNearestMinutes: true, + roundToNearestMinutesWithOptions: 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 +}; +Object.defineProperty(exports, "add", { + enumerable: true, + get: function () { + return _index.default; + } +}); +Object.defineProperty(exports, "addBusinessDays", { + enumerable: true, + get: function () { + return _index2.default; + } +}); +Object.defineProperty(exports, "addDays", { + enumerable: true, + get: function () { + return _index3.default; + } +}); +Object.defineProperty(exports, "addHours", { + enumerable: true, + get: function () { + return _index4.default; + } +}); +Object.defineProperty(exports, "addISOWeekYears", { + enumerable: true, + get: function () { + return _index5.default; + } +}); +Object.defineProperty(exports, "addMilliseconds", { + enumerable: true, + get: function () { + return _index6.default; + } +}); +Object.defineProperty(exports, "addMinutes", { + enumerable: true, + get: function () { + return _index7.default; + } +}); +Object.defineProperty(exports, "addMonths", { + enumerable: true, + get: function () { + return _index8.default; + } +}); +Object.defineProperty(exports, "addQuarters", { + enumerable: true, + get: function () { + return _index9.default; + } +}); +Object.defineProperty(exports, "addSeconds", { + enumerable: true, + get: function () { + return _index10.default; + } +}); +Object.defineProperty(exports, "addWeeks", { + enumerable: true, + get: function () { + return _index11.default; + } +}); +Object.defineProperty(exports, "addYears", { + enumerable: true, + get: function () { + return _index12.default; + } +}); +Object.defineProperty(exports, "areIntervalsOverlapping", { + enumerable: true, + get: function () { + return _index13.default; + } +}); +Object.defineProperty(exports, "areIntervalsOverlappingWithOptions", { + enumerable: true, + get: function () { + return _index14.default; + } +}); +Object.defineProperty(exports, "closestIndexTo", { + enumerable: true, + get: function () { + return _index15.default; + } +}); +Object.defineProperty(exports, "closestTo", { + enumerable: true, + get: function () { + return _index16.default; + } +}); +Object.defineProperty(exports, "compareAsc", { + enumerable: true, + get: function () { + return _index17.default; + } +}); +Object.defineProperty(exports, "compareDesc", { + enumerable: true, + get: function () { + return _index18.default; + } +}); +Object.defineProperty(exports, "differenceInBusinessDays", { + enumerable: true, + get: function () { + return _index19.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarDays", { + enumerable: true, + get: function () { + return _index20.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeekYears", { + enumerable: true, + get: function () { + return _index21.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeeks", { + enumerable: true, + get: function () { + return _index22.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarMonths", { + enumerable: true, + get: function () { + return _index23.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarQuarters", { + enumerable: true, + get: function () { + return _index24.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarWeeks", { + enumerable: true, + get: function () { + return _index25.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarWeeksWithOptions", { + enumerable: true, + get: function () { + return _index26.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarYears", { + enumerable: true, + get: function () { + return _index27.default; + } +}); +Object.defineProperty(exports, "differenceInDays", { + enumerable: true, + get: function () { + return _index28.default; + } +}); +Object.defineProperty(exports, "differenceInHours", { + enumerable: true, + get: function () { + return _index29.default; + } +}); +Object.defineProperty(exports, "differenceInISOWeekYears", { + enumerable: true, + get: function () { + return _index30.default; + } +}); +Object.defineProperty(exports, "differenceInMilliseconds", { + enumerable: true, + get: function () { + return _index31.default; + } +}); +Object.defineProperty(exports, "differenceInMinutes", { + enumerable: true, + get: function () { + return _index32.default; + } +}); +Object.defineProperty(exports, "differenceInMonths", { + enumerable: true, + get: function () { + return _index33.default; + } +}); +Object.defineProperty(exports, "differenceInQuarters", { + enumerable: true, + get: function () { + return _index34.default; + } +}); +Object.defineProperty(exports, "differenceInSeconds", { + enumerable: true, + get: function () { + return _index35.default; + } +}); +Object.defineProperty(exports, "differenceInWeeks", { + enumerable: true, + get: function () { + return _index36.default; + } +}); +Object.defineProperty(exports, "differenceInYears", { + enumerable: true, + get: function () { + return _index37.default; + } +}); +Object.defineProperty(exports, "eachDayOfInterval", { + enumerable: true, + get: function () { + return _index38.default; + } +}); +Object.defineProperty(exports, "eachDayOfIntervalWithOptions", { + enumerable: true, + get: function () { + return _index39.default; + } +}); +Object.defineProperty(exports, "eachHourOfInterval", { + enumerable: true, + get: function () { + return _index40.default; + } +}); +Object.defineProperty(exports, "eachHourOfIntervalWithOptions", { + enumerable: true, + get: function () { + return _index41.default; + } +}); +Object.defineProperty(exports, "eachMonthOfInterval", { + enumerable: true, + get: function () { + return _index42.default; + } +}); +Object.defineProperty(exports, "eachQuarterOfInterval", { + enumerable: true, + get: function () { + return _index43.default; + } +}); +Object.defineProperty(exports, "eachWeekOfInterval", { + enumerable: true, + get: function () { + return _index44.default; + } +}); +Object.defineProperty(exports, "eachWeekOfIntervalWithOptions", { + enumerable: true, + get: function () { + return _index45.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfInterval", { + enumerable: true, + get: function () { + return _index46.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfMonth", { + enumerable: true, + get: function () { + return _index47.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfYear", { + enumerable: true, + get: function () { + return _index48.default; + } +}); +Object.defineProperty(exports, "eachYearOfInterval", { + enumerable: true, + get: function () { + return _index49.default; + } +}); +Object.defineProperty(exports, "endOfDay", { + enumerable: true, + get: function () { + return _index50.default; + } +}); +Object.defineProperty(exports, "endOfDecade", { + enumerable: true, + get: function () { + return _index51.default; + } +}); +Object.defineProperty(exports, "endOfDecadeWithOptions", { + enumerable: true, + get: function () { + return _index52.default; + } +}); +Object.defineProperty(exports, "endOfHour", { + enumerable: true, + get: function () { + return _index53.default; + } +}); +Object.defineProperty(exports, "endOfISOWeek", { + enumerable: true, + get: function () { + return _index54.default; + } +}); +Object.defineProperty(exports, "endOfISOWeekYear", { + enumerable: true, + get: function () { + return _index55.default; + } +}); +Object.defineProperty(exports, "endOfMinute", { + enumerable: true, + get: function () { + return _index56.default; + } +}); +Object.defineProperty(exports, "endOfMonth", { + enumerable: true, + get: function () { + return _index57.default; + } +}); +Object.defineProperty(exports, "endOfQuarter", { + enumerable: true, + get: function () { + return _index58.default; + } +}); +Object.defineProperty(exports, "endOfSecond", { + enumerable: true, + get: function () { + return _index59.default; + } +}); +Object.defineProperty(exports, "endOfWeek", { + enumerable: true, + get: function () { + return _index60.default; + } +}); +Object.defineProperty(exports, "endOfWeekWithOptions", { + enumerable: true, + get: function () { + return _index61.default; + } +}); +Object.defineProperty(exports, "endOfYear", { + enumerable: true, + get: function () { + return _index62.default; + } +}); +Object.defineProperty(exports, "format", { + enumerable: true, + get: function () { + return _index63.default; + } +}); +Object.defineProperty(exports, "formatDistance", { + enumerable: true, + get: function () { + return _index64.default; + } +}); +Object.defineProperty(exports, "formatDistanceStrict", { + enumerable: true, + get: function () { + return _index65.default; + } +}); +Object.defineProperty(exports, "formatDistanceStrictWithOptions", { + enumerable: true, + get: function () { + return _index66.default; + } +}); +Object.defineProperty(exports, "formatDistanceWithOptions", { + enumerable: true, + get: function () { + return _index67.default; + } +}); +Object.defineProperty(exports, "formatDuration", { + enumerable: true, + get: function () { + return _index68.default; + } +}); +Object.defineProperty(exports, "formatDurationWithOptions", { + enumerable: true, + get: function () { + return _index69.default; + } +}); +Object.defineProperty(exports, "formatISO", { + enumerable: true, + get: function () { + return _index70.default; + } +}); +Object.defineProperty(exports, "formatISO9075", { + enumerable: true, + get: function () { + return _index71.default; + } +}); +Object.defineProperty(exports, "formatISO9075WithOptions", { + enumerable: true, + get: function () { + return _index72.default; + } +}); +Object.defineProperty(exports, "formatISODuration", { + enumerable: true, + get: function () { + return _index73.default; + } +}); +Object.defineProperty(exports, "formatISOWithOptions", { + enumerable: true, + get: function () { + return _index74.default; + } +}); +Object.defineProperty(exports, "formatRFC3339", { + enumerable: true, + get: function () { + return _index75.default; + } +}); +Object.defineProperty(exports, "formatRFC3339WithOptions", { + enumerable: true, + get: function () { + return _index76.default; + } +}); +Object.defineProperty(exports, "formatRFC7231", { + enumerable: true, + get: function () { + return _index77.default; + } +}); +Object.defineProperty(exports, "formatRelative", { + enumerable: true, + get: function () { + return _index78.default; + } +}); +Object.defineProperty(exports, "formatRelativeWithOptions", { + enumerable: true, + get: function () { + return _index79.default; + } +}); +Object.defineProperty(exports, "formatWithOptions", { + enumerable: true, + get: function () { + return _index80.default; + } +}); +Object.defineProperty(exports, "fromUnixTime", { + enumerable: true, + get: function () { + return _index81.default; + } +}); +Object.defineProperty(exports, "getDate", { + enumerable: true, + get: function () { + return _index82.default; + } +}); +Object.defineProperty(exports, "getDay", { + enumerable: true, + get: function () { + return _index83.default; + } +}); +Object.defineProperty(exports, "getDayOfYear", { + enumerable: true, + get: function () { + return _index84.default; + } +}); +Object.defineProperty(exports, "getDaysInMonth", { + enumerable: true, + get: function () { + return _index85.default; + } +}); +Object.defineProperty(exports, "getDaysInYear", { + enumerable: true, + get: function () { + return _index86.default; + } +}); +Object.defineProperty(exports, "getDecade", { + enumerable: true, + get: function () { + return _index87.default; + } +}); +Object.defineProperty(exports, "getHours", { + enumerable: true, + get: function () { + return _index88.default; + } +}); +Object.defineProperty(exports, "getISODay", { + enumerable: true, + get: function () { + return _index89.default; + } +}); +Object.defineProperty(exports, "getISOWeek", { + enumerable: true, + get: function () { + return _index90.default; + } +}); +Object.defineProperty(exports, "getISOWeekYear", { + enumerable: true, + get: function () { + return _index91.default; + } +}); +Object.defineProperty(exports, "getISOWeeksInYear", { + enumerable: true, + get: function () { + return _index92.default; + } +}); +Object.defineProperty(exports, "getMilliseconds", { + enumerable: true, + get: function () { + return _index93.default; + } +}); +Object.defineProperty(exports, "getMinutes", { + enumerable: true, + get: function () { + return _index94.default; + } +}); +Object.defineProperty(exports, "getMonth", { + enumerable: true, + get: function () { + return _index95.default; + } +}); +Object.defineProperty(exports, "getOverlappingDaysInIntervals", { + enumerable: true, + get: function () { + return _index96.default; + } +}); +Object.defineProperty(exports, "getQuarter", { + enumerable: true, + get: function () { + return _index97.default; + } +}); +Object.defineProperty(exports, "getSeconds", { + enumerable: true, + get: function () { + return _index98.default; + } +}); +Object.defineProperty(exports, "getTime", { + enumerable: true, + get: function () { + return _index99.default; + } +}); +Object.defineProperty(exports, "getUnixTime", { + enumerable: true, + get: function () { + return _index100.default; + } +}); +Object.defineProperty(exports, "getWeek", { + enumerable: true, + get: function () { + return _index101.default; + } +}); +Object.defineProperty(exports, "getWeekOfMonth", { + enumerable: true, + get: function () { + return _index102.default; + } +}); +Object.defineProperty(exports, "getWeekOfMonthWithOptions", { + enumerable: true, + get: function () { + return _index103.default; + } +}); +Object.defineProperty(exports, "getWeekWithOptions", { + enumerable: true, + get: function () { + return _index104.default; + } +}); +Object.defineProperty(exports, "getWeekYear", { + enumerable: true, + get: function () { + return _index105.default; + } +}); +Object.defineProperty(exports, "getWeekYearWithOptions", { + enumerable: true, + get: function () { + return _index106.default; + } +}); +Object.defineProperty(exports, "getWeeksInMonth", { + enumerable: true, + get: function () { + return _index107.default; + } +}); +Object.defineProperty(exports, "getWeeksInMonthWithOptions", { + enumerable: true, + get: function () { + return _index108.default; + } +}); +Object.defineProperty(exports, "getYear", { + enumerable: true, + get: function () { + return _index109.default; + } +}); +Object.defineProperty(exports, "intervalToDuration", { + enumerable: true, + get: function () { + return _index110.default; + } +}); +Object.defineProperty(exports, "isAfter", { + enumerable: true, + get: function () { + return _index111.default; + } +}); +Object.defineProperty(exports, "isBefore", { + enumerable: true, + get: function () { + return _index112.default; + } +}); +Object.defineProperty(exports, "isDate", { + enumerable: true, + get: function () { + return _index113.default; + } +}); +Object.defineProperty(exports, "isEqual", { + enumerable: true, + get: function () { + return _index114.default; + } +}); +Object.defineProperty(exports, "isExists", { + enumerable: true, + get: function () { + return _index115.default; + } +}); +Object.defineProperty(exports, "isFirstDayOfMonth", { + enumerable: true, + get: function () { + return _index116.default; + } +}); +Object.defineProperty(exports, "isFriday", { + enumerable: true, + get: function () { + return _index117.default; + } +}); +Object.defineProperty(exports, "isLastDayOfMonth", { + enumerable: true, + get: function () { + return _index118.default; + } +}); +Object.defineProperty(exports, "isLeapYear", { + enumerable: true, + get: function () { + return _index119.default; + } +}); +Object.defineProperty(exports, "isMatch", { + enumerable: true, + get: function () { + return _index120.default; + } +}); +Object.defineProperty(exports, "isMatchWithOptions", { + enumerable: true, + get: function () { + return _index121.default; + } +}); +Object.defineProperty(exports, "isMonday", { + enumerable: true, + get: function () { + return _index122.default; + } +}); +Object.defineProperty(exports, "isSameDay", { + enumerable: true, + get: function () { + return _index123.default; + } +}); +Object.defineProperty(exports, "isSameHour", { + enumerable: true, + get: function () { + return _index124.default; + } +}); +Object.defineProperty(exports, "isSameISOWeek", { + enumerable: true, + get: function () { + return _index125.default; + } +}); +Object.defineProperty(exports, "isSameISOWeekYear", { + enumerable: true, + get: function () { + return _index126.default; + } +}); +Object.defineProperty(exports, "isSameMinute", { + enumerable: true, + get: function () { + return _index127.default; + } +}); +Object.defineProperty(exports, "isSameMonth", { + enumerable: true, + get: function () { + return _index128.default; + } +}); +Object.defineProperty(exports, "isSameQuarter", { + enumerable: true, + get: function () { + return _index129.default; + } +}); +Object.defineProperty(exports, "isSameSecond", { + enumerable: true, + get: function () { + return _index130.default; + } +}); +Object.defineProperty(exports, "isSameWeek", { + enumerable: true, + get: function () { + return _index131.default; + } +}); +Object.defineProperty(exports, "isSameWeekWithOptions", { + enumerable: true, + get: function () { + return _index132.default; + } +}); +Object.defineProperty(exports, "isSameYear", { + enumerable: true, + get: function () { + return _index133.default; + } +}); +Object.defineProperty(exports, "isSaturday", { + enumerable: true, + get: function () { + return _index134.default; + } +}); +Object.defineProperty(exports, "isSunday", { + enumerable: true, + get: function () { + return _index135.default; + } +}); +Object.defineProperty(exports, "isThursday", { + enumerable: true, + get: function () { + return _index136.default; + } +}); +Object.defineProperty(exports, "isTuesday", { + enumerable: true, + get: function () { + return _index137.default; + } +}); +Object.defineProperty(exports, "isValid", { + enumerable: true, + get: function () { + return _index138.default; + } +}); +Object.defineProperty(exports, "isWednesday", { + enumerable: true, + get: function () { + return _index139.default; + } +}); +Object.defineProperty(exports, "isWeekend", { + enumerable: true, + get: function () { + return _index140.default; + } +}); +Object.defineProperty(exports, "isWithinInterval", { + enumerable: true, + get: function () { + return _index141.default; + } +}); +Object.defineProperty(exports, "lastDayOfDecade", { + enumerable: true, + get: function () { + return _index142.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeek", { + enumerable: true, + get: function () { + return _index143.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeekYear", { + enumerable: true, + get: function () { + return _index144.default; + } +}); +Object.defineProperty(exports, "lastDayOfMonth", { + enumerable: true, + get: function () { + return _index145.default; + } +}); +Object.defineProperty(exports, "lastDayOfQuarter", { + enumerable: true, + get: function () { + return _index146.default; + } +}); +Object.defineProperty(exports, "lastDayOfQuarterWithOptions", { + enumerable: true, + get: function () { + return _index147.default; + } +}); +Object.defineProperty(exports, "lastDayOfWeek", { + enumerable: true, + get: function () { + return _index148.default; + } +}); +Object.defineProperty(exports, "lastDayOfWeekWithOptions", { + enumerable: true, + get: function () { + return _index149.default; + } +}); +Object.defineProperty(exports, "lastDayOfYear", { + enumerable: true, + get: function () { + return _index150.default; + } +}); +Object.defineProperty(exports, "lightFormat", { + enumerable: true, + get: function () { + return _index151.default; + } +}); +Object.defineProperty(exports, "max", { + enumerable: true, + get: function () { + return _index152.default; + } +}); +Object.defineProperty(exports, "milliseconds", { + enumerable: true, + get: function () { + return _index153.default; + } +}); +Object.defineProperty(exports, "min", { + enumerable: true, + get: function () { + return _index154.default; + } +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function () { + return _index155.default; + } +}); +Object.defineProperty(exports, "parseISO", { + enumerable: true, + get: function () { + return _index156.default; + } +}); +Object.defineProperty(exports, "parseISOWithOptions", { + enumerable: true, + get: function () { + return _index157.default; + } +}); +Object.defineProperty(exports, "parseJSON", { + enumerable: true, + get: function () { + return _index158.default; + } +}); +Object.defineProperty(exports, "parseWithOptions", { + enumerable: true, + get: function () { + return _index159.default; + } +}); +Object.defineProperty(exports, "roundToNearestMinutes", { + enumerable: true, + get: function () { + return _index160.default; + } +}); +Object.defineProperty(exports, "roundToNearestMinutesWithOptions", { + enumerable: true, + get: function () { + return _index161.default; + } +}); +Object.defineProperty(exports, "set", { + enumerable: true, + get: function () { + return _index162.default; + } +}); +Object.defineProperty(exports, "setDate", { + enumerable: true, + get: function () { + return _index163.default; + } +}); +Object.defineProperty(exports, "setDay", { + enumerable: true, + get: function () { + return _index164.default; + } +}); +Object.defineProperty(exports, "setDayOfYear", { + enumerable: true, + get: function () { + return _index165.default; + } +}); +Object.defineProperty(exports, "setDayWithOptions", { + enumerable: true, + get: function () { + return _index166.default; + } +}); +Object.defineProperty(exports, "setHours", { + enumerable: true, + get: function () { + return _index167.default; + } +}); +Object.defineProperty(exports, "setISODay", { + enumerable: true, + get: function () { + return _index168.default; + } +}); +Object.defineProperty(exports, "setISOWeek", { + enumerable: true, + get: function () { + return _index169.default; + } +}); +Object.defineProperty(exports, "setISOWeekYear", { + enumerable: true, + get: function () { + return _index170.default; + } +}); +Object.defineProperty(exports, "setMilliseconds", { + enumerable: true, + get: function () { + return _index171.default; + } +}); +Object.defineProperty(exports, "setMinutes", { + enumerable: true, + get: function () { + return _index172.default; + } +}); +Object.defineProperty(exports, "setMonth", { + enumerable: true, + get: function () { + return _index173.default; + } +}); +Object.defineProperty(exports, "setQuarter", { + enumerable: true, + get: function () { + return _index174.default; + } +}); +Object.defineProperty(exports, "setSeconds", { + enumerable: true, + get: function () { + return _index175.default; + } +}); +Object.defineProperty(exports, "setWeek", { + enumerable: true, + get: function () { + return _index176.default; + } +}); +Object.defineProperty(exports, "setWeekWithOptions", { + enumerable: true, + get: function () { + return _index177.default; + } +}); +Object.defineProperty(exports, "setWeekYear", { + enumerable: true, + get: function () { + return _index178.default; + } +}); +Object.defineProperty(exports, "setWeekYearWithOptions", { + enumerable: true, + get: function () { + return _index179.default; + } +}); +Object.defineProperty(exports, "setYear", { + enumerable: true, + get: function () { + return _index180.default; + } +}); +Object.defineProperty(exports, "startOfDay", { + enumerable: true, + get: function () { + return _index181.default; + } +}); +Object.defineProperty(exports, "startOfDecade", { + enumerable: true, + get: function () { + return _index182.default; + } +}); +Object.defineProperty(exports, "startOfHour", { + enumerable: true, + get: function () { + return _index183.default; + } +}); +Object.defineProperty(exports, "startOfISOWeek", { + enumerable: true, + get: function () { + return _index184.default; + } +}); +Object.defineProperty(exports, "startOfISOWeekYear", { + enumerable: true, + get: function () { + return _index185.default; + } +}); +Object.defineProperty(exports, "startOfMinute", { + enumerable: true, + get: function () { + return _index186.default; + } +}); +Object.defineProperty(exports, "startOfMonth", { + enumerable: true, + get: function () { + return _index187.default; + } +}); +Object.defineProperty(exports, "startOfQuarter", { + enumerable: true, + get: function () { + return _index188.default; + } +}); +Object.defineProperty(exports, "startOfSecond", { + enumerable: true, + get: function () { + return _index189.default; + } +}); +Object.defineProperty(exports, "startOfWeek", { + enumerable: true, + get: function () { + return _index190.default; + } +}); +Object.defineProperty(exports, "startOfWeekWithOptions", { + enumerable: true, + get: function () { + return _index191.default; + } +}); +Object.defineProperty(exports, "startOfWeekYear", { + enumerable: true, + get: function () { + return _index192.default; + } +}); +Object.defineProperty(exports, "startOfWeekYearWithOptions", { + enumerable: true, + get: function () { + return _index193.default; + } +}); +Object.defineProperty(exports, "startOfYear", { + enumerable: true, + get: function () { + return _index194.default; + } +}); +Object.defineProperty(exports, "sub", { + enumerable: true, + get: function () { + return _index195.default; + } +}); +Object.defineProperty(exports, "subBusinessDays", { + enumerable: true, + get: function () { + return _index196.default; + } +}); +Object.defineProperty(exports, "subDays", { + enumerable: true, + get: function () { + return _index197.default; + } +}); +Object.defineProperty(exports, "subHours", { + enumerable: true, + get: function () { + return _index198.default; + } +}); +Object.defineProperty(exports, "subISOWeekYears", { + enumerable: true, + get: function () { + return _index199.default; + } +}); +Object.defineProperty(exports, "subMilliseconds", { + enumerable: true, + get: function () { + return _index200.default; + } +}); +Object.defineProperty(exports, "subMinutes", { + enumerable: true, + get: function () { + return _index201.default; + } +}); +Object.defineProperty(exports, "subMonths", { + enumerable: true, + get: function () { + return _index202.default; + } +}); +Object.defineProperty(exports, "subQuarters", { + enumerable: true, + get: function () { + return _index203.default; + } +}); +Object.defineProperty(exports, "subSeconds", { + enumerable: true, + get: function () { + return _index204.default; + } +}); +Object.defineProperty(exports, "subWeeks", { + enumerable: true, + get: function () { + return _index205.default; + } +}); +Object.defineProperty(exports, "subYears", { + enumerable: true, + get: function () { + return _index206.default; + } +}); +Object.defineProperty(exports, "toDate", { + enumerable: true, + get: function () { + return _index207.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("./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("./differenceInBusinessDays/index.js")); + +var _index20 = _interopRequireDefault(require("./differenceInCalendarDays/index.js")); + +var _index21 = _interopRequireDefault(require("./differenceInCalendarISOWeekYears/index.js")); + +var _index22 = _interopRequireDefault(require("./differenceInCalendarISOWeeks/index.js")); + +var _index23 = _interopRequireDefault(require("./differenceInCalendarMonths/index.js")); + +var _index24 = _interopRequireDefault(require("./differenceInCalendarQuarters/index.js")); + +var _index25 = _interopRequireDefault(require("./differenceInCalendarWeeks/index.js")); + +var _index26 = _interopRequireDefault(require("./differenceInCalendarWeeksWithOptions/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("./eachDayOfIntervalWithOptions/index.js")); + +var _index40 = _interopRequireDefault(require("./eachHourOfInterval/index.js")); + +var _index41 = _interopRequireDefault(require("./eachHourOfIntervalWithOptions/index.js")); + +var _index42 = _interopRequireDefault(require("./eachMonthOfInterval/index.js")); + +var _index43 = _interopRequireDefault(require("./eachQuarterOfInterval/index.js")); + +var _index44 = _interopRequireDefault(require("./eachWeekOfInterval/index.js")); + +var _index45 = _interopRequireDefault(require("./eachWeekOfIntervalWithOptions/index.js")); + +var _index46 = _interopRequireDefault(require("./eachWeekendOfInterval/index.js")); + +var _index47 = _interopRequireDefault(require("./eachWeekendOfMonth/index.js")); + +var _index48 = _interopRequireDefault(require("./eachWeekendOfYear/index.js")); + +var _index49 = _interopRequireDefault(require("./eachYearOfInterval/index.js")); + +var _index50 = _interopRequireDefault(require("./endOfDay/index.js")); + +var _index51 = _interopRequireDefault(require("./endOfDecade/index.js")); + +var _index52 = _interopRequireDefault(require("./endOfDecadeWithOptions/index.js")); + +var _index53 = _interopRequireDefault(require("./endOfHour/index.js")); + +var _index54 = _interopRequireDefault(require("./endOfISOWeek/index.js")); + +var _index55 = _interopRequireDefault(require("./endOfISOWeekYear/index.js")); + +var _index56 = _interopRequireDefault(require("./endOfMinute/index.js")); + +var _index57 = _interopRequireDefault(require("./endOfMonth/index.js")); + +var _index58 = _interopRequireDefault(require("./endOfQuarter/index.js")); + +var _index59 = _interopRequireDefault(require("./endOfSecond/index.js")); + +var _index60 = _interopRequireDefault(require("./endOfWeek/index.js")); + +var _index61 = _interopRequireDefault(require("./endOfWeekWithOptions/index.js")); + +var _index62 = _interopRequireDefault(require("./endOfYear/index.js")); + +var _index63 = _interopRequireDefault(require("./format/index.js")); + +var _index64 = _interopRequireDefault(require("./formatDistance/index.js")); + +var _index65 = _interopRequireDefault(require("./formatDistanceStrict/index.js")); + +var _index66 = _interopRequireDefault(require("./formatDistanceStrictWithOptions/index.js")); + +var _index67 = _interopRequireDefault(require("./formatDistanceWithOptions/index.js")); + +var _index68 = _interopRequireDefault(require("./formatDuration/index.js")); + +var _index69 = _interopRequireDefault(require("./formatDurationWithOptions/index.js")); + +var _index70 = _interopRequireDefault(require("./formatISO/index.js")); + +var _index71 = _interopRequireDefault(require("./formatISO9075/index.js")); + +var _index72 = _interopRequireDefault(require("./formatISO9075WithOptions/index.js")); + +var _index73 = _interopRequireDefault(require("./formatISODuration/index.js")); + +var _index74 = _interopRequireDefault(require("./formatISOWithOptions/index.js")); + +var _index75 = _interopRequireDefault(require("./formatRFC3339/index.js")); + +var _index76 = _interopRequireDefault(require("./formatRFC3339WithOptions/index.js")); + +var _index77 = _interopRequireDefault(require("./formatRFC7231/index.js")); + +var _index78 = _interopRequireDefault(require("./formatRelative/index.js")); + +var _index79 = _interopRequireDefault(require("./formatRelativeWithOptions/index.js")); + +var _index80 = _interopRequireDefault(require("./formatWithOptions/index.js")); + +var _index81 = _interopRequireDefault(require("./fromUnixTime/index.js")); + +var _index82 = _interopRequireDefault(require("./getDate/index.js")); + +var _index83 = _interopRequireDefault(require("./getDay/index.js")); + +var _index84 = _interopRequireDefault(require("./getDayOfYear/index.js")); + +var _index85 = _interopRequireDefault(require("./getDaysInMonth/index.js")); + +var _index86 = _interopRequireDefault(require("./getDaysInYear/index.js")); + +var _index87 = _interopRequireDefault(require("./getDecade/index.js")); + +var _index88 = _interopRequireDefault(require("./getHours/index.js")); + +var _index89 = _interopRequireDefault(require("./getISODay/index.js")); + +var _index90 = _interopRequireDefault(require("./getISOWeek/index.js")); + +var _index91 = _interopRequireDefault(require("./getISOWeekYear/index.js")); + +var _index92 = _interopRequireDefault(require("./getISOWeeksInYear/index.js")); + +var _index93 = _interopRequireDefault(require("./getMilliseconds/index.js")); + +var _index94 = _interopRequireDefault(require("./getMinutes/index.js")); + +var _index95 = _interopRequireDefault(require("./getMonth/index.js")); + +var _index96 = _interopRequireDefault(require("./getOverlappingDaysInIntervals/index.js")); + +var _index97 = _interopRequireDefault(require("./getQuarter/index.js")); + +var _index98 = _interopRequireDefault(require("./getSeconds/index.js")); + +var _index99 = _interopRequireDefault(require("./getTime/index.js")); + +var _index100 = _interopRequireDefault(require("./getUnixTime/index.js")); + +var _index101 = _interopRequireDefault(require("./getWeek/index.js")); + +var _index102 = _interopRequireDefault(require("./getWeekOfMonth/index.js")); + +var _index103 = _interopRequireDefault(require("./getWeekOfMonthWithOptions/index.js")); + +var _index104 = _interopRequireDefault(require("./getWeekWithOptions/index.js")); + +var _index105 = _interopRequireDefault(require("./getWeekYear/index.js")); + +var _index106 = _interopRequireDefault(require("./getWeekYearWithOptions/index.js")); + +var _index107 = _interopRequireDefault(require("./getWeeksInMonth/index.js")); + +var _index108 = _interopRequireDefault(require("./getWeeksInMonthWithOptions/index.js")); + +var _index109 = _interopRequireDefault(require("./getYear/index.js")); + +var _index110 = _interopRequireDefault(require("./intervalToDuration/index.js")); + +var _index111 = _interopRequireDefault(require("./isAfter/index.js")); + +var _index112 = _interopRequireDefault(require("./isBefore/index.js")); + +var _index113 = _interopRequireDefault(require("./isDate/index.js")); + +var _index114 = _interopRequireDefault(require("./isEqual/index.js")); + +var _index115 = _interopRequireDefault(require("./isExists/index.js")); + +var _index116 = _interopRequireDefault(require("./isFirstDayOfMonth/index.js")); + +var _index117 = _interopRequireDefault(require("./isFriday/index.js")); + +var _index118 = _interopRequireDefault(require("./isLastDayOfMonth/index.js")); + +var _index119 = _interopRequireDefault(require("./isLeapYear/index.js")); + +var _index120 = _interopRequireDefault(require("./isMatch/index.js")); + +var _index121 = _interopRequireDefault(require("./isMatchWithOptions/index.js")); + +var _index122 = _interopRequireDefault(require("./isMonday/index.js")); + +var _index123 = _interopRequireDefault(require("./isSameDay/index.js")); + +var _index124 = _interopRequireDefault(require("./isSameHour/index.js")); + +var _index125 = _interopRequireDefault(require("./isSameISOWeek/index.js")); + +var _index126 = _interopRequireDefault(require("./isSameISOWeekYear/index.js")); + +var _index127 = _interopRequireDefault(require("./isSameMinute/index.js")); + +var _index128 = _interopRequireDefault(require("./isSameMonth/index.js")); + +var _index129 = _interopRequireDefault(require("./isSameQuarter/index.js")); + +var _index130 = _interopRequireDefault(require("./isSameSecond/index.js")); + +var _index131 = _interopRequireDefault(require("./isSameWeek/index.js")); + +var _index132 = _interopRequireDefault(require("./isSameWeekWithOptions/index.js")); + +var _index133 = _interopRequireDefault(require("./isSameYear/index.js")); + +var _index134 = _interopRequireDefault(require("./isSaturday/index.js")); + +var _index135 = _interopRequireDefault(require("./isSunday/index.js")); + +var _index136 = _interopRequireDefault(require("./isThursday/index.js")); + +var _index137 = _interopRequireDefault(require("./isTuesday/index.js")); + +var _index138 = _interopRequireDefault(require("./isValid/index.js")); + +var _index139 = _interopRequireDefault(require("./isWednesday/index.js")); + +var _index140 = _interopRequireDefault(require("./isWeekend/index.js")); + +var _index141 = _interopRequireDefault(require("./isWithinInterval/index.js")); + +var _index142 = _interopRequireDefault(require("./lastDayOfDecade/index.js")); + +var _index143 = _interopRequireDefault(require("./lastDayOfISOWeek/index.js")); + +var _index144 = _interopRequireDefault(require("./lastDayOfISOWeekYear/index.js")); + +var _index145 = _interopRequireDefault(require("./lastDayOfMonth/index.js")); + +var _index146 = _interopRequireDefault(require("./lastDayOfQuarter/index.js")); + +var _index147 = _interopRequireDefault(require("./lastDayOfQuarterWithOptions/index.js")); + +var _index148 = _interopRequireDefault(require("./lastDayOfWeek/index.js")); + +var _index149 = _interopRequireDefault(require("./lastDayOfWeekWithOptions/index.js")); + +var _index150 = _interopRequireDefault(require("./lastDayOfYear/index.js")); + +var _index151 = _interopRequireDefault(require("./lightFormat/index.js")); + +var _index152 = _interopRequireDefault(require("./max/index.js")); + +var _index153 = _interopRequireDefault(require("./milliseconds/index.js")); + +var _index154 = _interopRequireDefault(require("./min/index.js")); + +var _index155 = _interopRequireDefault(require("./parse/index.js")); + +var _index156 = _interopRequireDefault(require("./parseISO/index.js")); + +var _index157 = _interopRequireDefault(require("./parseISOWithOptions/index.js")); + +var _index158 = _interopRequireDefault(require("./parseJSON/index.js")); + +var _index159 = _interopRequireDefault(require("./parseWithOptions/index.js")); + +var _index160 = _interopRequireDefault(require("./roundToNearestMinutes/index.js")); + +var _index161 = _interopRequireDefault(require("./roundToNearestMinutesWithOptions/index.js")); + +var _index162 = _interopRequireDefault(require("./set/index.js")); + +var _index163 = _interopRequireDefault(require("./setDate/index.js")); + +var _index164 = _interopRequireDefault(require("./setDay/index.js")); + +var _index165 = _interopRequireDefault(require("./setDayOfYear/index.js")); + +var _index166 = _interopRequireDefault(require("./setDayWithOptions/index.js")); + +var _index167 = _interopRequireDefault(require("./setHours/index.js")); + +var _index168 = _interopRequireDefault(require("./setISODay/index.js")); + +var _index169 = _interopRequireDefault(require("./setISOWeek/index.js")); + +var _index170 = _interopRequireDefault(require("./setISOWeekYear/index.js")); + +var _index171 = _interopRequireDefault(require("./setMilliseconds/index.js")); + +var _index172 = _interopRequireDefault(require("./setMinutes/index.js")); + +var _index173 = _interopRequireDefault(require("./setMonth/index.js")); + +var _index174 = _interopRequireDefault(require("./setQuarter/index.js")); + +var _index175 = _interopRequireDefault(require("./setSeconds/index.js")); + +var _index176 = _interopRequireDefault(require("./setWeek/index.js")); + +var _index177 = _interopRequireDefault(require("./setWeekWithOptions/index.js")); + +var _index178 = _interopRequireDefault(require("./setWeekYear/index.js")); + +var _index179 = _interopRequireDefault(require("./setWeekYearWithOptions/index.js")); + +var _index180 = _interopRequireDefault(require("./setYear/index.js")); + +var _index181 = _interopRequireDefault(require("./startOfDay/index.js")); + +var _index182 = _interopRequireDefault(require("./startOfDecade/index.js")); + +var _index183 = _interopRequireDefault(require("./startOfHour/index.js")); + +var _index184 = _interopRequireDefault(require("./startOfISOWeek/index.js")); + +var _index185 = _interopRequireDefault(require("./startOfISOWeekYear/index.js")); + +var _index186 = _interopRequireDefault(require("./startOfMinute/index.js")); + +var _index187 = _interopRequireDefault(require("./startOfMonth/index.js")); + +var _index188 = _interopRequireDefault(require("./startOfQuarter/index.js")); + +var _index189 = _interopRequireDefault(require("./startOfSecond/index.js")); + +var _index190 = _interopRequireDefault(require("./startOfWeek/index.js")); + +var _index191 = _interopRequireDefault(require("./startOfWeekWithOptions/index.js")); + +var _index192 = _interopRequireDefault(require("./startOfWeekYear/index.js")); + +var _index193 = _interopRequireDefault(require("./startOfWeekYearWithOptions/index.js")); + +var _index194 = _interopRequireDefault(require("./startOfYear/index.js")); + +var _index195 = _interopRequireDefault(require("./sub/index.js")); + +var _index196 = _interopRequireDefault(require("./subBusinessDays/index.js")); + +var _index197 = _interopRequireDefault(require("./subDays/index.js")); + +var _index198 = _interopRequireDefault(require("./subHours/index.js")); + +var _index199 = _interopRequireDefault(require("./subISOWeekYears/index.js")); + +var _index200 = _interopRequireDefault(require("./subMilliseconds/index.js")); + +var _index201 = _interopRequireDefault(require("./subMinutes/index.js")); + +var _index202 = _interopRequireDefault(require("./subMonths/index.js")); + +var _index203 = _interopRequireDefault(require("./subQuarters/index.js")); + +var _index204 = _interopRequireDefault(require("./subSeconds/index.js")); + +var _index205 = _interopRequireDefault(require("./subWeeks/index.js")); + +var _index206 = _interopRequireDefault(require("./subYears/index.js")); + +var _index207 = _interopRequireDefault(require("./toDate/index.js")); + +var _index208 = require("../constants/index.js"); + +Object.keys(_index208).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index208[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..ea1d588a --- /dev/null +++ b/node_modules/date-fns/fp/index.js.flow @@ -0,0 +1,555 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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 + >, + closestIndexTo: CurriedFn2<(Date | number)[], Date | number, number>, + closestTo: CurriedFn2<(Date | number)[], Date | number, Date>, + compareAsc: CurriedFn2, + compareDesc: CurriedFn2, + 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, + differenceInISOWeekYears: CurriedFn2, + differenceInMilliseconds: CurriedFn2, + differenceInMinutes: CurriedFn2, + differenceInMonths: CurriedFn2, + differenceInQuarters: CurriedFn2, + differenceInSeconds: CurriedFn2, + differenceInWeeks: CurriedFn2, + differenceInYears: CurriedFn2, + eachDayOfInterval: CurriedFn1, + eachDayOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachHourOfInterval: CurriedFn1, + eachHourOfIntervalWithOptions: 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, + intervalToDuration: CurriedFn1, + 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, + min: CurriedFn1<(Date | number)[], Date>, + 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 + >, + roundToNearestMinutes: CurriedFn1, + roundToNearestMinutesWithOptions: CurriedFn2< + { + nearestTo?: number, + }, + Date | number, + Date + >, + 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, + maxTime: number, + minTime: 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..2cea9d5a --- /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.js`. Please, don't change it. +var intervalToDuration = (0, _index2.default)(_index.default, 1); +var _default = intervalToDuration; +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..3d34c99a --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..109a08cc --- /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.js`. Please, don't change it. +var isAfter = (0, _index2.default)(_index.default, 2); +var _default = isAfter; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isAfter/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..102e7e6e --- /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.js`. Please, don't change it. +var isBefore = (0, _index2.default)(_index.default, 2); +var _default = isBefore; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isBefore/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..40a74891 --- /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.js`. Please, don't change it. +var isDate = (0, _index2.default)(_index.default, 1); +var _default = isDate; +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..0cb8b791 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..c54427f5 --- /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.js`. Please, don't change it. +var isEqual = (0, _index2.default)(_index.default, 2); +var _default = isEqual; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isEqual/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..7105f6f4 --- /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.js`. Please, don't change it. +var isExists = (0, _index2.default)(_index.default, 3); +var _default = isExists; +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..17a25b58 --- /dev/null +++ b/node_modules/date-fns/fp/isExists/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..6015976f --- /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.js`. Please, don't change it. +var isFirstDayOfMonth = (0, _index2.default)(_index.default, 1); +var _default = isFirstDayOfMonth; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f2bfaa55 --- /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.js`. Please, don't change it. +var isFriday = (0, _index2.default)(_index.default, 1); +var _default = isFriday; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..af3fcde6 --- /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.js`. Please, don't change it. +var isLastDayOfMonth = (0, _index2.default)(_index.default, 1); +var _default = isLastDayOfMonth; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f3ff0932 --- /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.js`. Please, don't change it. +var isLeapYear = (0, _index2.default)(_index.default, 1); +var _default = isLeapYear; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..49330966 --- /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.js`. Please, don't change it. +var isMatch = (0, _index2.default)(_index.default, 2); +var _default = isMatch; +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..0aae0c11 --- /dev/null +++ b/node_modules/date-fns/fp/isMatch/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..eb9dac4d --- /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.js`. Please, don't change it. +var isMatchWithOptions = (0, _index2.default)(_index.default, 3); +var _default = isMatchWithOptions; +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..a159e48a --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a208259e --- /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.js`. Please, don't change it. +var isMonday = (0, _index2.default)(_index.default, 1); +var _default = isMonday; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..15a21e61 --- /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.js`. Please, don't change it. +var isSameDay = (0, _index2.default)(_index.default, 2); +var _default = isSameDay; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..eb5a0a52 --- /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.js`. Please, don't change it. +var isSameHour = (0, _index2.default)(_index.default, 2); +var _default = isSameHour; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..52c66a2f --- /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.js`. Please, don't change it. +var isSameISOWeek = (0, _index2.default)(_index.default, 2); +var _default = isSameISOWeek; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..cea2df78 --- /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.js`. Please, don't change it. +var isSameISOWeekYear = (0, _index2.default)(_index.default, 2); +var _default = isSameISOWeekYear; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..47bf3353 --- /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.js`. Please, don't change it. +var isSameMinute = (0, _index2.default)(_index.default, 2); +var _default = isSameMinute; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..650a6a6c --- /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.js`. Please, don't change it. +var isSameMonth = (0, _index2.default)(_index.default, 2); +var _default = isSameMonth; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5ff30dcd --- /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.js`. Please, don't change it. +var isSameQuarter = (0, _index2.default)(_index.default, 2); +var _default = isSameQuarter; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..0eff03dd --- /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.js`. Please, don't change it. +var isSameSecond = (0, _index2.default)(_index.default, 2); +var _default = isSameSecond; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..bb3b9f04 --- /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.js`. Please, don't change it. +var isSameWeek = (0, _index2.default)(_index.default, 2); +var _default = isSameWeek; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..22fb423f --- /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.js`. Please, don't change it. +var isSameWeekWithOptions = (0, _index2.default)(_index.default, 3); +var _default = isSameWeekWithOptions; +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..f82ed29d --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..945a0e42 --- /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.js`. Please, don't change it. +var isSameYear = (0, _index2.default)(_index.default, 2); +var _default = isSameYear; +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..f78eb00d --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..6c3200e4 --- /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.js`. Please, don't change it. +var isSaturday = (0, _index2.default)(_index.default, 1); +var _default = isSaturday; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..7c22064d --- /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.js`. Please, don't change it. +var isSunday = (0, _index2.default)(_index.default, 1); +var _default = isSunday; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..762c9a26 --- /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.js`. Please, don't change it. +var isThursday = (0, _index2.default)(_index.default, 1); +var _default = isThursday; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..225b910a --- /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.js`. Please, don't change it. +var isTuesday = (0, _index2.default)(_index.default, 1); +var _default = isTuesday; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..458ae8af --- /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.js`. Please, don't change it. +var isValid = (0, _index2.default)(_index.default, 1); +var _default = isValid; +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..0cb8b791 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..7abf870c --- /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.js`. Please, don't change it. +var isWednesday = (0, _index2.default)(_index.default, 1); +var _default = isWednesday; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..29a3c954 --- /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.js`. Please, don't change it. +var isWeekend = (0, _index2.default)(_index.default, 1); +var _default = isWeekend; +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..51be201c --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e0a8a998 --- /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.js`. Please, don't change it. +var isWithinInterval = (0, _index2.default)(_index.default, 2); +var _default = isWithinInterval; +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..80633e13 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f2088f52 --- /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.js`. Please, don't change it. +var lastDayOfDecade = (0, _index2.default)(_index.default, 1); +var _default = lastDayOfDecade; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..24d14d4a --- /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.js`. Please, don't change it. +var lastDayOfISOWeek = (0, _index2.default)(_index.default, 1); +var _default = lastDayOfISOWeek; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..a0a27bd7 --- /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.js`. Please, don't change it. +var lastDayOfISOWeekYear = (0, _index2.default)(_index.default, 1); +var _default = lastDayOfISOWeekYear; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..52d1554d --- /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.js`. Please, don't change it. +var lastDayOfMonth = (0, _index2.default)(_index.default, 1); +var _default = lastDayOfMonth; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..52d29c52 --- /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.js`. Please, don't change it. +var lastDayOfQuarter = (0, _index2.default)(_index.default, 1); +var _default = lastDayOfQuarter; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..f05e8637 --- /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.js`. Please, don't change it. +var lastDayOfQuarterWithOptions = (0, _index2.default)(_index.default, 2); +var _default = lastDayOfQuarterWithOptions; +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..2944a51a --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..c1fd3b5b --- /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.js`. Please, don't change it. +var lastDayOfWeek = (0, _index2.default)(_index.default, 1); +var _default = lastDayOfWeek; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..defd7232 --- /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.js`. Please, don't change it. +var lastDayOfWeekWithOptions = (0, _index2.default)(_index.default, 2); +var _default = lastDayOfWeekWithOptions; +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..52687aa6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..9d934515 --- /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.js`. Please, don't change it. +var lastDayOfYear = (0, _index2.default)(_index.default, 1); +var _default = lastDayOfYear; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..c82f954f --- /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.js`. Please, don't change it. +var lightFormat = (0, _index2.default)(_index.default, 2); +var _default = lightFormat; +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..3fe0835f --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5660c8d4 --- /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.js`. Please, don't change it. +var max = (0, _index2.default)(_index.default, 1); +var _default = max; +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..4c233e25 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..d4143cb5 --- /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.js`. Please, don't change it. +var milliseconds = (0, _index2.default)(_index.default, 1); +var _default = milliseconds; +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..5f50929b --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..d66a6cb0 --- /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.js`. Please, don't change it. +var min = (0, _index2.default)(_index.default, 1); +var _default = min; +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..4c233e25 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/fp/package.json b/node_modules/date-fns/fp/package.json new file mode 100644 index 00000000..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..00a9304d --- /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.js`. Please, don't change it. +var parse = (0, _index2.default)(_index.default, 3); +var _default = parse; +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..d0ed4b6d --- /dev/null +++ b/node_modules/date-fns/fp/parse/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..abdcf081 --- /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.js`. Please, don't change it. +var parseISO = (0, _index2.default)(_index.default, 1); +var _default = parseISO; +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..4a3ce9c1 --- /dev/null +++ b/node_modules/date-fns/fp/parseISO/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..653d7dea --- /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.js`. Please, don't change it. +var parseISOWithOptions = (0, _index2.default)(_index.default, 2); +var _default = parseISOWithOptions; +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..d76c85ab --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..ba25d378 --- /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.js`. Please, don't change it. +var parseJSON = (0, _index2.default)(_index.default, 1); +var _default = parseJSON; +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..f21d6c42 --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..8731cf7c --- /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.js`. Please, don't change it. +var parseWithOptions = (0, _index2.default)(_index.default, 4); +var _default = parseWithOptions; +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..b513b360 --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions/index.js.flow @@ -0,0 +1,92 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..986a3e5a --- /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.js`. Please, don't change it. +var roundToNearestMinutes = (0, _index2.default)(_index.default, 1); +var _default = roundToNearestMinutes; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..55a4c074 --- /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.js`. Please, don't change it. +var roundToNearestMinutesWithOptions = (0, _index2.default)(_index.default, 2); +var _default = roundToNearestMinutesWithOptions; +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..463ddda9 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/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, +} + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + 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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b18fb6d6 --- /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.js`. Please, don't change it. +var set = (0, _index2.default)(_index.default, 2); +var _default = set; +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..d2e122f6 --- /dev/null +++ b/node_modules/date-fns/fp/set/index.js.flow @@ -0,0 +1,68 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..325a22f0 --- /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.js`. Please, don't change it. +var setDate = (0, _index2.default)(_index.default, 2); +var _default = setDate; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setDate/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..ced51774 --- /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.js`. Please, don't change it. +var setDay = (0, _index2.default)(_index.default, 2); +var _default = setDay; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setDay/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e3ea8fdb --- /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.js`. Please, don't change it. +var setDayOfYear = (0, _index2.default)(_index.default, 2); +var _default = setDayOfYear; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..9b72e389 --- /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.js`. Please, don't change it. +var setDayWithOptions = (0, _index2.default)(_index.default, 3); +var _default = setDayWithOptions; +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..316d73be --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions/index.js.flow @@ -0,0 +1,73 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..d6b25118 --- /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.js`. Please, don't change it. +var setHours = (0, _index2.default)(_index.default, 2); +var _default = setHours; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setHours/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..df6c0744 --- /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.js`. Please, don't change it. +var setISODay = (0, _index2.default)(_index.default, 2); +var _default = setISODay; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..118550b9 --- /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.js`. Please, don't change it. +var setISOWeek = (0, _index2.default)(_index.default, 2); +var _default = setISOWeek; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..3c17fa14 --- /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.js`. Please, don't change it. +var setISOWeekYear = (0, _index2.default)(_index.default, 2); +var _default = setISOWeekYear; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5d421d66 --- /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.js`. Please, don't change it. +var setMilliseconds = (0, _index2.default)(_index.default, 2); +var _default = setMilliseconds; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..66955680 --- /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.js`. Please, don't change it. +var setMinutes = (0, _index2.default)(_index.default, 2); +var _default = setMinutes; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..4650c6e0 --- /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.js`. Please, don't change it. +var setMonth = (0, _index2.default)(_index.default, 2); +var _default = setMonth; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setMonth/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..6c657eac --- /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.js`. Please, don't change it. +var setQuarter = (0, _index2.default)(_index.default, 2); +var _default = setQuarter; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..0a50d312 --- /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.js`. Please, don't change it. +var setSeconds = (0, _index2.default)(_index.default, 2); +var _default = setSeconds; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..848457b6 --- /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.js`. Please, don't change it. +var setWeek = (0, _index2.default)(_index.default, 2); +var _default = setWeek; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setWeek/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..3314d2b2 --- /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.js`. Please, don't change it. +var setWeekWithOptions = (0, _index2.default)(_index.default, 3); +var _default = setWeekWithOptions; +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..396f111e --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b06b13fd --- /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.js`. Please, don't change it. +var setWeekYear = (0, _index2.default)(_index.default, 2); +var _default = setWeekYear; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b4bd5491 --- /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.js`. Please, don't change it. +var setWeekYearWithOptions = (0, _index2.default)(_index.default, 3); +var _default = setWeekYearWithOptions; +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..396f111e --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..593bf52b --- /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.js`. Please, don't change it. +var setYear = (0, _index2.default)(_index.default, 2); +var _default = setYear; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/setYear/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..42f51ba6 --- /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.js`. Please, don't change it. +var startOfDay = (0, _index2.default)(_index.default, 1); +var _default = startOfDay; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..4644c007 --- /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.js`. Please, don't change it. +var startOfDecade = (0, _index2.default)(_index.default, 1); +var _default = startOfDecade; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..29331f8d --- /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.js`. Please, don't change it. +var startOfHour = (0, _index2.default)(_index.default, 1); +var _default = startOfHour; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..615ed39f --- /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.js`. Please, don't change it. +var startOfISOWeek = (0, _index2.default)(_index.default, 1); +var _default = startOfISOWeek; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..1254f43c --- /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.js`. Please, don't change it. +var startOfISOWeekYear = (0, _index2.default)(_index.default, 1); +var _default = startOfISOWeekYear; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..afa3dacf --- /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.js`. Please, don't change it. +var startOfMinute = (0, _index2.default)(_index.default, 1); +var _default = startOfMinute; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..050ea9b3 --- /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.js`. Please, don't change it. +var startOfMonth = (0, _index2.default)(_index.default, 1); +var _default = startOfMonth; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..37714af0 --- /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.js`. Please, don't change it. +var startOfQuarter = (0, _index2.default)(_index.default, 1); +var _default = startOfQuarter; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..370088cf --- /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.js`. Please, don't change it. +var startOfSecond = (0, _index2.default)(_index.default, 1); +var _default = startOfSecond; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..dd1c0a04 --- /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.js`. Please, don't change it. +var startOfWeek = (0, _index2.default)(_index.default, 1); +var _default = startOfWeek; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..16da6d1d --- /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.js`. Please, don't change it. +var startOfWeekWithOptions = (0, _index2.default)(_index.default, 2); +var _default = startOfWeekWithOptions; +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..52687aa6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..8bc01587 --- /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.js`. Please, don't change it. +var startOfWeekYear = (0, _index2.default)(_index.default, 1); +var _default = startOfWeekYear; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..895c64aa --- /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.js`. Please, don't change it. +var startOfWeekYearWithOptions = (0, _index2.default)(_index.default, 2); +var _default = startOfWeekYearWithOptions; +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..7889527b --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b228df5f --- /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.js`. Please, don't change it. +var startOfYear = (0, _index2.default)(_index.default, 1); +var _default = startOfYear; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..7ce507ab --- /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.js`. Please, don't change it. +var sub = (0, _index2.default)(_index.default, 2); +var _default = sub; +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..9f0b49ee --- /dev/null +++ b/node_modules/date-fns/fp/sub/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..521ab32c --- /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.js`. Please, don't change it. +var subBusinessDays = (0, _index2.default)(_index.default, 2); +var _default = subBusinessDays; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..3e96830c --- /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.js`. Please, don't change it. +var subDays = (0, _index2.default)(_index.default, 2); +var _default = subDays; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subDays/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..574d50c3 --- /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.js`. Please, don't change it. +var subHours = (0, _index2.default)(_index.default, 2); +var _default = subHours; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subHours/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..4115e19d --- /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.js`. Please, don't change it. +var subISOWeekYears = (0, _index2.default)(_index.default, 2); +var _default = subISOWeekYears; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..6010fbe5 --- /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.js`. Please, don't change it. +var subMilliseconds = (0, _index2.default)(_index.default, 2); +var _default = subMilliseconds; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..55ccce85 --- /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.js`. Please, don't change it. +var subMinutes = (0, _index2.default)(_index.default, 2); +var _default = subMinutes; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e3784225 --- /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.js`. Please, don't change it. +var subMonths = (0, _index2.default)(_index.default, 2); +var _default = subMonths; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subMonths/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..5b02a406 --- /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.js`. Please, don't change it. +var subQuarters = (0, _index2.default)(_index.default, 2); +var _default = subQuarters; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..094508c4 --- /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.js`. Please, don't change it. +var subSeconds = (0, _index2.default)(_index.default, 2); +var _default = subSeconds; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e74352a2 --- /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.js`. Please, don't change it. +var subWeeks = (0, _index2.default)(_index.default, 2); +var _default = subWeeks; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..062a8978 --- /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.js`. Please, don't change it. +var subYears = (0, _index2.default)(_index.default, 2); +var _default = subYears; +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..4f1e38b2 --- /dev/null +++ b/node_modules/date-fns/fp/subYears/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..30a543af --- /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.js`. Please, don't change it. +var toDate = (0, _index2.default)(_index.default, 1); +var _default = toDate; +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..b2e7caaa --- /dev/null +++ b/node_modules/date-fns/fp/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, +} + +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..85cb964d --- /dev/null +++ b/node_modules/date-fns/fromUnixTime/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @param {Number} unixTime - the given Unix timestamp + * @returns {Date} the date + * @throws {TypeError} 1 argument required + * + * @example + * // Create the date 29 February 2012 11:45:05: + * var 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..9bf2ed46 --- /dev/null +++ b/node_modules/date-fns/fromUnixTime/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..77bbad33 --- /dev/null +++ b/node_modules/date-fns/getDate/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..fab1828c --- /dev/null +++ b/node_modules/date-fns/getDay/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..2a861ca9 --- /dev/null +++ b/node_modules/date-fns/getDay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..4e0095b3 --- /dev/null +++ b/node_modules/date-fns/getDayOfYear/index.js @@ -0,0 +1,47 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getDayOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e26b8790 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..fa4d8f5d --- /dev/null +++ b/node_modules/date-fns/getDaysInYear/index.js @@ -0,0 +1,48 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getDaysInYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d347f49f --- /dev/null +++ b/node_modules/date-fns/getDecade/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getDecade/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..17ef2ac5 --- /dev/null +++ b/node_modules/date-fns/getHours/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..192188c7 --- /dev/null +++ b/node_modules/date-fns/getISODay/index.js @@ -0,0 +1,50 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getISODay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1cf35477 --- /dev/null +++ b/node_modules/date-fns/getISOWeek/index.js @@ -0,0 +1,53 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..7dc9b727 --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear/index.js @@ -0,0 +1,67 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `getISOYear` to `getISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..321e6536 --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear/index.js @@ -0,0 +1,52 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..403b894b --- /dev/null +++ b/node_modules/date-fns/getMilliseconds/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..857bcc29 --- /dev/null +++ b/node_modules/date-fns/getMinutes/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..0581aac6 --- /dev/null +++ b/node_modules/date-fns/getMonth/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..f5dc1ef8 --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals/index.js @@ -0,0 +1,106 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `getOverlappingDaysInRanges` to `getOverlappingDaysInIntervals`. + * 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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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 + * + * getOverlappingDaysInRanges( + * new Date(2014, 0, 10), new Date(2014, 0, 20), + * new Date(2014, 0, 17), new Date(2014, 0, 21) + * ) + * + * // v2.0.0 onward + * + * 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) } + * ) + * ``` + * + * @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..d84e2312 --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..804746e8 --- /dev/null +++ b/node_modules/date-fns/getQuarter/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..132835e1 --- /dev/null +++ b/node_modules/date-fns/getSeconds/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..88aff77b --- /dev/null +++ b/node_modules/date-fns/getTime/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getTime/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..955e24f0 --- /dev/null +++ b/node_modules/date-fns/getUnixTime/index.js @@ -0,0 +1,40 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getUnixTime/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1bdf7d5b --- /dev/null +++ b/node_modules/date-fns/getWeek/index.js @@ -0,0 +1,72 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = getISOWeek(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? + * var result = getISOWeek(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..a0750be5 --- /dev/null +++ b/node_modules/date-fns/getWeek/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..9f8dd29f --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth/index.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getWeekOfMonth; + +var _index = _interopRequireDefault(require("../getDate/index.js")); + +var _index2 = _interopRequireDefault(require("../getDay/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfMonth/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * + * @example + * // Which week of the month is 9 November 2017? + * var result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ +function getWeekOfMonth(date, dirtyOptions) { + (0, _index5.default)(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index4.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index4.default)(options.weekStartsOn); // 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 currentDayOfMonth = (0, _index.default)(date); + + if (isNaN(currentDayOfMonth)) { + return currentDayOfMonth; + } + + var startWeekDay = (0, _index2.default)((0, _index3.default)(date)); + var lastDayOfFirstWeek = 0; + + if (startWeekDay >= weekStartsOn) { + lastDayOfFirstWeek = weekStartsOn + 7 - startWeekDay; + } else { + lastDayOfFirstWeek = weekStartsOn - startWeekDay; + } + + var weekNumber = 1; + + if (currentDayOfMonth > lastDayOfFirstWeek) { + var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + weekNumber = weekNumber + Math.ceil(remainingDaysAfterFirstWeek / 7); + } + + return weekNumber; +} + +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..cfa29783 --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..c332561a --- /dev/null +++ b/node_modules/date-fns/getWeekYear/index.js @@ -0,0 +1,93 @@ +"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")); + +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * var 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? + * var result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ +function getWeekYear(dirtyDate, dirtyOptions) { + (0, _index4.default)(1, arguments); + var date = (0, _index2.default)(dirtyDate); + var year = date.getFullYear(); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index3.default)(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index3.default)(options.firstWeekContainsDate); // 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, dirtyOptions); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = (0, _index.default)(firstWeekOfThisYear, dirtyOptions); + + 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..a0750be5 --- /dev/null +++ b/node_modules/date-fns/getWeekYear/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..b2be1055 --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth/index.js @@ -0,0 +1,54 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * var 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..cfa29783 --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a5659250 --- /dev/null +++ b/node_modules/date-fns/getYear/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + return year; +} + +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..19d21186 --- /dev/null +++ b/node_modules/date-fns/getYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/index.js b/node_modules/date-fns/index.js new file mode 100644 index 00000000..a9ad4eeb --- /dev/null +++ b/node_modules/date-fns/index.js @@ -0,0 +1,1795 @@ +"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, + closestIndexTo: true, + closestTo: true, + compareAsc: true, + compareDesc: 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, + 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, + 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, + intervalToDuration: 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, + min: true, + parse: true, + parseISO: true, + parseJSON: true, + roundToNearestMinutes: true, + set: true, + setDate: true, + setDay: true, + setDayOfYear: 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 +}; +Object.defineProperty(exports, "add", { + enumerable: true, + get: function () { + return _index.default; + } +}); +Object.defineProperty(exports, "addBusinessDays", { + enumerable: true, + get: function () { + return _index2.default; + } +}); +Object.defineProperty(exports, "addDays", { + enumerable: true, + get: function () { + return _index3.default; + } +}); +Object.defineProperty(exports, "addHours", { + enumerable: true, + get: function () { + return _index4.default; + } +}); +Object.defineProperty(exports, "addISOWeekYears", { + enumerable: true, + get: function () { + return _index5.default; + } +}); +Object.defineProperty(exports, "addMilliseconds", { + enumerable: true, + get: function () { + return _index6.default; + } +}); +Object.defineProperty(exports, "addMinutes", { + enumerable: true, + get: function () { + return _index7.default; + } +}); +Object.defineProperty(exports, "addMonths", { + enumerable: true, + get: function () { + return _index8.default; + } +}); +Object.defineProperty(exports, "addQuarters", { + enumerable: true, + get: function () { + return _index9.default; + } +}); +Object.defineProperty(exports, "addSeconds", { + enumerable: true, + get: function () { + return _index10.default; + } +}); +Object.defineProperty(exports, "addWeeks", { + enumerable: true, + get: function () { + return _index11.default; + } +}); +Object.defineProperty(exports, "addYears", { + enumerable: true, + get: function () { + return _index12.default; + } +}); +Object.defineProperty(exports, "areIntervalsOverlapping", { + enumerable: true, + get: function () { + return _index13.default; + } +}); +Object.defineProperty(exports, "closestIndexTo", { + enumerable: true, + get: function () { + return _index14.default; + } +}); +Object.defineProperty(exports, "closestTo", { + enumerable: true, + get: function () { + return _index15.default; + } +}); +Object.defineProperty(exports, "compareAsc", { + enumerable: true, + get: function () { + return _index16.default; + } +}); +Object.defineProperty(exports, "compareDesc", { + enumerable: true, + get: function () { + return _index17.default; + } +}); +Object.defineProperty(exports, "differenceInBusinessDays", { + enumerable: true, + get: function () { + return _index18.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarDays", { + enumerable: true, + get: function () { + return _index19.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeekYears", { + enumerable: true, + get: function () { + return _index20.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeeks", { + enumerable: true, + get: function () { + return _index21.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarMonths", { + enumerable: true, + get: function () { + return _index22.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarQuarters", { + enumerable: true, + get: function () { + return _index23.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarWeeks", { + enumerable: true, + get: function () { + return _index24.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarYears", { + enumerable: true, + get: function () { + return _index25.default; + } +}); +Object.defineProperty(exports, "differenceInDays", { + enumerable: true, + get: function () { + return _index26.default; + } +}); +Object.defineProperty(exports, "differenceInHours", { + enumerable: true, + get: function () { + return _index27.default; + } +}); +Object.defineProperty(exports, "differenceInISOWeekYears", { + enumerable: true, + get: function () { + return _index28.default; + } +}); +Object.defineProperty(exports, "differenceInMilliseconds", { + enumerable: true, + get: function () { + return _index29.default; + } +}); +Object.defineProperty(exports, "differenceInMinutes", { + enumerable: true, + get: function () { + return _index30.default; + } +}); +Object.defineProperty(exports, "differenceInMonths", { + enumerable: true, + get: function () { + return _index31.default; + } +}); +Object.defineProperty(exports, "differenceInQuarters", { + enumerable: true, + get: function () { + return _index32.default; + } +}); +Object.defineProperty(exports, "differenceInSeconds", { + enumerable: true, + get: function () { + return _index33.default; + } +}); +Object.defineProperty(exports, "differenceInWeeks", { + enumerable: true, + get: function () { + return _index34.default; + } +}); +Object.defineProperty(exports, "differenceInYears", { + enumerable: true, + get: function () { + return _index35.default; + } +}); +Object.defineProperty(exports, "eachDayOfInterval", { + enumerable: true, + get: function () { + return _index36.default; + } +}); +Object.defineProperty(exports, "eachHourOfInterval", { + enumerable: true, + get: function () { + return _index37.default; + } +}); +Object.defineProperty(exports, "eachMonthOfInterval", { + enumerable: true, + get: function () { + return _index38.default; + } +}); +Object.defineProperty(exports, "eachQuarterOfInterval", { + enumerable: true, + get: function () { + return _index39.default; + } +}); +Object.defineProperty(exports, "eachWeekOfInterval", { + enumerable: true, + get: function () { + return _index40.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfInterval", { + enumerable: true, + get: function () { + return _index41.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfMonth", { + enumerable: true, + get: function () { + return _index42.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfYear", { + enumerable: true, + get: function () { + return _index43.default; + } +}); +Object.defineProperty(exports, "eachYearOfInterval", { + enumerable: true, + get: function () { + return _index44.default; + } +}); +Object.defineProperty(exports, "endOfDay", { + enumerable: true, + get: function () { + return _index45.default; + } +}); +Object.defineProperty(exports, "endOfDecade", { + enumerable: true, + get: function () { + return _index46.default; + } +}); +Object.defineProperty(exports, "endOfHour", { + enumerable: true, + get: function () { + return _index47.default; + } +}); +Object.defineProperty(exports, "endOfISOWeek", { + enumerable: true, + get: function () { + return _index48.default; + } +}); +Object.defineProperty(exports, "endOfISOWeekYear", { + enumerable: true, + get: function () { + return _index49.default; + } +}); +Object.defineProperty(exports, "endOfMinute", { + enumerable: true, + get: function () { + return _index50.default; + } +}); +Object.defineProperty(exports, "endOfMonth", { + enumerable: true, + get: function () { + return _index51.default; + } +}); +Object.defineProperty(exports, "endOfQuarter", { + enumerable: true, + get: function () { + return _index52.default; + } +}); +Object.defineProperty(exports, "endOfSecond", { + enumerable: true, + get: function () { + return _index53.default; + } +}); +Object.defineProperty(exports, "endOfToday", { + enumerable: true, + get: function () { + return _index54.default; + } +}); +Object.defineProperty(exports, "endOfTomorrow", { + enumerable: true, + get: function () { + return _index55.default; + } +}); +Object.defineProperty(exports, "endOfWeek", { + enumerable: true, + get: function () { + return _index56.default; + } +}); +Object.defineProperty(exports, "endOfYear", { + enumerable: true, + get: function () { + return _index57.default; + } +}); +Object.defineProperty(exports, "endOfYesterday", { + enumerable: true, + get: function () { + return _index58.default; + } +}); +Object.defineProperty(exports, "format", { + enumerable: true, + get: function () { + return _index59.default; + } +}); +Object.defineProperty(exports, "formatDistance", { + enumerable: true, + get: function () { + return _index60.default; + } +}); +Object.defineProperty(exports, "formatDistanceStrict", { + enumerable: true, + get: function () { + return _index61.default; + } +}); +Object.defineProperty(exports, "formatDistanceToNow", { + enumerable: true, + get: function () { + return _index62.default; + } +}); +Object.defineProperty(exports, "formatDistanceToNowStrict", { + enumerable: true, + get: function () { + return _index63.default; + } +}); +Object.defineProperty(exports, "formatDuration", { + enumerable: true, + get: function () { + return _index64.default; + } +}); +Object.defineProperty(exports, "formatISO", { + enumerable: true, + get: function () { + return _index65.default; + } +}); +Object.defineProperty(exports, "formatISO9075", { + enumerable: true, + get: function () { + return _index66.default; + } +}); +Object.defineProperty(exports, "formatISODuration", { + enumerable: true, + get: function () { + return _index67.default; + } +}); +Object.defineProperty(exports, "formatRFC3339", { + enumerable: true, + get: function () { + return _index68.default; + } +}); +Object.defineProperty(exports, "formatRFC7231", { + enumerable: true, + get: function () { + return _index69.default; + } +}); +Object.defineProperty(exports, "formatRelative", { + enumerable: true, + get: function () { + return _index70.default; + } +}); +Object.defineProperty(exports, "fromUnixTime", { + enumerable: true, + get: function () { + return _index71.default; + } +}); +Object.defineProperty(exports, "getDate", { + enumerable: true, + get: function () { + return _index72.default; + } +}); +Object.defineProperty(exports, "getDay", { + enumerable: true, + get: function () { + return _index73.default; + } +}); +Object.defineProperty(exports, "getDayOfYear", { + enumerable: true, + get: function () { + return _index74.default; + } +}); +Object.defineProperty(exports, "getDaysInMonth", { + enumerable: true, + get: function () { + return _index75.default; + } +}); +Object.defineProperty(exports, "getDaysInYear", { + enumerable: true, + get: function () { + return _index76.default; + } +}); +Object.defineProperty(exports, "getDecade", { + enumerable: true, + get: function () { + return _index77.default; + } +}); +Object.defineProperty(exports, "getHours", { + enumerable: true, + get: function () { + return _index78.default; + } +}); +Object.defineProperty(exports, "getISODay", { + enumerable: true, + get: function () { + return _index79.default; + } +}); +Object.defineProperty(exports, "getISOWeek", { + enumerable: true, + get: function () { + return _index80.default; + } +}); +Object.defineProperty(exports, "getISOWeekYear", { + enumerable: true, + get: function () { + return _index81.default; + } +}); +Object.defineProperty(exports, "getISOWeeksInYear", { + enumerable: true, + get: function () { + return _index82.default; + } +}); +Object.defineProperty(exports, "getMilliseconds", { + enumerable: true, + get: function () { + return _index83.default; + } +}); +Object.defineProperty(exports, "getMinutes", { + enumerable: true, + get: function () { + return _index84.default; + } +}); +Object.defineProperty(exports, "getMonth", { + enumerable: true, + get: function () { + return _index85.default; + } +}); +Object.defineProperty(exports, "getOverlappingDaysInIntervals", { + enumerable: true, + get: function () { + return _index86.default; + } +}); +Object.defineProperty(exports, "getQuarter", { + enumerable: true, + get: function () { + return _index87.default; + } +}); +Object.defineProperty(exports, "getSeconds", { + enumerable: true, + get: function () { + return _index88.default; + } +}); +Object.defineProperty(exports, "getTime", { + enumerable: true, + get: function () { + return _index89.default; + } +}); +Object.defineProperty(exports, "getUnixTime", { + enumerable: true, + get: function () { + return _index90.default; + } +}); +Object.defineProperty(exports, "getWeek", { + enumerable: true, + get: function () { + return _index91.default; + } +}); +Object.defineProperty(exports, "getWeekOfMonth", { + enumerable: true, + get: function () { + return _index92.default; + } +}); +Object.defineProperty(exports, "getWeekYear", { + enumerable: true, + get: function () { + return _index93.default; + } +}); +Object.defineProperty(exports, "getWeeksInMonth", { + enumerable: true, + get: function () { + return _index94.default; + } +}); +Object.defineProperty(exports, "getYear", { + enumerable: true, + get: function () { + return _index95.default; + } +}); +Object.defineProperty(exports, "intervalToDuration", { + enumerable: true, + get: function () { + return _index96.default; + } +}); +Object.defineProperty(exports, "isAfter", { + enumerable: true, + get: function () { + return _index97.default; + } +}); +Object.defineProperty(exports, "isBefore", { + enumerable: true, + get: function () { + return _index98.default; + } +}); +Object.defineProperty(exports, "isDate", { + enumerable: true, + get: function () { + return _index99.default; + } +}); +Object.defineProperty(exports, "isEqual", { + enumerable: true, + get: function () { + return _index100.default; + } +}); +Object.defineProperty(exports, "isExists", { + enumerable: true, + get: function () { + return _index101.default; + } +}); +Object.defineProperty(exports, "isFirstDayOfMonth", { + enumerable: true, + get: function () { + return _index102.default; + } +}); +Object.defineProperty(exports, "isFriday", { + enumerable: true, + get: function () { + return _index103.default; + } +}); +Object.defineProperty(exports, "isFuture", { + enumerable: true, + get: function () { + return _index104.default; + } +}); +Object.defineProperty(exports, "isLastDayOfMonth", { + enumerable: true, + get: function () { + return _index105.default; + } +}); +Object.defineProperty(exports, "isLeapYear", { + enumerable: true, + get: function () { + return _index106.default; + } +}); +Object.defineProperty(exports, "isMatch", { + enumerable: true, + get: function () { + return _index107.default; + } +}); +Object.defineProperty(exports, "isMonday", { + enumerable: true, + get: function () { + return _index108.default; + } +}); +Object.defineProperty(exports, "isPast", { + enumerable: true, + get: function () { + return _index109.default; + } +}); +Object.defineProperty(exports, "isSameDay", { + enumerable: true, + get: function () { + return _index110.default; + } +}); +Object.defineProperty(exports, "isSameHour", { + enumerable: true, + get: function () { + return _index111.default; + } +}); +Object.defineProperty(exports, "isSameISOWeek", { + enumerable: true, + get: function () { + return _index112.default; + } +}); +Object.defineProperty(exports, "isSameISOWeekYear", { + enumerable: true, + get: function () { + return _index113.default; + } +}); +Object.defineProperty(exports, "isSameMinute", { + enumerable: true, + get: function () { + return _index114.default; + } +}); +Object.defineProperty(exports, "isSameMonth", { + enumerable: true, + get: function () { + return _index115.default; + } +}); +Object.defineProperty(exports, "isSameQuarter", { + enumerable: true, + get: function () { + return _index116.default; + } +}); +Object.defineProperty(exports, "isSameSecond", { + enumerable: true, + get: function () { + return _index117.default; + } +}); +Object.defineProperty(exports, "isSameWeek", { + enumerable: true, + get: function () { + return _index118.default; + } +}); +Object.defineProperty(exports, "isSameYear", { + enumerable: true, + get: function () { + return _index119.default; + } +}); +Object.defineProperty(exports, "isSaturday", { + enumerable: true, + get: function () { + return _index120.default; + } +}); +Object.defineProperty(exports, "isSunday", { + enumerable: true, + get: function () { + return _index121.default; + } +}); +Object.defineProperty(exports, "isThisHour", { + enumerable: true, + get: function () { + return _index122.default; + } +}); +Object.defineProperty(exports, "isThisISOWeek", { + enumerable: true, + get: function () { + return _index123.default; + } +}); +Object.defineProperty(exports, "isThisMinute", { + enumerable: true, + get: function () { + return _index124.default; + } +}); +Object.defineProperty(exports, "isThisMonth", { + enumerable: true, + get: function () { + return _index125.default; + } +}); +Object.defineProperty(exports, "isThisQuarter", { + enumerable: true, + get: function () { + return _index126.default; + } +}); +Object.defineProperty(exports, "isThisSecond", { + enumerable: true, + get: function () { + return _index127.default; + } +}); +Object.defineProperty(exports, "isThisWeek", { + enumerable: true, + get: function () { + return _index128.default; + } +}); +Object.defineProperty(exports, "isThisYear", { + enumerable: true, + get: function () { + return _index129.default; + } +}); +Object.defineProperty(exports, "isThursday", { + enumerable: true, + get: function () { + return _index130.default; + } +}); +Object.defineProperty(exports, "isToday", { + enumerable: true, + get: function () { + return _index131.default; + } +}); +Object.defineProperty(exports, "isTomorrow", { + enumerable: true, + get: function () { + return _index132.default; + } +}); +Object.defineProperty(exports, "isTuesday", { + enumerable: true, + get: function () { + return _index133.default; + } +}); +Object.defineProperty(exports, "isValid", { + enumerable: true, + get: function () { + return _index134.default; + } +}); +Object.defineProperty(exports, "isWednesday", { + enumerable: true, + get: function () { + return _index135.default; + } +}); +Object.defineProperty(exports, "isWeekend", { + enumerable: true, + get: function () { + return _index136.default; + } +}); +Object.defineProperty(exports, "isWithinInterval", { + enumerable: true, + get: function () { + return _index137.default; + } +}); +Object.defineProperty(exports, "isYesterday", { + enumerable: true, + get: function () { + return _index138.default; + } +}); +Object.defineProperty(exports, "lastDayOfDecade", { + enumerable: true, + get: function () { + return _index139.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeek", { + enumerable: true, + get: function () { + return _index140.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeekYear", { + enumerable: true, + get: function () { + return _index141.default; + } +}); +Object.defineProperty(exports, "lastDayOfMonth", { + enumerable: true, + get: function () { + return _index142.default; + } +}); +Object.defineProperty(exports, "lastDayOfQuarter", { + enumerable: true, + get: function () { + return _index143.default; + } +}); +Object.defineProperty(exports, "lastDayOfWeek", { + enumerable: true, + get: function () { + return _index144.default; + } +}); +Object.defineProperty(exports, "lastDayOfYear", { + enumerable: true, + get: function () { + return _index145.default; + } +}); +Object.defineProperty(exports, "lightFormat", { + enumerable: true, + get: function () { + return _index146.default; + } +}); +Object.defineProperty(exports, "max", { + enumerable: true, + get: function () { + return _index147.default; + } +}); +Object.defineProperty(exports, "milliseconds", { + enumerable: true, + get: function () { + return _index148.default; + } +}); +Object.defineProperty(exports, "min", { + enumerable: true, + get: function () { + return _index149.default; + } +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function () { + return _index150.default; + } +}); +Object.defineProperty(exports, "parseISO", { + enumerable: true, + get: function () { + return _index151.default; + } +}); +Object.defineProperty(exports, "parseJSON", { + enumerable: true, + get: function () { + return _index152.default; + } +}); +Object.defineProperty(exports, "roundToNearestMinutes", { + enumerable: true, + get: function () { + return _index153.default; + } +}); +Object.defineProperty(exports, "set", { + enumerable: true, + get: function () { + return _index154.default; + } +}); +Object.defineProperty(exports, "setDate", { + enumerable: true, + get: function () { + return _index155.default; + } +}); +Object.defineProperty(exports, "setDay", { + enumerable: true, + get: function () { + return _index156.default; + } +}); +Object.defineProperty(exports, "setDayOfYear", { + enumerable: true, + get: function () { + return _index157.default; + } +}); +Object.defineProperty(exports, "setHours", { + enumerable: true, + get: function () { + return _index158.default; + } +}); +Object.defineProperty(exports, "setISODay", { + enumerable: true, + get: function () { + return _index159.default; + } +}); +Object.defineProperty(exports, "setISOWeek", { + enumerable: true, + get: function () { + return _index160.default; + } +}); +Object.defineProperty(exports, "setISOWeekYear", { + enumerable: true, + get: function () { + return _index161.default; + } +}); +Object.defineProperty(exports, "setMilliseconds", { + enumerable: true, + get: function () { + return _index162.default; + } +}); +Object.defineProperty(exports, "setMinutes", { + enumerable: true, + get: function () { + return _index163.default; + } +}); +Object.defineProperty(exports, "setMonth", { + enumerable: true, + get: function () { + return _index164.default; + } +}); +Object.defineProperty(exports, "setQuarter", { + enumerable: true, + get: function () { + return _index165.default; + } +}); +Object.defineProperty(exports, "setSeconds", { + enumerable: true, + get: function () { + return _index166.default; + } +}); +Object.defineProperty(exports, "setWeek", { + enumerable: true, + get: function () { + return _index167.default; + } +}); +Object.defineProperty(exports, "setWeekYear", { + enumerable: true, + get: function () { + return _index168.default; + } +}); +Object.defineProperty(exports, "setYear", { + enumerable: true, + get: function () { + return _index169.default; + } +}); +Object.defineProperty(exports, "startOfDay", { + enumerable: true, + get: function () { + return _index170.default; + } +}); +Object.defineProperty(exports, "startOfDecade", { + enumerable: true, + get: function () { + return _index171.default; + } +}); +Object.defineProperty(exports, "startOfHour", { + enumerable: true, + get: function () { + return _index172.default; + } +}); +Object.defineProperty(exports, "startOfISOWeek", { + enumerable: true, + get: function () { + return _index173.default; + } +}); +Object.defineProperty(exports, "startOfISOWeekYear", { + enumerable: true, + get: function () { + return _index174.default; + } +}); +Object.defineProperty(exports, "startOfMinute", { + enumerable: true, + get: function () { + return _index175.default; + } +}); +Object.defineProperty(exports, "startOfMonth", { + enumerable: true, + get: function () { + return _index176.default; + } +}); +Object.defineProperty(exports, "startOfQuarter", { + enumerable: true, + get: function () { + return _index177.default; + } +}); +Object.defineProperty(exports, "startOfSecond", { + enumerable: true, + get: function () { + return _index178.default; + } +}); +Object.defineProperty(exports, "startOfToday", { + enumerable: true, + get: function () { + return _index179.default; + } +}); +Object.defineProperty(exports, "startOfTomorrow", { + enumerable: true, + get: function () { + return _index180.default; + } +}); +Object.defineProperty(exports, "startOfWeek", { + enumerable: true, + get: function () { + return _index181.default; + } +}); +Object.defineProperty(exports, "startOfWeekYear", { + enumerable: true, + get: function () { + return _index182.default; + } +}); +Object.defineProperty(exports, "startOfYear", { + enumerable: true, + get: function () { + return _index183.default; + } +}); +Object.defineProperty(exports, "startOfYesterday", { + enumerable: true, + get: function () { + return _index184.default; + } +}); +Object.defineProperty(exports, "sub", { + enumerable: true, + get: function () { + return _index185.default; + } +}); +Object.defineProperty(exports, "subBusinessDays", { + enumerable: true, + get: function () { + return _index186.default; + } +}); +Object.defineProperty(exports, "subDays", { + enumerable: true, + get: function () { + return _index187.default; + } +}); +Object.defineProperty(exports, "subHours", { + enumerable: true, + get: function () { + return _index188.default; + } +}); +Object.defineProperty(exports, "subISOWeekYears", { + enumerable: true, + get: function () { + return _index189.default; + } +}); +Object.defineProperty(exports, "subMilliseconds", { + enumerable: true, + get: function () { + return _index190.default; + } +}); +Object.defineProperty(exports, "subMinutes", { + enumerable: true, + get: function () { + return _index191.default; + } +}); +Object.defineProperty(exports, "subMonths", { + enumerable: true, + get: function () { + return _index192.default; + } +}); +Object.defineProperty(exports, "subQuarters", { + enumerable: true, + get: function () { + return _index193.default; + } +}); +Object.defineProperty(exports, "subSeconds", { + enumerable: true, + get: function () { + return _index194.default; + } +}); +Object.defineProperty(exports, "subWeeks", { + enumerable: true, + get: function () { + return _index195.default; + } +}); +Object.defineProperty(exports, "subYears", { + enumerable: true, + get: function () { + return _index196.default; + } +}); +Object.defineProperty(exports, "toDate", { + enumerable: true, + get: function () { + return _index197.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("./closestIndexTo/index.js")); + +var _index15 = _interopRequireDefault(require("./closestTo/index.js")); + +var _index16 = _interopRequireDefault(require("./compareAsc/index.js")); + +var _index17 = _interopRequireDefault(require("./compareDesc/index.js")); + +var _index18 = _interopRequireDefault(require("./differenceInBusinessDays/index.js")); + +var _index19 = _interopRequireDefault(require("./differenceInCalendarDays/index.js")); + +var _index20 = _interopRequireDefault(require("./differenceInCalendarISOWeekYears/index.js")); + +var _index21 = _interopRequireDefault(require("./differenceInCalendarISOWeeks/index.js")); + +var _index22 = _interopRequireDefault(require("./differenceInCalendarMonths/index.js")); + +var _index23 = _interopRequireDefault(require("./differenceInCalendarQuarters/index.js")); + +var _index24 = _interopRequireDefault(require("./differenceInCalendarWeeks/index.js")); + +var _index25 = _interopRequireDefault(require("./differenceInCalendarYears/index.js")); + +var _index26 = _interopRequireDefault(require("./differenceInDays/index.js")); + +var _index27 = _interopRequireDefault(require("./differenceInHours/index.js")); + +var _index28 = _interopRequireDefault(require("./differenceInISOWeekYears/index.js")); + +var _index29 = _interopRequireDefault(require("./differenceInMilliseconds/index.js")); + +var _index30 = _interopRequireDefault(require("./differenceInMinutes/index.js")); + +var _index31 = _interopRequireDefault(require("./differenceInMonths/index.js")); + +var _index32 = _interopRequireDefault(require("./differenceInQuarters/index.js")); + +var _index33 = _interopRequireDefault(require("./differenceInSeconds/index.js")); + +var _index34 = _interopRequireDefault(require("./differenceInWeeks/index.js")); + +var _index35 = _interopRequireDefault(require("./differenceInYears/index.js")); + +var _index36 = _interopRequireDefault(require("./eachDayOfInterval/index.js")); + +var _index37 = _interopRequireDefault(require("./eachHourOfInterval/index.js")); + +var _index38 = _interopRequireDefault(require("./eachMonthOfInterval/index.js")); + +var _index39 = _interopRequireDefault(require("./eachQuarterOfInterval/index.js")); + +var _index40 = _interopRequireDefault(require("./eachWeekOfInterval/index.js")); + +var _index41 = _interopRequireDefault(require("./eachWeekendOfInterval/index.js")); + +var _index42 = _interopRequireDefault(require("./eachWeekendOfMonth/index.js")); + +var _index43 = _interopRequireDefault(require("./eachWeekendOfYear/index.js")); + +var _index44 = _interopRequireDefault(require("./eachYearOfInterval/index.js")); + +var _index45 = _interopRequireDefault(require("./endOfDay/index.js")); + +var _index46 = _interopRequireDefault(require("./endOfDecade/index.js")); + +var _index47 = _interopRequireDefault(require("./endOfHour/index.js")); + +var _index48 = _interopRequireDefault(require("./endOfISOWeek/index.js")); + +var _index49 = _interopRequireDefault(require("./endOfISOWeekYear/index.js")); + +var _index50 = _interopRequireDefault(require("./endOfMinute/index.js")); + +var _index51 = _interopRequireDefault(require("./endOfMonth/index.js")); + +var _index52 = _interopRequireDefault(require("./endOfQuarter/index.js")); + +var _index53 = _interopRequireDefault(require("./endOfSecond/index.js")); + +var _index54 = _interopRequireDefault(require("./endOfToday/index.js")); + +var _index55 = _interopRequireDefault(require("./endOfTomorrow/index.js")); + +var _index56 = _interopRequireDefault(require("./endOfWeek/index.js")); + +var _index57 = _interopRequireDefault(require("./endOfYear/index.js")); + +var _index58 = _interopRequireDefault(require("./endOfYesterday/index.js")); + +var _index59 = _interopRequireDefault(require("./format/index.js")); + +var _index60 = _interopRequireDefault(require("./formatDistance/index.js")); + +var _index61 = _interopRequireDefault(require("./formatDistanceStrict/index.js")); + +var _index62 = _interopRequireDefault(require("./formatDistanceToNow/index.js")); + +var _index63 = _interopRequireDefault(require("./formatDistanceToNowStrict/index.js")); + +var _index64 = _interopRequireDefault(require("./formatDuration/index.js")); + +var _index65 = _interopRequireDefault(require("./formatISO/index.js")); + +var _index66 = _interopRequireDefault(require("./formatISO9075/index.js")); + +var _index67 = _interopRequireDefault(require("./formatISODuration/index.js")); + +var _index68 = _interopRequireDefault(require("./formatRFC3339/index.js")); + +var _index69 = _interopRequireDefault(require("./formatRFC7231/index.js")); + +var _index70 = _interopRequireDefault(require("./formatRelative/index.js")); + +var _index71 = _interopRequireDefault(require("./fromUnixTime/index.js")); + +var _index72 = _interopRequireDefault(require("./getDate/index.js")); + +var _index73 = _interopRequireDefault(require("./getDay/index.js")); + +var _index74 = _interopRequireDefault(require("./getDayOfYear/index.js")); + +var _index75 = _interopRequireDefault(require("./getDaysInMonth/index.js")); + +var _index76 = _interopRequireDefault(require("./getDaysInYear/index.js")); + +var _index77 = _interopRequireDefault(require("./getDecade/index.js")); + +var _index78 = _interopRequireDefault(require("./getHours/index.js")); + +var _index79 = _interopRequireDefault(require("./getISODay/index.js")); + +var _index80 = _interopRequireDefault(require("./getISOWeek/index.js")); + +var _index81 = _interopRequireDefault(require("./getISOWeekYear/index.js")); + +var _index82 = _interopRequireDefault(require("./getISOWeeksInYear/index.js")); + +var _index83 = _interopRequireDefault(require("./getMilliseconds/index.js")); + +var _index84 = _interopRequireDefault(require("./getMinutes/index.js")); + +var _index85 = _interopRequireDefault(require("./getMonth/index.js")); + +var _index86 = _interopRequireDefault(require("./getOverlappingDaysInIntervals/index.js")); + +var _index87 = _interopRequireDefault(require("./getQuarter/index.js")); + +var _index88 = _interopRequireDefault(require("./getSeconds/index.js")); + +var _index89 = _interopRequireDefault(require("./getTime/index.js")); + +var _index90 = _interopRequireDefault(require("./getUnixTime/index.js")); + +var _index91 = _interopRequireDefault(require("./getWeek/index.js")); + +var _index92 = _interopRequireDefault(require("./getWeekOfMonth/index.js")); + +var _index93 = _interopRequireDefault(require("./getWeekYear/index.js")); + +var _index94 = _interopRequireDefault(require("./getWeeksInMonth/index.js")); + +var _index95 = _interopRequireDefault(require("./getYear/index.js")); + +var _index96 = _interopRequireDefault(require("./intervalToDuration/index.js")); + +var _index97 = _interopRequireDefault(require("./isAfter/index.js")); + +var _index98 = _interopRequireDefault(require("./isBefore/index.js")); + +var _index99 = _interopRequireDefault(require("./isDate/index.js")); + +var _index100 = _interopRequireDefault(require("./isEqual/index.js")); + +var _index101 = _interopRequireDefault(require("./isExists/index.js")); + +var _index102 = _interopRequireDefault(require("./isFirstDayOfMonth/index.js")); + +var _index103 = _interopRequireDefault(require("./isFriday/index.js")); + +var _index104 = _interopRequireDefault(require("./isFuture/index.js")); + +var _index105 = _interopRequireDefault(require("./isLastDayOfMonth/index.js")); + +var _index106 = _interopRequireDefault(require("./isLeapYear/index.js")); + +var _index107 = _interopRequireDefault(require("./isMatch/index.js")); + +var _index108 = _interopRequireDefault(require("./isMonday/index.js")); + +var _index109 = _interopRequireDefault(require("./isPast/index.js")); + +var _index110 = _interopRequireDefault(require("./isSameDay/index.js")); + +var _index111 = _interopRequireDefault(require("./isSameHour/index.js")); + +var _index112 = _interopRequireDefault(require("./isSameISOWeek/index.js")); + +var _index113 = _interopRequireDefault(require("./isSameISOWeekYear/index.js")); + +var _index114 = _interopRequireDefault(require("./isSameMinute/index.js")); + +var _index115 = _interopRequireDefault(require("./isSameMonth/index.js")); + +var _index116 = _interopRequireDefault(require("./isSameQuarter/index.js")); + +var _index117 = _interopRequireDefault(require("./isSameSecond/index.js")); + +var _index118 = _interopRequireDefault(require("./isSameWeek/index.js")); + +var _index119 = _interopRequireDefault(require("./isSameYear/index.js")); + +var _index120 = _interopRequireDefault(require("./isSaturday/index.js")); + +var _index121 = _interopRequireDefault(require("./isSunday/index.js")); + +var _index122 = _interopRequireDefault(require("./isThisHour/index.js")); + +var _index123 = _interopRequireDefault(require("./isThisISOWeek/index.js")); + +var _index124 = _interopRequireDefault(require("./isThisMinute/index.js")); + +var _index125 = _interopRequireDefault(require("./isThisMonth/index.js")); + +var _index126 = _interopRequireDefault(require("./isThisQuarter/index.js")); + +var _index127 = _interopRequireDefault(require("./isThisSecond/index.js")); + +var _index128 = _interopRequireDefault(require("./isThisWeek/index.js")); + +var _index129 = _interopRequireDefault(require("./isThisYear/index.js")); + +var _index130 = _interopRequireDefault(require("./isThursday/index.js")); + +var _index131 = _interopRequireDefault(require("./isToday/index.js")); + +var _index132 = _interopRequireDefault(require("./isTomorrow/index.js")); + +var _index133 = _interopRequireDefault(require("./isTuesday/index.js")); + +var _index134 = _interopRequireDefault(require("./isValid/index.js")); + +var _index135 = _interopRequireDefault(require("./isWednesday/index.js")); + +var _index136 = _interopRequireDefault(require("./isWeekend/index.js")); + +var _index137 = _interopRequireDefault(require("./isWithinInterval/index.js")); + +var _index138 = _interopRequireDefault(require("./isYesterday/index.js")); + +var _index139 = _interopRequireDefault(require("./lastDayOfDecade/index.js")); + +var _index140 = _interopRequireDefault(require("./lastDayOfISOWeek/index.js")); + +var _index141 = _interopRequireDefault(require("./lastDayOfISOWeekYear/index.js")); + +var _index142 = _interopRequireDefault(require("./lastDayOfMonth/index.js")); + +var _index143 = _interopRequireDefault(require("./lastDayOfQuarter/index.js")); + +var _index144 = _interopRequireDefault(require("./lastDayOfWeek/index.js")); + +var _index145 = _interopRequireDefault(require("./lastDayOfYear/index.js")); + +var _index146 = _interopRequireDefault(require("./lightFormat/index.js")); + +var _index147 = _interopRequireDefault(require("./max/index.js")); + +var _index148 = _interopRequireDefault(require("./milliseconds/index.js")); + +var _index149 = _interopRequireDefault(require("./min/index.js")); + +var _index150 = _interopRequireDefault(require("./parse/index.js")); + +var _index151 = _interopRequireDefault(require("./parseISO/index.js")); + +var _index152 = _interopRequireDefault(require("./parseJSON/index.js")); + +var _index153 = _interopRequireDefault(require("./roundToNearestMinutes/index.js")); + +var _index154 = _interopRequireDefault(require("./set/index.js")); + +var _index155 = _interopRequireDefault(require("./setDate/index.js")); + +var _index156 = _interopRequireDefault(require("./setDay/index.js")); + +var _index157 = _interopRequireDefault(require("./setDayOfYear/index.js")); + +var _index158 = _interopRequireDefault(require("./setHours/index.js")); + +var _index159 = _interopRequireDefault(require("./setISODay/index.js")); + +var _index160 = _interopRequireDefault(require("./setISOWeek/index.js")); + +var _index161 = _interopRequireDefault(require("./setISOWeekYear/index.js")); + +var _index162 = _interopRequireDefault(require("./setMilliseconds/index.js")); + +var _index163 = _interopRequireDefault(require("./setMinutes/index.js")); + +var _index164 = _interopRequireDefault(require("./setMonth/index.js")); + +var _index165 = _interopRequireDefault(require("./setQuarter/index.js")); + +var _index166 = _interopRequireDefault(require("./setSeconds/index.js")); + +var _index167 = _interopRequireDefault(require("./setWeek/index.js")); + +var _index168 = _interopRequireDefault(require("./setWeekYear/index.js")); + +var _index169 = _interopRequireDefault(require("./setYear/index.js")); + +var _index170 = _interopRequireDefault(require("./startOfDay/index.js")); + +var _index171 = _interopRequireDefault(require("./startOfDecade/index.js")); + +var _index172 = _interopRequireDefault(require("./startOfHour/index.js")); + +var _index173 = _interopRequireDefault(require("./startOfISOWeek/index.js")); + +var _index174 = _interopRequireDefault(require("./startOfISOWeekYear/index.js")); + +var _index175 = _interopRequireDefault(require("./startOfMinute/index.js")); + +var _index176 = _interopRequireDefault(require("./startOfMonth/index.js")); + +var _index177 = _interopRequireDefault(require("./startOfQuarter/index.js")); + +var _index178 = _interopRequireDefault(require("./startOfSecond/index.js")); + +var _index179 = _interopRequireDefault(require("./startOfToday/index.js")); + +var _index180 = _interopRequireDefault(require("./startOfTomorrow/index.js")); + +var _index181 = _interopRequireDefault(require("./startOfWeek/index.js")); + +var _index182 = _interopRequireDefault(require("./startOfWeekYear/index.js")); + +var _index183 = _interopRequireDefault(require("./startOfYear/index.js")); + +var _index184 = _interopRequireDefault(require("./startOfYesterday/index.js")); + +var _index185 = _interopRequireDefault(require("./sub/index.js")); + +var _index186 = _interopRequireDefault(require("./subBusinessDays/index.js")); + +var _index187 = _interopRequireDefault(require("./subDays/index.js")); + +var _index188 = _interopRequireDefault(require("./subHours/index.js")); + +var _index189 = _interopRequireDefault(require("./subISOWeekYears/index.js")); + +var _index190 = _interopRequireDefault(require("./subMilliseconds/index.js")); + +var _index191 = _interopRequireDefault(require("./subMinutes/index.js")); + +var _index192 = _interopRequireDefault(require("./subMonths/index.js")); + +var _index193 = _interopRequireDefault(require("./subQuarters/index.js")); + +var _index194 = _interopRequireDefault(require("./subSeconds/index.js")); + +var _index195 = _interopRequireDefault(require("./subWeeks/index.js")); + +var _index196 = _interopRequireDefault(require("./subYears/index.js")); + +var _index197 = _interopRequireDefault(require("./toDate/index.js")); + +var _index198 = require("./constants/index.js"); + +Object.keys(_index198).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index198[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..6e1b129b --- /dev/null +++ b/node_modules/date-fns/index.js.flow @@ -0,0 +1,753 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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, + + 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, + + 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 + ) => number, + + differenceInISOWeekYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMilliseconds: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMinutes: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMonths: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInQuarters: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInSeconds: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInWeeks: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + eachDayOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachHourOfInterval: ( + 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, + + 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, + + intervalToDuration: (interval: Interval) => Duration, + + 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, + + min: (datesArray: (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, + + roundToNearestMinutes: ( + date: Date | number, + options?: { + nearestTo?: number, + } + ) => Date, + + 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, + + 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, + + maxTime: number, + + minTime: 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..4fd1d6a6 --- /dev/null +++ b/node_modules/date-fns/intervalToDuration/index.js @@ -0,0 +1,103 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = intervalToDuration; + +var _index = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index2 = _interopRequireDefault(require("../differenceInYears/index.js")); + +var _index3 = _interopRequireDefault(require("../differenceInMonths/index.js")); + +var _index4 = _interopRequireDefault(require("../differenceInDays/index.js")); + +var _index5 = _interopRequireDefault(require("../differenceInHours/index.js")); + +var _index6 = _interopRequireDefault(require("../differenceInMinutes/index.js")); + +var _index7 = _interopRequireDefault(require("../differenceInSeconds/index.js")); + +var _index8 = _interopRequireDefault(require("../isValid/index.js")); + +var _index9 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index10 = _interopRequireDefault(require("../toDate/index.js")); + +var _index11 = _interopRequireDefault(require("../sub/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(_ref) { + var start = _ref.start, + end = _ref.end; + (0, _index9.default)(1, arguments); + var dateLeft = (0, _index10.default)(start); + var dateRight = (0, _index10.default)(end); + + if (!(0, _index8.default)(dateLeft)) { + throw new RangeError('Start Date is invalid'); + } + + if (!(0, _index8.default)(dateRight)) { + throw new RangeError('End Date is invalid'); + } + + var duration = { + years: 0, + months: 0, + days: 0, + hours: 0, + minutes: 0, + seconds: 0 + }; + var sign = (0, _index.default)(dateLeft, dateRight); + duration.years = Math.abs((0, _index2.default)(dateLeft, dateRight)); + var remainingMonths = (0, _index11.default)(dateLeft, { + years: sign * duration.years + }); + duration.months = Math.abs((0, _index3.default)(remainingMonths, dateRight)); + var remainingDays = (0, _index11.default)(remainingMonths, { + months: sign * duration.months + }); + duration.days = Math.abs((0, _index4.default)(remainingDays, dateRight)); + var remainingHours = (0, _index11.default)(remainingDays, { + days: sign * duration.days + }); + duration.hours = Math.abs((0, _index5.default)(remainingHours, dateRight)); + var remainingMinutes = (0, _index11.default)(remainingHours, { + hours: sign * duration.hours + }); + duration.minutes = Math.abs((0, _index6.default)(remainingMinutes, dateRight)); + var remainingSeconds = (0, _index11.default)(remainingMinutes, { + minutes: sign * duration.minutes + }); + duration.seconds = Math.abs((0, _index7.default)(remainingSeconds, dateRight)); + 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..7fb5d4e7 --- /dev/null +++ b/node_modules/date-fns/intervalToDuration/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..bca8e7f4 --- /dev/null +++ b/node_modules/date-fns/isAfter/index.js @@ -0,0 +1,43 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..272a77ac --- /dev/null +++ b/node_modules/date-fns/isAfter/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1b2b0ad5 --- /dev/null +++ b/node_modules/date-fns/isBefore/index.js @@ -0,0 +1,43 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..272a77ac --- /dev/null +++ b/node_modules/date-fns/isBefore/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..9a7aa17c --- /dev/null +++ b/node_modules/date-fns/isDate/index.js @@ -0,0 +1,53 @@ +"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 }; } + +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * var result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * var result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * var 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..cc9d003a --- /dev/null +++ b/node_modules/date-fns/isDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d17ec2d0 --- /dev/null +++ b/node_modules/date-fns/isEqual/index.js @@ -0,0 +1,46 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isEqual/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..5a189673 --- /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: + * var result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * var 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..d06beaa3 --- /dev/null +++ b/node_modules/date-fns/isExists/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..72879812 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..12df4f9e --- /dev/null +++ b/node_modules/date-fns/isFriday/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isFriday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..590e4a0f --- /dev/null +++ b/node_modules/date-fns/isFuture/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isFuture/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..0bc9c503 --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth/index.js @@ -0,0 +1,45 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..67ebf817 --- /dev/null +++ b/node_modules/date-fns/isLeapYear/index.js @@ -0,0 +1,42 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isLeapYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..88ebbd1e --- /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://git.io/fxCyr + * + * 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, Su, Sa | | + * | 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, Su, Sa | 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, Su, Sa | | + * | 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, Su, Sa | | + * | 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, 0001, ..., 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://git.io/fxCyr + * + * 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://git.io/fxCyr + * + * 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://git.io/fxCyr + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://git.io/fxCyr + * @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://git.io/fxCyr + * @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr + * @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * var 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' + * var result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +function isMatch(dateString, formatString, dirtyOptions) { + (0, _index3.default)(2, arguments); + return (0, _index2.default)((0, _index.default)(dateString, formatString, new Date(), dirtyOptions)); +} + +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..28a49222 --- /dev/null +++ b/node_modules/date-fns/isMatch/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..de3fc450 --- /dev/null +++ b/node_modules/date-fns/isMonday/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ +function isMonday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isMonday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..646d3325 --- /dev/null +++ b/node_modules/date-fns/isPast/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isPast/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e286ca14 --- /dev/null +++ b/node_modules/date-fns/isSameDay/index.js @@ -0,0 +1,43 @@ +"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? + * + * @description + * Are the given dates in the same day? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + */ +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameDay/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..77b8c75d --- /dev/null +++ b/node_modules/date-fns/isSameHour/index.js @@ -0,0 +1,43 @@ +"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? + * + * @description + * Are the given dates in the same hour? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * var result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + */ +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameHour/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..8bca8a30 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek/index.js @@ -0,0 +1,45 @@ +"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? + * + * @description + * Are the given dates in the same ISO week? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * var result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + */ +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..0c0f7029 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear/index.js @@ -0,0 +1,50 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `isSameISOYear` to `isSameISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. + * + * @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? + * var 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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..698f9b45 --- /dev/null +++ b/node_modules/date-fns/isSameMinute/index.js @@ -0,0 +1,47 @@ +"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? + * + * @description + * Are the given dates in the same minute? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 + * // in the same minute? + * var result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + */ +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameMinute/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1765a25e --- /dev/null +++ b/node_modules/date-fns/isSameMonth/index.js @@ -0,0 +1,43 @@ +"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? + * + * @description + * Are the given dates in the same month? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameMonth/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a50295ed --- /dev/null +++ b/node_modules/date-fns/isSameQuarter/index.js @@ -0,0 +1,43 @@ +"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 year quarter? + * + * @description + * Are the given dates in the same year quarter? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * var result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + */ +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameQuarter/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e3ecb78c --- /dev/null +++ b/node_modules/date-fns/isSameSecond/index.js @@ -0,0 +1,47 @@ +"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? + * + * @description + * Are the given dates in the same second? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @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? + * var result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + */ +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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameSecond/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..24f7b919 --- /dev/null +++ b/node_modules/date-fns/isSameWeek/index.js @@ -0,0 +1,55 @@ +"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? + * + * @description + * Are the given dates in the same week? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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 + * @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? + * var 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? + * var result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + */ +function isSameWeek(dirtyDateLeft, dirtyDateRight, dirtyOptions) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfWeek = (0, _index.default)(dirtyDateLeft, dirtyOptions); + var dateRightStartOfWeek = (0, _index.default)(dirtyDateRight, dirtyOptions); + 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..ed59e848 --- /dev/null +++ b/node_modules/date-fns/isSameWeek/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..0ec6e43d --- /dev/null +++ b/node_modules/date-fns/isSameYear/index.js @@ -0,0 +1,43 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..0c5fc133 --- /dev/null +++ b/node_modules/date-fns/isSameYear/index.js.flow @@ -0,0 +1,53 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..b0c210d6 --- /dev/null +++ b/node_modules/date-fns/isSaturday/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isSaturday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..2cc49d08 --- /dev/null +++ b/node_modules/date-fns/isSunday/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isSunday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..92c134ff --- /dev/null +++ b/node_modules/date-fns/isThisHour/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThisHour/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..5bb7f85f --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..6a3eff0c --- /dev/null +++ b/node_modules/date-fns/isThisMinute/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThisMinute/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..5c9739d9 --- /dev/null +++ b/node_modules/date-fns/isThisMonth/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThisMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..46dec9a2 --- /dev/null +++ b/node_modules/date-fns/isThisQuarter/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThisQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..043ba2da --- /dev/null +++ b/node_modules/date-fns/isThisSecond/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThisSecond/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e3cef3ff --- /dev/null +++ b/node_modules/date-fns/isThisWeek/index.js @@ -0,0 +1,54 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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? + * var 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..7b0bd6ca --- /dev/null +++ b/node_modules/date-fns/isThisWeek/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..3c21a11d --- /dev/null +++ b/node_modules/date-fns/isThisYear/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThisYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..eff759ab --- /dev/null +++ b/node_modules/date-fns/isThursday/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isThursday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..f14121c6 --- /dev/null +++ b/node_modules/date-fns/isToday/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isToday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..f8e521f6 --- /dev/null +++ b/node_modules/date-fns/isTomorrow/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isTomorrow/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..cbedfae6 --- /dev/null +++ b/node_modules/date-fns/isTuesday/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isTuesday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d3b2cb65 --- /dev/null +++ b/node_modules/date-fns/isValid/index.js @@ -0,0 +1,77 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isValid; + +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 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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - 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). + * + * @param {*} date - the date to check + * @returns {Boolean} the date is valid + * @throws {TypeError} 1 argument required + * + * @example + * // For the valid date: + * var result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertable into a date: + * var result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * var result = isValid(new Date('')) + * //=> false + */ +function isValid(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + return !isNaN(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..e6c83333 --- /dev/null +++ b/node_modules/date-fns/isValid/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a24e9b37 --- /dev/null +++ b/node_modules/date-fns/isWednesday/index.js @@ -0,0 +1,40 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isWednesday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..691d0c00 --- /dev/null +++ b/node_modules/date-fns/isWeekend/index.js @@ -0,0 +1,42 @@ +"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? + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isWeekend/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..cf8e3502 --- /dev/null +++ b/node_modules/date-fns/isWithinInterval/index.js @@ -0,0 +1,101 @@ +"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.) + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `isWithinRange` to `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, this function now accepts an object with `start` and `end` properties + * instead of two arguments as an interval. + * This function now throws `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 + * + * isWithinRange( + * new Date(2014, 0, 3), + * new Date(2014, 0, 1), new Date(2014, 0, 7) + * ) + * + * // v2.0.0 onward + * + * isWithinInterval( + * new Date(2014, 0, 3), + * { start: new Date(2014, 0, 1), end: new Date(2014, 0, 7) } + * ) + * ``` + * + * @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, dirtyInterval) { + (0, _index2.default)(2, arguments); + var interval = dirtyInterval || {}; + 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..0bb8caa7 --- /dev/null +++ b/node_modules/date-fns/isWithinInterval/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..74e3ff65 --- /dev/null +++ b/node_modules/date-fns/isYesterday/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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? + * var 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..69d38707 --- /dev/null +++ b/node_modules/date-fns/isYesterday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..c70f3288 --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ae2d1248 --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek/index.js @@ -0,0 +1,45 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..03dfb1ac --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear/index.js @@ -0,0 +1,57 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `lastDayOfISOYear` to `lastDayOfISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..9a302b8b --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..fdce5378 --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter/index.js @@ -0,0 +1,49 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..1b492c1b --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..64f9dff3 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek/index.js @@ -0,0 +1,67 @@ +"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")); + +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ +function lastDayOfWeek(dirtyDate, dirtyOptions) { + (0, _index3.default)(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index2.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index2.default)(options.weekStartsOn); // 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..f162c393 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a0940324 --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d7ad1c07 --- /dev/null +++ b/node_modules/date-fns/lightFormat/index.js @@ -0,0 +1,136 @@ +"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://git.io/fxCyr + * + * 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, 0001, ..., 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 + * var result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ + +function lightFormat(dirtyDate, dirtyFormatStr) { + (0, _index6.default)(2, arguments); + var formatStr = String(dirtyFormatStr); + 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 result = formatStr.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 = _index2.default[firstCharacter]; + + if (formatter) { + return formatter(utcDate, substring, null, {}); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } + + return substring; + }).join(''); + return result; +} + +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/lightFormat/index.js.flow b/node_modules/date-fns/lightFormat/index.js.flow new file mode 100644 index 00000000..6dbe40b9 --- /dev/null +++ b/node_modules/date-fns/lightFormat/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/locale/_lib/buildFormatLongFn/index.js b/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js new file mode 100644 index 00000000..aa258076 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js @@ -0,0 +1,17 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildFormatLongFn; + +function buildFormatLongFn(args) { + return function (dirtyOptions) { + var options = dirtyOptions || {}; + 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..be84c730 --- /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, dirtyOptions) { + var options = dirtyOptions || {}; + var context = options.context ? String(options.context) : 'standalone'; + var valuesArray; + + if (context === 'formatting' && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + + var _width = options.width ? String(options.width) : args.defaultWidth; + + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + + var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; + 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..8b71e0f7 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchFn/index.js @@ -0,0 +1,59 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildMatchFn; + +function buildMatchFn(args) { + return function (dirtyString, dirtyOptions) { + var string = String(dirtyString); + var options = dirtyOptions || {}; + 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 value; + + if (Object.prototype.toString.call(parsePatterns) === '[object Array]') { + value = findIndex(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }); + } else { + value = findKey(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }); + } + + value = args.valueCallback ? args.valueCallback(value) : value; + value = options.valueCallback ? options.valueCallback(value) : value; + return { + value: value, + rest: string.slice(matchedString.length) + }; + }; +} + +function findKey(object, predicate) { + for (var key in object) { + if (object.hasOwnProperty(key) && predicate(object[key])) { + return key; + } + } +} + +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) { + if (predicate(array[key])) { + return key; + } + } +} + +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..caa1c949 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildMatchPatternFn; + +function buildMatchPatternFn(args) { + return function (dirtyString, dirtyOptions) { + var string = String(dirtyString); + var options = dirtyOptions || {}; + 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; + return { + value: value, + rest: string.slice(matchedString.length) + }; + }; +} + +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..2d225be7 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'oor ' + result; + } else { + return result + ' gelede'; + } + } + + return result; +} + +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..f061b22d --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token) { + return formatRelativeLocale[token]; +} + +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..4f983d66 --- /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' + } +}; + +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 (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/af/_lib/match/index.js b/node_modules/date-fns/locale/af/_lib/match/index.js new file mode 100644 index 00000000..a7b02dc6 --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..537f8693 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance/index.js @@ -0,0 +1,128 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} عام تقريباً' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else if (count <= 10) { + result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +} + +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..e953461b --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..4f986f5c --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/localize/index.js @@ -0,0 +1,130 @@ +"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: 'في الصباح', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +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 (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..dfa28998 --- /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 (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 (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-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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..537f8693 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance/index.js @@ -0,0 +1,128 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} عام تقريباً' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else if (count <= 10) { + result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +} + +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..e953461b --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..0904c93b --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/localize/index.js @@ -0,0 +1,130 @@ +"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: 'في الصباح', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +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 (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..1758ad8c --- /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 (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 (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-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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..537f8693 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance/index.js @@ -0,0 +1,128 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} عام تقريباً' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else if (count <= 10) { + result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +} + +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..e953461b --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..4c4436cf --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/localize/index.js @@ -0,0 +1,130 @@ +"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: 'في الصباح', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +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 (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-SA/_lib/match/index.js b/node_modules/date-fns/locale/ar-SA/_lib/match/index.js new file mode 100644 index 00000000..a34f58df --- /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/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 (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 (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-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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/az/_lib/formatDistance/index.js b/node_modules/date-fns/locale/az/_lib/formatDistance/index.js new file mode 100644 index 00000000..6fef2394 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' əvvəl'; + } else { + return result + ' sonra'; + } + } + + return result; +} + +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..98bc2068 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..1615080e --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/localize/index.js @@ -0,0 +1,170 @@ +"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: ["Hz. İsa'dan öncə", 'Anno Domini'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1ci kvartal', '2ci kvartal', '3cü kvartal', '4cü kvartal'] // 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', 'İ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ı' +}; + +function getSuffix(number) { + if (number === 0) { + // special case for zero + return number + '-ıncı'; + } + + var a = number % 10, + b = number % 100 - a, + c = number >= 100 ? 100 : null; + return suffixes[a] || suffixes[b] || suffixes[c]; +} + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/az/_lib/match/index.js b/node_modules/date-fns/locale/az/_lib/match/index.js new file mode 100644 index 00000000..f9a66657 --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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: /^(Hz. İsa'dan öncə|ümumi eradan əvvəl|anno domini|ümumi dövr)$/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\.e$/i, /^Çər$/i, /^Çər\.a$/i, /^Cüm$/i, /^Cüm\.a$/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/be/_lib/formatDistance/index.js b/node_modules/date-fns/locale/be/_lib/formatDistance/index.js new file mode 100644 index 00000000..2338f209 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatDistance/index.js @@ -0,0 +1,252 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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 (_, options) { + if (options.addSuffix) { + if (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}} гадзін' + }, + 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}} гадоў' + } + }) +}; + +function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} + +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..fb28cf77 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatRelative/index.js @@ -0,0 +1,88 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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: + 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 formatRelativeLocale = { + lastWeek: function (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..af81abcf --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/localize/index.js @@ -0,0 +1,164 @@ +"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: 'ночы' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(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 (quarter) { + return Number(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..b828222a --- /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/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: /^((да )?н\.?\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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/bg/_lib/formatDistance/index.js b/node_modules/date-fns/locale/bg/_lib/formatDistance/index.js new file mode 100644 index 00000000..1e6b05c7 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} години' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'след ' + result; + } else { + return 'преди ' + result; + } + } + + return result; +} + +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..d02b5471 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatRelative/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +var _index = _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 formatRelativeLocale = { + lastWeek: function (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..6a0e02e0 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/localize/index.js @@ -0,0 +1,118 @@ +"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; +} + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(options.unit); + var number = Number(dirtyNumber); + + 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 (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/bg/_lib/match/index.js b/node_modules/date-fns/locale/bg/_lib/match/index.js new file mode 100644 index 00000000..577911f1 --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/bn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/bn/_lib/formatDistance/index.js new file mode 100644 index 00000000..f2d5b169 --- /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 = formatDistance; + +var _index = _interopRequireDefault(require("../localize/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +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}} বছর' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', _index.default.numberToLocale(count)); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' এর মধ্যে'; + } else { + return result + ' আগে'; + } + } + + return result; +} + +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..d2b81b88 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'গত' eeee 'সময়' p", + yesterday: "'গতকাল' 'সময়' p", + today: "'আজ' 'সময়' p", + tomorrow: "'আগামীকাল' 'সময়' p", + nextWeek: "eeee 'সময়' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..96e4c0b4 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_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 }; } + +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 + 'ই'; + } + } +} + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = localize.localeToNumber(dirtyNumber); + var localeNumber = localize.numberToLocale(number); + var unit = dirtyOptions.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 + 'ষ্ঠ'; + + case 1: + case 5: + case 7: + case 8: + case 9: + case 0: + return localeNumber + 'ম'; + } +} + +function localeToNumber(locale) { + var number = locale.toString().replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { + return numberValues.number[match]; + }); + return Number(number); +} + +function numberToLocale(number) { + return number.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +var localize = { + localeToNumber: localeToNumber, + numberToLocale: numberToLocale, + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/bn/_lib/match/index.js b/node_modules/date-fns/locale/bn/_lib/match/index.js new file mode 100644 index 00000000..76c6bf20 --- /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/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: /^(খ্রিঃপূঃ|খ্রিঃ)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ca/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ca/_lib/formatDistance/index.js new file mode 100644 index 00000000..36e7a007 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatDistance/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +/** + * 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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 11 && formatDistanceLocale[token].eleven) { + result = formatDistanceLocale[token].eleven; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'fa ' + result; + } + } + + return result; +} + +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..0bcc74d5 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatRelative/index.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} + +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..126b756c --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/localize/index.js @@ -0,0 +1,200 @@ +"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 + * + * @param {Number} dirtyNumber + * @param {Object} [_dirtyOptions] + */ + +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/ca/_lib/match/index.js b/node_modules/date-fns/locale/ca/_lib/match/index.js new file mode 100644 index 00000000..c1dad594 --- /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 (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/cs/_lib/formatDistance/index.js b/node_modules/date-fns/locale/cs/_lib/formatDistance/index.js new file mode 100644 index 00000000..3047a175 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance/index.js @@ -0,0 +1,304 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: 'méně než vteřina', + past: 'před méně než vteřinou', + future: 'za méně než vteřinu' + }, + few: { + regular: 'méně než {{count}} vteřiny', + past: 'před méně než {{count}} vteřinami', + future: 'za méně než {{count}} vteřiny' + }, + many: { + regular: 'méně než {{count}} vteřin', + past: 'před méně než {{count}} vteřinami', + future: 'za méně než {{count}} vteřin' + } + }, + xSeconds: { + one: { + regular: 'vteřina', + past: 'před vteřinou', + future: 'za vteřinu' + }, + few: { + regular: '{{count}} vteřiny', + past: 'před {{count}} vteřinami', + future: 'za {{count}} vteřiny' + }, + many: { + regular: '{{count}} vteřin', + past: 'před {{count}} vteřinami', + future: 'za {{count}} vteřin' + } + }, + halfAMinute: { + 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ů' + } + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var scheme = formatDistanceLocale[token]; // cs pluralization + + var pluralToken; + + if (typeof scheme.other === 'object') { + pluralToken = 'other'; + } else if (count === 1) { + pluralToken = 'one'; + } else if (count > 1 && count < 5 || count === 0) { + pluralToken = 'few'; + } else { + pluralToken = 'many'; + } // times + + + var suffixExist = options.addSuffix === true; + var comparison = options.comparison; + var timeToken; + + if (suffixExist && comparison === -1) { + timeToken = 'past'; + } else if (suffixExist && comparison === 1) { + timeToken = 'future'; + } else { + timeToken = 'regular'; + } + + return scheme[pluralToken][timeToken].replace('{{count}}', count); +} + +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..a7b75749 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatRelative/index.js @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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 (date, _baseDate, _options) { + var day = date.getUTCDay(); + return "'v " + accusativeWeekdays[day] + " o' p"; + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..4e046bd6 --- /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' + } +}; + +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 (quarter) { + return Number(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..0d98ebcd --- /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\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pe[řr]ed Kr\.|pe[řr]ed n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(p[řr]ed Kristem|pred 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: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/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, /^ut/i, /^st/i, /^[čc]t/i, /^p/i, /^so/i] +}; +var matchDayPeriodPatterns = { + any: /^dopoledne|dop\.?|odpoledne|odp\.?|pů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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/cy/_lib/formatDistance/index.js b/node_modules/date-fns/locale/cy/_lib/formatDistance/index.js new file mode 100644 index 00000000..72682202 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatDistance/index.js @@ -0,0 +1,107 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2 && !!formatDistanceLocale[token].two) { + result = formatDistanceLocale[token].two; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'mewn ' + result; + } else { + return result + ' yn ôl'; + } + } + + return result; +} + +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..a98fc999 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..04de5669 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/cy/_lib/match/index.js b/node_modules/date-fns/locale/cy/_lib/match/index.js new file mode 100644 index 00000000..b8c9a296 --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/da/_lib/formatDistance/index.js b/node_modules/date-fns/locale/da/_lib/formatDistance/index.js new file mode 100644 index 00000000..2880b8f8 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +} + +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..a1186960 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..d886aac7 --- /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' + } +}; + +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 (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/da/_lib/match/index.js b/node_modules/date-fns/locale/da/_lib/match/index.js new file mode 100644 index 00000000..4f0b4faf --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/de/_lib/formatDistance/index.js b/node_modules/date-fns/locale/de/_lib/formatDistance/index.js new file mode 100644 index 00000000..0716ed65 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatDistance/index.js @@ -0,0 +1,188 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'weniger als eine Sekunde', + other: 'weniger als {{count}} Sekunden' + }, + withPreposition: { + one: 'weniger als einer Sekunde', + other: 'weniger als {{count}} Sekunden' + } + }, + xSeconds: { + standalone: { + one: 'eine Sekunde', + other: '{{count}} Sekunden' + }, + withPreposition: { + one: 'einer Sekunde', + other: '{{count}} Sekunden' + } + }, + halfAMinute: { + standalone: 'eine halbe Minute', + withPreposition: 'einer halben Minute' + }, + lessThanXMinutes: { + standalone: { + one: 'weniger als eine Minute', + other: 'weniger als {{count}} Minuten' + }, + withPreposition: { + one: 'weniger als einer Minute', + other: 'weniger als {{count}} Minuten' + } + }, + xMinutes: { + standalone: { + one: 'eine Minute', + other: '{{count}} Minuten' + }, + withPreposition: { + one: 'einer Minute', + other: '{{count}} Minuten' + } + }, + aboutXHours: { + standalone: { + one: 'etwa eine Stunde', + other: 'etwa {{count}} Stunden' + }, + withPreposition: { + one: 'etwa einer Stunde', + other: 'etwa {{count}} Stunden' + } + }, + xHours: { + standalone: { + one: 'eine Stunde', + other: '{{count}} Stunden' + }, + withPreposition: { + one: 'einer Stunde', + other: '{{count}} Stunden' + } + }, + xDays: { + standalone: { + one: 'ein Tag', + other: '{{count}} Tage' + }, + withPreposition: { + one: 'einem Tag', + other: '{{count}} Tagen' + } + }, + aboutXWeeks: { + standalone: { + one: 'etwa ein Woche', + other: 'etwa {{count}} Wochen' + }, + withPreposition: { + one: 'etwa einem Woche', + other: 'etwa {{count}} Wochen' + } + }, + xWeeks: { + standalone: { + one: 'ein Woche', + other: '{{count}} Wochen' + }, + withPreposition: { + one: 'einem Woche', + other: '{{count}} Wochen' + } + }, + aboutXMonths: { + standalone: { + one: 'etwa ein Monat', + other: 'etwa {{count}} Monate' + }, + withPreposition: { + one: 'etwa einem Monat', + other: 'etwa {{count}} Monaten' + } + }, + xMonths: { + standalone: { + one: 'ein Monat', + other: '{{count}} Monate' + }, + withPreposition: { + one: 'einem Monat', + other: '{{count}} Monaten' + } + }, + aboutXYears: { + standalone: { + one: 'etwa ein Jahr', + other: 'etwa {{count}} Jahre' + }, + withPreposition: { + one: 'etwa einem Jahr', + other: 'etwa {{count}} Jahren' + } + }, + xYears: { + standalone: { + one: 'ein Jahr', + other: '{{count}} Jahre' + }, + withPreposition: { + one: 'einem Jahr', + other: '{{count}} Jahren' + } + }, + overXYears: { + standalone: { + one: 'mehr als ein Jahr', + other: 'mehr als {{count}} Jahre' + }, + withPreposition: { + one: 'mehr als einem Jahr', + other: 'mehr als {{count}} Jahren' + } + }, + almostXYears: { + standalone: { + one: 'fast ein Jahr', + other: 'fast {{count}} Jahre' + }, + withPreposition: { + one: 'fast einem Jahr', + other: 'fast {{count}} Jahren' + } + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'in ' + result; + } else { + return 'vor ' + result; + } + } + + return result; +} + +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..3a2635ba --- /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..e965d704 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..3d3696f8 --- /dev/null +++ b/node_modules/date-fns/locale/de/_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: ['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'] +}; +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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/de/_lib/match/index.js b/node_modules/date-fns/locale/de/_lib/match/index.js new file mode 100644 index 00000000..d72d85e6 --- /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/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: /^(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: /^(jan|feb|mär|apr|mai|jun|jul|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: [/^ja/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/el/_lib/formatDistance/index.js b/node_modules/date-fns/locale/el/_lib/formatDistance/index.js new file mode 100644 index 00000000..97a26843 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} χρόνια' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'σε ' + result; + } else { + return result + ' πριν'; + } + } + + return result; +} + +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..3b542adc --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative/index.js @@ -0,0 +1,31 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: function (date) { + switch (date.getUTCDay()) { + case 6: + //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === 'function') return format(date, baseDate, options); + return format; +} + +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..84de0171 --- /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: 'νύχτα' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(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 dirtyNumber + suffix; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..67ae4ff0 --- /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/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: /^(πΧ|μΧ)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b60ef6fd --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +} + +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..27e466be --- /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("./_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 (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: _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-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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..28be5f42 --- /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("./_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 (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: _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-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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..30cbfb5d --- /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("./_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 (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: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..e9eb9ba2 --- /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("./_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 (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: _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-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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b79b936c --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +} + +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..c8c744e9 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..09af40b1 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize/index.js @@ -0,0 +1,161 @@ +"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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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 (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/en-US/_lib/match/index.js b/node_modules/date-fns/locale/en-US/_lib/match/index.js new file mode 100644 index 00000000..327bac12 --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..15bdad0c --- /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, 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-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..a61171cb --- /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("./_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 (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: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/eo/_lib/formatDistance/index.js b/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js new file mode 100644 index 00000000..f858554d --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'post ' + result; + } else { + return 'antaŭ ' + result; + } + } + + return result; +} + +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..2fb27f82 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..f360c0e4 --- /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' + } +}; + +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 (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..5b1773b6 --- /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 (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 (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..d668d1ee --- /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 Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ +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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/es/_lib/formatDistance/index.js b/node_modules/date-fns/locale/es/_lib/formatDistance/index.js new file mode 100644 index 00000000..22f2e7b2 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'hace ' + result; + } + } + + return result; +} + +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..03789bf9 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative/index.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' LT", + 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' +}; + +function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} + +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..90c81dcf --- /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', 'sa'], + 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' + } +}; + +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 (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..b410194b --- /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|sa)/i, + abbreviated: /^(dom|lun|mar|mie|jue|vie|sab)/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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/et/_lib/formatDistance/index.js b/node_modules/date-fns/locale/et/_lib/formatDistance/index.js new file mode 100644 index 00000000..0dfad76f --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance/index.js @@ -0,0 +1,188 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' pärast'; + } else { + return result + ' eest'; + } + } + + return result; +} + +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..427469c4 --- /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..2ead5e48 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..ab0f1c03 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize/index.js @@ -0,0 +1,134 @@ +"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' + } +}; + +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 (quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + formattingValues: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + formattingValues: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + formattingValues: formattingDayPeriodValues, + 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/et/_lib/match/index.js b/node_modules/date-fns/locale/et/_lib/match/index.js new file mode 100644 index 00000000..e4c46dbf --- /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/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: /^(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, /^jun/i, /^jul/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öö|keskpäev|hommik|pärastlõuna|õhtu|öö)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/eu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/eu/_lib/formatDistance/index.js new file mode 100644 index 00000000..9ae7e858 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'duela ' + result; + } + } + + return result; +} + +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..b0defa3d --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative/index.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} + +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..69e5c787 --- /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' + } +}; + +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 (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/eu/_lib/match/index.js b/node_modules/date-fns/locale/eu/_lib/match/index.js new file mode 100644 index 00000000..275209ff --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..8dba78ee --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} سال' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'در ' + result; + } else { + return result + ' قبل'; + } + } + + return result; +} + +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..5d2e0874 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..12b4372d --- /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: 'شب' + } +}; + +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 (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/fa-IR/_lib/match/index.js b/node_modules/date-fns/locale/fa-IR/_lib/match/index.js new file mode 100644 index 00000000..31045ab6 --- /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/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?م\.?|م\.?\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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..df071d98 --- /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: 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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/fi/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js new file mode 100644 index 00000000..7a4a970c --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js @@ -0,0 +1,137 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +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 (_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 + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var distance = formatDistanceLocale[token]; + var result = count === 1 ? distance.one : distance.other.replace('{{count}}', count); + + if (options.addSuffix) { + if (options.comparison > 0) { + return distance.futureTense(result) + ' kuluttua'; + } else { + return result + ' sitten'; + } + } + + return result; +} + +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..90594824 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..7d75ed68 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize/index.js @@ -0,0 +1,116 @@ +"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: monthValues.wide.map(function (name) { + return name + 'ta'; + }) +}; +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: dayValues.wide.map(function (name) { + return name + 'na'; + }) +}; +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ä' + } +}; + +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 (quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + formattingValues: formattingDayValues, + 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/fi/_lib/match/index.js b/node_modules/date-fns/locale/fi/_lib/match/index.js new file mode 100644 index 00000000..1ddacb2d --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/fr-CH/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fr-CH/_lib/formatDistance/index.js new file mode 100644 index 00000000..a4bb13cb --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dans ' + result; + } else { + return 'il y a ' + result; + } + } + + return result; +} + +module.exports = exports.default; \ 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..ae07c4b9 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatters/index.js b/node_modules/date-fns/locale/fr-CH/_lib/formatters/index.js new file mode 100644 index 00000000..9daa1e0d --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatters/index.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatters = {}; // Special case for day of month ordinals in long date format context: +// 1er mars, 2 mars, 3 mars, … +// See https://github.com/date-fns/date-fns/issues/437 + +var monthsTokens = ['MMM', 'MMMM']; +monthsTokens.forEach(function (monthToken) { + formatters['Do ' + monthToken] = function (date, options) { + var commonFormatters = options.formatters; + var dayOfMonthToken = date.getUTCDate() === 1 ? 'Do' : 'D'; + var dayOfMonthFormatter = commonFormatters[dayOfMonthToken]; + var monthFormatter = commonFormatters[monthToken]; + return dayOfMonthFormatter(date, options) + ' ' + monthFormatter(date, options); + }; +}); +var _default = formatters; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/_lib/localize/index.js b/node_modules/date-fns/locale/fr-CH/_lib/localize/index.js new file mode 100644 index 00000000..e949895d --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/localize/index.js @@ -0,0 +1,121 @@ +"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' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + var suffix; + + if (number === 0) { + return number; + } + + if (unit === 'year' || unit === 'hour' || unit === 'week') { + if (number === 1) { + suffix = 'ère'; + } else { + suffix = 'ème'; + } + } else { + if (number === 1) { + suffix = '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 (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/fr-CH/_lib/match/index.js b/node_modules/date-fns/locale/fr-CH/_lib/match/index.js new file mode 100644 index 00000000..bd12eeaa --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_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/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è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: /^[1234]/i, + abbreviated: /^t[1234]/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..221deaeb --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/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 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} + * @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: _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-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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/fr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fr/_lib/formatDistance/index.js new file mode 100644 index 00000000..a4bb13cb --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dans ' + result; + } else { + return 'il y a ' + result; + } + } + + return result; +} + +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..56ab5d69 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/_lib/formatters/index.js b/node_modules/date-fns/locale/fr/_lib/formatters/index.js new file mode 100644 index 00000000..9daa1e0d --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatters/index.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatters = {}; // Special case for day of month ordinals in long date format context: +// 1er mars, 2 mars, 3 mars, … +// See https://github.com/date-fns/date-fns/issues/437 + +var monthsTokens = ['MMM', 'MMMM']; +monthsTokens.forEach(function (monthToken) { + formatters['Do ' + monthToken] = function (date, options) { + var commonFormatters = options.formatters; + var dayOfMonthToken = date.getUTCDate() === 1 ? 'Do' : 'D'; + var dayOfMonthFormatter = commonFormatters[dayOfMonthToken]; + var monthFormatter = commonFormatters[monthToken]; + return dayOfMonthFormatter(date, options) + ' ' + monthFormatter(date, options); + }; +}); +var _default = formatters; +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..e949895d --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize/index.js @@ -0,0 +1,121 @@ +"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' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + var suffix; + + if (number === 0) { + return number; + } + + if (unit === 'year' || unit === 'hour' || unit === 'week') { + if (number === 1) { + suffix = 'ère'; + } else { + suffix = 'ème'; + } + } else { + if (number === 1) { + suffix = '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 (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/fr/_lib/match/index.js b/node_modules/date-fns/locale/fr/_lib/match/index.js new file mode 100644 index 00000000..bd12eeaa --- /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/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è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: /^[1234]/i, + abbreviated: /^t[1234]/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..38296a8e --- /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: 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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/gd/_lib/formatDistance/index.js b/node_modules/date-fns/locale/gd/_lib/formatDistance/index.js new file mode 100644 index 00000000..23e06d10 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance/index.js @@ -0,0 +1,108 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2 && !!formatDistanceLocale[token].two) { + result = formatDistanceLocale[token].two; + } else if (count === 9 && !!formatDistanceLocale[token].nine) { + result = formatDistanceLocale[token].nine; + } else if (count === 20 && !!formatDistanceLocale[token].twenty) { + result = formatDistanceLocale[token].twenty; + } else if (count === 30 && !!formatDistanceLocale[token].thirty) { + result = formatDistanceLocale[token].thirty; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'ann an ' + result; + } else { + return 'o chionn ' + result; + } + } + + return result; +} + +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..63269fa5 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative/index.js @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..59b58392 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_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: ['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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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 + '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 (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/gd/_lib/match/index.js b/node_modules/date-fns/locale/gd/_lib/match/index.js new file mode 100644 index 00000000..26a58402 --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/gl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/gl/_lib/formatDistance/index.js new file mode 100644 index 00000000..7de59e79 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'en ' + result; + } else { + return 'hai ' + result; + } + } + + return result; +} + +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..6dc29538 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative/index.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +} + +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..67d977d1 --- /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' + } +}; + +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 (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/gl/_lib/match/index.js b/node_modules/date-fns/locale/gl/_lib/match/index.js new file mode 100644 index 00000000..1b7fb4e4 --- /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/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 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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/gu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js new file mode 100644 index 00000000..e3f74e81 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js @@ -0,0 +1,97 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +// 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}} વર્ષ' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + 'માં'; + } else { + return result + ' પહેલાં'; + } + } + + return result; +} + +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..799add9d --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative/index.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +// 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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..39e21896 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize/index.js @@ -0,0 +1,161 @@ +"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: 'રાત્રે' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/gu/_lib/match/index.js b/node_modules/date-fns/locale/gu/_lib/match/index.js new file mode 100644 index 00000000..cd69ef84 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_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/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: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i +}; +var parseEraPatterns = { + any: [/^(ઈસપૂ|ઈસ)/i, /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/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 = { + 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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/he/_lib/formatDistance/index.js b/node_modules/date-fns/locale/he/_lib/formatDistance/index.js new file mode 100644 index 00000000..b79c720a --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance/index.js @@ -0,0 +1,124 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} שנים' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; // Return word instead of `in one day` or `one day ago` + + if (token === 'xDays' && options.addSuffix && count <= 2) { + var past = { + 1: 'אתמול', + 2: 'שלשום' + }; + var future = { + 1: 'מחר', + 2: 'מחרתיים' + }; + return options.comparison > 0 ? future[count] : past[count]; + } + + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2) { + result = formatDistanceLocale[token].two; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'בעוד ' + result; + } else { + return 'לפני ' + result; + } + } + + return result; +} + +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..f2cb9fdd --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..29e7dde0 --- /dev/null +++ b/node_modules/date-fns/locale/he/_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 }; } + +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: 'בלילה' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); // We only show words till 10 + + if (number <= 0 || number > 10) return number; + var options = dirtyOptions || {}; + var unit = String(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 (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/he/_lib/match/index.js b/node_modules/date-fns/locale/he/_lib/match/index.js new file mode 100644 index 00000000..fb33ea19 --- /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/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: /^ל(ספירה|פנה״ס)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + var number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + } + }), + 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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/hi/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hi/_lib/formatDistance/index.js new file mode 100644 index 00000000..b8a0dba4 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance/index.js @@ -0,0 +1,106 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +var _index = _interopRequireDefault(require("../localize/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// 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}} वर्ष' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', _index.default.numberToLocale(count)); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + 'मे '; + } else { + return result + ' पहले'; + } + } + + return result; +} + +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..a77bf591 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..416ca47f --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize/index.js @@ -0,0 +1,198 @@ +"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 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: 'रात' + } +}; + +function ordinalNumber(dirtyNumber) { + var number = localize.localeToNumber(dirtyNumber); + var localeNumber = localize.numberToLocale(number); + var rem10 = number % 10; + + switch (rem10) { + case 2: + case 3: + case 4: + case 6: + case 1: + case 5: + case 7: + case 8: + case 9: + case 0: + return localeNumber; + } +} + +function localeToNumber(locale) { + var number = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(number); +} + +function numberToLocale(number) { + return number.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +var localize = { + localeToNumber: localeToNumber, + numberToLocale: numberToLocale, + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/hi/_lib/match/index.js b/node_modules/date-fns/locale/hi/_lib/match/index.js new file mode 100644 index 00000000..c85bb977 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index3 = _interopRequireDefault(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 = { + 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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: _index3.default.localeToNumber + }), + 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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/hr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hr/_lib/formatDistance/index.js new file mode 100644 index 00000000..23da25b8 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance/index.js @@ -0,0 +1,181 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix) { + if (options.comparison > 0) { + result = formatDistanceLocale[token].one.withPrepositionIn; + } else { + result = formatDistanceLocale[token].one.withPrepositionAgo; + } + } else { + result = formatDistanceLocale[token].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 = formatDistanceLocale[token].dual.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'za ' + result; + } else { + return 'prije ' + result; + } + } + + return result; +} + +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..5f153459 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: function (date) { + var day = date.getUTCDay(); + + switch (day) { + 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 (date) { + var day = date.getUTCDay(); + + switch (day) { + 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' +}; + +function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} + +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..d91cedc4 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_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 }; } + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Kr.', 'po. Kr.'], + wide: ['Prije Krista', 'Poslije Krista'] +}; +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 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 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 localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..3dc7fa83 --- /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: [/(10|11|12|[123456789])/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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/hu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js new file mode 100644 index 00000000..cfceed04 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function translate(number, addSuffix, key, comparison) { + var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; + + if (key === 'halfaminute') { + return translated; + } + + return number + translated; +} + +function formatDistance(token, count, options) { + options = options || {}; + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = token.replace(adverb, ''); + var result; + result = translate(count, options.addSuffix, unit.toLowerCase(), options.comparison); + + if (adverb) { + result = translations[adverb[0].toLowerCase()] + ' ' + result; + } + + return result; +} + +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..73db9ac7 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative/index.js @@ -0,0 +1,35 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var accusativeWeekdays = ['vasárnap', 'hétfőn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton']; + +function week(isFuture) { + return function (date, _baseDate, _options) { + var day = date.getUTCDay(); + return (isFuture ? '' : "'múlt' ") + "'" + accusativeWeekdays[day] + "'" + " p'-kor'"; + }; +} + +var formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..dbe854e1 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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, + argumentCallback: function (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', + 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/hu/_lib/match/index.js b/node_modules/date-fns/locale/hu/_lib/match/index.js new file mode 100644 index 00000000..fcce779c --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..333b37d7 --- /dev/null +++ b/node_modules/date-fns/locale/hu/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 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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/hy/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hy/_lib/formatDistance/index.js new file mode 100644 index 00000000..1f584735 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} տարի' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' հետո'; + } else { + return result + ' առաջ'; + } + } + + return result; +} + +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..c50a8087 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..9b47fbfe --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize/index.js @@ -0,0 +1,150 @@ +"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: 'գիշերը' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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 (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/hy/_lib/match/index.js b/node_modules/date-fns/locale/hy/_lib/match/index.js new file mode 100644 index 00000000..a5c3ef96 --- /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/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: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i +}; +var parseEraPatterns = { + any: [/^(ք|մ)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/id/_lib/formatDistance/index.js b/node_modules/date-fns/locale/id/_lib/formatDistance/index.js new file mode 100644 index 00000000..fe08b7cb --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dalam waktu ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +} + +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..d4ebdf84 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..6ed4c1d0 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize/index.js @@ -0,0 +1,143 @@ +"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', 'Ags', '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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed + + switch (number) { + default: + 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 (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/id/_lib/match/index.js b/node_modules/date-fns/locale/id/_lib/match/index.js new file mode 100644 index 00000000..849eb97a --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/index.js b/node_modules/date-fns/locale/index.js new file mode 100644 index 00000000..f870474e --- /dev/null +++ b/node_modules/date-fns/locale/index.js @@ -0,0 +1,615 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "af", { + enumerable: true, + get: function () { + return _index.default; + } +}); +Object.defineProperty(exports, "arDZ", { + enumerable: true, + get: function () { + return _index2.default; + } +}); +Object.defineProperty(exports, "arMA", { + enumerable: true, + get: function () { + return _index3.default; + } +}); +Object.defineProperty(exports, "arSA", { + enumerable: true, + get: function () { + return _index4.default; + } +}); +Object.defineProperty(exports, "az", { + enumerable: true, + get: function () { + return _index5.default; + } +}); +Object.defineProperty(exports, "be", { + enumerable: true, + get: function () { + return _index6.default; + } +}); +Object.defineProperty(exports, "bg", { + enumerable: true, + get: function () { + return _index7.default; + } +}); +Object.defineProperty(exports, "bn", { + enumerable: true, + get: function () { + return _index8.default; + } +}); +Object.defineProperty(exports, "ca", { + enumerable: true, + get: function () { + return _index9.default; + } +}); +Object.defineProperty(exports, "cs", { + enumerable: true, + get: function () { + return _index10.default; + } +}); +Object.defineProperty(exports, "cy", { + enumerable: true, + get: function () { + return _index11.default; + } +}); +Object.defineProperty(exports, "da", { + enumerable: true, + get: function () { + return _index12.default; + } +}); +Object.defineProperty(exports, "de", { + enumerable: true, + get: function () { + return _index13.default; + } +}); +Object.defineProperty(exports, "el", { + enumerable: true, + get: function () { + return _index14.default; + } +}); +Object.defineProperty(exports, "enAU", { + enumerable: true, + get: function () { + return _index15.default; + } +}); +Object.defineProperty(exports, "enCA", { + enumerable: true, + get: function () { + return _index16.default; + } +}); +Object.defineProperty(exports, "enGB", { + enumerable: true, + get: function () { + return _index17.default; + } +}); +Object.defineProperty(exports, "enIN", { + enumerable: true, + get: function () { + return _index18.default; + } +}); +Object.defineProperty(exports, "enNZ", { + enumerable: true, + get: function () { + return _index19.default; + } +}); +Object.defineProperty(exports, "enUS", { + enumerable: true, + get: function () { + return _index20.default; + } +}); +Object.defineProperty(exports, "enZA", { + enumerable: true, + get: function () { + return _index21.default; + } +}); +Object.defineProperty(exports, "eo", { + enumerable: true, + get: function () { + return _index22.default; + } +}); +Object.defineProperty(exports, "es", { + enumerable: true, + get: function () { + return _index23.default; + } +}); +Object.defineProperty(exports, "et", { + enumerable: true, + get: function () { + return _index24.default; + } +}); +Object.defineProperty(exports, "eu", { + enumerable: true, + get: function () { + return _index25.default; + } +}); +Object.defineProperty(exports, "faIR", { + enumerable: true, + get: function () { + return _index26.default; + } +}); +Object.defineProperty(exports, "fi", { + enumerable: true, + get: function () { + return _index27.default; + } +}); +Object.defineProperty(exports, "fr", { + enumerable: true, + get: function () { + return _index28.default; + } +}); +Object.defineProperty(exports, "frCA", { + enumerable: true, + get: function () { + return _index29.default; + } +}); +Object.defineProperty(exports, "frCH", { + enumerable: true, + get: function () { + return _index30.default; + } +}); +Object.defineProperty(exports, "gd", { + enumerable: true, + get: function () { + return _index31.default; + } +}); +Object.defineProperty(exports, "gl", { + enumerable: true, + get: function () { + return _index32.default; + } +}); +Object.defineProperty(exports, "gu", { + enumerable: true, + get: function () { + return _index33.default; + } +}); +Object.defineProperty(exports, "he", { + enumerable: true, + get: function () { + return _index34.default; + } +}); +Object.defineProperty(exports, "hi", { + enumerable: true, + get: function () { + return _index35.default; + } +}); +Object.defineProperty(exports, "hr", { + enumerable: true, + get: function () { + return _index36.default; + } +}); +Object.defineProperty(exports, "hu", { + enumerable: true, + get: function () { + return _index37.default; + } +}); +Object.defineProperty(exports, "hy", { + enumerable: true, + get: function () { + return _index38.default; + } +}); +Object.defineProperty(exports, "id", { + enumerable: true, + get: function () { + return _index39.default; + } +}); +Object.defineProperty(exports, "is", { + enumerable: true, + get: function () { + return _index40.default; + } +}); +Object.defineProperty(exports, "it", { + enumerable: true, + get: function () { + return _index41.default; + } +}); +Object.defineProperty(exports, "ja", { + enumerable: true, + get: function () { + return _index42.default; + } +}); +Object.defineProperty(exports, "ka", { + enumerable: true, + get: function () { + return _index43.default; + } +}); +Object.defineProperty(exports, "kk", { + enumerable: true, + get: function () { + return _index44.default; + } +}); +Object.defineProperty(exports, "kn", { + enumerable: true, + get: function () { + return _index45.default; + } +}); +Object.defineProperty(exports, "ko", { + enumerable: true, + get: function () { + return _index46.default; + } +}); +Object.defineProperty(exports, "lb", { + enumerable: true, + get: function () { + return _index47.default; + } +}); +Object.defineProperty(exports, "lt", { + enumerable: true, + get: function () { + return _index48.default; + } +}); +Object.defineProperty(exports, "lv", { + enumerable: true, + get: function () { + return _index49.default; + } +}); +Object.defineProperty(exports, "mk", { + enumerable: true, + get: function () { + return _index50.default; + } +}); +Object.defineProperty(exports, "ms", { + enumerable: true, + get: function () { + return _index51.default; + } +}); +Object.defineProperty(exports, "mt", { + enumerable: true, + get: function () { + return _index52.default; + } +}); +Object.defineProperty(exports, "nb", { + enumerable: true, + get: function () { + return _index53.default; + } +}); +Object.defineProperty(exports, "nl", { + enumerable: true, + get: function () { + return _index54.default; + } +}); +Object.defineProperty(exports, "nlBE", { + enumerable: true, + get: function () { + return _index55.default; + } +}); +Object.defineProperty(exports, "nn", { + enumerable: true, + get: function () { + return _index56.default; + } +}); +Object.defineProperty(exports, "pl", { + enumerable: true, + get: function () { + return _index57.default; + } +}); +Object.defineProperty(exports, "pt", { + enumerable: true, + get: function () { + return _index58.default; + } +}); +Object.defineProperty(exports, "ptBR", { + enumerable: true, + get: function () { + return _index59.default; + } +}); +Object.defineProperty(exports, "ro", { + enumerable: true, + get: function () { + return _index60.default; + } +}); +Object.defineProperty(exports, "ru", { + enumerable: true, + get: function () { + return _index61.default; + } +}); +Object.defineProperty(exports, "sk", { + enumerable: true, + get: function () { + return _index62.default; + } +}); +Object.defineProperty(exports, "sl", { + enumerable: true, + get: function () { + return _index63.default; + } +}); +Object.defineProperty(exports, "sr", { + enumerable: true, + get: function () { + return _index64.default; + } +}); +Object.defineProperty(exports, "srLatn", { + enumerable: true, + get: function () { + return _index65.default; + } +}); +Object.defineProperty(exports, "sv", { + enumerable: true, + get: function () { + return _index66.default; + } +}); +Object.defineProperty(exports, "ta", { + enumerable: true, + get: function () { + return _index67.default; + } +}); +Object.defineProperty(exports, "te", { + enumerable: true, + get: function () { + return _index68.default; + } +}); +Object.defineProperty(exports, "th", { + enumerable: true, + get: function () { + return _index69.default; + } +}); +Object.defineProperty(exports, "tr", { + enumerable: true, + get: function () { + return _index70.default; + } +}); +Object.defineProperty(exports, "ug", { + enumerable: true, + get: function () { + return _index71.default; + } +}); +Object.defineProperty(exports, "uk", { + enumerable: true, + get: function () { + return _index72.default; + } +}); +Object.defineProperty(exports, "uz", { + enumerable: true, + get: function () { + return _index73.default; + } +}); +Object.defineProperty(exports, "vi", { + enumerable: true, + get: function () { + return _index74.default; + } +}); +Object.defineProperty(exports, "zhCN", { + enumerable: true, + get: function () { + return _index75.default; + } +}); +Object.defineProperty(exports, "zhTW", { + enumerable: true, + get: function () { + return _index76.default; + } +}); + +var _index = _interopRequireDefault(require("./af/index.js")); + +var _index2 = _interopRequireDefault(require("./ar-DZ/index.js")); + +var _index3 = _interopRequireDefault(require("./ar-MA/index.js")); + +var _index4 = _interopRequireDefault(require("./ar-SA/index.js")); + +var _index5 = _interopRequireDefault(require("./az/index.js")); + +var _index6 = _interopRequireDefault(require("./be/index.js")); + +var _index7 = _interopRequireDefault(require("./bg/index.js")); + +var _index8 = _interopRequireDefault(require("./bn/index.js")); + +var _index9 = _interopRequireDefault(require("./ca/index.js")); + +var _index10 = _interopRequireDefault(require("./cs/index.js")); + +var _index11 = _interopRequireDefault(require("./cy/index.js")); + +var _index12 = _interopRequireDefault(require("./da/index.js")); + +var _index13 = _interopRequireDefault(require("./de/index.js")); + +var _index14 = _interopRequireDefault(require("./el/index.js")); + +var _index15 = _interopRequireDefault(require("./en-AU/index.js")); + +var _index16 = _interopRequireDefault(require("./en-CA/index.js")); + +var _index17 = _interopRequireDefault(require("./en-GB/index.js")); + +var _index18 = _interopRequireDefault(require("./en-IN/index.js")); + +var _index19 = _interopRequireDefault(require("./en-NZ/index.js")); + +var _index20 = _interopRequireDefault(require("./en-US/index.js")); + +var _index21 = _interopRequireDefault(require("./en-ZA/index.js")); + +var _index22 = _interopRequireDefault(require("./eo/index.js")); + +var _index23 = _interopRequireDefault(require("./es/index.js")); + +var _index24 = _interopRequireDefault(require("./et/index.js")); + +var _index25 = _interopRequireDefault(require("./eu/index.js")); + +var _index26 = _interopRequireDefault(require("./fa-IR/index.js")); + +var _index27 = _interopRequireDefault(require("./fi/index.js")); + +var _index28 = _interopRequireDefault(require("./fr/index.js")); + +var _index29 = _interopRequireDefault(require("./fr-CA/index.js")); + +var _index30 = _interopRequireDefault(require("./fr-CH/index.js")); + +var _index31 = _interopRequireDefault(require("./gd/index.js")); + +var _index32 = _interopRequireDefault(require("./gl/index.js")); + +var _index33 = _interopRequireDefault(require("./gu/index.js")); + +var _index34 = _interopRequireDefault(require("./he/index.js")); + +var _index35 = _interopRequireDefault(require("./hi/index.js")); + +var _index36 = _interopRequireDefault(require("./hr/index.js")); + +var _index37 = _interopRequireDefault(require("./hu/index.js")); + +var _index38 = _interopRequireDefault(require("./hy/index.js")); + +var _index39 = _interopRequireDefault(require("./id/index.js")); + +var _index40 = _interopRequireDefault(require("./is/index.js")); + +var _index41 = _interopRequireDefault(require("./it/index.js")); + +var _index42 = _interopRequireDefault(require("./ja/index.js")); + +var _index43 = _interopRequireDefault(require("./ka/index.js")); + +var _index44 = _interopRequireDefault(require("./kk/index.js")); + +var _index45 = _interopRequireDefault(require("./kn/index.js")); + +var _index46 = _interopRequireDefault(require("./ko/index.js")); + +var _index47 = _interopRequireDefault(require("./lb/index.js")); + +var _index48 = _interopRequireDefault(require("./lt/index.js")); + +var _index49 = _interopRequireDefault(require("./lv/index.js")); + +var _index50 = _interopRequireDefault(require("./mk/index.js")); + +var _index51 = _interopRequireDefault(require("./ms/index.js")); + +var _index52 = _interopRequireDefault(require("./mt/index.js")); + +var _index53 = _interopRequireDefault(require("./nb/index.js")); + +var _index54 = _interopRequireDefault(require("./nl/index.js")); + +var _index55 = _interopRequireDefault(require("./nl-BE/index.js")); + +var _index56 = _interopRequireDefault(require("./nn/index.js")); + +var _index57 = _interopRequireDefault(require("./pl/index.js")); + +var _index58 = _interopRequireDefault(require("./pt/index.js")); + +var _index59 = _interopRequireDefault(require("./pt-BR/index.js")); + +var _index60 = _interopRequireDefault(require("./ro/index.js")); + +var _index61 = _interopRequireDefault(require("./ru/index.js")); + +var _index62 = _interopRequireDefault(require("./sk/index.js")); + +var _index63 = _interopRequireDefault(require("./sl/index.js")); + +var _index64 = _interopRequireDefault(require("./sr/index.js")); + +var _index65 = _interopRequireDefault(require("./sr-Latn/index.js")); + +var _index66 = _interopRequireDefault(require("./sv/index.js")); + +var _index67 = _interopRequireDefault(require("./ta/index.js")); + +var _index68 = _interopRequireDefault(require("./te/index.js")); + +var _index69 = _interopRequireDefault(require("./th/index.js")); + +var _index70 = _interopRequireDefault(require("./tr/index.js")); + +var _index71 = _interopRequireDefault(require("./ug/index.js")); + +var _index72 = _interopRequireDefault(require("./uk/index.js")); + +var _index73 = _interopRequireDefault(require("./uz/index.js")); + +var _index74 = _interopRequireDefault(require("./vi/index.js")); + +var _index75 = _interopRequireDefault(require("./zh-CN/index.js")); + +var _index76 = _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..ee5baf35 --- /dev/null +++ b/node_modules/date-fns/locale/index.js.flow @@ -0,0 +1,114 @@ +// @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, + arMA: Locale, + arSA: Locale, + az: Locale, + be: Locale, + bg: Locale, + bn: Locale, + ca: Locale, + cs: Locale, + cy: Locale, + da: Locale, + de: Locale, + el: Locale, + enAU: Locale, + enCA: Locale, + enGB: Locale, + enIN: Locale, + enNZ: Locale, + enUS: Locale, + enZA: Locale, + eo: Locale, + es: Locale, + et: Locale, + eu: Locale, + faIR: Locale, + fi: Locale, + fil: Locale, + fr: Locale, + frCA: Locale, + frCH: Locale, + gd: Locale, + gl: Locale, + gu: Locale, + he: Locale, + hi: Locale, + hr: Locale, + hu: Locale, + hy: Locale, + id: Locale, + is: Locale, + it: Locale, + ja: Locale, + ka: Locale, + kk: Locale, + kn: Locale, + ko: Locale, + lb: Locale, + lt: Locale, + lv: Locale, + mk: Locale, + ms: Locale, + mt: Locale, + nb: Locale, + nl: Locale, + nlBE: Locale, + nn: Locale, + pl: Locale, + pt: Locale, + ptBR: Locale, + ro: Locale, + ru: Locale, + sk: Locale, + sl: Locale, + sr: Locale, + srLatn: Locale, + sv: Locale, + ta: Locale, + te: Locale, + th: Locale, + tr: Locale, + ug: Locale, + uk: Locale, + uz: Locale, + vi: Locale, + zhCN: 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..993cc0e0 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'í ' + result; + } else { + return result + ' síðan'; + } + } + + return result; +} + +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..b689ade7 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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: 'L' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..97faa4e3 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/is/_lib/match/index.js b/node_modules/date-fns/locale/is/_lib/match/index.js new file mode 100644 index 00000000..1a96953b --- /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/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: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i +}; +var parseEraPatterns = { + any: [/^(f\.Kr\.|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|februar|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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/it/_lib/formatDistance/index.js b/node_modules/date-fns/locale/it/_lib/formatDistance/index.js new file mode 100644 index 00000000..99d33ada --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'tra ' + result; + } else { + return result + ' fa'; + } + } + + return result; +} + +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..24b202f1 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative/index.js @@ -0,0 +1,73 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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 (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..70c40dbb --- /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' + } +}; + +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 (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/it/_lib/match/index.js b/node_modules/date-fns/locale/it/_lib/match/index.js new file mode 100644 index 00000000..2ddcba4c --- /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/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)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ja/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ja/_lib/formatDistance/index.js new file mode 100644 index 00000000..daae9445 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance/index.js @@ -0,0 +1,106 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}}年近く' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix && formatDistanceLocale[token].oneWithSuffix) { + result = formatDistanceLocale[token].oneWithSuffix; + } else { + result = formatDistanceLocale[token].one; + } + } else { + if (options.addSuffix && formatDistanceLocale[token].otherWithSuffix) { + result = formatDistanceLocale[token].otherWithSuffix.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + '後'; + } else { + return result + '前'; + } + } + + return result; +} + +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..f2295759 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: '先週のeeeeのp', + yesterday: '昨日のp', + today: '今日のp', + tomorrow: '明日のp', + nextWeek: '翌週のeeeeのp', + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..31fc0326 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_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: ['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: '深夜' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + var options = dirtyOptions || {}; + var unit = String(options.unit); + + if (unit === 'date') { + return number + '日'; + } + + if (unit === 'year') { + 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 (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..484723b3 --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ka/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ka/_lib/formatDistance/index.js new file mode 100644 index 00000000..67550220 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatDistance/index.js @@ -0,0 +1,107 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} წელში' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (options.addSuffix && options.comparison > 0) { + result = formatDistanceLocale[token].future.replace('{{count}}', count); + } else if (options.addSuffix && options.comparison <= 0) { + result = formatDistanceLocale[token].past.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].present.replace('{{count}}', count); + } + + return result; +} + +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..e4f04142 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'წინა' eeee LT'-ზე'", + yesterday: "'გუშინ' LT'-ზე'", + today: "'დღეს' LT'-ზე'", + tomorrow: "'ხვალ' LT'-ზე'", + nextWeek: "'შემდეგი' eeee LT'-ზე'", + other: 'L' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..91cef533 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize/index.js @@ -0,0 +1,150 @@ +"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: 'ღამით' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + 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 (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/ka/_lib/match/index.js b/node_modules/date-fns/locale/ka/_lib/match/index.js new file mode 100644 index 00000000..58255ade --- /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/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: /^(ჩვ?\.წ)/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, + long: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/kk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/kk/_lib/formatDistance/index.js new file mode 100644 index 00000000..e472a3cc --- /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 = formatDistance; + +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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: '1 секундтан аз', + 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 (_, options) { + if (options.addSuffix) { + if (options.comparison > 0) { + return 'жарты минут ішінде'; + } else { + return 'жарты минут бұрын'; + } + } + + return 'жарты минут'; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: '1 минуттан аз', + 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}} күн' + }, + future: { + singularNominative: '{{count}} күннен кейін', + singularGenitive: '{{count}} күннен кейін', + pluralGenitive: '{{count}} күннен кейін' + } + }), + aboutXWeeks: { + one: 'шамамен 1 апта', + other: 'шамамен {{count}} апта' + }, + xWeeks: { + one: '1 апта', + other: '{{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}} жыл' + }, + future: { + 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}} жылдан кейін' + } + }) +}; + +function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} + +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..fe2f58be --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative/index.js @@ -0,0 +1,64 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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 (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..6016de0c --- /dev/null +++ b/node_modules/date-fns/locale/kk/_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: ['б.з.д.', 'б.з.'], + 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: '-ші' +}; + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var a = number % 10; + var b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[a] || suffixes[b]); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..adb8ec80 --- /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/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: /^((б )?з\.?\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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/kn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/kn/_lib/formatDistance/index.js new file mode 100644 index 00000000..bece561a --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance/index.js @@ -0,0 +1,200 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} ದಿನಗಳ ಹಿಂದೆ' + } + }, + 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.addSuffix) { + if (options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + + return parentToken.default; +} + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = getResultByTense(formatDistanceLocale[token].one, options); + } else { + result = getResultByTense(formatDistanceLocale[token].other, options); + } + + return result.replace('{{count}}', count); +} + +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..a35e0f1f --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", + yesterday: "'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", + today: "'ಇಂದು' p 'ಕ್ಕೆ'", + tomorrow: "'ನಾಳೆ' p 'ಕ್ಕೆ'", + nextWeek: "eeee p 'ಕ್ಕೆ'", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..199cdada --- /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: 'ರಾತ್ರಿ' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/kn/_lib/match/index.js b/node_modules/date-fns/locale/kn/_lib/match/index.js new file mode 100644 index 00000000..7a986928 --- /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/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: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ko/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ko/_lib/formatDistance/index.js new file mode 100644 index 00000000..d254252e --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}}년' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' 후'; + } else { + return result + ' 전'; + } + } + + return result; +} + +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..8d0b925d --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..479d386e --- /dev/null +++ b/node_modules/date-fns/locale/ko/_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: ['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: '밤' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + + switch (unit) { + case 'minute': + case 'second': + return 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 (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/ko/_lib/match/index.js b/node_modules/date-fns/locale/ko/_lib/match/index.js new file mode 100644 index 00000000..30f64bad --- /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/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\.?\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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/lb/_lib/formatDistance/index.js b/node_modules/date-fns/locale/lb/_lib/formatDistance/index.js new file mode 100644 index 00000000..f53b0d99 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance/index.js @@ -0,0 +1,212 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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; +} + +function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'a' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } else { + return 'viru' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } + } + + return result; +} + +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..f9018bdc --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: function (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' +}; + +function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} + +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..7c418184 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/lb/_lib/match/index.js b/node_modules/date-fns/locale/lb/_lib/match/index.js new file mode 100644 index 00000000..e4bca993 --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/lt/_lib/formatDistance/index.js b/node_modules/date-fns/locale/lt/_lib/formatDistance/index.js new file mode 100644 index 00000000..554a6533 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance/index.js @@ -0,0 +1,155 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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 + }, + aboutWeeks: { + 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 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' +}; + +function translateSeconds(number, addSuffix, key, isFuture) { + if (!addSuffix) { + return 'kelios sekundės'; + } else { + return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; + } +} + +function translateSingular(number, addSuffix, key, isFuture) { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +} + +function special(number) { + return number % 10 === 0 || number > 10 && number < 20; +} + +function forms(key) { + return translations[key].split('_'); +} + +function translate(number, addSuffix, key, isFuture) { + var result = number + ' '; + + if (number === 1) { + return result + translateSingular(number, addSuffix, key[0], 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 formatDistance(token, count, options) { + options = options || {}; + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = token.replace(adverb, ''); + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one(count, options.addSuffix, unit.toLowerCase() + '_one'); + } else { + result = formatDistanceLocale[token].other(count, options.addSuffix, unit.toLowerCase() + '_other'); + } + + if (adverb) { + result = translations[adverb[0].toLowerCase()] + ' ' + result; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'po ' + result; + } else { + return 'prieš ' + result; + } + } + + return result; +} + +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..c3804205 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: 'eeee p', + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..e0894327 --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (quarter) { + return Number(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..7b93398f --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..c16d704c --- /dev/null +++ b/node_modules/date-fns/locale/lt/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 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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/lv/_lib/formatDistance/index.js b/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js new file mode 100644 index 00000000..80722af5 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +function buildLocalizeTokenFn(schema) { + return function (count, options) { + if (count === 1) { + if (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.addSuffix) { + return schema.other[0].replace('{{time}}', rem ? schema.other[3] : schema.other[4]).replace('{{count}}', count); + } else { + return schema.other[0].replace('{{time}}', rem ? schema.other[1] : schema.other[2]).replace('{{count}}', 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 (count, options) { + if (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'] + }) +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result = formatDistanceLocale[token](count, options); + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'pēc ' + result; + } else { + return 'pirms ' + result; + } + } + + return result; +} + +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..10479683 --- /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: "y. 'gada' M. MMMM., EEEE", + long: "y. 'gada' M. 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..9a97f42c --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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 (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 (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' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..72c82252 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_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: ['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ī' + } +}; + +function ordinalNumber(number, _options) { + 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 (quarter) { + return Number(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..61808f04 --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/mk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/mk/_lib/formatDistance/index.js new file mode 100644 index 00000000..cfd2d2f1 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} години' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'за ' + result; + } else { + return 'пред ' + result; + } + } + + return result; +} + +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..a35e0abd --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative/index.js @@ -0,0 +1,100 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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 (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..df5e090e --- /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: 'ноќе' + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/mk/_lib/match/index.js b/node_modules/date-fns/locale/mk/_lib/match/index.js new file mode 100644 index 00000000..e3611a73 --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ms/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ms/_lib/formatDistance/index.js new file mode 100644 index 00000000..c9db6b79 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'dalam masa ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +} + +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..4eb8b7d4 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..5950320d --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize/index.js @@ -0,0 +1,143 @@ +"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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed + + switch (number) { + default: + 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 (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/ms/_lib/match/index.js b/node_modules/date-fns/locale/ms/_lib/match/index.js new file mode 100644 index 00000000..81a6b824 --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/mt/_lib/formatDistance/index.js b/node_modules/date-fns/locale/mt/_lib/formatDistance/index.js new file mode 100644 index 00000000..3ed93e75 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var adverb = token.match(/years/i); + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else if (count === 2 && adverb) { + result = formatDistanceLocale[token].two; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return "f'" + result; + } else { + return result + ' ilu'; + } + } + + return result; +} + +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..85d5efc7 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..1e80e214 --- /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' + } +}; + +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 (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/mt/_lib/match/index.js b/node_modules/date-fns/locale/mt/_lib/match/index.js new file mode 100644 index 00000000..dae0b069 --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/nb/_lib/formatDistance/index.js b/node_modules/date-fns/locale/nb/_lib/formatDistance/index.js new file mode 100644 index 00000000..d751a1c2 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance/index.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +var formatDistanceLocale = { + lessThanXSeconds: { + singular: 'mindre enn ett sekund', + plural: 'mindre enn {{count}} sekunder' + }, + xSeconds: { + singular: 'ett sekund', + plural: '{{count}} sekunder' + }, + halfAMinute: 'et halvt minutt', + lessThanXMinutes: { + singular: 'mindre enn ett minutt', + plural: 'mindre enn {{count}} minutter' + }, + xMinutes: { + singular: 'ett minutt', + plural: '{{count}} minutter' + }, + aboutXHours: { + singular: 'omtrent en time', + plural: 'omtrent {{count}} timer' + }, + xHours: { + singular: 'en time', + plural: '{{count}} timer' + }, + xDays: { + singular: 'en dag', + plural: '{{count}} dager' + }, + aboutXWeeks: { + singular: 'omtrent en uke', + plural: 'omtrent {{count}} uker' + }, + xWeeks: { + singular: 'en uke', + plural: '{{count}} uker' + }, + aboutXMonths: { + singular: 'omtrent en måned', + plural: 'omtrent {{count}} måneder' + }, + xMonths: { + singular: 'en måned', + plural: '{{count}} måneder' + }, + aboutXYears: { + singular: 'omtrent ett år', + plural: 'omtrent {{count}} år' + }, + xYears: { + singular: 'ett år', + plural: '{{count}} år' + }, + overXYears: { + singular: 'over ett år', + plural: 'over {{count}} år' + }, + almostXYears: { + singular: 'nesten ett år', + plural: 'nesten {{count}} år' + } +}; +var wordMapping = ['null', 'en', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'åtte', 'ni', 'ti', 'elleve', 'tolv']; + +function formatDistance(token, count, options) { + options = options || { + onlyNumeric: false + }; + var translation = formatDistanceLocale[token]; + var result; + + if (typeof translation === 'string') { + result = translation; + } else if (count === 0 || count > 1) { + if (options.onlyNumeric) { + result = translation.plural.replace('{{count}}', count); + } else { + result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); + } + } else { + result = translation.singular; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +} + +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..da981f86 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..bd51a4e1 --- /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' + } +}; + +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 (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/nb/_lib/match/index.js b/node_modules/date-fns/locale/nb/_lib/match/index.js new file mode 100644 index 00000000..c2a12fbd --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..20f2a0b6 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +} + +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..ff7ed1f1 --- /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..d896ed9c --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..514af74f --- /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" + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/nl-BE/_lib/match/index.js b/node_modules/date-fns/locale/nl-BE/_lib/match/index.js new file mode 100644 index 00000000..dee915bb --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/nl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/nl/_lib/formatDistance/index.js new file mode 100644 index 00000000..20f2a0b6 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +} + +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..dd430fe2 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..5de13941 --- /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" + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/nl/_lib/match/index.js b/node_modules/date-fns/locale/nl/_lib/match/index.js new file mode 100644 index 00000000..dee915bb --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/nn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/nn/_lib/formatDistance/index.js new file mode 100644 index 00000000..ab3bc23a --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance/index.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +var formatDistanceLocale = { + lessThanXSeconds: { + singular: 'mindre enn eitt sekund', + plural: 'mindre enn {{count}} sekund' + }, + xSeconds: { + singular: 'eitt sekund', + plural: '{{count}} sekund' + }, + halfAMinute: 'eit halvt minutt', + lessThanXMinutes: { + singular: 'mindre enn eitt minutt', + plural: 'mindre enn {{count}} minutt' + }, + xMinutes: { + singular: 'eitt minutt', + plural: '{{count}} minutt' + }, + aboutXHours: { + singular: 'omtrent ein time', + plural: 'omtrent {{count}} timar' + }, + xHours: { + singular: 'ein time', + plural: '{{count}} timar' + }, + xDays: { + singular: 'ein dag', + plural: '{{count}} dagar' + }, + aboutXWeeks: { + singular: 'omtrent ei veke', + plural: 'omtrent {{count}} veker' + }, + xWeeks: { + singular: 'ei veke', + plural: '{{count}} veker' + }, + aboutXMonths: { + singular: 'omtrent ein månad', + plural: 'omtrent {{count}} månader' + }, + xMonths: { + singular: 'ein månad', + plural: '{{count}} månader' + }, + aboutXYears: { + singular: 'omtrent eitt år', + plural: 'omtrent {{count}} år' + }, + xYears: { + singular: 'eitt år', + plural: '{{count}} år' + }, + overXYears: { + singular: 'over eitt år', + plural: 'over {{count}} år' + }, + almostXYears: { + singular: 'nesten eitt år', + plural: 'nesten {{count}} år' + } +}; +var wordMapping = ['null', 'ein', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'åtte', 'ni', 'ti', 'elleve', 'tolv']; + +function formatDistance(token, count, options) { + options = options || { + onlyNumeric: false + }; + var translation = formatDistanceLocale[token]; + var result; + + if (typeof translation === 'string') { + result = translation; + } else if (count === 0 || count > 1) { + if (options.onlyNumeric) { + result = translation.plural.replace('{{count}}', count); + } else { + result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); + } + } else { + result = translation.singular; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sidan'; + } + } + + return result; +} + +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..63d0ba03 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..b79e90cb --- /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' + } +}; + +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 (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/nn/_lib/match/index.js b/node_modules/date-fns/locale/nn/_lib/match/index.js new file mode 100644 index 00000000..b4eb6b42 --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/package.json b/node_modules/date-fns/locale/package.json new file mode 100644 index 00000000..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/locale/pl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/pl/_lib/formatDistance/index.js new file mode 100644 index 00000000..446e110d --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance/index.js @@ -0,0 +1,161 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +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) { + time = time || 'regular'; + var group = declensionGroup(scheme, count); + var finalText = group[time] || group; + return finalText.replace('{{count}}', count); +} + +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 formatDistance(token, count, options) { + options = options || {}; + var scheme = formatDistanceLocale[token]; + + if (!options.addSuffix) { + return declension(scheme, count); + } + + if (options.comparison > 0) { + return 'za ' + declension(scheme, count, 'future'); + } else { + return declension(scheme, count, 'past') + ' temu'; + } +} + +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..cf23a712 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative/index.js @@ -0,0 +1,77 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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 getAdjectives(token, date, baseDate, options) { + if ((0, _index.default)(date, baseDate, options)) { + return adjectivesThisWeek; + } else if (token === 'lastWeek') { + return adjectivesLastWeek; + } else if (token === 'nextWeek') { + return adjectivesNextWeek; + } else { + throw new Error("Cannot determine adjectives for token ".concat(token)); + } +} + +function getAdjective(token, date, baseDate, options) { + var day = date.getUTCDay(); + var adjectives = getAdjectives(token, date, baseDate, options); + var grammaticalGender = dayGrammaticalGender[day]; + return adjectives[grammaticalGender]; +} + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + var adjective = getAdjective(token, date, baseDate, options); + 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' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(token, date, baseDate, options); + } + + return format; +} + +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..258be5c9 --- /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 }; } + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number); +} + +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 localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..74eafe6b --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..68da79d1 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'em ' + result; + } else { + return 'há ' + result; + } + } + + return result; +} + +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..f0e1b39b --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative/index.js @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: function (date, _baseDate, _options) { + 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' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..3c167171 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_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: ['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' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + + if (unit === 'week' || unit === 'isoWeek') { + 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 (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/pt-BR/_lib/match/index.js b/node_modules/date-fns/locale/pt-BR/_lib/match/index.js new file mode 100644 index 00000000..34b1e98c --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/pt/_lib/formatDistance/index.js b/node_modules/date-fns/locale/pt/_lib/formatDistance/index.js new file mode 100644 index 00000000..fc2c4630 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'daqui a ' + result; + } else { + return 'há ' + result; + } + } + + return result; +} + +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..a20481a1 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'na última' eeee 'às' p", + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..6ecd7f62 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_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 }; } + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + 'º'; +} + +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 localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/pt/_lib/match/index.js b/node_modules/date-fns/locale/pt/_lib/match/index.js new file mode 100644 index 00000000..db0bf61c --- /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/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 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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ro/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ro/_lib/formatDistance/index.js new file mode 100644 index 00000000..1116a3c5 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'în ' + result; + } else { + return result + ' în urmă'; + } + } + + return result; +} + +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..0d15f507 --- /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..82a07565 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..15757605 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_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: ['Î', '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' + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/ro/_lib/match/index.js b/node_modules/date-fns/locale/ro/_lib/match/index.js new file mode 100644 index 00000000..381616ec --- /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/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: /^(Î|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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ru/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ru/_lib/formatDistance/index.js new file mode 100644 index 00000000..57863ccd --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance/index.js @@ -0,0 +1,236 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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 (_, options) { + if (options.addSuffix) { + if (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}} лет' + } + }) +}; + +function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} + +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..1059ac76 --- /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, 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 = { + 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..a579aef6 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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 (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..98a25703 --- /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: 'ночи' + } +}; + +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; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..0bfa2034 --- /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/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: /^((до )?н\.?\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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/sk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sk/_lib/formatDistance/index.js new file mode 100644 index 00000000..9b9dafda --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance/index.js @@ -0,0 +1,223 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +// NOTE: should prolly be improved +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + if (count >= 2 && count <= 4) { + 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] || group; + return finalText.replace('{{count}}', 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: { + regular: 'sekunda', + past: 'sekundou', + future: 'sekundu' + }, + twoFour: { + regular: '{{count}} sekundy', + past: '{{count}} sekundami', + future: '{{count}} sekundy' + }, + other: { + regular: '{{count}} sekúnd', + past: '{{count}} sekundami', + future: '{{count}} sekúnd' + } + }, + halfAMinute: { + other: { + regular: 'pol minúty', + past: 'pol minútou', + future: 'pol minúty' + } + }, + xMinutes: { + one: { + regular: 'minúta', + past: 'minútou', + future: 'minútu' + }, + twoFour: { + regular: '{{count}} minúty', + past: '{{count}} minútami', + future: '{{count}} minúty' + }, + other: { + regular: '{{count}} minút', + past: '{{count}} minútami', + future: '{{count}} minút' + } + }, + xHours: { + one: { + regular: 'hodina', + past: 'hodinou', + future: 'hodinu' + }, + twoFour: { + regular: '{{count}} hodiny', + past: '{{count}} hodinami', + future: '{{count}} hodiny' + }, + other: { + regular: '{{count}} hodín', + past: '{{count}} hodinami', + future: '{{count}} hodín' + } + }, + xDays: { + one: { + regular: 'deň', + past: 'dňom', + future: 'deň' + }, + twoFour: { + regular: '{{count}} dni', + past: '{{count}} dňami', + future: '{{count}} dni' + }, + other: { + regular: '{{count}} dní', + past: '{{count}} dňami', + future: '{{count}} dní' + } + }, + xWeeks: { + one: { + regular: 'mesiac', + // TODO + past: 'mesiacom', + // TODO + future: 'mesiac' // TODO + + }, + twoFour: { + regular: '{{count}} mesiace', + // TODO + past: '{{count}} mesiacmi', + // TODO + future: '{{count}} mesiace' // TODO + + }, + other: { + regular: '{{count}} mesiacov', + // TODO + past: '{{count}} mesiacmi', + // TODO + future: '{{count}} mesiacov' // TODO + + } + }, + xMonths: { + one: { + regular: 'mesiac', + past: 'mesiacom', + future: 'mesiac' + }, + twoFour: { + regular: '{{count}} mesiace', + past: '{{count}} mesiacmi', + future: '{{count}} mesiace' + }, + other: { + regular: '{{count}} mesiacov', + past: '{{count}} mesiacmi', + future: '{{count}} mesiacov' + } + }, + xYears: { + one: { + regular: 'rok', + past: 'rokom', + future: 'rok' + }, + twoFour: { + regular: '{{count}} roky', + past: '{{count}} rokmi', + future: '{{count}} roky' + }, + other: { + regular: '{{count}} rokov', + past: '{{count}} rokmi', + future: '{{count}} rokov' + } + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var preposition = extractPreposition(token) || ''; + var key = lowercaseFirstLetter(token.substring(preposition.length)); + var scheme = formatDistanceLocale[key]; + + if (!options.addSuffix) { + return prefixPreposition(preposition) + suffixPreposition(preposition) + declension(scheme, count, 'regular'); + } + + if (options.comparison > 0) { + return prefixPreposition(preposition) + 'o ' + suffixPreposition(preposition) + declension(scheme, count, 'future'); + } else { + return prefixPreposition(preposition) + 'pred ' + suffixPreposition(preposition) + declension(scheme, count, 'past'); + } +} + +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..fc50c8ec --- /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..5a7073cd --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative/index.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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 (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..cd25972e --- /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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (quarter) { + return Number(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..512a4d82 --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/sl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sl/_lib/formatDistance/index.js new file mode 100644 index 00000000..66394ed4 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance/index.js @@ -0,0 +1,305 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +var distanceInWordsLocale = { + lessThanXSeconds: { + one: 'manj kot {{count}} sekunda', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + }, + xSeconds: { + one: '{{count}} sekunda', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + one: 'manj kot {{count}} minuta', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + }, + xMinutes: { + one: '{{count}} minuta', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + }, + aboutXHours: { + one: 'približno {{count}} ura', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + }, + xHours: { + one: '{{count}} ura', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + }, + xDays: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + }, + aboutXWeeks: { + one: 'približno {{count}} teden', + two: 'približno {{count}} tedna', + few: 'približno {{count}} tedne', + other: 'približno {{count}} tednov' + }, + xWeeks: { + one: '{{count}} teden', + two: '{{count}} tedna', + few: '{{count}} tedne', + other: '{{count}} tednov' + }, + aboutXMonths: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + }, + xMonths: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} meseci', + other: '{{count}} mesecev' + }, + aboutXYears: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + }, + xYears: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + }, + overXYears: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + }, + almostXYears: { + one: 'skoraj {{count}} leto', + two: 'skoraj {{count}} leti', + few: 'skoraj {{count}} leta', + other: 'skoraj {{count}} let' + } +}; +var distanceInWordsLocalePast = { + lessThanXSeconds: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundama', + few: 'manj kot {{count}} sekundami', + other: 'manj kot {{count}} sekundami' + }, + xSeconds: { + one: '{{count}} sekundo', + two: '{{count}} sekundama', + few: '{{count}} sekundami', + other: '{{count}} sekundami' + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minutama', + few: 'manj kot {{count}} minutami', + other: 'manj kot {{count}} minutami' + }, + xMinutes: { + one: '{{count}} minuto', + two: '{{count}} minutama', + few: '{{count}} minutami', + other: '{{count}} minutami' + }, + aboutXHours: { + one: 'približno {{count}} uro', + two: 'približno {{count}} urama', + few: 'približno {{count}} urami', + other: 'približno {{count}} urami' + }, + xHours: { + one: '{{count}} uro', + two: '{{count}} urama', + few: '{{count}} urami', + other: '{{count}} urami' + }, + xDays: { + one: '{{count}} dnem', + two: '{{count}} dnevoma', + few: '{{count}} dnevi', + other: '{{count}} dnevi' + }, + aboutXMonths: { + one: 'približno {{count}} mesecem', + two: 'približno {{count}} mesecema', + few: 'približno {{count}} meseci', + other: 'približno {{count}} meseci' + }, + xMonths: { + one: '{{count}} mesecem', + two: '{{count}} mesecema', + few: '{{count}} meseci', + other: '{{count}} meseci' + }, + aboutXYears: { + one: 'približno {{count}} letom', + two: 'približno {{count}} letoma', + few: 'približno {{count}} leti', + other: 'približno {{count}} leti' + }, + xYears: { + one: '{{count}} letom', + two: '{{count}} letoma', + few: '{{count}} leti', + other: '{{count}} leti' + }, + overXYears: { + one: 'več kot {{count}} letom', + two: 'več kot {{count}} letoma', + few: 'več kot {{count}} leti', + other: 'več kot {{count}} leti' + }, + almostXYears: { + one: 'skoraj {{count}} letom', + two: 'skoraj {{count}} letoma', + few: 'skoraj {{count}} leti', + other: 'skoraj {{count}} leti' + } +}; +var distanceInWordsLocaleFuture = { + lessThanXSeconds: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + }, + xSeconds: { + one: '{{count}} sekundo', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + }, + xMinutes: { + one: '{{count}} minuto', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + }, + aboutXHours: { + one: 'približno {{count}} uro', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + }, + xHours: { + one: '{{count}} uro', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + }, + xDays: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + }, + aboutXMonths: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + }, + xMonths: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} mesece', + other: '{{count}} mesecev' + }, + aboutXYears: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + }, + xYears: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + }, + overXYears: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + }, + almostXYears: { + 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'; + } +} + +function formatDistance(token, count, options) { + options = options || {}; + var localeObject = distanceInWordsLocale; + var result = ''; + + if (options.addSuffix) { + if (options.comparison > 0) { + localeObject = distanceInWordsLocaleFuture; + result += 'čez '; + } else { + localeObject = distanceInWordsLocalePast; + result += 'pred '; + } + } + + if (typeof localeObject[token] === 'string') { + result += localeObject[token]; + } else { + var form = getFormFromCount(count); + result += localeObject[token][form].replace('{{count}}', count); + } + + return result; +} + +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..48d3d1d2 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: function (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 (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' +}; + +function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} + +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..a281ab19 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_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 }; } + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +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 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 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 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 dayPeriodValuesStandalone = { + 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 dayPeriodValuesFormatting = { + 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 localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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: dayPeriodValuesStandalone, + defaultWidth: 'wide', + formattingValues: dayPeriodValuesFormatting, + 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..363e5132 --- /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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..86c62a8f --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance/index.js @@ -0,0 +1,181 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix) { + if (options.comparison > 0) { + result = formatDistanceLocale[token].one.withPrepositionIn; + } else { + result = formatDistanceLocale[token].one.withPrepositionAgo; + } + } else { + result = formatDistanceLocale[token].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 = formatDistanceLocale[token].dual.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'za ' + result; + } else { + return 'pre ' + result; + } + } + + return result; +} + +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..d6e4e737 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: function (date) { + var day = date.getUTCDay(); + + switch (day) { + 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 (date) { + var day = date.getUTCDay(); + + switch (day) { + 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' +}; + +function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} + +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..c3c555e5 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_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 }; } + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Hr.', 'po. Hr.'], + wide: ['Pre Hrista', 'Posle Hrista'] +}; +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 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 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 localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..15974d39 --- /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: [/(10|11|12|[123456789])/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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/sr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sr/_lib/formatDistance/index.js new file mode 100644 index 00000000..111a9687 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance/index.js @@ -0,0 +1,181 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} година' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + if (options.addSuffix) { + if (options.comparison > 0) { + result = formatDistanceLocale[token].one.withPrepositionIn; + } else { + result = formatDistanceLocale[token].one.withPrepositionAgo; + } + } else { + result = formatDistanceLocale[token].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 = formatDistanceLocale[token].dual.replace('{{count}}', count); + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'за ' + result; + } else { + return 'пре ' + result; + } + } + + return result; +} + +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..07e39e8c --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: function (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 (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' +}; + +function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +} + +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..9e325fef --- /dev/null +++ b/node_modules/date-fns/locale/sr/_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 }; } + +function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return String(number).concat('.'); +} + +var eraValues = { + narrow: ['пр.н.е.', 'АД'], + abbreviated: ['пр. Хр.', 'по. Хр.'], + wide: ['Пре Христа', 'После Христа'] +}; +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 quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. кв.', '2. кв.', '3. кв.', '4. кв.'], + wide: ['1. квартал', '2. квартал', '3. квартал', '4. квартал'] +}; +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 localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..41011eac --- /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: [/(10|11|12|[123456789])/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], + 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 (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 (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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/sv/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sv/_lib/formatDistance/index.js new file mode 100644 index 00000000..58642463 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance/index.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +var formatDistanceLocale = { + lessThanXSeconds: { + singular: 'mindre än en sekund', + plural: 'mindre än {{count}} sekunder' + }, + xSeconds: { + singular: 'en sekund', + plural: '{{count}} sekunder' + }, + halfAMinute: 'en halv minut', + lessThanXMinutes: { + singular: 'mindre än en minut', + plural: 'mindre än {{count}} minuter' + }, + xMinutes: { + singular: 'en minut', + plural: '{{count}} minuter' + }, + aboutXHours: { + singular: 'ungefär en timme', + plural: 'ungefär {{count}} timmar' + }, + xHours: { + singular: 'en timme', + plural: '{{count}} timmar' + }, + xDays: { + singular: 'en dag', + plural: '{{count}} dagar' + }, + aboutXWeeks: { + singular: 'ungefär en vecka', + plural: 'ungefär {{count}} vecka' + }, + xWeeks: { + singular: 'en vecka', + plural: '{{count}} vecka' + }, + aboutXMonths: { + singular: 'ungefär en månad', + plural: 'ungefär {{count}} månader' + }, + xMonths: { + singular: 'en månad', + plural: '{{count}} månader' + }, + aboutXYears: { + singular: 'ungefär ett år', + plural: 'ungefär {{count}} år' + }, + xYears: { + singular: 'ett år', + plural: '{{count}} år' + }, + overXYears: { + singular: 'över ett år', + plural: 'över {{count}} år' + }, + almostXYears: { + singular: 'nästan ett år', + plural: 'nästan {{count}} år' + } +}; +var wordMapping = ['noll', 'en', 'två', 'tre', 'fyra', 'fem', 'sex', 'sju', 'åtta', 'nio', 'tio', 'elva', 'tolv']; + +function formatDistance(token, count, options) { + options = options || { + onlyNumeric: false + }; + var translation = formatDistanceLocale[token]; + var result; + + if (typeof translation === 'string') { + result = translation; + } else if (count === 0 || count > 1) { + if (options.onlyNumeric) { + result = translation.plural.replace('{{count}}', count); + } else { + result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); + } + } else { + result = translation.singular; + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sedan'; + } + } + + return result; +} + +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..af44df6e --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..a27874b0 --- /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', 'tor', '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' + } +}; + +function ordinalNumber(dirtyNumber) { + 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 (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/sv/_lib/match/index.js b/node_modules/date-fns/locale/sv/_lib/match/index.js new file mode 100644 index 00000000..8796e9ce --- /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/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|: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|apr|maj|jun|jul|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|tor|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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/ta/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ta/_lib/formatDistance/index.js new file mode 100644 index 00000000..f20b0980 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance/index.js @@ -0,0 +1,222 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} ஆண்டுகளுக்கு முன்பு' + } + } +}; + +function getFormatDistanceLocaleWithSuffix(resultObj, options) { + if (options.addSuffix) { + if (options.comparison > 0) { + return resultObj.in; + } else { + return resultObj.ago; + } + } + + return resultObj.default; +} + +function formatDistance(token, count) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + var result; + + if (formatDistanceLocale[token].default) { + result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token], options); + } else if (count === 1) { + result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token].one, options); + } else { + result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token].other, options); + } + + return result.replace('{{count}}', count); +} + +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..01bee1e4 --- /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..e89d4ae2 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'கடந்த' eeee p 'மணிக்கு'", + yesterday: "'நேற்று ' p 'மணிக்கு'", + today: "'இன்று ' p 'மணிக்கு'", + tomorrow: "'நாளை ' p 'மணிக்கு'", + nextWeek: "eeee p 'மணிக்கு'", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..ea3923d0 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize/index.js @@ -0,0 +1,188 @@ +"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: 'இரவு' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `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' + + return number; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/ta/_lib/match/index.js b/node_modules/date-fns/locale/ta/_lib/match/index.js new file mode 100644 index 00000000..7e2af811 --- /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/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: /^(கி.மு.|கி.பி.)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/te/_lib/formatDistance/index.js b/node_modules/date-fns/locale/te/_lib/formatDistance/index.js new file mode 100644 index 00000000..a136c08e --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance/index.js @@ -0,0 +1,196 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +// 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}} సంవత్సరాల' + } + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = 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}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + 'లో'; + } else { + return result + ' క్రితం'; + } + } + + return result; +} + +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..61515e87 --- /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..6d59d9bc --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative/index.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +// 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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..d33ccfb6 --- /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: 'రాత్రి' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/te/_lib/match/index.js b/node_modules/date-fns/locale/te/_lib/match/index.js new file mode 100644 index 00000000..7f18e074 --- /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/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: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/th/_lib/formatDistance/index.js b/node_modules/date-fns/locale/th/_lib/formatDistance/index.js new file mode 100644 index 00000000..5bf40363 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance/index.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} ปี' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + if (token === 'halfAMinute') { + return 'ใน' + result; + } else { + return 'ใน ' + result; + } + } else { + return result + 'ที่ผ่านมา'; + } + } + + return result; +} + +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..7683fae4 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "eeee'ที่แล้วเวลา' p", + yesterday: "'เมื่อวานนี้เวลา' p", + today: "'วันนี้เวลา' p", + tomorrow: "'พรุ่งนี้เวลา' p", + nextWeek: "eeee 'เวลา' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..77116257 --- /dev/null +++ b/node_modules/date-fns/locale/th/_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: ['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: 'ตอนกลางคืน' + } +}; + +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 (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/th/_lib/match/index.js b/node_modules/date-fns/locale/th/_lib/match/index.js new file mode 100644 index 00000000..45b690e7 --- /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/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: /^([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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/tr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js new file mode 100644 index 00000000..24d4f0e9 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' sonra'; + } else { + return result + ' önce'; + } + } + + return result; +} + +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..28960890 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..82783c04 --- /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 = { + abbreviated: ['MÖ', 'MS'], + narrow: ['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', 'Pts', '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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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, + defaulFormattingWidth: '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..f2fb6d12 --- /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/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: /^(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|pts|sal|çar|per|cum|cts)/i, + wide: /^(pazar|pazartesi|salı|çarşamba|perşembe|cuma|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/i, /^pazartesi/i, /^salı/i, /^çarşamba/i, /^perşembe/i, /^cuma/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..6d2c23ed --- /dev/null +++ b/node_modules/date-fns/locale/tr/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 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 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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/types.js b/node_modules/date-fns/locale/types.js new file mode 100644 index 00000000..9a390c31 --- /dev/null +++ b/node_modules/date-fns/locale/types.js @@ -0,0 +1 @@ +"use strict"; \ 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..7789f9f0 --- /dev/null +++ b/node_modules/date-fns/locale/ug/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} ئاساسەن' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result; + } else { + return result + ' بولدى'; + } + } + + return result; +} + +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..f0a0d92a --- /dev/null +++ b/node_modules/date-fns/locale/ug/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'ئ‍ۆتكەن' eeee 'دە' p", + yesterday: "'تۈنۈگۈن دە' p", + today: "'بۈگۈن دە' p", + tomorrow: "'ئەتە دە' p", + nextWeek: "eeee 'دە' p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..175fe15f --- /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: 'كىچىدە' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + 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 (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/ug/_lib/match/index.js b/node_modules/date-fns/locale/ug/_lib/match/index.js new file mode 100644 index 00000000..637ba8f3 --- /dev/null +++ b/node_modules/date-fns/locale/ug/_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/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, + 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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/uk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js new file mode 100644 index 00000000..53cd9c4c --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js @@ -0,0 +1,236 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +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}}', count); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', count); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options.addSuffix) { + if (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 (_, options) { + if (options.addSuffix) { + if (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}} років' + } + }) +}; + +function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +} + +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..e654cac3 --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/formatRelative/index.js @@ -0,0 +1,88 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +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: + 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 formatRelativeLocale = { + lastWeek: function (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 (date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: 'P' +}; + +function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +} + +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..f2f485dc --- /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: 'ночі' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(options.unit); + var suffix; + + if (unit === 'date') { + if (dirtyNumber === 3 || dirtyNumber === 23) { + suffix = '-є'; + } else { + suffix = '-е'; + } + } else if (unit === 'minute' || unit === 'second' || unit === 'hour') { + suffix = '-а'; + } else { + suffix = '-й'; + } + + return dirtyNumber + suffix; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(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..b2dede07 --- /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/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: /^((до )?н\.?\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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/uz/_lib/formatDistance/index.js b/node_modules/date-fns/locale/uz/_lib/formatDistance/index.js new file mode 100644 index 00000000..253dd306 --- /dev/null +++ b/node_modules/date-fns/locale/uz/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' dan keyin'; + } else { + return result + ' oldin'; + } + } + + return result; +} + +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..c48fe09d --- /dev/null +++ b/node_modules/date-fns/locale/uz/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..8b273d74 --- /dev/null +++ b/node_modules/date-fns/locale/uz/_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: ['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' + } +}; + +function ordinalNumber(dirtyNumber, _dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + return number; +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (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/uz/_lib/match/index.js b/node_modules/date-fns/locale/uz/_lib/match/index.js new file mode 100644 index 00000000..e6770da1 --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/locale/vi/_lib/formatDistance/index.js b/node_modules/date-fns/locale/vi/_lib/formatDistance/index.js new file mode 100644 index 00000000..462c51bb --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' nữa'; + } else { + return result + ' trước'; + } + } + + return result; +} + +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..9509b204 --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..8e7d8009 --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/localize/index.js @@ -0,0 +1,233 @@ +"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' + } // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'month', 'quarter', 'week', 'isoWeek', 'dayOfYear', + // 'dayOfMonth' or 'dayOfWeek' + +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(options.unit); + var number = parseInt(dirtyNumber, 10); + + 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 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 (quarter) { + return Number(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..ae563f8a --- /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/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: /^(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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..36de6d02 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} 年' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + '内'; + } else { + return result + '前'; + } + } + + return result; +} + +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..2aba5eb4 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_lib/formatRelative/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function checkWeek(_date, _baseDate, _options, baseFormat) { + 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' +}; + +function formatRelative(token, _date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(_date, _baseDate, _options, 'eeee p'); + } + + return format; +} + +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..3036edfd --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_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 }; } + +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: '夜间' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + var number = Number(dirtyNumber); + var options = dirtyOptions || {}; + var unit = String(options.unit); + + switch (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 (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/zh-CN/_lib/match/index.js b/node_modules/date-fns/locale/zh-CN/_lib/match/index.js new file mode 100644 index 00000000..b6ebef25 --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..1439d7a1 --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; +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}} 年' + } +}; + +function formatDistance(token, count, options) { + options = options || {}; + var result; + + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token]; + } else if (count === 1) { + result = formatDistanceLocale[token].one; + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count); + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + '內'; + } else { + return result + '前'; + } + } + + return result; +} + +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..12236dfb --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; +var formatRelativeLocale = { + lastWeek: "'上個' eeee p", + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: "'下個' eeee p", + other: 'P' +}; + +function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +} + +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..b044a12c --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_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 }; } + +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: '夜間' + } +}; + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`: + // + // var options = dirtyOptions || {} + // var unit = String(options.unit) + // + // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second' + + var options = dirtyOptions || {}; + var unit = String(options.unit); + + switch (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 (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/zh-TW/_lib/match/index.js b/node_modules/date-fns/locale/zh-TW/_lib/match/index.js new file mode 100644 index 00000000..ecafa2b5 --- /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/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/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, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (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 (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/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..b109f053 --- /dev/null +++ b/node_modules/date-fns/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/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..7fd6f778 --- /dev/null +++ b/node_modules/date-fns/max/index.js @@ -0,0 +1,77 @@ +"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 }; } + +/** + * @name max + * @category Common Helpers + * @summary Return the latest of the given dates. + * + * @description + * Return the latest of the given dates. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - `max` function now accepts an array of dates rather than spread arguments. + * + * ```javascript + * // Before v2.0.0 + * var date1 = new Date(1989, 6, 10) + * var date2 = new Date(1987, 1, 11) + * var maxDate = max(date1, date2) + * + * // v2.0.0 onward: + * var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)] + * var maxDate = max(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? + * var 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(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..9fb2f515 --- /dev/null +++ b/node_modules/date-fns/max/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..89cbe14b --- /dev/null +++ b/node_modules/date-fns/milliseconds/index.js @@ -0,0 +1,65 @@ +"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 yearInDays = 365.2425; +/** + * @name milliseconds + * @category Millisecond Helpers + * @summary 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 devided by 12. + * + * @description + * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. + * + * @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({ year: 1 }) + * //=> 31556952000 + * + * // 3 months in milliseconds + * milliseconds({ month: 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 * yearInDays; + if (months) totalDays += months * (yearInDays / 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..9616a496 --- /dev/null +++ b/node_modules/date-fns/milliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a12b5d59 --- /dev/null +++ b/node_modules/date-fns/min/index.js @@ -0,0 +1,77 @@ +"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 }; } + +/** + * @name min + * @category Common Helpers + * @summary Return the earliest of the given dates. + * + * @description + * Return the earliest of the given dates. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - `min` function now accepts an array of dates rather than spread arguments. + * + * ```javascript + * // Before v2.0.0 + * var date1 = new Date(1989, 6, 10) + * var date2 = new Date(1987, 1, 11) + * var minDate = min(date1, date2) + * + * // v2.0.0 onward: + * var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)] + * var minDate = min(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? + * var 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)) { + 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..9fb2f515 --- /dev/null +++ b/node_modules/date-fns/min/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/package.json b/node_modules/date-fns/package.json new file mode 100644 index 00000000..a00145f9 --- /dev/null +++ b/node_modules/date-fns/package.json @@ -0,0 +1,111 @@ +{ + "name": "date-fns", + "version": "2.17.0", + "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", + "benchmark": "env TEST_BENCHMARK=true yarn test --single-run", + "stats": "cloc . --exclude-dir=node_modules,tmp,.git", + "release": "env APP_ENV=\"production\" GOOGLE_APPLICATION_CREDENTIALS=\"./secrets/production.json\" ./scripts/release/release.sh" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "*.js": ["prettier --write", "git add"] + }, + "dependencies": {}, + "devDependencies": { + "@babel/cli": "^7.5.5", + "@babel/core": "^7.5.5", + "@babel/node": "^7.5.5", + "@babel/plugin-transform-arrow-functions": "^7.2.0", + "@babel/plugin-transform-block-scoping": "^7.5.5", + "@babel/plugin-transform-destructuring": "^7.5.0", + "@babel/plugin-transform-modules-commonjs": "^7.5.0", + "@babel/plugin-transform-parameters": "^7.4.4", + "@babel/plugin-transform-template-literals": "^7.4.4", + "@babel/preset-env": "^7.11.5", + "@babel/preset-typescript": "^7.10.4", + "@date-fns/date-fns-scripts": "^0.0.3", + "@types/jest": "^26.0.13", + "@types/node": "^14.6.3", + "@types/power-assert": "^1.5.3", + "@types/sinon": "^9.0.6", + "@typescript-eslint/eslint-plugin": "^2.9.0", + "@typescript-eslint/parser": "^2.9.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", + "babel-preset-power-assert": "^3.0.0", + "cloc": "^2.2.0", + "coveralls": "^3.0.6", + "eslint": "^5.16.0", + "eslint-config-prettier": "^4.3.0", + "firebase": "^3.7.1", + "flow-bin": "0.84.0", + "fs-promise": "^1.0.0", + "glob-promise": "^2.0.0", + "gzip-size-cli": "^1.0.0", + "husky": "^1.0.1", + "istanbul-instrumenter-loader": "^3.0.1", + "jest": "^24.8.0", + "jest-plugin-context": "^2.9.0", + "js-beautify": "^1.5.10", + "jsdoc-babel": "^0.5.0", + "jsdoc-to-markdown": "6", + "karma": "^3.1.4", + "karma-benchmark": "^1.0.4", + "karma-benchmark-reporter": "^0.1.1", + "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-phantomjs-launcher": "^1.0.4", + "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", + "power-assert": "^1.6.1", + "prettier": "2", + "rimraf": "^2.7.1", + "sinon": "^7.4.1", + "size-limit": "^0.21.0", + "snazzy": "^7.0.0", + "typescript": "^4.0.2", + "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/parsers/index.js b/node_modules/date-fns/parse/_lib/parsers/index.js new file mode 100644 index 00000000..e4e1392b --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/index.js @@ -0,0 +1,1521 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/getUTCWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/setUTCDay/index.js")); + +var _index3 = _interopRequireDefault(require("../../../_lib/setUTCISODay/index.js")); + +var _index4 = _interopRequireDefault(require("../../../_lib/setUTCISOWeek/index.js")); + +var _index5 = _interopRequireDefault(require("../../../_lib/setUTCWeek/index.js")); + +var _index6 = _interopRequireDefault(require("../../../_lib/startOfUTCISOWeek/index.js")); + +var _index7 = _interopRequireDefault(require("../../../_lib/startOfUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_HOUR = 3600000; +var MILLISECONDS_IN_MINUTE = 60000; +var MILLISECONDS_IN_SECOND = 1000; +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 + +}; +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/ +}; + +function parseNumericPattern(pattern, string, valueCallback) { + var matchResult = string.match(pattern); + + if (!matchResult) { + return null; + } + + var value = parseInt(matchResult[0], 10); + return { + value: valueCallback ? valueCallback(value) : value, + rest: string.slice(matchResult[0].length) + }; +} + +function parseTimezonePattern(pattern, string) { + var matchResult = string.match(pattern); + + if (!matchResult) { + return null; + } // Input is 'Z' + + + if (matchResult[0] === 'Z') { + return { + value: 0, + rest: string.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 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND), + rest: string.slice(matchResult[0].length) + }; +} + +function parseAnyDigitsSigned(string, valueCallback) { + return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback); +} + +function parseNDigits(n, string, valueCallback) { + switch (n) { + case 1: + return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback); + + case 2: + return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback); + + case 3: + return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback); + + case 4: + return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback); + + default: + return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback); + } +} + +function parseNDigitsSigned(n, string, valueCallback) { + switch (n) { + case 1: + return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback); + + case 2: + return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback); + + case 3: + return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback); + + case 4: + return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback); + + default: + return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback); + } +} + +function dayPeriodEnumToHours(enumValue) { + switch (enumValue) { + 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; +} + +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]; // User for validation + +function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +/* + * | | 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 = { + // Era + G: { + priority: 140, + parse: function (string, token, match, _options) { + switch (token) { + // AD, BC + case 'G': + case 'GG': + case 'GGG': + return match.era(string, { + width: 'abbreviated' + }) || match.era(string, { + width: 'narrow' + }); + // A, B + + case 'GGGGG': + return match.era(string, { + width: 'narrow' + }); + // Anno Domini, Before Christ + + case 'GGGG': + default: + return match.era(string, { + width: 'wide' + }) || match.era(string, { + width: 'abbreviated' + }) || match.era(string, { + width: 'narrow' + }); + } + }, + set: function (date, flags, value, _options) { + flags.era = value; + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['R', 'u', 't', 'T'] + }, + // Year + y: { + // 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 | + priority: 130, + parse: function (string, token, match, _options) { + var valueCallback = function (year) { + return { + year: year, + isTwoDigitYear: token === 'yy' + }; + }; + + switch (token) { + case 'y': + return parseNDigits(4, string, valueCallback); + + case 'yo': + return match.ordinalNumber(string, { + unit: 'year', + valueCallback: valueCallback + }); + + default: + return parseNDigits(token.length, string, valueCallback); + } + }, + validate: function (_date, value, _options) { + return value.isTwoDigitYear || value.year > 0; + }, + set: function (date, flags, value, _options) { + 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; + }, + incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T'] + }, + // Local week-numbering year + Y: { + priority: 130, + parse: function (string, token, match, _options) { + var valueCallback = function (year) { + return { + year: year, + isTwoDigitYear: token === 'YY' + }; + }; + + switch (token) { + case 'Y': + return parseNDigits(4, string, valueCallback); + + case 'Yo': + return match.ordinalNumber(string, { + unit: 'year', + valueCallback: valueCallback + }); + + default: + return parseNDigits(token.length, string, valueCallback); + } + }, + validate: function (_date, value, _options) { + return value.isTwoDigitYear || value.year > 0; + }, + set: function (date, flags, value, options) { + var currentYear = (0, _index.default)(date, options); + + if (value.isTwoDigitYear) { + var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); + date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate); + date.setUTCHours(0, 0, 0, 0); + return (0, _index7.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, _index7.default)(date, options); + }, + incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] + }, + // ISO week-numbering year + R: { + priority: 130, + parse: function (string, token, _match, _options) { + if (token === 'R') { + return parseNDigitsSigned(4, string); + } + + return parseNDigitsSigned(token.length, string); + }, + set: function (_date, _flags, value, _options) { + var firstWeekOfYear = new Date(0); + firstWeekOfYear.setUTCFullYear(value, 0, 4); + firstWeekOfYear.setUTCHours(0, 0, 0, 0); + return (0, _index6.default)(firstWeekOfYear); + }, + incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] + }, + // Extended year + u: { + priority: 130, + parse: function (string, token, _match, _options) { + if (token === 'u') { + return parseNDigitsSigned(4, string); + } + + return parseNDigitsSigned(token.length, string); + }, + set: function (date, _flags, value, _options) { + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T'] + }, + // Quarter + Q: { + priority: 120, + parse: function (string, token, match, _options) { + switch (token) { + // 1, 2, 3, 4 + case 'Q': + case 'QQ': + // 01, 02, 03, 04 + return parseNDigits(token.length, string); + // 1st, 2nd, 3rd, 4th + + case 'Qo': + return match.ordinalNumber(string, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'QQQ': + return match.quarter(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(string, { + width: 'narrow', + context: 'formatting' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'QQQQQ': + return match.quarter(string, { + width: 'narrow', + context: 'formatting' + }); + // 1st quarter, 2nd quarter, ... + + case 'QQQQ': + default: + return match.quarter(string, { + width: 'wide', + context: 'formatting' + }) || match.quarter(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 4; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Stand-alone quarter + q: { + priority: 120, + parse: function (string, token, match, _options) { + switch (token) { + // 1, 2, 3, 4 + case 'q': + case 'qq': + // 01, 02, 03, 04 + return parseNDigits(token.length, string); + // 1st, 2nd, 3rd, 4th + + case 'qo': + return match.ordinalNumber(string, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'qqq': + return match.quarter(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(string, { + width: 'narrow', + context: 'standalone' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'qqqqq': + return match.quarter(string, { + width: 'narrow', + context: 'standalone' + }); + // 1st quarter, 2nd quarter, ... + + case 'qqqq': + default: + return match.quarter(string, { + width: 'wide', + context: 'standalone' + }) || match.quarter(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(string, { + width: 'narrow', + context: 'standalone' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 4; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Month + M: { + priority: 110, + parse: function (string, token, match, _options) { + var valueCallback = function (value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'M': + return parseNumericPattern(numericPatterns.month, string, valueCallback); + // 01, 02, ..., 12 + + case 'MM': + return parseNDigits(2, string, valueCallback); + // 1st, 2nd, ..., 12th + + case 'Mo': + return match.ordinalNumber(string, { + unit: 'month', + valueCallback: valueCallback + }); + // Jan, Feb, ..., Dec + + case 'MMM': + return match.month(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(string, { + width: 'narrow', + context: 'formatting' + }); + // J, F, ..., D + + case 'MMMMM': + return match.month(string, { + width: 'narrow', + context: 'formatting' + }); + // January, February, ..., December + + case 'MMMM': + default: + return match.month(string, { + width: 'wide', + context: 'formatting' + }) || match.month(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 11; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Stand-alone month + L: { + priority: 110, + parse: function (string, token, match, _options) { + var valueCallback = function (value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'L': + return parseNumericPattern(numericPatterns.month, string, valueCallback); + // 01, 02, ..., 12 + + case 'LL': + return parseNDigits(2, string, valueCallback); + // 1st, 2nd, ..., 12th + + case 'Lo': + return match.ordinalNumber(string, { + unit: 'month', + valueCallback: valueCallback + }); + // Jan, Feb, ..., Dec + + case 'LLL': + return match.month(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(string, { + width: 'narrow', + context: 'standalone' + }); + // J, F, ..., D + + case 'LLLLL': + return match.month(string, { + width: 'narrow', + context: 'standalone' + }); + // January, February, ..., December + + case 'LLLL': + default: + return match.month(string, { + width: 'wide', + context: 'standalone' + }) || match.month(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(string, { + width: 'narrow', + context: 'standalone' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 11; + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Local week of year + w: { + priority: 100, + parse: function (string, token, match, _options) { + switch (token) { + case 'w': + return parseNumericPattern(numericPatterns.week, string); + + case 'wo': + return match.ordinalNumber(string, { + unit: 'week' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 53; + }, + set: function (date, _flags, value, options) { + return (0, _index7.default)((0, _index5.default)(date, value, options), options); + }, + incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] + }, + // ISO week of year + I: { + priority: 100, + parse: function (string, token, match, _options) { + switch (token) { + case 'I': + return parseNumericPattern(numericPatterns.week, string); + + case 'Io': + return match.ordinalNumber(string, { + unit: 'week' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 53; + }, + set: function (date, _flags, value, options) { + return (0, _index6.default)((0, _index4.default)(date, value, options), options); + }, + incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] + }, + // Day of the month + d: { + priority: 90, + subPriority: 1, + parse: function (string, token, match, _options) { + switch (token) { + case 'd': + return parseNumericPattern(numericPatterns.date, string); + + case 'do': + return match.ordinalNumber(string, { + unit: 'date' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (date, value, _options) { + 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]; + } + }, + set: function (date, _flags, value, _options) { + date.setUTCDate(value); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] + }, + // Day of year + D: { + priority: 90, + subPriority: 1, + parse: function (string, token, match, _options) { + switch (token) { + case 'D': + case 'DD': + return parseNumericPattern(numericPatterns.dayOfYear, string); + + case 'Do': + return match.ordinalNumber(string, { + unit: 'date' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (date, value, _options) { + var year = date.getUTCFullYear(); + var isLeapYear = isLeapYearIndex(year); + + if (isLeapYear) { + return value >= 1 && value <= 366; + } else { + return value >= 1 && value <= 365; + } + }, + set: function (date, _flags, value, _options) { + date.setUTCMonth(0, value); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T'] + }, + // Day of week + E: { + priority: 90, + parse: function (string, token, match, _options) { + switch (token) { + // Tue + case 'E': + case 'EE': + case 'EEE': + return match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'EEEEE': + return match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'EEEEEE': + return match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'EEEE': + default: + return match.day(string, { + width: 'wide', + context: 'formatting' + }) || match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 6; + }, + set: function (date, _flags, value, options) { + date = (0, _index2.default)(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T'] + }, + // Local day of week + e: { + priority: 90, + parse: function (string, token, match, options) { + var valueCallback = function (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 parseNDigits(token.length, string, valueCallback); + // 3rd + + case 'eo': + return match.ordinalNumber(string, { + unit: 'day', + valueCallback: valueCallback + }); + // Tue + + case 'eee': + return match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'eeeee': + return match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'eeeeee': + return match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'eeee': + default: + return match.day(string, { + width: 'wide', + context: 'formatting' + }) || match.day(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(string, { + width: 'short', + context: 'formatting' + }) || match.day(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 6; + }, + set: function (date, _flags, value, options) { + date = (0, _index2.default)(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T'] + }, + // Stand-alone local day of week + c: { + priority: 90, + parse: function (string, token, match, options) { + var valueCallback = function (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 parseNDigits(token.length, string, valueCallback); + // 3rd + + case 'co': + return match.ordinalNumber(string, { + unit: 'day', + valueCallback: valueCallback + }); + // Tue + + case 'ccc': + return match.day(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(string, { + width: 'short', + context: 'standalone' + }) || match.day(string, { + width: 'narrow', + context: 'standalone' + }); + // T + + case 'ccccc': + return match.day(string, { + width: 'narrow', + context: 'standalone' + }); + // Tu + + case 'cccccc': + return match.day(string, { + width: 'short', + context: 'standalone' + }) || match.day(string, { + width: 'narrow', + context: 'standalone' + }); + // Tuesday + + case 'cccc': + default: + return match.day(string, { + width: 'wide', + context: 'standalone' + }) || match.day(string, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(string, { + width: 'short', + context: 'standalone' + }) || match.day(string, { + width: 'narrow', + context: 'standalone' + }); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 6; + }, + set: function (date, _flags, value, options) { + date = (0, _index2.default)(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T'] + }, + // ISO day of week + i: { + priority: 90, + parse: function (string, token, match, _options) { + var valueCallback = function (value) { + if (value === 0) { + return 7; + } + + return value; + }; + + switch (token) { + // 2 + case 'i': + case 'ii': + // 02 + return parseNDigits(token.length, string); + // 2nd + + case 'io': + return match.ordinalNumber(string, { + unit: 'day' + }); + // Tue + + case 'iii': + return match.day(string, { + width: 'abbreviated', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'short', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + // T + + case 'iiiii': + return match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + // Tu + + case 'iiiiii': + return match.day(string, { + width: 'short', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + // Tuesday + + case 'iiii': + default: + return match.day(string, { + width: 'wide', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'abbreviated', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'short', + context: 'formatting', + valueCallback: valueCallback + }) || match.day(string, { + width: 'narrow', + context: 'formatting', + valueCallback: valueCallback + }); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 7; + }, + set: function (date, _flags, value, options) { + date = (0, _index3.default)(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + }, + incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T'] + }, + // AM or PM + a: { + priority: 80, + parse: function (string, token, match, _options) { + switch (token) { + case 'a': + case 'aa': + case 'aaa': + return match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaaa': + return match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaa': + default: + return match.dayPeriod(string, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + }, + incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T'] + }, + // AM, PM, midnight + b: { + priority: 80, + parse: function (string, token, match, _options) { + switch (token) { + case 'b': + case 'bb': + case 'bbb': + return match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbbb': + return match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbb': + default: + return match.dayPeriod(string, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T'] + }, + // in the morning, in the afternoon, in the evening, at night + B: { + priority: 80, + parse: function (string, token, match, _options) { + switch (token) { + case 'B': + case 'BB': + case 'BBB': + return match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBBB': + return match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBB': + default: + return match.dayPeriod(string, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(string, { + width: 'narrow', + context: 'formatting' + }); + } + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'b', 't', 'T'] + }, + // Hour [1-12] + h: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'h': + return parseNumericPattern(numericPatterns.hour12h, string); + + case 'ho': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 12; + }, + set: function (date, _flags, value, _options) { + 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; + }, + incompatibleTokens: ['H', 'K', 'k', 't', 'T'] + }, + // Hour [0-23] + H: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'H': + return parseNumericPattern(numericPatterns.hour23h, string); + + case 'Ho': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 23; + }, + set: function (date, _flags, value, _options) { + date.setUTCHours(value, 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T'] + }, + // Hour [0-11] + K: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'K': + return parseNumericPattern(numericPatterns.hour11h, string); + + case 'Ko': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 11; + }, + set: function (date, _flags, value, _options) { + 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; + }, + incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T'] + }, + // Hour [1-24] + k: { + priority: 70, + parse: function (string, token, match, _options) { + switch (token) { + case 'k': + return parseNumericPattern(numericPatterns.hour24h, string); + + case 'ko': + return match.ordinalNumber(string, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 1 && value <= 24; + }, + set: function (date, _flags, value, _options) { + var hours = value <= 24 ? value % 24 : value; + date.setUTCHours(hours, 0, 0, 0); + return date; + }, + incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T'] + }, + // Minute + m: { + priority: 60, + parse: function (string, token, match, _options) { + switch (token) { + case 'm': + return parseNumericPattern(numericPatterns.minute, string); + + case 'mo': + return match.ordinalNumber(string, { + unit: 'minute' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 59; + }, + set: function (date, _flags, value, _options) { + date.setUTCMinutes(value, 0, 0); + return date; + }, + incompatibleTokens: ['t', 'T'] + }, + // Second + s: { + priority: 50, + parse: function (string, token, match, _options) { + switch (token) { + case 's': + return parseNumericPattern(numericPatterns.second, string); + + case 'so': + return match.ordinalNumber(string, { + unit: 'second' + }); + + default: + return parseNDigits(token.length, string); + } + }, + validate: function (_date, value, _options) { + return value >= 0 && value <= 59; + }, + set: function (date, _flags, value, _options) { + date.setUTCSeconds(value, 0); + return date; + }, + incompatibleTokens: ['t', 'T'] + }, + // Fraction of second + S: { + priority: 30, + parse: function (string, token, _match, _options) { + var valueCallback = function (value) { + return Math.floor(value * Math.pow(10, -token.length + 3)); + }; + + return parseNDigits(token.length, string, valueCallback); + }, + set: function (date, _flags, value, _options) { + date.setUTCMilliseconds(value); + return date; + }, + incompatibleTokens: ['t', 'T'] + }, + // Timezone (ISO-8601. +00:00 is `'Z'`) + X: { + priority: 10, + parse: function (string, token, _match, _options) { + switch (token) { + case 'X': + return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); + + case 'XX': + return parseTimezonePattern(timezonePatterns.basic, string); + + case 'XXXX': + return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); + + case 'XXXXX': + return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); + + case 'XXX': + default: + return parseTimezonePattern(timezonePatterns.extended, string); + } + }, + set: function (date, flags, value, _options) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + }, + incompatibleTokens: ['t', 'T', 'x'] + }, + // Timezone (ISO-8601) + x: { + priority: 10, + parse: function (string, token, _match, _options) { + switch (token) { + case 'x': + return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); + + case 'xx': + return parseTimezonePattern(timezonePatterns.basic, string); + + case 'xxxx': + return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); + + case 'xxxxx': + return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); + + case 'xxx': + default: + return parseTimezonePattern(timezonePatterns.extended, string); + } + }, + set: function (date, flags, value, _options) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + }, + incompatibleTokens: ['t', 'T', 'X'] + }, + // Seconds timestamp + t: { + priority: 40, + parse: function (string, _token, _match, _options) { + return parseAnyDigitsSigned(string); + }, + set: function (_date, _flags, value, _options) { + return [new Date(value * 1000), { + timestampIsSet: true + }]; + }, + incompatibleTokens: '*' + }, + // Milliseconds timestamp + T: { + priority: 20, + parse: function (string, _token, _match, _options) { + return parseAnyDigitsSigned(string); + }, + set: function (_date, _flags, value, _options) { + return [new Date(value), { + timestampIsSet: true + }]; + }, + incompatibleTokens: '*' + } +}; +var _default = parsers; +exports.default = _default; +module.exports = exports.default; \ 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..6c4d2383 --- /dev/null +++ b/node_modules/date-fns/parse/index.js @@ -0,0 +1,572 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = parse; + +var _index = _interopRequireDefault(require("../locale/en-US/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/parsers/index.js")); + +var _index10 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var TIMEZONE_UNIT_PRIORITY = 10; // 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://git.io/fxCyr + * + * 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, Su, Sa | | + * | 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, Su, Sa | 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, Su, Sa | | + * | 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, Su, Sa | | + * | 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, 0001, ..., 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://git.io/fxCyr + * + * 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://git.io/fxCyr + * + * 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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - Old `parse` was renamed to `toDate`. + * Now `parse` is a new function which parses a string using a provided format. + * + * ```javascript + * // Before v2.0.0 + * parse('2016-01-01') + * + * // v2.0.0 onward (toDate no longer accepts a string) + * toDate(1392098430000) // Unix to timestamp + * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date + * parse('2016-01-01', 'yyyy-MM-dd', new Date()) + * ``` + * + * @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://git.io/fxCyr + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://git.io/fxCyr + * @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://git.io/fxCyr + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr + * @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, dirtyOptions) { + (0, _index10.default)(3, arguments); + var dateString = String(dirtyDateString); + var formatString = String(dirtyFormatString); + var options = dirtyOptions || {}; + var locale = options.locale || _index.default; + + if (!locale.match) { + throw new RangeError('locale must contain match property'); + } + + var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index8.default)(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index8.default)(options.firstWeekContainsDate); // 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 localeWeekStartsOn = locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index8.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index8.default)(options.weekStartsOn); // 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 = [{ + priority: TIMEZONE_UNIT_PRIORITY, + subPriority: -1, + set: dateToSystemTimezone, + index: 0 + }]; + var i; + var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + + if (firstCharacter === 'p' || firstCharacter === 'P') { + var longFormatter = _index5.default[firstCharacter]; + return longFormatter(substring, locale.formatLong, subFnOptions); + } + + return substring; + }).join('').match(formattingTokensRegExp); + var usedTokens = []; + + for (i = 0; i < tokens.length; i++) { + var token = tokens[i]; + + if (!options.useAdditionalWeekYearTokens && (0, _index7.isProtectedWeekYearToken)(token)) { + (0, _index7.throwProtectedError)(token, formatString, dirtyDateString); + } + + if (!options.useAdditionalDayOfYearTokens && (0, _index7.isProtectedDayOfYearToken)(token)) { + (0, _index7.throwProtectedError)(token, formatString, dirtyDateString); + } + + var firstCharacter = token[0]; + var parser = _index9.default[firstCharacter]; + + if (parser) { + var incompatibleTokens = parser.incompatibleTokens; + + if (Array.isArray(incompatibleTokens)) { + var incompatibleToken = void 0; + + for (var _i = 0; _i < usedTokens.length; _i++) { + var usedToken = usedTokens[_i].token; + + if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) { + incompatibleToken = usedTokens[_i]; + break; + } + } + + 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) { + 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.parse(dateString, token, locale.match, subFnOptions); + + if (!parseResult) { + return new Date(NaN); + } + + setters.push({ + priority: parser.priority, + subPriority: parser.subPriority || 0, + set: parser.set, + validate: parser.validate, + value: parseResult.value, + index: setters.length + }); + 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 new Date(NaN); + } + } + } // Check if the remaining input contains something other than whitespace + + + 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)) { + return new Date(NaN); + } // 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/37 + + + var utcDate = (0, _index2.default)(date, (0, _index6.default)(date)); + var flags = {}; + + for (i = 0; i < uniquePrioritySetters.length; i++) { + var setter = uniquePrioritySetters[i]; + + if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) { + return new Date(NaN); + } + + var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags) + + if (result[0]) { + utcDate = result[0]; + (0, _index4.default)(flags, result[1]); // Result is date + } else { + utcDate = result; + } + } + + return utcDate; +} + +function dateToSystemTimezone(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; +} + +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..4ba9db50 --- /dev/null +++ b/node_modules/date-fns/parse/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..2ba15c91 --- /dev/null +++ b/node_modules/date-fns/parseISO/index.js @@ -0,0 +1,303 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = parseISO; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_HOUR = 3600000; +var MILLISECONDS_IN_MINUTE = 60000; +var DEFAULT_ADDITIONAL_DIGITS = 2; +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}))?$/; +/** + * @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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The previous `parse` implementation was renamed to `parseISO`. + * + * ```javascript + * // Before v2.0.0 + * parse('2016-01-01') + * + * // v2.0.0 onward + * parseISO('2016-01-01') + * ``` + * + * - `parseISO` now validates separate date and time values in ISO-8601 strings + * and returns `Invalid Date` if the date is invalid. + * + * ```javascript + * parseISO('2018-13-32') + * //=> Invalid Date + * ``` + * + * - `parseISO` now doesn't fall back to `new Date` constructor + * if it fails to parse a string argument. Instead, 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: + * var 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: + * var result = parseISO('+02014101', { additionalDigits: 1 }) + * //=> Fri Apr 11 2014 00:00:00 + */ + +function parseISO(argument, dirtyOptions) { + (0, _index2.default)(1, arguments); + var options = dirtyOptions || {}; + var additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : (0, _index.default)(options.additionalDigits); + + 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 (isNaN(date) || !date) { + return new Date(NaN); + } + + var timestamp = date.getTime(); + var time = 0; + var offset; + + if (dateStrings.time) { + time = parseTime(dateStrings.time); + + if (isNaN(time) || time === null) { + 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(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate(), dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); + result.setFullYear(dirtyDate.getUTCFullYear()); + return result; + } + + return new Date(timestamp + time + offset); +} + +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])) { + dateStrings.date = null; + 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: null + }; + var year = captures[1] && parseInt(captures[1]); + var century = captures[2] && parseInt(captures[2]); + 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 null; + var captures = dateString.match(dateRegex); // Invalid ISO-formatted string + + if (!captures) return null; + 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 null; // 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 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + 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 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE); +} + +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; +} + +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..00713b77 --- /dev/null +++ b/node_modules/date-fns/parseISO/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ab0b64cf --- /dev/null +++ b/node_modules/date-fns/parseJSON/index.js @@ -0,0 +1,63 @@ +"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+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|\+00:?00)?/); + + if (parts) { + return new Date(Date.UTC(+parts[1], parts[2] - 1, +parts[3], +parts[4], +parts[5], +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..8252b82a --- /dev/null +++ b/node_modules/date-fns/parseJSON/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d74f533c --- /dev/null +++ b/node_modules/date-fns/roundToNearestMinutes/index.js @@ -0,0 +1,66 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = roundToNearestMinutes; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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. + * @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: + * var 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: + * var 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) { + if (arguments.length < 1) { + throw new TypeError('1 argument required, but only none provided present'); + } + + var nearestTo = options && 'nearestTo' in options ? (0, _index2.default)(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 roundedMinutes = Math.floor(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..6840b6c7 --- /dev/null +++ b/node_modules/date-fns/roundToNearestMinutes/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, +} + +declare module.exports: ( + date: Date | number, + options?: { + nearestTo?: number, + } +) => 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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d9261596 --- /dev/null +++ b/node_modules/date-fns/set/index.js @@ -0,0 +1,100 @@ +"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 }; } + +/** + * @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: + * var 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: + * var 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)) { + 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..9cbf33be --- /dev/null +++ b/node_modules/date-fns/set/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e1d158d4 --- /dev/null +++ b/node_modules/date-fns/setDate/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..a4356915 --- /dev/null +++ b/node_modules/date-fns/setDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a1def6ff --- /dev/null +++ b/node_modules/date-fns/setDay/index.js @@ -0,0 +1,71 @@ +"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")); + +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ +function setDay(dirtyDate, dirtyDay, dirtyOptions) { + (0, _index4.default)(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index3.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index3.default)(options.weekStartsOn); // 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, options); + 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, options); +} + +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..5014b16a --- /dev/null +++ b/node_modules/date-fns/setDay/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..27b1cafc --- /dev/null +++ b/node_modules/date-fns/setDayOfYear/index.js @@ -0,0 +1,47 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..0447af73 --- /dev/null +++ b/node_modules/date-fns/setDayOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..360cc9d9 --- /dev/null +++ b/node_modules/date-fns/setHours/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..ca1a60ec --- /dev/null +++ b/node_modules/date-fns/setHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..53cb5c35 --- /dev/null +++ b/node_modules/date-fns/setISODay/index.js @@ -0,0 +1,53 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..6d4ca391 --- /dev/null +++ b/node_modules/date-fns/setISODay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ebf4bf0e --- /dev/null +++ b/node_modules/date-fns/setISOWeek/index.js @@ -0,0 +1,51 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..c95423d2 --- /dev/null +++ b/node_modules/date-fns/setISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..8ad8d5db --- /dev/null +++ b/node_modules/date-fns/setISOWeekYear/index.js @@ -0,0 +1,63 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `setISOYear` to `setISOWeekYear`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `setWeekYear`. + * + * @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: + * var 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..8ea89ac0 --- /dev/null +++ b/node_modules/date-fns/setISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..23a659e5 --- /dev/null +++ b/node_modules/date-fns/setMilliseconds/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..fa09d6f2 --- /dev/null +++ b/node_modules/date-fns/setMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ba2625a5 --- /dev/null +++ b/node_modules/date-fns/setMinutes/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..6409daa0 --- /dev/null +++ b/node_modules/date-fns/setMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..1e1f01ec --- /dev/null +++ b/node_modules/date-fns/setMonth/index.js @@ -0,0 +1,56 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..d7e76e6f --- /dev/null +++ b/node_modules/date-fns/setMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..30c68f11 --- /dev/null +++ b/node_modules/date-fns/setQuarter/index.js @@ -0,0 +1,49 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..7a3ee084 --- /dev/null +++ b/node_modules/date-fns/setQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ab088861 --- /dev/null +++ b/node_modules/date-fns/setSeconds/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..1f402f53 --- /dev/null +++ b/node_modules/date-fns/setSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..bb04c7b1 --- /dev/null +++ b/node_modules/date-fns/setWeek/index.js @@ -0,0 +1,71 @@ +"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/toInteger/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = setWeek(new Date(2005, 0, 2), 1, { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Sun Jan 4 2004 00:00:00 + */ +function setWeek(dirtyDate, dirtyWeek, dirtyOptions) { + (0, _index4.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var week = (0, _index3.default)(dirtyWeek); + var diff = (0, _index.default)(date, dirtyOptions) - 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..0cbe8029 --- /dev/null +++ b/node_modules/date-fns/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e35df62a --- /dev/null +++ b/node_modules/date-fns/setWeekYear/index.js @@ -0,0 +1,83 @@ +"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")); + +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = setWeekYear(new Date(2010, 0, 2), 2004, { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Sat Jan 01 2005 00:00:00 + */ +function setWeekYear(dirtyDate, dirtyWeekYear, dirtyOptions) { + (0, _index5.default)(2, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index4.default)(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index4.default)(options.firstWeekContainsDate); + var date = (0, _index3.default)(dirtyDate); + var weekYear = (0, _index4.default)(dirtyWeekYear); + var diff = (0, _index.default)(date, (0, _index2.default)(date, dirtyOptions)); + var firstWeek = new Date(0); + firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + date = (0, _index2.default)(firstWeek, dirtyOptions); + 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..9f0b1b93 --- /dev/null +++ b/node_modules/date-fns/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..ca6d2e36 --- /dev/null +++ b/node_modules/date-fns/setYear/index.js @@ -0,0 +1,51 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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)) { + 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..fbf67e19 --- /dev/null +++ b/node_modules/date-fns/setYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..b44bce94 --- /dev/null +++ b/node_modules/date-fns/startOfDay/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfDay/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d9967eba --- /dev/null +++ b/node_modules/date-fns/startOfDecade/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfDecade/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..afb04a06 --- /dev/null +++ b/node_modules/date-fns/startOfHour/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfHour/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..4818b614 --- /dev/null +++ b/node_modules/date-fns/startOfISOWeek/index.js @@ -0,0 +1,45 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfISOWeek/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..89d7d4d5 --- /dev/null +++ b/node_modules/date-fns/startOfISOWeekYear/index.js @@ -0,0 +1,51 @@ +"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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfISOWeekYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..0d1e7008 --- /dev/null +++ b/node_modules/date-fns/startOfMinute/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfMinute/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..8d043d85 --- /dev/null +++ b/node_modules/date-fns/startOfMonth/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfMonth/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..4098598e --- /dev/null +++ b/node_modules/date-fns/startOfQuarter/index.js @@ -0,0 +1,46 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfQuarter/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..afbebbe0 --- /dev/null +++ b/node_modules/date-fns/startOfSecond/index.js @@ -0,0 +1,43 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfSecond/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..f4cb5ec6 --- /dev/null +++ b/node_modules/date-fns/startOfToday/index.js @@ -0,0 +1,39 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @returns {Date} the start of today + * + * @example + * // If today is 6 October 2014: + * var 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..ae75385e --- /dev/null +++ b/node_modules/date-fns/startOfToday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d0b71e43 --- /dev/null +++ b/node_modules/date-fns/startOfTomorrow/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/startOfTomorrow/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..edaf1af8 --- /dev/null +++ b/node_modules/date-fns/startOfWeek/index.js @@ -0,0 +1,67 @@ +"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")); + +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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Mon Sep 01 2014 00:00:00 + */ +function startOfWeek(dirtyDate, dirtyOptions) { + (0, _index3.default)(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; + var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : (0, _index2.default)(localeWeekStartsOn); + var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : (0, _index2.default)(options.weekStartsOn); // 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..f162c393 --- /dev/null +++ b/node_modules/date-fns/startOfWeek/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..06eafacb --- /dev/null +++ b/node_modules/date-fns/startOfWeekYear/index.js @@ -0,0 +1,76 @@ +"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")); + +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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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: + * var 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: + * var result = startOfWeekYear(new Date(2005, 6, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Mon Jan 03 2005 00:00:00 + */ +function startOfWeekYear(dirtyDate, dirtyOptions) { + (0, _index4.default)(1, arguments); + var options = dirtyOptions || {}; + var locale = options.locale; + var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; + var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : (0, _index3.default)(localeFirstWeekContainsDate); + var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : (0, _index3.default)(options.firstWeekContainsDate); + var year = (0, _index.default)(dirtyDate, dirtyOptions); + var firstWeek = new Date(0); + firstWeek.setFullYear(year, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + var date = (0, _index2.default)(firstWeek, dirtyOptions); + 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..9f321d3a --- /dev/null +++ b/node_modules/date-fns/startOfWeekYear/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, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e9720f94 --- /dev/null +++ b/node_modules/date-fns/startOfYear/index.js @@ -0,0 +1,45 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..dce0c66a --- /dev/null +++ b/node_modules/date-fns/startOfYear/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..988312c9 --- /dev/null +++ b/node_modules/date-fns/startOfYesterday/index.js @@ -0,0 +1,42 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..ae75385e --- /dev/null +++ b/node_modules/date-fns/startOfYesterday/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a1fe3e08 --- /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("../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 }; } + +/** + * @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(dirtyDate, duration) { + (0, _index4.default)(2, arguments); + if (!duration || typeof duration !== 'object') return new Date(NaN); + var years = 'years' in duration ? (0, _index5.default)(duration.years) : 0; + var months = 'months' in duration ? (0, _index5.default)(duration.months) : 0; + var weeks = 'weeks' in duration ? (0, _index5.default)(duration.weeks) : 0; + var days = 'days' in duration ? (0, _index5.default)(duration.days) : 0; + var hours = 'hours' in duration ? (0, _index5.default)(duration.hours) : 0; + var minutes = 'minutes' in duration ? (0, _index5.default)(duration.minutes) : 0; + var seconds = 'seconds' in duration ? (0, _index5.default)(duration.seconds) : 0; // Subtract years and months + + var dateWithoutMonths = (0, _index2.default)((0, _index3.default)(dirtyDate), 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..ddd4be0d --- /dev/null +++ b/node_modules/date-fns/sub/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..cd036cbb --- /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("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addBusinessDays/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/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: + * var result = subBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Aug 18 2014 00:00:00 (skipped weekend days) + */ +function subBusinessDays(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/subBusinessDays/index.js.flow b/node_modules/date-fns/subBusinessDays/index.js.flow new file mode 100644 index 00000000..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subBusinessDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..7dbef50b --- /dev/null +++ b/node_modules/date-fns/subDays/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subDays; + +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 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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, _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/subDays/index.js.flow b/node_modules/date-fns/subDays/index.js.flow new file mode 100644 index 00000000..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subDays/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..77ca71e5 --- /dev/null +++ b/node_modules/date-fns/subHours/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subHours; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addHours/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, _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/subHours/index.js.flow b/node_modules/date-fns/subHours/index.js.flow new file mode 100644 index 00000000..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subHours/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..259df59c --- /dev/null +++ b/node_modules/date-fns/subISOWeekYears/index.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subISOWeekYears; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addISOWeekYears/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/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 + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * - The function was renamed from `subISOYears` to `subISOWeekYears`. + * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + * This change makes the name consistent with + * locale-dependent week-numbering year helpers, e.g., `setWeekYear`. + * + * @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, _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/subISOWeekYears/index.js.flow b/node_modules/date-fns/subISOWeekYears/index.js.flow new file mode 100644 index 00000000..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subISOWeekYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e13af653 --- /dev/null +++ b/node_modules/date-fns/subMilliseconds/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subMilliseconds; + +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 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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, _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/subMilliseconds/index.js.flow b/node_modules/date-fns/subMilliseconds/index.js.flow new file mode 100644 index 00000000..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subMilliseconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..5fd546dd --- /dev/null +++ b/node_modules/date-fns/subMinutes/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subMinutes; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addMinutes/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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, _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/subMinutes/index.js.flow b/node_modules/date-fns/subMinutes/index.js.flow new file mode 100644 index 00000000..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subMinutes/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..d7abbbdd --- /dev/null +++ b/node_modules/date-fns/subMonths/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subMonths/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..e8f8ee7c --- /dev/null +++ b/node_modules/date-fns/subQuarters/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subQuarters/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..2939a6bd --- /dev/null +++ b/node_modules/date-fns/subSeconds/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subSeconds/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..c262e523 --- /dev/null +++ b/node_modules/date-fns/subWeeks/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subWeeks/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..3d9b1b4d --- /dev/null +++ b/node_modules/date-fns/subYears/index.js @@ -0,0 +1,44 @@ +"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. + * + * ### v2.0.0 breaking changes: + * + * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). + * + * @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..fcd349b6 --- /dev/null +++ b/node_modules/date-fns/subYears/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/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..a61c34b8 --- /dev/null +++ b/node_modules/date-fns/toDate/index.js @@ -0,0 +1,63 @@ +"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 }; } + +/** + * @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://git.io/fjule"); // 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..225abf5b --- /dev/null +++ b/node_modules/date-fns/toDate/index.js.flow @@ -0,0 +1,50 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +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..b9b8a066 --- /dev/null +++ b/node_modules/date-fns/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/types.js b/node_modules/date-fns/types.js new file mode 100644 index 00000000..9a390c31 --- /dev/null +++ b/node_modules/date-fns/types.js @@ -0,0 +1 @@ +"use strict"; \ 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..ef123abc --- /dev/null +++ b/node_modules/date-fns/typings.d.ts @@ -0,0 +1,19402 @@ +// 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 + +// Exported Type Aliases + +declare module 'date-fns' { + export type Interval = IntervalAliased + + export type Locale = LocaleAliased + + export type Duration = DurationAliased +} + +// 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 closestIndexTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): number + namespace closestIndexTo {} + + function closestTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): Date + 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 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 + ): 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 + ): number + namespace differenceInMinutes {} + + function differenceInMonths( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInMonths {} + + function differenceInQuarters( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInQuarters {} + + function differenceInSeconds( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInSeconds {} + + function differenceInWeeks( + dateLeft: Date | number, + dateRight: Date | number + ): 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 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 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 intervalToDuration(interval: Interval): Duration + namespace intervalToDuration {} + + 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 min(datesArray: (Date | number)[]): Date + namespace min {} + + 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 roundToNearestMinutes( + date: Date | number, + options?: { + nearestTo?: number + } + ): Date + namespace roundToNearestMinutes {} + + 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 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 {} + + const maxTime: number + + const minTime: 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/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/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/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/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/intervalToDuration' { + import { intervalToDuration } from 'date-fns' + export default intervalToDuration +} + +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/min' { + import { min } from 'date-fns' + export default min +} + +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/roundToNearestMinutes' { + import { roundToNearestMinutes } from 'date-fns' + export default roundToNearestMinutes +} + +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/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/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/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/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/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/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/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns' + export default intervalToDuration +} + +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/min/index' { + import { min } from 'date-fns' + export default min +} + +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/roundToNearestMinutes/index' { + import { roundToNearestMinutes } from 'date-fns' + export default roundToNearestMinutes +} + +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/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/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/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/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/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/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/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns' + export default intervalToDuration +} + +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/min/index.js' { + import { min } from 'date-fns' + export default min +} + +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/roundToNearestMinutes/index.js' { + import { roundToNearestMinutes } from 'date-fns' + export default roundToNearestMinutes +} + +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/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 +} + +// 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 closestIndexTo: CurriedFn2<(Date | number)[], Date | number, number> + namespace closestIndexTo {} + + const closestTo: CurriedFn2<(Date | number)[], Date | number, Date> + namespace closestTo {} + + const compareAsc: CurriedFn2 + namespace compareAsc {} + + const compareDesc: CurriedFn2 + namespace compareDesc {} + + 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 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 differenceInMonths: CurriedFn2 + namespace differenceInMonths {} + + const differenceInQuarters: CurriedFn2 + namespace differenceInQuarters {} + + const differenceInSeconds: CurriedFn2 + namespace differenceInSeconds {} + + const differenceInWeeks: CurriedFn2 + namespace differenceInWeeks {} + + 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 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 intervalToDuration: CurriedFn1 + namespace intervalToDuration {} + + 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 min: CurriedFn1<(Date | number)[], Date> + namespace min {} + + 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 roundToNearestMinutes: CurriedFn1 + namespace roundToNearestMinutes {} + + const roundToNearestMinutesWithOptions: CurriedFn2< + { + nearestTo?: number + }, + Date | number, + Date + > + namespace roundToNearestMinutesWithOptions {} + + 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 maxTime: number + + const minTime: 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/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/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/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/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/differenceInSeconds' { + import { differenceInSeconds } from 'date-fns/fp' + export default differenceInSeconds +} + +declare module 'date-fns/fp/differenceInWeeks' { + import { differenceInWeeks } from 'date-fns/fp' + export default differenceInWeeks +} + +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/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/intervalToDuration' { + import { intervalToDuration } from 'date-fns/fp' + export default intervalToDuration +} + +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/min' { + import { min } from 'date-fns/fp' + export default min +} + +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/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/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/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/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/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/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/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/differenceInSeconds/index' { + import { differenceInSeconds } from 'date-fns/fp' + export default differenceInSeconds +} + +declare module 'date-fns/fp/differenceInWeeks/index' { + import { differenceInWeeks } from 'date-fns/fp' + export default differenceInWeeks +} + +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/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/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns/fp' + export default intervalToDuration +} + +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/min/index' { + import { min } from 'date-fns/fp' + export default min +} + +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/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/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/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/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/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/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/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/differenceInSeconds/index.js' { + import { differenceInSeconds } from 'date-fns/fp' + export default differenceInSeconds +} + +declare module 'date-fns/fp/differenceInWeeks/index.js' { + import { differenceInWeeks } from 'date-fns/fp' + export default differenceInWeeks +} + +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/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/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns/fp' + export default intervalToDuration +} + +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/min/index.js' { + import { min } from 'date-fns/fp' + export default min +} + +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/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/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 +} + +// 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 closestIndexTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): number + namespace closestIndexTo {} + + function closestTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): Date + 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 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 + ): 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 + ): number + namespace differenceInMinutes {} + + function differenceInMonths( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInMonths {} + + function differenceInQuarters( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInQuarters {} + + function differenceInSeconds( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInSeconds {} + + function differenceInWeeks( + dateLeft: Date | number, + dateRight: Date | number + ): 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 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 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 intervalToDuration(interval: Interval): Duration + namespace intervalToDuration {} + + 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 min(datesArray: (Date | number)[]): Date + namespace min {} + + 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 roundToNearestMinutes( + date: Date | number, + options?: { + nearestTo?: number + } + ): Date + namespace roundToNearestMinutes {} + + 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 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 {} + + const maxTime: number + + const minTime: 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/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/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/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/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/intervalToDuration' { + import { intervalToDuration } from 'date-fns/esm' + export default intervalToDuration +} + +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/min' { + import { min } from 'date-fns/esm' + export default min +} + +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/roundToNearestMinutes' { + import { roundToNearestMinutes } from 'date-fns/esm' + export default roundToNearestMinutes +} + +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/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/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/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/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/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/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/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns/esm' + export default intervalToDuration +} + +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/min/index' { + import { min } from 'date-fns/esm' + export default min +} + +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/roundToNearestMinutes/index' { + import { roundToNearestMinutes } from 'date-fns/esm' + export default roundToNearestMinutes +} + +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/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/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/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/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/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/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/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns/esm' + export default intervalToDuration +} + +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/min/index.js' { + import { min } from 'date-fns/esm' + export default min +} + +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/roundToNearestMinutes/index.js' { + import { roundToNearestMinutes } from 'date-fns/esm' + export default roundToNearestMinutes +} + +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/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 +} + +// 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 closestIndexTo: CurriedFn2<(Date | number)[], Date | number, number> + namespace closestIndexTo {} + + const closestTo: CurriedFn2<(Date | number)[], Date | number, Date> + namespace closestTo {} + + const compareAsc: CurriedFn2 + namespace compareAsc {} + + const compareDesc: CurriedFn2 + namespace compareDesc {} + + 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 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 differenceInMonths: CurriedFn2 + namespace differenceInMonths {} + + const differenceInQuarters: CurriedFn2 + namespace differenceInQuarters {} + + const differenceInSeconds: CurriedFn2 + namespace differenceInSeconds {} + + const differenceInWeeks: CurriedFn2 + namespace differenceInWeeks {} + + 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 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 intervalToDuration: CurriedFn1 + namespace intervalToDuration {} + + 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 min: CurriedFn1<(Date | number)[], Date> + namespace min {} + + 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 roundToNearestMinutes: CurriedFn1 + namespace roundToNearestMinutes {} + + const roundToNearestMinutesWithOptions: CurriedFn2< + { + nearestTo?: number + }, + Date | number, + Date + > + namespace roundToNearestMinutesWithOptions {} + + 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 maxTime: number + + const minTime: 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/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/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/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/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/differenceInSeconds' { + import { differenceInSeconds } from 'date-fns/esm/fp' + export default differenceInSeconds +} + +declare module 'date-fns/esm/fp/differenceInWeeks' { + import { differenceInWeeks } from 'date-fns/esm/fp' + export default differenceInWeeks +} + +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/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/intervalToDuration' { + import { intervalToDuration } from 'date-fns/esm/fp' + export default intervalToDuration +} + +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/min' { + import { min } from 'date-fns/esm/fp' + export default min +} + +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/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/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/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/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/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/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/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/differenceInSeconds/index' { + import { differenceInSeconds } from 'date-fns/esm/fp' + export default differenceInSeconds +} + +declare module 'date-fns/esm/fp/differenceInWeeks/index' { + import { differenceInWeeks } from 'date-fns/esm/fp' + export default differenceInWeeks +} + +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/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/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns/esm/fp' + export default intervalToDuration +} + +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/min/index' { + import { min } from 'date-fns/esm/fp' + export default min +} + +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/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/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/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/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/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/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/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/differenceInSeconds/index.js' { + import { differenceInSeconds } from 'date-fns/esm/fp' + export default differenceInSeconds +} + +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/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/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/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns/esm/fp' + export default intervalToDuration +} + +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/min/index.js' { + import { min } from 'date-fns/esm/fp' + export default min +} + +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/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/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 +} + +// Regular Locales + +declare module 'date-fns/locale' { + const af: Locale + namespace af {} + + const ar: Locale + namespace ar {} + + const arDZ: Locale + namespace arDZ {} + + const arMA: Locale + namespace arMA {} + + const arSA: Locale + namespace arSA {} + + const az: Locale + namespace az {} + + const be: Locale + namespace be {} + + const bg: Locale + namespace bg {} + + const bn: Locale + namespace bn {} + + 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 el: Locale + namespace el {} + + const enAU: Locale + namespace enAU {} + + const enCA: Locale + namespace enCA {} + + const enGB: Locale + namespace enGB {} + + 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 fil: Locale + namespace fil {} + + const fr: Locale + namespace fr {} + + const frCA: Locale + namespace frCA {} + + const frCH: Locale + namespace frCH {} + + 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 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 ja: Locale + namespace ja {} + + const ka: Locale + namespace ka {} + + const kk: Locale + namespace kk {} + + 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 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 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 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 vi: Locale + namespace vi {} + + const zhCN: Locale + namespace zhCN {} + + 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-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/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/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/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/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-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/fil' { + import { fil } from 'date-fns/locale' + export default fil +} + +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/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/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/ja' { + import { ja } from 'date-fns/locale' + export default ja +} + +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/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/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/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/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/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-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-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/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/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/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/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-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/fil/index' { + import { fil } from 'date-fns/locale' + export default fil +} + +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/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/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/ja/index' { + import { ja } from 'date-fns/locale' + export default ja +} + +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/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/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/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/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/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-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-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/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/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/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/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-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/fil/index.js' { + import { fil } from 'date-fns/locale' + export default fil +} + +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/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/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/ja/index.js' { + import { ja } from 'date-fns/locale' + export default ja +} + +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/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/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/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/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/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-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 arMA: Locale + namespace arMA {} + + const arSA: Locale + namespace arSA {} + + const az: Locale + namespace az {} + + const be: Locale + namespace be {} + + const bg: Locale + namespace bg {} + + const bn: Locale + namespace bn {} + + 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 el: Locale + namespace el {} + + const enAU: Locale + namespace enAU {} + + const enCA: Locale + namespace enCA {} + + const enGB: Locale + namespace enGB {} + + 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 fil: Locale + namespace fil {} + + const fr: Locale + namespace fr {} + + const frCA: Locale + namespace frCA {} + + const frCH: Locale + namespace frCH {} + + 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 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 ja: Locale + namespace ja {} + + const ka: Locale + namespace ka {} + + const kk: Locale + namespace kk {} + + 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 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 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 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 vi: Locale + namespace vi {} + + const zhCN: Locale + namespace zhCN {} + + 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-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/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/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/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/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-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/fil' { + import { fil } from 'date-fns/esm/locale' + export default fil +} + +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/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/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/ja' { + import { ja } from 'date-fns/esm/locale' + export default ja +} + +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/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/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/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/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/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-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-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/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/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/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/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-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/fil/index' { + import { fil } from 'date-fns/esm/locale' + export default fil +} + +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/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/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/ja/index' { + import { ja } from 'date-fns/esm/locale' + export default ja +} + +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/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/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/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/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/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-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-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/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/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/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/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-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/fil/index.js' { + import { fil } from 'date-fns/esm/locale' + export default fil +} + +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/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/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/ja/index.js' { + import { ja } from 'date-fns/esm/locale' + export default ja +} + +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/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/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/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/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/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-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 + + 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 + + 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): number + + differenceInISOWeekYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInMilliseconds( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInMinutes(dateLeft: Date | number, dateRight: Date | number): number + + differenceInMonths(dateLeft: Date | number, dateRight: Date | number): number + + differenceInQuarters( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInSeconds(dateLeft: Date | number, dateRight: Date | number): number + + differenceInWeeks(dateLeft: Date | number, dateRight: Date | number): number + + differenceInYears(dateLeft: Date | number, dateRight: Date | number): number + + eachDayOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + + eachHourOfInterval( + 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 + + 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 + + intervalToDuration(interval: Interval): Duration + + 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 + + min(datesArray: (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 + + roundToNearestMinutes( + date: Date | number, + options?: { + nearestTo?: number + } + ): Date + + 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 + + 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 + + maxTime: number + + minTime: number +} diff --git a/node_modules/node-fetch/CHANGELOG.md b/node_modules/node-fetch/CHANGELOG.md new file mode 100644 index 00000000..543d3d94 --- /dev/null +++ b/node_modules/node-fetch/CHANGELOG.md @@ -0,0 +1,272 @@ + +Changelog +========= + + +# 2.x release + +## v2.6.1 + +**This is an important security release. It is strongly recommended to update as soon as possible.** + +- Fix: honor the `size` option after following a redirect. + +## v2.6.0 + +- Enhance: `options.agent`, it now accepts a function that returns custom http(s).Agent instance based on current URL, see readme for more information. +- Fix: incorrect `Content-Length` was returned for stream body in 2.5.0 release; note that `node-fetch` doesn't calculate content length for stream body. +- Fix: `Response.url` should return empty string instead of `null` by default. + +## v2.5.0 + +- Enhance: `Response` object now includes `redirected` property. +- Enhance: `fetch()` now accepts third-party `Blob` implementation as body. +- Other: disable `package-lock.json` generation as we never commit them. +- Other: dev dependency update. +- Other: readme update. + +## v2.4.1 + +- Fix: `Blob` import rule for node < 10, as `Readable` isn't a named export. + +## v2.4.0 + +- Enhance: added `Brotli` compression support (using node's zlib). +- Enhance: updated `Blob` implementation per spec. +- Fix: set content type automatically for `URLSearchParams`. +- Fix: `Headers` now reject empty header names. +- Fix: test cases, as node 12+ no longer accepts invalid header response. + +## v2.3.0 + +- Enhance: added `AbortSignal` support, with README example. +- Enhance: handle invalid `Location` header during redirect by rejecting them explicitly with `FetchError`. +- Fix: update `browser.js` to support react-native environment, where `self` isn't available globally. + +## v2.2.1 + +- Fix: `compress` flag shouldn't overwrite existing `Accept-Encoding` header. +- Fix: multiple `import` rules, where `PassThrough` etc. doesn't have a named export when using node <10 and `--exerimental-modules` flag. +- Other: Better README. + +## v2.2.0 + +- Enhance: Support all `ArrayBuffer` view types +- Enhance: Support Web Workers +- Enhance: Support Node.js' `--experimental-modules` mode; deprecate `.es.js` file +- Fix: Add `__esModule` property to the exports object +- Other: Better example in README for writing response to a file +- Other: More tests for Agent + +## v2.1.2 + +- Fix: allow `Body` methods to work on `ArrayBuffer`-backed `Body` objects +- Fix: reject promise returned by `Body` methods when the accumulated `Buffer` exceeds the maximum size +- Fix: support custom `Host` headers with any casing +- Fix: support importing `fetch()` from TypeScript in `browser.js` +- Fix: handle the redirect response body properly + +## v2.1.1 + +Fix packaging errors in v2.1.0. + +## v2.1.0 + +- Enhance: allow using ArrayBuffer as the `body` of a `fetch()` or `Request` +- Fix: store HTTP headers of a `Headers` object internally with the given case, for compatibility with older servers that incorrectly treated header names in a case-sensitive manner +- Fix: silently ignore invalid HTTP headers +- Fix: handle HTTP redirect responses without a `Location` header just like non-redirect responses +- Fix: include bodies when following a redirection when appropriate + +## v2.0.0 + +This is a major release. Check [our upgrade guide](https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md) for an overview on some key differences between v1 and v2. + +### General changes + +- Major: Node.js 0.10.x and 0.12.x support is dropped +- Major: `require('node-fetch/lib/response')` etc. is now unsupported; use `require('node-fetch').Response` or ES6 module imports +- Enhance: start testing on Node.js v4.x, v6.x, v8.x LTS, as well as v9.x stable +- Enhance: use Rollup to produce a distributed bundle (less memory overhead and faster startup) +- Enhance: make `Object.prototype.toString()` on Headers, Requests, and Responses return correct class strings +- Other: rewrite in ES2015 using Babel +- Other: use Codecov for code coverage tracking +- Other: update package.json script for npm 5 +- Other: `encoding` module is now optional (alpha.7) +- Other: expose browser.js through package.json, avoid bundling mishaps (alpha.9) +- Other: allow TypeScript to `import` node-fetch by exposing default (alpha.9) + +### HTTP requests + +- Major: overwrite user's `Content-Length` if we can be sure our information is correct (per spec) +- Fix: errors in a response are caught before the body is accessed +- Fix: support WHATWG URL objects, created by `whatwg-url` package or `require('url').URL` in Node.js 7+ + +### Response and Request classes + +- Major: `response.text()` no longer attempts to detect encoding, instead always opting for UTF-8 (per spec); use `response.textConverted()` for the v1 behavior +- Major: make `response.json()` throw error instead of returning an empty object on 204 no-content respose (per spec; reverts behavior changed in v1.6.2) +- Major: internal methods are no longer exposed +- Major: throw error when a `GET` or `HEAD` Request is constructed with a non-null body (per spec) +- Enhance: add `response.arrayBuffer()` (also applies to Requests) +- Enhance: add experimental `response.blob()` (also applies to Requests) +- Enhance: `URLSearchParams` is now accepted as a body +- Enhance: wrap `response.json()` json parsing error as `FetchError` +- Fix: fix Request and Response with `null` body + +### Headers class + +- Major: remove `headers.getAll()`; make `get()` return all headers delimited by commas (per spec) +- Enhance: make Headers iterable +- Enhance: make Headers constructor accept an array of tuples +- Enhance: make sure header names and values are valid in HTTP +- Fix: coerce Headers prototype function parameters to strings, where applicable + +### Documentation + +- Enhance: more comprehensive API docs +- Enhance: add a list of default headers in README + + +# 1.x release + +## backport releases (v1.7.0 and beyond) + +See [changelog on 1.x branch](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) for details. + +## v1.6.3 + +- Enhance: error handling document to explain `FetchError` design +- Fix: support `form-data` 2.x releases (requires `form-data` >= 2.1.0) + +## v1.6.2 + +- Enhance: minor document update +- Fix: response.json() returns empty object on 204 no-content response instead of throwing a syntax error + +## v1.6.1 + +- Fix: if `res.body` is a non-stream non-formdata object, we will call `body.toString` and send it as a string +- Fix: `counter` value is incorrectly set to `follow` value when wrapping Request instance +- Fix: documentation update + +## v1.6.0 + +- Enhance: added `res.buffer()` api for convenience, it returns body as a Node.js buffer +- Enhance: better old server support by handling raw deflate response +- Enhance: skip encoding detection for non-HTML/XML response +- Enhance: minor document update +- Fix: HEAD request doesn't need decompression, as body is empty +- Fix: `req.body` now accepts a Node.js buffer + +## v1.5.3 + +- Fix: handle 204 and 304 responses when body is empty but content-encoding is gzip/deflate +- Fix: allow resolving response and cloned response in any order +- Fix: avoid setting `content-length` when `form-data` body use streams +- Fix: send DELETE request with content-length when body is present +- Fix: allow any url when calling new Request, but still reject non-http(s) url in fetch + +## v1.5.2 + +- Fix: allow node.js core to handle keep-alive connection pool when passing a custom agent + +## v1.5.1 + +- Fix: redirect mode `manual` should work even when there is no redirection or broken redirection + +## v1.5.0 + +- Enhance: rejected promise now use custom `Error` (thx to @pekeler) +- Enhance: `FetchError` contains `err.type` and `err.code`, allows for better error handling (thx to @pekeler) +- Enhance: basic support for redirect mode `manual` and `error`, allows for location header extraction (thx to @jimmywarting for the initial PR) + +## v1.4.1 + +- Fix: wrapping Request instance with FormData body again should preserve the body as-is + +## v1.4.0 + +- Enhance: Request and Response now have `clone` method (thx to @kirill-konshin for the initial PR) +- Enhance: Request and Response now have proper string and buffer body support (thx to @kirill-konshin) +- Enhance: Body constructor has been refactored out (thx to @kirill-konshin) +- Enhance: Headers now has `forEach` method (thx to @tricoder42) +- Enhance: back to 100% code coverage +- Fix: better form-data support (thx to @item4) +- Fix: better character encoding detection under chunked encoding (thx to @dsuket for the initial PR) + +## v1.3.3 + +- Fix: make sure `Content-Length` header is set when body is string for POST/PUT/PATCH requests +- Fix: handle body stream error, for cases such as incorrect `Content-Encoding` header +- Fix: when following certain redirects, use `GET` on subsequent request per Fetch Spec +- Fix: `Request` and `Response` constructors now parse headers input using `Headers` + +## v1.3.2 + +- Enhance: allow auto detect of form-data input (no `FormData` spec on node.js, this is form-data specific feature) + +## v1.3.1 + +- Enhance: allow custom host header to be set (server-side only feature, as it's a forbidden header on client-side) + +## v1.3.0 + +- Enhance: now `fetch.Request` is exposed as well + +## v1.2.1 + +- Enhance: `Headers` now normalized `Number` value to `String`, prevent common mistakes + +## v1.2.0 + +- Enhance: now fetch.Headers and fetch.Response are exposed, making testing easier + +## v1.1.2 + +- Fix: `Headers` should only support `String` and `Array` properties, and ignore others + +## v1.1.1 + +- Enhance: now req.headers accept both plain object and `Headers` instance + +## v1.1.0 + +- Enhance: timeout now also applies to response body (in case of slow response) +- Fix: timeout is now cleared properly when fetch is done/has failed + +## v1.0.6 + +- Fix: less greedy content-type charset matching + +## v1.0.5 + +- Fix: when `follow = 0`, fetch should not follow redirect +- Enhance: update tests for better coverage +- Enhance: code formatting +- Enhance: clean up doc + +## v1.0.4 + +- Enhance: test iojs support +- Enhance: timeout attached to socket event only fire once per redirect + +## v1.0.3 + +- Fix: response size limit should reject large chunk +- Enhance: added character encoding detection for xml, such as rss/atom feed (encoding in DTD) + +## v1.0.2 + +- Fix: added res.ok per spec change + +## v1.0.0 + +- Enhance: better test coverage and doc + + +# 0.x release + +## v0.1 + +- Major: initial public release diff --git a/node_modules/node-fetch/LICENSE.md b/node_modules/node-fetch/LICENSE.md new file mode 100644 index 00000000..660ffecb --- /dev/null +++ b/node_modules/node-fetch/LICENSE.md @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2016 David Frank + +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/node-fetch/README.md b/node_modules/node-fetch/README.md new file mode 100644 index 00000000..2dde7428 --- /dev/null +++ b/node_modules/node-fetch/README.md @@ -0,0 +1,590 @@ +node-fetch +========== + +[![npm version][npm-image]][npm-url] +[![build status][travis-image]][travis-url] +[![coverage status][codecov-image]][codecov-url] +[![install size][install-size-image]][install-size-url] +[![Discord][discord-image]][discord-url] + +A light-weight module that brings `window.fetch` to Node.js + +(We are looking for [v2 maintainers and collaborators](https://github.com/bitinn/node-fetch/issues/567)) + +[![Backers][opencollective-image]][opencollective-url] + + + +- [Motivation](#motivation) +- [Features](#features) +- [Difference from client-side fetch](#difference-from-client-side-fetch) +- [Installation](#installation) +- [Loading and configuring the module](#loading-and-configuring-the-module) +- [Common Usage](#common-usage) + - [Plain text or HTML](#plain-text-or-html) + - [JSON](#json) + - [Simple Post](#simple-post) + - [Post with JSON](#post-with-json) + - [Post with form parameters](#post-with-form-parameters) + - [Handling exceptions](#handling-exceptions) + - [Handling client and server errors](#handling-client-and-server-errors) +- [Advanced Usage](#advanced-usage) + - [Streams](#streams) + - [Buffer](#buffer) + - [Accessing Headers and other Meta data](#accessing-headers-and-other-meta-data) + - [Extract Set-Cookie Header](#extract-set-cookie-header) + - [Post data using a file stream](#post-data-using-a-file-stream) + - [Post with form-data (detect multipart)](#post-with-form-data-detect-multipart) + - [Request cancellation with AbortSignal](#request-cancellation-with-abortsignal) +- [API](#api) + - [fetch(url[, options])](#fetchurl-options) + - [Options](#options) + - [Class: Request](#class-request) + - [Class: Response](#class-response) + - [Class: Headers](#class-headers) + - [Interface: Body](#interface-body) + - [Class: FetchError](#class-fetcherror) +- [License](#license) +- [Acknowledgement](#acknowledgement) + + + +## Motivation + +Instead of implementing `XMLHttpRequest` in Node.js to run browser-specific [Fetch polyfill](https://github.com/github/fetch), why not go from native `http` to `fetch` API directly? Hence, `node-fetch`, minimal code for a `window.fetch` compatible API on Node.js runtime. + +See Matt Andrews' [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) or Leonardo Quixada's [cross-fetch](https://github.com/lquixada/cross-fetch) for isomorphic usage (exports `node-fetch` for server-side, `whatwg-fetch` for client-side). + +## Features + +- Stay consistent with `window.fetch` API. +- Make conscious trade-off when following [WHATWG fetch spec][whatwg-fetch] and [stream spec](https://streams.spec.whatwg.org/) implementation details, document known differences. +- Use native promise but allow substituting it with [insert your favorite promise library]. +- Use native Node streams for body on both request and response. +- Decode content encoding (gzip/deflate) properly and convert string output (such as `res.text()` and `res.json()`) to UTF-8 automatically. +- Useful extensions such as timeout, redirect limit, response size limit, [explicit errors](ERROR-HANDLING.md) for troubleshooting. + +## Difference from client-side fetch + +- See [Known Differences](LIMITS.md) for details. +- If you happen to use a missing feature that `window.fetch` offers, feel free to open an issue. +- Pull requests are welcomed too! + +## Installation + +Current stable release (`2.x`) + +```sh +$ npm install node-fetch +``` + +## Loading and configuring the module +We suggest you load the module via `require` until the stabilization of ES modules in node: +```js +const fetch = require('node-fetch'); +``` + +If you are using a Promise library other than native, set it through `fetch.Promise`: +```js +const Bluebird = require('bluebird'); + +fetch.Promise = Bluebird; +``` + +## Common Usage + +NOTE: The documentation below is up-to-date with `2.x` releases; see the [`1.x` readme](https://github.com/bitinn/node-fetch/blob/1.x/README.md), [changelog](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) and [2.x upgrade guide](UPGRADE-GUIDE.md) for the differences. + +#### Plain text or HTML +```js +fetch('https://github.com/') + .then(res => res.text()) + .then(body => console.log(body)); +``` + +#### JSON + +```js + +fetch('https://api.github.com/users/github') + .then(res => res.json()) + .then(json => console.log(json)); +``` + +#### Simple Post +```js +fetch('https://httpbin.org/post', { method: 'POST', body: 'a=1' }) + .then(res => res.json()) // expecting a json response + .then(json => console.log(json)); +``` + +#### Post with JSON + +```js +const body = { a: 1 }; + +fetch('https://httpbin.org/post', { + method: 'post', + body: JSON.stringify(body), + headers: { 'Content-Type': 'application/json' }, + }) + .then(res => res.json()) + .then(json => console.log(json)); +``` + +#### Post with form parameters +`URLSearchParams` is available in Node.js as of v7.5.0. See [official documentation](https://nodejs.org/api/url.html#url_class_urlsearchparams) for more usage methods. + +NOTE: The `Content-Type` header is only set automatically to `x-www-form-urlencoded` when an instance of `URLSearchParams` is given as such: + +```js +const { URLSearchParams } = require('url'); + +const params = new URLSearchParams(); +params.append('a', 1); + +fetch('https://httpbin.org/post', { method: 'POST', body: params }) + .then(res => res.json()) + .then(json => console.log(json)); +``` + +#### Handling exceptions +NOTE: 3xx-5xx responses are *NOT* exceptions and should be handled in `then()`; see the next section for more information. + +Adding a catch to the fetch promise chain will catch *all* exceptions, such as errors originating from node core libraries, network errors and operational errors, which are instances of FetchError. See the [error handling document](ERROR-HANDLING.md) for more details. + +```js +fetch('https://domain.invalid/') + .catch(err => console.error(err)); +``` + +#### Handling client and server errors +It is common to create a helper function to check that the response contains no client (4xx) or server (5xx) error responses: + +```js +function checkStatus(res) { + if (res.ok) { // res.status >= 200 && res.status < 300 + return res; + } else { + throw MyCustomError(res.statusText); + } +} + +fetch('https://httpbin.org/status/400') + .then(checkStatus) + .then(res => console.log('will not get here...')) +``` + +## Advanced Usage + +#### Streams +The "Node.js way" is to use streams when possible: + +```js +fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') + .then(res => { + const dest = fs.createWriteStream('./octocat.png'); + res.body.pipe(dest); + }); +``` + +#### Buffer +If you prefer to cache binary data in full, use buffer(). (NOTE: `buffer()` is a `node-fetch`-only API) + +```js +const fileType = require('file-type'); + +fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') + .then(res => res.buffer()) + .then(buffer => fileType(buffer)) + .then(type => { /* ... */ }); +``` + +#### Accessing Headers and other Meta data +```js +fetch('https://github.com/') + .then(res => { + console.log(res.ok); + console.log(res.status); + console.log(res.statusText); + console.log(res.headers.raw()); + console.log(res.headers.get('content-type')); + }); +``` + +#### Extract Set-Cookie Header + +Unlike browsers, you can access raw `Set-Cookie` headers manually using `Headers.raw()`. This is a `node-fetch` only API. + +```js +fetch(url).then(res => { + // returns an array of values, instead of a string of comma-separated values + console.log(res.headers.raw()['set-cookie']); +}); +``` + +#### Post data using a file stream + +```js +const { createReadStream } = require('fs'); + +const stream = createReadStream('input.txt'); + +fetch('https://httpbin.org/post', { method: 'POST', body: stream }) + .then(res => res.json()) + .then(json => console.log(json)); +``` + +#### Post with form-data (detect multipart) + +```js +const FormData = require('form-data'); + +const form = new FormData(); +form.append('a', 1); + +fetch('https://httpbin.org/post', { method: 'POST', body: form }) + .then(res => res.json()) + .then(json => console.log(json)); + +// OR, using custom headers +// NOTE: getHeaders() is non-standard API + +const form = new FormData(); +form.append('a', 1); + +const options = { + method: 'POST', + body: form, + headers: form.getHeaders() +} + +fetch('https://httpbin.org/post', options) + .then(res => res.json()) + .then(json => console.log(json)); +``` + +#### Request cancellation with AbortSignal + +> NOTE: You may cancel streamed requests only on Node >= v8.0.0 + +You may cancel requests with `AbortController`. A suggested implementation is [`abort-controller`](https://www.npmjs.com/package/abort-controller). + +An example of timing out a request after 150ms could be achieved as the following: + +```js +import AbortController from 'abort-controller'; + +const controller = new AbortController(); +const timeout = setTimeout( + () => { controller.abort(); }, + 150, +); + +fetch(url, { signal: controller.signal }) + .then(res => res.json()) + .then( + data => { + useData(data) + }, + err => { + if (err.name === 'AbortError') { + // request was aborted + } + }, + ) + .finally(() => { + clearTimeout(timeout); + }); +``` + +See [test cases](https://github.com/bitinn/node-fetch/blob/master/test/test.js) for more examples. + + +## API + +### fetch(url[, options]) + +- `url` A string representing the URL for fetching +- `options` [Options](#fetch-options) for the HTTP(S) request +- Returns: Promise<[Response](#class-response)> + +Perform an HTTP(S) fetch. + +`url` should be an absolute url, such as `https://example.com/`. A path-relative URL (`/file/under/root`) or protocol-relative URL (`//can-be-http-or-https.com/`) will result in a rejected `Promise`. + + +### Options + +The default values are shown after each option key. + +```js +{ + // These properties are part of the Fetch Standard + method: 'GET', + headers: {}, // request headers. format is the identical to that accepted by the Headers constructor (see below) + body: null, // request body. can be null, a string, a Buffer, a Blob, or a Node.js Readable stream + redirect: 'follow', // set to `manual` to extract redirect headers, `error` to reject redirect + signal: null, // pass an instance of AbortSignal to optionally abort requests + + // The following properties are node-fetch extensions + follow: 20, // maximum redirect count. 0 to not follow redirect + timeout: 0, // req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies). Signal is recommended instead. + compress: true, // support gzip/deflate content encoding. false to disable + size: 0, // maximum response body size in bytes. 0 to disable + agent: null // http(s).Agent instance or function that returns an instance (see below) +} +``` + +##### Default Headers + +If no values are set, the following request headers will be sent automatically: + +Header | Value +------------------- | -------------------------------------------------------- +`Accept-Encoding` | `gzip,deflate` _(when `options.compress === true`)_ +`Accept` | `*/*` +`Connection` | `close` _(when no `options.agent` is present)_ +`Content-Length` | _(automatically calculated, if possible)_ +`Transfer-Encoding` | `chunked` _(when `req.body` is a stream)_ +`User-Agent` | `node-fetch/1.0 (+https://github.com/bitinn/node-fetch)` + +Note: when `body` is a `Stream`, `Content-Length` is not set automatically. + +##### Custom Agent + +The `agent` option allows you to specify networking related options which are out of the scope of Fetch, including and not limited to the following: + +- Support self-signed certificate +- Use only IPv4 or IPv6 +- Custom DNS Lookup + +See [`http.Agent`](https://nodejs.org/api/http.html#http_new_agent_options) for more information. + +In addition, the `agent` option accepts a function that returns `http`(s)`.Agent` instance given current [URL](https://nodejs.org/api/url.html), this is useful during a redirection chain across HTTP and HTTPS protocol. + +```js +const httpAgent = new http.Agent({ + keepAlive: true +}); +const httpsAgent = new https.Agent({ + keepAlive: true +}); + +const options = { + agent: function (_parsedURL) { + if (_parsedURL.protocol == 'http:') { + return httpAgent; + } else { + return httpsAgent; + } + } +} +``` + + +### Class: Request + +An HTTP(S) request containing information about URL, method, headers, and the body. This class implements the [Body](#iface-body) interface. + +Due to the nature of Node.js, the following properties are not implemented at this moment: + +- `type` +- `destination` +- `referrer` +- `referrerPolicy` +- `mode` +- `credentials` +- `cache` +- `integrity` +- `keepalive` + +The following node-fetch extension properties are provided: + +- `follow` +- `compress` +- `counter` +- `agent` + +See [options](#fetch-options) for exact meaning of these extensions. + +#### new Request(input[, options]) + +*(spec-compliant)* + +- `input` A string representing a URL, or another `Request` (which will be cloned) +- `options` [Options][#fetch-options] for the HTTP(S) request + +Constructs a new `Request` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request). + +In most cases, directly `fetch(url, options)` is simpler than creating a `Request` object. + + +### Class: Response + +An HTTP(S) response. This class implements the [Body](#iface-body) interface. + +The following properties are not implemented in node-fetch at this moment: + +- `Response.error()` +- `Response.redirect()` +- `type` +- `trailer` + +#### new Response([body[, options]]) + +*(spec-compliant)* + +- `body` A `String` or [`Readable` stream][node-readable] +- `options` A [`ResponseInit`][response-init] options dictionary + +Constructs a new `Response` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response). + +Because Node.js does not implement service workers (for which this class was designed), one rarely has to construct a `Response` directly. + +#### response.ok + +*(spec-compliant)* + +Convenience property representing if the request ended normally. Will evaluate to true if the response status was greater than or equal to 200 but smaller than 300. + +#### response.redirected + +*(spec-compliant)* + +Convenience property representing if the request has been redirected at least once. Will evaluate to true if the internal redirect counter is greater than 0. + + +### Class: Headers + +This class allows manipulating and iterating over a set of HTTP headers. All methods specified in the [Fetch Standard][whatwg-fetch] are implemented. + +#### new Headers([init]) + +*(spec-compliant)* + +- `init` Optional argument to pre-fill the `Headers` object + +Construct a new `Headers` object. `init` can be either `null`, a `Headers` object, an key-value map object or any iterable object. + +```js +// Example adapted from https://fetch.spec.whatwg.org/#example-headers-class + +const meta = { + 'Content-Type': 'text/xml', + 'Breaking-Bad': '<3' +}; +const headers = new Headers(meta); + +// The above is equivalent to +const meta = [ + [ 'Content-Type', 'text/xml' ], + [ 'Breaking-Bad', '<3' ] +]; +const headers = new Headers(meta); + +// You can in fact use any iterable objects, like a Map or even another Headers +const meta = new Map(); +meta.set('Content-Type', 'text/xml'); +meta.set('Breaking-Bad', '<3'); +const headers = new Headers(meta); +const copyOfHeaders = new Headers(headers); +``` + + +### Interface: Body + +`Body` is an abstract interface with methods that are applicable to both `Request` and `Response` classes. + +The following methods are not yet implemented in node-fetch at this moment: + +- `formData()` + +#### body.body + +*(deviation from spec)* + +* Node.js [`Readable` stream][node-readable] + +Data are encapsulated in the `Body` object. Note that while the [Fetch Standard][whatwg-fetch] requires the property to always be a WHATWG `ReadableStream`, in node-fetch it is a Node.js [`Readable` stream][node-readable]. + +#### body.bodyUsed + +*(spec-compliant)* + +* `Boolean` + +A boolean property for if this body has been consumed. Per the specs, a consumed body cannot be used again. + +#### body.arrayBuffer() +#### body.blob() +#### body.json() +#### body.text() + +*(spec-compliant)* + +* Returns: Promise + +Consume the body and return a promise that will resolve to one of these formats. + +#### body.buffer() + +*(node-fetch extension)* + +* Returns: Promise<Buffer> + +Consume the body and return a promise that will resolve to a Buffer. + +#### body.textConverted() + +*(node-fetch extension)* + +* Returns: Promise<String> + +Identical to `body.text()`, except instead of always converting to UTF-8, encoding sniffing will be performed and text converted to UTF-8 if possible. + +(This API requires an optional dependency of the npm package [encoding](https://www.npmjs.com/package/encoding), which you need to install manually. `webpack` users may see [a warning message](https://github.com/bitinn/node-fetch/issues/412#issuecomment-379007792) due to this optional dependency.) + + +### Class: FetchError + +*(node-fetch extension)* + +An operational error in the fetching process. See [ERROR-HANDLING.md][] for more info. + + +### Class: AbortError + +*(node-fetch extension)* + +An Error thrown when the request is aborted in response to an `AbortSignal`'s `abort` event. It has a `name` property of `AbortError`. See [ERROR-HANDLING.MD][] for more info. + +## Acknowledgement + +Thanks to [github/fetch](https://github.com/github/fetch) for providing a solid implementation reference. + +`node-fetch` v1 was maintained by [@bitinn](https://github.com/bitinn); v2 was maintained by [@TimothyGu](https://github.com/timothygu), [@bitinn](https://github.com/bitinn) and [@jimmywarting](https://github.com/jimmywarting); v2 readme is written by [@jkantr](https://github.com/jkantr). + +## License + +MIT + +[npm-image]: https://flat.badgen.net/npm/v/node-fetch +[npm-url]: https://www.npmjs.com/package/node-fetch +[travis-image]: https://flat.badgen.net/travis/bitinn/node-fetch +[travis-url]: https://travis-ci.org/bitinn/node-fetch +[codecov-image]: https://flat.badgen.net/codecov/c/github/bitinn/node-fetch/master +[codecov-url]: https://codecov.io/gh/bitinn/node-fetch +[install-size-image]: https://flat.badgen.net/packagephobia/install/node-fetch +[install-size-url]: https://packagephobia.now.sh/result?p=node-fetch +[discord-image]: https://img.shields.io/discord/619915844268326952?color=%237289DA&label=Discord&style=flat-square +[discord-url]: https://discord.gg/Zxbndcm +[opencollective-image]: https://opencollective.com/node-fetch/backers.svg +[opencollective-url]: https://opencollective.com/node-fetch +[whatwg-fetch]: https://fetch.spec.whatwg.org/ +[response-init]: https://fetch.spec.whatwg.org/#responseinit +[node-readable]: https://nodejs.org/api/stream.html#stream_readable_streams +[mdn-headers]: https://developer.mozilla.org/en-US/docs/Web/API/Headers +[LIMITS.md]: https://github.com/bitinn/node-fetch/blob/master/LIMITS.md +[ERROR-HANDLING.md]: https://github.com/bitinn/node-fetch/blob/master/ERROR-HANDLING.md +[UPGRADE-GUIDE.md]: https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md diff --git a/node_modules/node-fetch/browser.js b/node_modules/node-fetch/browser.js new file mode 100644 index 00000000..83c54c58 --- /dev/null +++ b/node_modules/node-fetch/browser.js @@ -0,0 +1,25 @@ +"use strict"; + +// ref: https://github.com/tc39/proposal-global +var getGlobal = function () { + // the only reliable means to get the global object is + // `Function('return this')()` + // However, this causes CSP violations in Chrome apps. + if (typeof self !== 'undefined') { return self; } + if (typeof window !== 'undefined') { return window; } + if (typeof global !== 'undefined') { return global; } + throw new Error('unable to locate global object'); +} + +var global = getGlobal(); + +module.exports = exports = global.fetch; + +// Needed for TypeScript and Webpack. +if (global.fetch) { + exports.default = global.fetch.bind(global); +} + +exports.Headers = global.Headers; +exports.Request = global.Request; +exports.Response = global.Response; \ No newline at end of file diff --git a/node_modules/node-fetch/lib/index.es.js b/node_modules/node-fetch/lib/index.es.js new file mode 100644 index 00000000..61906c95 --- /dev/null +++ b/node_modules/node-fetch/lib/index.es.js @@ -0,0 +1,1640 @@ +process.emitWarning("The .es.js file is deprecated. Use .mjs instead."); + +import Stream from 'stream'; +import http from 'http'; +import Url from 'url'; +import https from 'https'; +import zlib from 'zlib'; + +// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js + +// fix for "Readable" isn't a named export issue +const Readable = Stream.Readable; + +const BUFFER = Symbol('buffer'); +const TYPE = Symbol('type'); + +class Blob { + constructor() { + this[TYPE] = ''; + + const blobParts = arguments[0]; + const options = arguments[1]; + + const buffers = []; + let size = 0; + + if (blobParts) { + const a = blobParts; + const length = Number(a.length); + for (let i = 0; i < length; i++) { + const element = a[i]; + let buffer; + if (element instanceof Buffer) { + buffer = element; + } else if (ArrayBuffer.isView(element)) { + buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); + } else if (element instanceof ArrayBuffer) { + buffer = Buffer.from(element); + } else if (element instanceof Blob) { + buffer = element[BUFFER]; + } else { + buffer = Buffer.from(typeof element === 'string' ? element : String(element)); + } + size += buffer.length; + buffers.push(buffer); + } + } + + this[BUFFER] = Buffer.concat(buffers); + + let type = options && options.type !== undefined && String(options.type).toLowerCase(); + if (type && !/[^\u0020-\u007E]/.test(type)) { + this[TYPE] = type; + } + } + get size() { + return this[BUFFER].length; + } + get type() { + return this[TYPE]; + } + text() { + return Promise.resolve(this[BUFFER].toString()); + } + arrayBuffer() { + const buf = this[BUFFER]; + const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + return Promise.resolve(ab); + } + stream() { + const readable = new Readable(); + readable._read = function () {}; + readable.push(this[BUFFER]); + readable.push(null); + return readable; + } + toString() { + return '[object Blob]'; + } + slice() { + const size = this.size; + + const start = arguments[0]; + const end = arguments[1]; + let relativeStart, relativeEnd; + if (start === undefined) { + relativeStart = 0; + } else if (start < 0) { + relativeStart = Math.max(size + start, 0); + } else { + relativeStart = Math.min(start, size); + } + if (end === undefined) { + relativeEnd = size; + } else if (end < 0) { + relativeEnd = Math.max(size + end, 0); + } else { + relativeEnd = Math.min(end, size); + } + const span = Math.max(relativeEnd - relativeStart, 0); + + const buffer = this[BUFFER]; + const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); + const blob = new Blob([], { type: arguments[2] }); + blob[BUFFER] = slicedBuffer; + return blob; + } +} + +Object.defineProperties(Blob.prototype, { + size: { enumerable: true }, + type: { enumerable: true }, + slice: { enumerable: true } +}); + +Object.defineProperty(Blob.prototype, Symbol.toStringTag, { + value: 'Blob', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * fetch-error.js + * + * FetchError interface for operational errors + */ + +/** + * Create FetchError instance + * + * @param String message Error message for human + * @param String type Error type for machine + * @param String systemError For Node.js system error + * @return FetchError + */ +function FetchError(message, type, systemError) { + Error.call(this, message); + + this.message = message; + this.type = type; + + // when err.type is `system`, err.code contains system error code + if (systemError) { + this.code = this.errno = systemError.code; + } + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +FetchError.prototype = Object.create(Error.prototype); +FetchError.prototype.constructor = FetchError; +FetchError.prototype.name = 'FetchError'; + +let convert; +try { + convert = require('encoding').convert; +} catch (e) {} + +const INTERNALS = Symbol('Body internals'); + +// fix an issue where "PassThrough" isn't a named export for node <10 +const PassThrough = Stream.PassThrough; + +/** + * Body mixin + * + * Ref: https://fetch.spec.whatwg.org/#body + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +function Body(body) { + var _this = this; + + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$size = _ref.size; + + let size = _ref$size === undefined ? 0 : _ref$size; + var _ref$timeout = _ref.timeout; + let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; + + if (body == null) { + // body is undefined or null + body = null; + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams + body = Buffer.from(body.toString()); + } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { + // body is ArrayBuffer + body = Buffer.from(body); + } else if (ArrayBuffer.isView(body)) { + // body is ArrayBufferView + body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); + } else if (body instanceof Stream) ; else { + // none of the above + // coerce to string then buffer + body = Buffer.from(String(body)); + } + this[INTERNALS] = { + body, + disturbed: false, + error: null + }; + this.size = size; + this.timeout = timeout; + + if (body instanceof Stream) { + body.on('error', function (err) { + const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); + _this[INTERNALS].error = error; + }); + } +} + +Body.prototype = { + get body() { + return this[INTERNALS].body; + }, + + get bodyUsed() { + return this[INTERNALS].disturbed; + }, + + /** + * Decode response as ArrayBuffer + * + * @return Promise + */ + arrayBuffer() { + return consumeBody.call(this).then(function (buf) { + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + }); + }, + + /** + * Return raw response as Blob + * + * @return Promise + */ + blob() { + let ct = this.headers && this.headers.get('content-type') || ''; + return consumeBody.call(this).then(function (buf) { + return Object.assign( + // Prevent copying + new Blob([], { + type: ct.toLowerCase() + }), { + [BUFFER]: buf + }); + }); + }, + + /** + * Decode response as json + * + * @return Promise + */ + json() { + var _this2 = this; + + return consumeBody.call(this).then(function (buffer) { + try { + return JSON.parse(buffer.toString()); + } catch (err) { + return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); + } + }); + }, + + /** + * Decode response as text + * + * @return Promise + */ + text() { + return consumeBody.call(this).then(function (buffer) { + return buffer.toString(); + }); + }, + + /** + * Decode response as buffer (non-spec api) + * + * @return Promise + */ + buffer() { + return consumeBody.call(this); + }, + + /** + * Decode response as text, while automatically detecting the encoding and + * trying to decode to UTF-8 (non-spec api) + * + * @return Promise + */ + textConverted() { + var _this3 = this; + + return consumeBody.call(this).then(function (buffer) { + return convertBody(buffer, _this3.headers); + }); + } +}; + +// In browsers, all properties are enumerable. +Object.defineProperties(Body.prototype, { + body: { enumerable: true }, + bodyUsed: { enumerable: true }, + arrayBuffer: { enumerable: true }, + blob: { enumerable: true }, + json: { enumerable: true }, + text: { enumerable: true } +}); + +Body.mixIn = function (proto) { + for (const name of Object.getOwnPropertyNames(Body.prototype)) { + // istanbul ignore else: future proof + if (!(name in proto)) { + const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); + Object.defineProperty(proto, name, desc); + } + } +}; + +/** + * Consume and convert an entire Body to a Buffer. + * + * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body + * + * @return Promise + */ +function consumeBody() { + var _this4 = this; + + if (this[INTERNALS].disturbed) { + return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); + } + + this[INTERNALS].disturbed = true; + + if (this[INTERNALS].error) { + return Body.Promise.reject(this[INTERNALS].error); + } + + let body = this.body; + + // body is null + if (body === null) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is blob + if (isBlob(body)) { + body = body.stream(); + } + + // body is buffer + if (Buffer.isBuffer(body)) { + return Body.Promise.resolve(body); + } + + // istanbul ignore if: should never happen + if (!(body instanceof Stream)) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is stream + // get ready to actually consume the body + let accum = []; + let accumBytes = 0; + let abort = false; + + return new Body.Promise(function (resolve, reject) { + let resTimeout; + + // allow timeout on slow response body + if (_this4.timeout) { + resTimeout = setTimeout(function () { + abort = true; + reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); + }, _this4.timeout); + } + + // handle stream errors + body.on('error', function (err) { + if (err.name === 'AbortError') { + // if the request was aborted, reject with this Error + abort = true; + reject(err); + } else { + // other errors, such as incorrect content-encoding + reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + + body.on('data', function (chunk) { + if (abort || chunk === null) { + return; + } + + if (_this4.size && accumBytes + chunk.length > _this4.size) { + abort = true; + reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); + return; + } + + accumBytes += chunk.length; + accum.push(chunk); + }); + + body.on('end', function () { + if (abort) { + return; + } + + clearTimeout(resTimeout); + + try { + resolve(Buffer.concat(accum, accumBytes)); + } catch (err) { + // handle streams that have accumulated too much data (issue #414) + reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + }); +} + +/** + * Detect buffer encoding and convert to target encoding + * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding + * + * @param Buffer buffer Incoming buffer + * @param String encoding Target encoding + * @return String + */ +function convertBody(buffer, headers) { + if (typeof convert !== 'function') { + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + } + + const ct = headers.get('content-type'); + let charset = 'utf-8'; + let res, str; + + // header + if (ct) { + res = /charset=([^;]*)/i.exec(ct); + } + + // no charset in content type, peek at response body for at most 1024 bytes + str = buffer.slice(0, 1024).toString(); + + // html5 + if (!res && str) { + res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; + + this[MAP] = Object.create(null); + + if (init instanceof Headers) { + const rawHeaders = init.raw(); + const headerNames = Object.keys(rawHeaders); + + for (const headerName of headerNames) { + for (const value of rawHeaders[headerName]) { + this.append(headerName, value); + } + } + + return; + } + + // We don't worry about converting prop to ByteString here as append() + // will handle it. + if (init == null) ; else if (typeof init === 'object') { + const method = init[Symbol.iterator]; + if (method != null) { + if (typeof method !== 'function') { + throw new TypeError('Header pairs must be iterable'); + } + + // sequence> + // Note: per spec we have to first exhaust the lists then process them + const pairs = []; + for (const pair of init) { + if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { + throw new TypeError('Each header pair must be iterable'); + } + pairs.push(Array.from(pair)); + } + + for (const pair of pairs) { + if (pair.length !== 2) { + throw new TypeError('Each header pair must be a name/value tuple'); + } + this.append(pair[0], pair[1]); + } + } else { + // record + for (const key of Object.keys(init)) { + const value = init[key]; + this.append(key, value); + } + } + } else { + throw new TypeError('Provided initializer must be an object'); + } + } + + /** + * Return combined header value given name + * + * @param String name Header name + * @return Mixed + */ + get(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key === undefined) { + return null; + } + + return this[MAP][key].join(', '); + } + + /** + * Iterate over all headers + * + * @param Function callback Executed for each item with parameters (value, name, thisArg) + * @param Boolean thisArg `this` context for callback function + * @return Void + */ + forEach(callback) { + let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + + let pairs = getHeaders(this); + let i = 0; + while (i < pairs.length) { + var _pairs$i = pairs[i]; + const name = _pairs$i[0], + value = _pairs$i[1]; + + callback.call(thisArg, value, name, this); + pairs = getHeaders(this); + i++; + } + } + + /** + * Overwrite header values given name + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + set(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + this[MAP][key !== undefined ? key : name] = [value]; + } + + /** + * Append a value onto existing header + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + append(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + if (key !== undefined) { + this[MAP][key].push(value); + } else { + this[MAP][name] = [value]; + } + } + + /** + * Check for header name existence + * + * @param String name Header name + * @return Boolean + */ + has(name) { + name = `${name}`; + validateName(name); + return find(this[MAP], name) !== undefined; + } + + /** + * Delete all header values given name + * + * @param String name Header name + * @return Void + */ + delete(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key !== undefined) { + delete this[MAP][key]; + } + } + + /** + * Return raw headers (non-spec api) + * + * @return Object + */ + raw() { + return this[MAP]; + } + + /** + * Get an iterator on keys. + * + * @return Iterator + */ + keys() { + return createHeadersIterator(this, 'key'); + } + + /** + * Get an iterator on values. + * + * @return Iterator + */ + values() { + return createHeadersIterator(this, 'value'); + } + + /** + * Get an iterator on entries. + * + * This is the default iterator of the Headers object. + * + * @return Iterator + */ + [Symbol.iterator]() { + return createHeadersIterator(this, 'key+value'); + } +} +Headers.prototype.entries = Headers.prototype[Symbol.iterator]; + +Object.defineProperty(Headers.prototype, Symbol.toStringTag, { + value: 'Headers', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Headers.prototype, { + get: { enumerable: true }, + forEach: { enumerable: true }, + set: { enumerable: true }, + append: { enumerable: true }, + has: { enumerable: true }, + delete: { enumerable: true }, + keys: { enumerable: true }, + values: { enumerable: true }, + entries: { enumerable: true } +}); + +function getHeaders(headers) { + let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; + + const keys = Object.keys(headers[MAP]).sort(); + return keys.map(kind === 'key' ? function (k) { + return k.toLowerCase(); + } : kind === 'value' ? function (k) { + return headers[MAP][k].join(', '); + } : function (k) { + return [k.toLowerCase(), headers[MAP][k].join(', ')]; + }); +} + +const INTERNAL = Symbol('internal'); + +function createHeadersIterator(target, kind) { + const iterator = Object.create(HeadersIteratorPrototype); + iterator[INTERNAL] = { + target, + kind, + index: 0 + }; + return iterator; +} + +const HeadersIteratorPrototype = Object.setPrototypeOf({ + next() { + // istanbul ignore if + if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { + throw new TypeError('Value of `this` is not a HeadersIterator'); + } + + var _INTERNAL = this[INTERNAL]; + const target = _INTERNAL.target, + kind = _INTERNAL.kind, + index = _INTERNAL.index; + + const values = getHeaders(target, kind); + const len = values.length; + if (index >= len) { + return { + value: undefined, + done: true + }; + } + + this[INTERNAL].index = index + 1; + + return { + value: values[index], + done: false + }; + } +}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); + +Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { + value: 'HeadersIterator', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * Export the Headers object in a form that Node.js can consume. + * + * @param Headers headers + * @return Object + */ +function exportNodeCompatibleHeaders(headers) { + const obj = Object.assign({ __proto__: null }, headers[MAP]); + + // http.request() only supports string as Host header. This hack makes + // specifying custom Host header possible. + const hostHeaderKey = find(headers[MAP], 'Host'); + if (hostHeaderKey !== undefined) { + obj[hostHeaderKey] = obj[hostHeaderKey][0]; + } + + return obj; +} + +/** + * Create a Headers object from an object of headers, ignoring those that do + * not conform to HTTP grammar productions. + * + * @param Object obj Object of headers + * @return Headers + */ +function createHeadersLenient(obj) { + const headers = new Headers(); + for (const name of Object.keys(obj)) { + if (invalidTokenRegex.test(name)) { + continue; + } + if (Array.isArray(obj[name])) { + for (const val of obj[name]) { + if (invalidHeaderCharRegex.test(val)) { + continue; + } + if (headers[MAP][name] === undefined) { + headers[MAP][name] = [val]; + } else { + headers[MAP][name].push(val); + } + } + } else if (!invalidHeaderCharRegex.test(obj[name])) { + headers[MAP][name] = [obj[name]]; + } + } + return headers; +} + +const INTERNALS$1 = Symbol('Response internals'); + +// fix an issue where "STATUS_CODES" aren't a named export for node <10 +const STATUS_CODES = http.STATUS_CODES; + +/** + * Response class + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +class Response { + constructor() { + let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + Body.call(this, body, opts); + + const status = opts.status || 200; + const headers = new Headers(opts.headers); + + if (body != null && !headers.has('Content-Type')) { + const contentType = extractContentType(body); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + this[INTERNALS$1] = { + url: opts.url, + status, + statusText: opts.statusText || STATUS_CODES[status], + headers, + counter: opts.counter + }; + } + + get url() { + return this[INTERNALS$1].url || ''; + } + + get status() { + return this[INTERNALS$1].status; + } + + /** + * Convenience property representing if the request ended normally + */ + get ok() { + return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; + } + + get redirected() { + return this[INTERNALS$1].counter > 0; + } + + get statusText() { + return this[INTERNALS$1].statusText; + } + + get headers() { + return this[INTERNALS$1].headers; + } + + /** + * Clone this response + * + * @return Response + */ + clone() { + return new Response(clone(this), { + url: this.url, + status: this.status, + statusText: this.statusText, + headers: this.headers, + ok: this.ok, + redirected: this.redirected + }); + } +} + +Body.mixIn(Response.prototype); + +Object.defineProperties(Response.prototype, { + url: { enumerable: true }, + status: { enumerable: true }, + ok: { enumerable: true }, + redirected: { enumerable: true }, + statusText: { enumerable: true }, + headers: { enumerable: true }, + clone: { enumerable: true } +}); + +Object.defineProperty(Response.prototype, Symbol.toStringTag, { + value: 'Response', + writable: false, + enumerable: false, + configurable: true +}); + +const INTERNALS$2 = Symbol('Request internals'); + +// fix an issue where "format", "parse" aren't a named export for node <10 +const parse_url = Url.parse; +const format_url = Url.format; + +const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; + +/** + * Check if a value is an instance of Request. + * + * @param Mixed input + * @return Boolean + */ +function isRequest(input) { + return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; +} + +function isAbortSignal(signal) { + const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); + return !!(proto && proto.constructor.name === 'AbortSignal'); +} + +/** + * Request class + * + * @param Mixed input Url or Request instance + * @param Object init Custom options + * @return Void + */ +class Request { + constructor(input) { + let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + let parsedURL; + + // normalize input + if (!isRequest(input)) { + if (input && input.href) { + // in order to support Node.js' Url objects; though WHATWG's URL objects + // will fall into this branch also (since their `toString()` will return + // `href` property anyway) + parsedURL = parse_url(input.href); + } else { + // coerce input to a string before attempting to parse + parsedURL = parse_url(`${input}`); + } + input = {}; + } else { + parsedURL = parse_url(input.url); + } + + let method = init.method || input.method || 'GET'; + method = method.toUpperCase(); + + if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { + throw new TypeError('Request with GET/HEAD method cannot have body'); + } + + let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; + + Body.call(this, inputBody, { + timeout: init.timeout || input.timeout || 0, + size: init.size || input.size || 0 + }); + + const headers = new Headers(init.headers || input.headers || {}); + + if (inputBody != null && !headers.has('Content-Type')) { + const contentType = extractContentType(inputBody); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + let signal = isRequest(input) ? input.signal : null; + if ('signal' in init) signal = init.signal; + + if (signal != null && !isAbortSignal(signal)) { + throw new TypeError('Expected signal to be an instanceof AbortSignal'); + } + + this[INTERNALS$2] = { + method, + redirect: init.redirect || input.redirect || 'follow', + headers, + parsedURL, + signal + }; + + // node-fetch-only options + this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; + this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; + this.counter = init.counter || input.counter || 0; + this.agent = init.agent || input.agent; + } + + get method() { + return this[INTERNALS$2].method; + } + + get url() { + return format_url(this[INTERNALS$2].parsedURL); + } + + get headers() { + return this[INTERNALS$2].headers; + } + + get redirect() { + return this[INTERNALS$2].redirect; + } + + get signal() { + return this[INTERNALS$2].signal; + } + + /** + * Clone this request + * + * @return Request + */ + clone() { + return new Request(this); + } +} + +Body.mixIn(Request.prototype); + +Object.defineProperty(Request.prototype, Symbol.toStringTag, { + value: 'Request', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Request.prototype, { + method: { enumerable: true }, + url: { enumerable: true }, + headers: { enumerable: true }, + redirect: { enumerable: true }, + clone: { enumerable: true }, + signal: { enumerable: true } +}); + +/** + * Convert a Request to Node.js http request options. + * + * @param Request A Request instance + * @return Object The options object to be passed to http.request + */ +function getNodeRequestOptions(request) { + const parsedURL = request[INTERNALS$2].parsedURL; + const headers = new Headers(request[INTERNALS$2].headers); + + // fetch step 1.3 + if (!headers.has('Accept')) { + headers.set('Accept', '*/*'); + } + + // Basic fetch + if (!parsedURL.protocol || !parsedURL.hostname) { + throw new TypeError('Only absolute URLs are supported'); + } + + if (!/^https?:$/.test(parsedURL.protocol)) { + throw new TypeError('Only HTTP(S) protocols are supported'); + } + + if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { + throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); + } + + // HTTP-network-or-cache fetch steps 2.4-2.7 + let contentLengthValue = null; + if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { + contentLengthValue = '0'; + } + if (request.body != null) { + const totalBytes = getTotalBytes(request); + if (typeof totalBytes === 'number') { + contentLengthValue = String(totalBytes); + } + } + if (contentLengthValue) { + headers.set('Content-Length', contentLengthValue); + } + + // HTTP-network-or-cache fetch step 2.11 + if (!headers.has('User-Agent')) { + headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); + } + + // HTTP-network-or-cache fetch step 2.15 + if (request.compress && !headers.has('Accept-Encoding')) { + headers.set('Accept-Encoding', 'gzip,deflate'); + } + + let agent = request.agent; + if (typeof agent === 'function') { + agent = agent(parsedURL); + } + + if (!headers.has('Connection') && !agent) { + headers.set('Connection', 'close'); + } + + // HTTP-network fetch step 4.2 + // chunked encoding is handled by Node.js + + return Object.assign({}, parsedURL, { + method: request.method, + headers: exportNodeCompatibleHeaders(headers), + agent + }); +} + +/** + * abort-error.js + * + * AbortError interface for cancelled requests + */ + +/** + * Create AbortError instance + * + * @param String message Error message for human + * @return AbortError + */ +function AbortError(message) { + Error.call(this, message); + + this.type = 'aborted'; + this.message = message; + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +AbortError.prototype = Object.create(Error.prototype); +AbortError.prototype.constructor = AbortError; +AbortError.prototype.name = 'AbortError'; + +// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 +const PassThrough$1 = Stream.PassThrough; +const resolve_url = Url.resolve; + +/** + * Fetch function + * + * @param Mixed url Absolute url or Request instance + * @param Object opts Fetch options + * @return Promise + */ +function fetch(url, opts) { + + // allow custom promise + if (!fetch.Promise) { + throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); + } + + Body.Promise = fetch.Promise; + + // wrap http.request into fetch + return new fetch.Promise(function (resolve, reject) { + // build request object + const request = new Request(url, opts); + const options = getNodeRequestOptions(request); + + const send = (options.protocol === 'https:' ? https : http).request; + const signal = request.signal; + + let response = null; + + const abort = function abort() { + let error = new AbortError('The user aborted a request.'); + reject(error); + if (request.body && request.body instanceof Stream.Readable) { + request.body.destroy(error); + } + if (!response || !response.body) return; + response.body.emit('error', error); + }; + + if (signal && signal.aborted) { + abort(); + return; + } + + const abortAndFinalize = function abortAndFinalize() { + abort(); + finalize(); + }; + + // send request + const req = send(options); + let reqTimeout; + + if (signal) { + signal.addEventListener('abort', abortAndFinalize); + } + + function finalize() { + req.abort(); + if (signal) signal.removeEventListener('abort', abortAndFinalize); + clearTimeout(reqTimeout); + } + + if (request.timeout) { + req.once('socket', function (socket) { + reqTimeout = setTimeout(function () { + reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); + finalize(); + }, request.timeout); + }); + } + + req.on('error', function (err) { + reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); + finalize(); + }); + + req.on('response', function (res) { + clearTimeout(reqTimeout); + + const headers = createHeadersLenient(res.headers); + + // HTTP fetch step 5 + if (fetch.isRedirect(res.statusCode)) { + // HTTP fetch step 5.2 + const location = headers.get('Location'); + + // HTTP fetch step 5.3 + const locationURL = location === null ? null : resolve_url(request.url, location); + + // HTTP fetch step 5.5 + switch (request.redirect) { + case 'error': + reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); + finalize(); + return; + case 'manual': + // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. + if (locationURL !== null) { + // handle corrupted header + try { + headers.set('Location', locationURL); + } catch (err) { + // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request + reject(err); + } + } + break; + case 'follow': + // HTTP-redirect fetch step 2 + if (locationURL === null) { + break; + } + + // HTTP-redirect fetch step 5 + if (request.counter >= request.follow) { + reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 6 (counter increment) + // Create a new Request object. + const requestOpts = { + headers: new Headers(request.headers), + follow: request.follow, + counter: request.counter + 1, + agent: request.agent, + compress: request.compress, + method: request.method, + body: request.body, + signal: request.signal, + timeout: request.timeout, + size: request.size + }; + + // HTTP-redirect fetch step 9 + if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { + reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 11 + if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { + requestOpts.method = 'GET'; + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); + } + + // HTTP-redirect fetch step 15 + resolve(fetch(new Request(locationURL, requestOpts))); + finalize(); + return; + } + } + + // prepare response + res.once('end', function () { + if (signal) signal.removeEventListener('abort', abortAndFinalize); + }); + let body = res.pipe(new PassThrough$1()); + + const response_options = { + url: request.url, + status: res.statusCode, + statusText: res.statusMessage, + headers: headers, + size: request.size, + timeout: request.timeout, + counter: request.counter + }; + + // HTTP-network fetch step 12.1.1.3 + const codings = headers.get('Content-Encoding'); + + // HTTP-network fetch step 12.1.1.4: handle content codings + + // in following scenarios we ignore compression support + // 1. compression support is disabled + // 2. HEAD request + // 3. no Content-Encoding header + // 4. no content response (204) + // 5. content not modified response (304) + if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { + response = new Response(body, response_options); + resolve(response); + return; + } + + // For Node v6+ + // Be less strict when decoding compressed responses, since sometimes + // servers send slightly invalid responses that are still accepted + // by common browsers. + // Always using Z_SYNC_FLUSH is what cURL does. + const zlibOptions = { + flush: zlib.Z_SYNC_FLUSH, + finishFlush: zlib.Z_SYNC_FLUSH + }; + + // for gzip + if (codings == 'gzip' || codings == 'x-gzip') { + body = body.pipe(zlib.createGunzip(zlibOptions)); + response = new Response(body, response_options); + resolve(response); + return; + } + + // for deflate + if (codings == 'deflate' || codings == 'x-deflate') { + // handle the infamous raw deflate response from old servers + // a hack for old IIS and Apache servers + const raw = res.pipe(new PassThrough$1()); + raw.once('data', function (chunk) { + // see http://stackoverflow.com/questions/37519828 + if ((chunk[0] & 0x0F) === 0x08) { + body = body.pipe(zlib.createInflate()); + } else { + body = body.pipe(zlib.createInflateRaw()); + } + response = new Response(body, response_options); + resolve(response); + }); + return; + } + + // for br + if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { + body = body.pipe(zlib.createBrotliDecompress()); + response = new Response(body, response_options); + resolve(response); + return; + } + + // otherwise, use response as-is + response = new Response(body, response_options); + resolve(response); + }); + + writeToStream(req, request); + }); +} +/** + * Redirect code matching + * + * @param Number code Status code + * @return Boolean + */ +fetch.isRedirect = function (code) { + return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; +}; + +// expose Promise +fetch.Promise = global.Promise; + +export default fetch; +export { Headers, Request, Response, FetchError }; diff --git a/node_modules/node-fetch/lib/index.js b/node_modules/node-fetch/lib/index.js new file mode 100644 index 00000000..4b241bfb --- /dev/null +++ b/node_modules/node-fetch/lib/index.js @@ -0,0 +1,1649 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var Stream = _interopDefault(require('stream')); +var http = _interopDefault(require('http')); +var Url = _interopDefault(require('url')); +var https = _interopDefault(require('https')); +var zlib = _interopDefault(require('zlib')); + +// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js + +// fix for "Readable" isn't a named export issue +const Readable = Stream.Readable; + +const BUFFER = Symbol('buffer'); +const TYPE = Symbol('type'); + +class Blob { + constructor() { + this[TYPE] = ''; + + const blobParts = arguments[0]; + const options = arguments[1]; + + const buffers = []; + let size = 0; + + if (blobParts) { + const a = blobParts; + const length = Number(a.length); + for (let i = 0; i < length; i++) { + const element = a[i]; + let buffer; + if (element instanceof Buffer) { + buffer = element; + } else if (ArrayBuffer.isView(element)) { + buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); + } else if (element instanceof ArrayBuffer) { + buffer = Buffer.from(element); + } else if (element instanceof Blob) { + buffer = element[BUFFER]; + } else { + buffer = Buffer.from(typeof element === 'string' ? element : String(element)); + } + size += buffer.length; + buffers.push(buffer); + } + } + + this[BUFFER] = Buffer.concat(buffers); + + let type = options && options.type !== undefined && String(options.type).toLowerCase(); + if (type && !/[^\u0020-\u007E]/.test(type)) { + this[TYPE] = type; + } + } + get size() { + return this[BUFFER].length; + } + get type() { + return this[TYPE]; + } + text() { + return Promise.resolve(this[BUFFER].toString()); + } + arrayBuffer() { + const buf = this[BUFFER]; + const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + return Promise.resolve(ab); + } + stream() { + const readable = new Readable(); + readable._read = function () {}; + readable.push(this[BUFFER]); + readable.push(null); + return readable; + } + toString() { + return '[object Blob]'; + } + slice() { + const size = this.size; + + const start = arguments[0]; + const end = arguments[1]; + let relativeStart, relativeEnd; + if (start === undefined) { + relativeStart = 0; + } else if (start < 0) { + relativeStart = Math.max(size + start, 0); + } else { + relativeStart = Math.min(start, size); + } + if (end === undefined) { + relativeEnd = size; + } else if (end < 0) { + relativeEnd = Math.max(size + end, 0); + } else { + relativeEnd = Math.min(end, size); + } + const span = Math.max(relativeEnd - relativeStart, 0); + + const buffer = this[BUFFER]; + const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); + const blob = new Blob([], { type: arguments[2] }); + blob[BUFFER] = slicedBuffer; + return blob; + } +} + +Object.defineProperties(Blob.prototype, { + size: { enumerable: true }, + type: { enumerable: true }, + slice: { enumerable: true } +}); + +Object.defineProperty(Blob.prototype, Symbol.toStringTag, { + value: 'Blob', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * fetch-error.js + * + * FetchError interface for operational errors + */ + +/** + * Create FetchError instance + * + * @param String message Error message for human + * @param String type Error type for machine + * @param String systemError For Node.js system error + * @return FetchError + */ +function FetchError(message, type, systemError) { + Error.call(this, message); + + this.message = message; + this.type = type; + + // when err.type is `system`, err.code contains system error code + if (systemError) { + this.code = this.errno = systemError.code; + } + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +FetchError.prototype = Object.create(Error.prototype); +FetchError.prototype.constructor = FetchError; +FetchError.prototype.name = 'FetchError'; + +let convert; +try { + convert = require('encoding').convert; +} catch (e) {} + +const INTERNALS = Symbol('Body internals'); + +// fix an issue where "PassThrough" isn't a named export for node <10 +const PassThrough = Stream.PassThrough; + +/** + * Body mixin + * + * Ref: https://fetch.spec.whatwg.org/#body + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +function Body(body) { + var _this = this; + + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$size = _ref.size; + + let size = _ref$size === undefined ? 0 : _ref$size; + var _ref$timeout = _ref.timeout; + let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; + + if (body == null) { + // body is undefined or null + body = null; + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams + body = Buffer.from(body.toString()); + } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { + // body is ArrayBuffer + body = Buffer.from(body); + } else if (ArrayBuffer.isView(body)) { + // body is ArrayBufferView + body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); + } else if (body instanceof Stream) ; else { + // none of the above + // coerce to string then buffer + body = Buffer.from(String(body)); + } + this[INTERNALS] = { + body, + disturbed: false, + error: null + }; + this.size = size; + this.timeout = timeout; + + if (body instanceof Stream) { + body.on('error', function (err) { + const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); + _this[INTERNALS].error = error; + }); + } +} + +Body.prototype = { + get body() { + return this[INTERNALS].body; + }, + + get bodyUsed() { + return this[INTERNALS].disturbed; + }, + + /** + * Decode response as ArrayBuffer + * + * @return Promise + */ + arrayBuffer() { + return consumeBody.call(this).then(function (buf) { + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + }); + }, + + /** + * Return raw response as Blob + * + * @return Promise + */ + blob() { + let ct = this.headers && this.headers.get('content-type') || ''; + return consumeBody.call(this).then(function (buf) { + return Object.assign( + // Prevent copying + new Blob([], { + type: ct.toLowerCase() + }), { + [BUFFER]: buf + }); + }); + }, + + /** + * Decode response as json + * + * @return Promise + */ + json() { + var _this2 = this; + + return consumeBody.call(this).then(function (buffer) { + try { + return JSON.parse(buffer.toString()); + } catch (err) { + return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); + } + }); + }, + + /** + * Decode response as text + * + * @return Promise + */ + text() { + return consumeBody.call(this).then(function (buffer) { + return buffer.toString(); + }); + }, + + /** + * Decode response as buffer (non-spec api) + * + * @return Promise + */ + buffer() { + return consumeBody.call(this); + }, + + /** + * Decode response as text, while automatically detecting the encoding and + * trying to decode to UTF-8 (non-spec api) + * + * @return Promise + */ + textConverted() { + var _this3 = this; + + return consumeBody.call(this).then(function (buffer) { + return convertBody(buffer, _this3.headers); + }); + } +}; + +// In browsers, all properties are enumerable. +Object.defineProperties(Body.prototype, { + body: { enumerable: true }, + bodyUsed: { enumerable: true }, + arrayBuffer: { enumerable: true }, + blob: { enumerable: true }, + json: { enumerable: true }, + text: { enumerable: true } +}); + +Body.mixIn = function (proto) { + for (const name of Object.getOwnPropertyNames(Body.prototype)) { + // istanbul ignore else: future proof + if (!(name in proto)) { + const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); + Object.defineProperty(proto, name, desc); + } + } +}; + +/** + * Consume and convert an entire Body to a Buffer. + * + * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body + * + * @return Promise + */ +function consumeBody() { + var _this4 = this; + + if (this[INTERNALS].disturbed) { + return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); + } + + this[INTERNALS].disturbed = true; + + if (this[INTERNALS].error) { + return Body.Promise.reject(this[INTERNALS].error); + } + + let body = this.body; + + // body is null + if (body === null) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is blob + if (isBlob(body)) { + body = body.stream(); + } + + // body is buffer + if (Buffer.isBuffer(body)) { + return Body.Promise.resolve(body); + } + + // istanbul ignore if: should never happen + if (!(body instanceof Stream)) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is stream + // get ready to actually consume the body + let accum = []; + let accumBytes = 0; + let abort = false; + + return new Body.Promise(function (resolve, reject) { + let resTimeout; + + // allow timeout on slow response body + if (_this4.timeout) { + resTimeout = setTimeout(function () { + abort = true; + reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); + }, _this4.timeout); + } + + // handle stream errors + body.on('error', function (err) { + if (err.name === 'AbortError') { + // if the request was aborted, reject with this Error + abort = true; + reject(err); + } else { + // other errors, such as incorrect content-encoding + reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + + body.on('data', function (chunk) { + if (abort || chunk === null) { + return; + } + + if (_this4.size && accumBytes + chunk.length > _this4.size) { + abort = true; + reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); + return; + } + + accumBytes += chunk.length; + accum.push(chunk); + }); + + body.on('end', function () { + if (abort) { + return; + } + + clearTimeout(resTimeout); + + try { + resolve(Buffer.concat(accum, accumBytes)); + } catch (err) { + // handle streams that have accumulated too much data (issue #414) + reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + }); +} + +/** + * Detect buffer encoding and convert to target encoding + * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding + * + * @param Buffer buffer Incoming buffer + * @param String encoding Target encoding + * @return String + */ +function convertBody(buffer, headers) { + if (typeof convert !== 'function') { + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + } + + const ct = headers.get('content-type'); + let charset = 'utf-8'; + let res, str; + + // header + if (ct) { + res = /charset=([^;]*)/i.exec(ct); + } + + // no charset in content type, peek at response body for at most 1024 bytes + str = buffer.slice(0, 1024).toString(); + + // html5 + if (!res && str) { + res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; + + this[MAP] = Object.create(null); + + if (init instanceof Headers) { + const rawHeaders = init.raw(); + const headerNames = Object.keys(rawHeaders); + + for (const headerName of headerNames) { + for (const value of rawHeaders[headerName]) { + this.append(headerName, value); + } + } + + return; + } + + // We don't worry about converting prop to ByteString here as append() + // will handle it. + if (init == null) ; else if (typeof init === 'object') { + const method = init[Symbol.iterator]; + if (method != null) { + if (typeof method !== 'function') { + throw new TypeError('Header pairs must be iterable'); + } + + // sequence> + // Note: per spec we have to first exhaust the lists then process them + const pairs = []; + for (const pair of init) { + if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { + throw new TypeError('Each header pair must be iterable'); + } + pairs.push(Array.from(pair)); + } + + for (const pair of pairs) { + if (pair.length !== 2) { + throw new TypeError('Each header pair must be a name/value tuple'); + } + this.append(pair[0], pair[1]); + } + } else { + // record + for (const key of Object.keys(init)) { + const value = init[key]; + this.append(key, value); + } + } + } else { + throw new TypeError('Provided initializer must be an object'); + } + } + + /** + * Return combined header value given name + * + * @param String name Header name + * @return Mixed + */ + get(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key === undefined) { + return null; + } + + return this[MAP][key].join(', '); + } + + /** + * Iterate over all headers + * + * @param Function callback Executed for each item with parameters (value, name, thisArg) + * @param Boolean thisArg `this` context for callback function + * @return Void + */ + forEach(callback) { + let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + + let pairs = getHeaders(this); + let i = 0; + while (i < pairs.length) { + var _pairs$i = pairs[i]; + const name = _pairs$i[0], + value = _pairs$i[1]; + + callback.call(thisArg, value, name, this); + pairs = getHeaders(this); + i++; + } + } + + /** + * Overwrite header values given name + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + set(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + this[MAP][key !== undefined ? key : name] = [value]; + } + + /** + * Append a value onto existing header + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + append(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + if (key !== undefined) { + this[MAP][key].push(value); + } else { + this[MAP][name] = [value]; + } + } + + /** + * Check for header name existence + * + * @param String name Header name + * @return Boolean + */ + has(name) { + name = `${name}`; + validateName(name); + return find(this[MAP], name) !== undefined; + } + + /** + * Delete all header values given name + * + * @param String name Header name + * @return Void + */ + delete(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key !== undefined) { + delete this[MAP][key]; + } + } + + /** + * Return raw headers (non-spec api) + * + * @return Object + */ + raw() { + return this[MAP]; + } + + /** + * Get an iterator on keys. + * + * @return Iterator + */ + keys() { + return createHeadersIterator(this, 'key'); + } + + /** + * Get an iterator on values. + * + * @return Iterator + */ + values() { + return createHeadersIterator(this, 'value'); + } + + /** + * Get an iterator on entries. + * + * This is the default iterator of the Headers object. + * + * @return Iterator + */ + [Symbol.iterator]() { + return createHeadersIterator(this, 'key+value'); + } +} +Headers.prototype.entries = Headers.prototype[Symbol.iterator]; + +Object.defineProperty(Headers.prototype, Symbol.toStringTag, { + value: 'Headers', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Headers.prototype, { + get: { enumerable: true }, + forEach: { enumerable: true }, + set: { enumerable: true }, + append: { enumerable: true }, + has: { enumerable: true }, + delete: { enumerable: true }, + keys: { enumerable: true }, + values: { enumerable: true }, + entries: { enumerable: true } +}); + +function getHeaders(headers) { + let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; + + const keys = Object.keys(headers[MAP]).sort(); + return keys.map(kind === 'key' ? function (k) { + return k.toLowerCase(); + } : kind === 'value' ? function (k) { + return headers[MAP][k].join(', '); + } : function (k) { + return [k.toLowerCase(), headers[MAP][k].join(', ')]; + }); +} + +const INTERNAL = Symbol('internal'); + +function createHeadersIterator(target, kind) { + const iterator = Object.create(HeadersIteratorPrototype); + iterator[INTERNAL] = { + target, + kind, + index: 0 + }; + return iterator; +} + +const HeadersIteratorPrototype = Object.setPrototypeOf({ + next() { + // istanbul ignore if + if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { + throw new TypeError('Value of `this` is not a HeadersIterator'); + } + + var _INTERNAL = this[INTERNAL]; + const target = _INTERNAL.target, + kind = _INTERNAL.kind, + index = _INTERNAL.index; + + const values = getHeaders(target, kind); + const len = values.length; + if (index >= len) { + return { + value: undefined, + done: true + }; + } + + this[INTERNAL].index = index + 1; + + return { + value: values[index], + done: false + }; + } +}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); + +Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { + value: 'HeadersIterator', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * Export the Headers object in a form that Node.js can consume. + * + * @param Headers headers + * @return Object + */ +function exportNodeCompatibleHeaders(headers) { + const obj = Object.assign({ __proto__: null }, headers[MAP]); + + // http.request() only supports string as Host header. This hack makes + // specifying custom Host header possible. + const hostHeaderKey = find(headers[MAP], 'Host'); + if (hostHeaderKey !== undefined) { + obj[hostHeaderKey] = obj[hostHeaderKey][0]; + } + + return obj; +} + +/** + * Create a Headers object from an object of headers, ignoring those that do + * not conform to HTTP grammar productions. + * + * @param Object obj Object of headers + * @return Headers + */ +function createHeadersLenient(obj) { + const headers = new Headers(); + for (const name of Object.keys(obj)) { + if (invalidTokenRegex.test(name)) { + continue; + } + if (Array.isArray(obj[name])) { + for (const val of obj[name]) { + if (invalidHeaderCharRegex.test(val)) { + continue; + } + if (headers[MAP][name] === undefined) { + headers[MAP][name] = [val]; + } else { + headers[MAP][name].push(val); + } + } + } else if (!invalidHeaderCharRegex.test(obj[name])) { + headers[MAP][name] = [obj[name]]; + } + } + return headers; +} + +const INTERNALS$1 = Symbol('Response internals'); + +// fix an issue where "STATUS_CODES" aren't a named export for node <10 +const STATUS_CODES = http.STATUS_CODES; + +/** + * Response class + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +class Response { + constructor() { + let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + Body.call(this, body, opts); + + const status = opts.status || 200; + const headers = new Headers(opts.headers); + + if (body != null && !headers.has('Content-Type')) { + const contentType = extractContentType(body); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + this[INTERNALS$1] = { + url: opts.url, + status, + statusText: opts.statusText || STATUS_CODES[status], + headers, + counter: opts.counter + }; + } + + get url() { + return this[INTERNALS$1].url || ''; + } + + get status() { + return this[INTERNALS$1].status; + } + + /** + * Convenience property representing if the request ended normally + */ + get ok() { + return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; + } + + get redirected() { + return this[INTERNALS$1].counter > 0; + } + + get statusText() { + return this[INTERNALS$1].statusText; + } + + get headers() { + return this[INTERNALS$1].headers; + } + + /** + * Clone this response + * + * @return Response + */ + clone() { + return new Response(clone(this), { + url: this.url, + status: this.status, + statusText: this.statusText, + headers: this.headers, + ok: this.ok, + redirected: this.redirected + }); + } +} + +Body.mixIn(Response.prototype); + +Object.defineProperties(Response.prototype, { + url: { enumerable: true }, + status: { enumerable: true }, + ok: { enumerable: true }, + redirected: { enumerable: true }, + statusText: { enumerable: true }, + headers: { enumerable: true }, + clone: { enumerable: true } +}); + +Object.defineProperty(Response.prototype, Symbol.toStringTag, { + value: 'Response', + writable: false, + enumerable: false, + configurable: true +}); + +const INTERNALS$2 = Symbol('Request internals'); + +// fix an issue where "format", "parse" aren't a named export for node <10 +const parse_url = Url.parse; +const format_url = Url.format; + +const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; + +/** + * Check if a value is an instance of Request. + * + * @param Mixed input + * @return Boolean + */ +function isRequest(input) { + return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; +} + +function isAbortSignal(signal) { + const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); + return !!(proto && proto.constructor.name === 'AbortSignal'); +} + +/** + * Request class + * + * @param Mixed input Url or Request instance + * @param Object init Custom options + * @return Void + */ +class Request { + constructor(input) { + let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + let parsedURL; + + // normalize input + if (!isRequest(input)) { + if (input && input.href) { + // in order to support Node.js' Url objects; though WHATWG's URL objects + // will fall into this branch also (since their `toString()` will return + // `href` property anyway) + parsedURL = parse_url(input.href); + } else { + // coerce input to a string before attempting to parse + parsedURL = parse_url(`${input}`); + } + input = {}; + } else { + parsedURL = parse_url(input.url); + } + + let method = init.method || input.method || 'GET'; + method = method.toUpperCase(); + + if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { + throw new TypeError('Request with GET/HEAD method cannot have body'); + } + + let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; + + Body.call(this, inputBody, { + timeout: init.timeout || input.timeout || 0, + size: init.size || input.size || 0 + }); + + const headers = new Headers(init.headers || input.headers || {}); + + if (inputBody != null && !headers.has('Content-Type')) { + const contentType = extractContentType(inputBody); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + let signal = isRequest(input) ? input.signal : null; + if ('signal' in init) signal = init.signal; + + if (signal != null && !isAbortSignal(signal)) { + throw new TypeError('Expected signal to be an instanceof AbortSignal'); + } + + this[INTERNALS$2] = { + method, + redirect: init.redirect || input.redirect || 'follow', + headers, + parsedURL, + signal + }; + + // node-fetch-only options + this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; + this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; + this.counter = init.counter || input.counter || 0; + this.agent = init.agent || input.agent; + } + + get method() { + return this[INTERNALS$2].method; + } + + get url() { + return format_url(this[INTERNALS$2].parsedURL); + } + + get headers() { + return this[INTERNALS$2].headers; + } + + get redirect() { + return this[INTERNALS$2].redirect; + } + + get signal() { + return this[INTERNALS$2].signal; + } + + /** + * Clone this request + * + * @return Request + */ + clone() { + return new Request(this); + } +} + +Body.mixIn(Request.prototype); + +Object.defineProperty(Request.prototype, Symbol.toStringTag, { + value: 'Request', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Request.prototype, { + method: { enumerable: true }, + url: { enumerable: true }, + headers: { enumerable: true }, + redirect: { enumerable: true }, + clone: { enumerable: true }, + signal: { enumerable: true } +}); + +/** + * Convert a Request to Node.js http request options. + * + * @param Request A Request instance + * @return Object The options object to be passed to http.request + */ +function getNodeRequestOptions(request) { + const parsedURL = request[INTERNALS$2].parsedURL; + const headers = new Headers(request[INTERNALS$2].headers); + + // fetch step 1.3 + if (!headers.has('Accept')) { + headers.set('Accept', '*/*'); + } + + // Basic fetch + if (!parsedURL.protocol || !parsedURL.hostname) { + throw new TypeError('Only absolute URLs are supported'); + } + + if (!/^https?:$/.test(parsedURL.protocol)) { + throw new TypeError('Only HTTP(S) protocols are supported'); + } + + if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { + throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); + } + + // HTTP-network-or-cache fetch steps 2.4-2.7 + let contentLengthValue = null; + if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { + contentLengthValue = '0'; + } + if (request.body != null) { + const totalBytes = getTotalBytes(request); + if (typeof totalBytes === 'number') { + contentLengthValue = String(totalBytes); + } + } + if (contentLengthValue) { + headers.set('Content-Length', contentLengthValue); + } + + // HTTP-network-or-cache fetch step 2.11 + if (!headers.has('User-Agent')) { + headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); + } + + // HTTP-network-or-cache fetch step 2.15 + if (request.compress && !headers.has('Accept-Encoding')) { + headers.set('Accept-Encoding', 'gzip,deflate'); + } + + let agent = request.agent; + if (typeof agent === 'function') { + agent = agent(parsedURL); + } + + if (!headers.has('Connection') && !agent) { + headers.set('Connection', 'close'); + } + + // HTTP-network fetch step 4.2 + // chunked encoding is handled by Node.js + + return Object.assign({}, parsedURL, { + method: request.method, + headers: exportNodeCompatibleHeaders(headers), + agent + }); +} + +/** + * abort-error.js + * + * AbortError interface for cancelled requests + */ + +/** + * Create AbortError instance + * + * @param String message Error message for human + * @return AbortError + */ +function AbortError(message) { + Error.call(this, message); + + this.type = 'aborted'; + this.message = message; + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +AbortError.prototype = Object.create(Error.prototype); +AbortError.prototype.constructor = AbortError; +AbortError.prototype.name = 'AbortError'; + +// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 +const PassThrough$1 = Stream.PassThrough; +const resolve_url = Url.resolve; + +/** + * Fetch function + * + * @param Mixed url Absolute url or Request instance + * @param Object opts Fetch options + * @return Promise + */ +function fetch(url, opts) { + + // allow custom promise + if (!fetch.Promise) { + throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); + } + + Body.Promise = fetch.Promise; + + // wrap http.request into fetch + return new fetch.Promise(function (resolve, reject) { + // build request object + const request = new Request(url, opts); + const options = getNodeRequestOptions(request); + + const send = (options.protocol === 'https:' ? https : http).request; + const signal = request.signal; + + let response = null; + + const abort = function abort() { + let error = new AbortError('The user aborted a request.'); + reject(error); + if (request.body && request.body instanceof Stream.Readable) { + request.body.destroy(error); + } + if (!response || !response.body) return; + response.body.emit('error', error); + }; + + if (signal && signal.aborted) { + abort(); + return; + } + + const abortAndFinalize = function abortAndFinalize() { + abort(); + finalize(); + }; + + // send request + const req = send(options); + let reqTimeout; + + if (signal) { + signal.addEventListener('abort', abortAndFinalize); + } + + function finalize() { + req.abort(); + if (signal) signal.removeEventListener('abort', abortAndFinalize); + clearTimeout(reqTimeout); + } + + if (request.timeout) { + req.once('socket', function (socket) { + reqTimeout = setTimeout(function () { + reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); + finalize(); + }, request.timeout); + }); + } + + req.on('error', function (err) { + reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); + finalize(); + }); + + req.on('response', function (res) { + clearTimeout(reqTimeout); + + const headers = createHeadersLenient(res.headers); + + // HTTP fetch step 5 + if (fetch.isRedirect(res.statusCode)) { + // HTTP fetch step 5.2 + const location = headers.get('Location'); + + // HTTP fetch step 5.3 + const locationURL = location === null ? null : resolve_url(request.url, location); + + // HTTP fetch step 5.5 + switch (request.redirect) { + case 'error': + reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); + finalize(); + return; + case 'manual': + // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. + if (locationURL !== null) { + // handle corrupted header + try { + headers.set('Location', locationURL); + } catch (err) { + // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request + reject(err); + } + } + break; + case 'follow': + // HTTP-redirect fetch step 2 + if (locationURL === null) { + break; + } + + // HTTP-redirect fetch step 5 + if (request.counter >= request.follow) { + reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 6 (counter increment) + // Create a new Request object. + const requestOpts = { + headers: new Headers(request.headers), + follow: request.follow, + counter: request.counter + 1, + agent: request.agent, + compress: request.compress, + method: request.method, + body: request.body, + signal: request.signal, + timeout: request.timeout, + size: request.size + }; + + // HTTP-redirect fetch step 9 + if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { + reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 11 + if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { + requestOpts.method = 'GET'; + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); + } + + // HTTP-redirect fetch step 15 + resolve(fetch(new Request(locationURL, requestOpts))); + finalize(); + return; + } + } + + // prepare response + res.once('end', function () { + if (signal) signal.removeEventListener('abort', abortAndFinalize); + }); + let body = res.pipe(new PassThrough$1()); + + const response_options = { + url: request.url, + status: res.statusCode, + statusText: res.statusMessage, + headers: headers, + size: request.size, + timeout: request.timeout, + counter: request.counter + }; + + // HTTP-network fetch step 12.1.1.3 + const codings = headers.get('Content-Encoding'); + + // HTTP-network fetch step 12.1.1.4: handle content codings + + // in following scenarios we ignore compression support + // 1. compression support is disabled + // 2. HEAD request + // 3. no Content-Encoding header + // 4. no content response (204) + // 5. content not modified response (304) + if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { + response = new Response(body, response_options); + resolve(response); + return; + } + + // For Node v6+ + // Be less strict when decoding compressed responses, since sometimes + // servers send slightly invalid responses that are still accepted + // by common browsers. + // Always using Z_SYNC_FLUSH is what cURL does. + const zlibOptions = { + flush: zlib.Z_SYNC_FLUSH, + finishFlush: zlib.Z_SYNC_FLUSH + }; + + // for gzip + if (codings == 'gzip' || codings == 'x-gzip') { + body = body.pipe(zlib.createGunzip(zlibOptions)); + response = new Response(body, response_options); + resolve(response); + return; + } + + // for deflate + if (codings == 'deflate' || codings == 'x-deflate') { + // handle the infamous raw deflate response from old servers + // a hack for old IIS and Apache servers + const raw = res.pipe(new PassThrough$1()); + raw.once('data', function (chunk) { + // see http://stackoverflow.com/questions/37519828 + if ((chunk[0] & 0x0F) === 0x08) { + body = body.pipe(zlib.createInflate()); + } else { + body = body.pipe(zlib.createInflateRaw()); + } + response = new Response(body, response_options); + resolve(response); + }); + return; + } + + // for br + if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { + body = body.pipe(zlib.createBrotliDecompress()); + response = new Response(body, response_options); + resolve(response); + return; + } + + // otherwise, use response as-is + response = new Response(body, response_options); + resolve(response); + }); + + writeToStream(req, request); + }); +} +/** + * Redirect code matching + * + * @param Number code Status code + * @return Boolean + */ +fetch.isRedirect = function (code) { + return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; +}; + +// expose Promise +fetch.Promise = global.Promise; + +module.exports = exports = fetch; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = exports; +exports.Headers = Headers; +exports.Request = Request; +exports.Response = Response; +exports.FetchError = FetchError; diff --git a/node_modules/node-fetch/lib/index.mjs b/node_modules/node-fetch/lib/index.mjs new file mode 100644 index 00000000..ecf59af8 --- /dev/null +++ b/node_modules/node-fetch/lib/index.mjs @@ -0,0 +1,1638 @@ +import Stream from 'stream'; +import http from 'http'; +import Url from 'url'; +import https from 'https'; +import zlib from 'zlib'; + +// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js + +// fix for "Readable" isn't a named export issue +const Readable = Stream.Readable; + +const BUFFER = Symbol('buffer'); +const TYPE = Symbol('type'); + +class Blob { + constructor() { + this[TYPE] = ''; + + const blobParts = arguments[0]; + const options = arguments[1]; + + const buffers = []; + let size = 0; + + if (blobParts) { + const a = blobParts; + const length = Number(a.length); + for (let i = 0; i < length; i++) { + const element = a[i]; + let buffer; + if (element instanceof Buffer) { + buffer = element; + } else if (ArrayBuffer.isView(element)) { + buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); + } else if (element instanceof ArrayBuffer) { + buffer = Buffer.from(element); + } else if (element instanceof Blob) { + buffer = element[BUFFER]; + } else { + buffer = Buffer.from(typeof element === 'string' ? element : String(element)); + } + size += buffer.length; + buffers.push(buffer); + } + } + + this[BUFFER] = Buffer.concat(buffers); + + let type = options && options.type !== undefined && String(options.type).toLowerCase(); + if (type && !/[^\u0020-\u007E]/.test(type)) { + this[TYPE] = type; + } + } + get size() { + return this[BUFFER].length; + } + get type() { + return this[TYPE]; + } + text() { + return Promise.resolve(this[BUFFER].toString()); + } + arrayBuffer() { + const buf = this[BUFFER]; + const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + return Promise.resolve(ab); + } + stream() { + const readable = new Readable(); + readable._read = function () {}; + readable.push(this[BUFFER]); + readable.push(null); + return readable; + } + toString() { + return '[object Blob]'; + } + slice() { + const size = this.size; + + const start = arguments[0]; + const end = arguments[1]; + let relativeStart, relativeEnd; + if (start === undefined) { + relativeStart = 0; + } else if (start < 0) { + relativeStart = Math.max(size + start, 0); + } else { + relativeStart = Math.min(start, size); + } + if (end === undefined) { + relativeEnd = size; + } else if (end < 0) { + relativeEnd = Math.max(size + end, 0); + } else { + relativeEnd = Math.min(end, size); + } + const span = Math.max(relativeEnd - relativeStart, 0); + + const buffer = this[BUFFER]; + const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); + const blob = new Blob([], { type: arguments[2] }); + blob[BUFFER] = slicedBuffer; + return blob; + } +} + +Object.defineProperties(Blob.prototype, { + size: { enumerable: true }, + type: { enumerable: true }, + slice: { enumerable: true } +}); + +Object.defineProperty(Blob.prototype, Symbol.toStringTag, { + value: 'Blob', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * fetch-error.js + * + * FetchError interface for operational errors + */ + +/** + * Create FetchError instance + * + * @param String message Error message for human + * @param String type Error type for machine + * @param String systemError For Node.js system error + * @return FetchError + */ +function FetchError(message, type, systemError) { + Error.call(this, message); + + this.message = message; + this.type = type; + + // when err.type is `system`, err.code contains system error code + if (systemError) { + this.code = this.errno = systemError.code; + } + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +FetchError.prototype = Object.create(Error.prototype); +FetchError.prototype.constructor = FetchError; +FetchError.prototype.name = 'FetchError'; + +let convert; +try { + convert = require('encoding').convert; +} catch (e) {} + +const INTERNALS = Symbol('Body internals'); + +// fix an issue where "PassThrough" isn't a named export for node <10 +const PassThrough = Stream.PassThrough; + +/** + * Body mixin + * + * Ref: https://fetch.spec.whatwg.org/#body + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +function Body(body) { + var _this = this; + + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$size = _ref.size; + + let size = _ref$size === undefined ? 0 : _ref$size; + var _ref$timeout = _ref.timeout; + let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; + + if (body == null) { + // body is undefined or null + body = null; + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams + body = Buffer.from(body.toString()); + } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { + // body is ArrayBuffer + body = Buffer.from(body); + } else if (ArrayBuffer.isView(body)) { + // body is ArrayBufferView + body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); + } else if (body instanceof Stream) ; else { + // none of the above + // coerce to string then buffer + body = Buffer.from(String(body)); + } + this[INTERNALS] = { + body, + disturbed: false, + error: null + }; + this.size = size; + this.timeout = timeout; + + if (body instanceof Stream) { + body.on('error', function (err) { + const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); + _this[INTERNALS].error = error; + }); + } +} + +Body.prototype = { + get body() { + return this[INTERNALS].body; + }, + + get bodyUsed() { + return this[INTERNALS].disturbed; + }, + + /** + * Decode response as ArrayBuffer + * + * @return Promise + */ + arrayBuffer() { + return consumeBody.call(this).then(function (buf) { + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + }); + }, + + /** + * Return raw response as Blob + * + * @return Promise + */ + blob() { + let ct = this.headers && this.headers.get('content-type') || ''; + return consumeBody.call(this).then(function (buf) { + return Object.assign( + // Prevent copying + new Blob([], { + type: ct.toLowerCase() + }), { + [BUFFER]: buf + }); + }); + }, + + /** + * Decode response as json + * + * @return Promise + */ + json() { + var _this2 = this; + + return consumeBody.call(this).then(function (buffer) { + try { + return JSON.parse(buffer.toString()); + } catch (err) { + return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); + } + }); + }, + + /** + * Decode response as text + * + * @return Promise + */ + text() { + return consumeBody.call(this).then(function (buffer) { + return buffer.toString(); + }); + }, + + /** + * Decode response as buffer (non-spec api) + * + * @return Promise + */ + buffer() { + return consumeBody.call(this); + }, + + /** + * Decode response as text, while automatically detecting the encoding and + * trying to decode to UTF-8 (non-spec api) + * + * @return Promise + */ + textConverted() { + var _this3 = this; + + return consumeBody.call(this).then(function (buffer) { + return convertBody(buffer, _this3.headers); + }); + } +}; + +// In browsers, all properties are enumerable. +Object.defineProperties(Body.prototype, { + body: { enumerable: true }, + bodyUsed: { enumerable: true }, + arrayBuffer: { enumerable: true }, + blob: { enumerable: true }, + json: { enumerable: true }, + text: { enumerable: true } +}); + +Body.mixIn = function (proto) { + for (const name of Object.getOwnPropertyNames(Body.prototype)) { + // istanbul ignore else: future proof + if (!(name in proto)) { + const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); + Object.defineProperty(proto, name, desc); + } + } +}; + +/** + * Consume and convert an entire Body to a Buffer. + * + * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body + * + * @return Promise + */ +function consumeBody() { + var _this4 = this; + + if (this[INTERNALS].disturbed) { + return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); + } + + this[INTERNALS].disturbed = true; + + if (this[INTERNALS].error) { + return Body.Promise.reject(this[INTERNALS].error); + } + + let body = this.body; + + // body is null + if (body === null) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is blob + if (isBlob(body)) { + body = body.stream(); + } + + // body is buffer + if (Buffer.isBuffer(body)) { + return Body.Promise.resolve(body); + } + + // istanbul ignore if: should never happen + if (!(body instanceof Stream)) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is stream + // get ready to actually consume the body + let accum = []; + let accumBytes = 0; + let abort = false; + + return new Body.Promise(function (resolve, reject) { + let resTimeout; + + // allow timeout on slow response body + if (_this4.timeout) { + resTimeout = setTimeout(function () { + abort = true; + reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); + }, _this4.timeout); + } + + // handle stream errors + body.on('error', function (err) { + if (err.name === 'AbortError') { + // if the request was aborted, reject with this Error + abort = true; + reject(err); + } else { + // other errors, such as incorrect content-encoding + reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + + body.on('data', function (chunk) { + if (abort || chunk === null) { + return; + } + + if (_this4.size && accumBytes + chunk.length > _this4.size) { + abort = true; + reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); + return; + } + + accumBytes += chunk.length; + accum.push(chunk); + }); + + body.on('end', function () { + if (abort) { + return; + } + + clearTimeout(resTimeout); + + try { + resolve(Buffer.concat(accum, accumBytes)); + } catch (err) { + // handle streams that have accumulated too much data (issue #414) + reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + }); +} + +/** + * Detect buffer encoding and convert to target encoding + * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding + * + * @param Buffer buffer Incoming buffer + * @param String encoding Target encoding + * @return String + */ +function convertBody(buffer, headers) { + if (typeof convert !== 'function') { + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + } + + const ct = headers.get('content-type'); + let charset = 'utf-8'; + let res, str; + + // header + if (ct) { + res = /charset=([^;]*)/i.exec(ct); + } + + // no charset in content type, peek at response body for at most 1024 bytes + str = buffer.slice(0, 1024).toString(); + + // html5 + if (!res && str) { + res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; + + this[MAP] = Object.create(null); + + if (init instanceof Headers) { + const rawHeaders = init.raw(); + const headerNames = Object.keys(rawHeaders); + + for (const headerName of headerNames) { + for (const value of rawHeaders[headerName]) { + this.append(headerName, value); + } + } + + return; + } + + // We don't worry about converting prop to ByteString here as append() + // will handle it. + if (init == null) ; else if (typeof init === 'object') { + const method = init[Symbol.iterator]; + if (method != null) { + if (typeof method !== 'function') { + throw new TypeError('Header pairs must be iterable'); + } + + // sequence> + // Note: per spec we have to first exhaust the lists then process them + const pairs = []; + for (const pair of init) { + if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { + throw new TypeError('Each header pair must be iterable'); + } + pairs.push(Array.from(pair)); + } + + for (const pair of pairs) { + if (pair.length !== 2) { + throw new TypeError('Each header pair must be a name/value tuple'); + } + this.append(pair[0], pair[1]); + } + } else { + // record + for (const key of Object.keys(init)) { + const value = init[key]; + this.append(key, value); + } + } + } else { + throw new TypeError('Provided initializer must be an object'); + } + } + + /** + * Return combined header value given name + * + * @param String name Header name + * @return Mixed + */ + get(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key === undefined) { + return null; + } + + return this[MAP][key].join(', '); + } + + /** + * Iterate over all headers + * + * @param Function callback Executed for each item with parameters (value, name, thisArg) + * @param Boolean thisArg `this` context for callback function + * @return Void + */ + forEach(callback) { + let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + + let pairs = getHeaders(this); + let i = 0; + while (i < pairs.length) { + var _pairs$i = pairs[i]; + const name = _pairs$i[0], + value = _pairs$i[1]; + + callback.call(thisArg, value, name, this); + pairs = getHeaders(this); + i++; + } + } + + /** + * Overwrite header values given name + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + set(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + this[MAP][key !== undefined ? key : name] = [value]; + } + + /** + * Append a value onto existing header + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + append(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + if (key !== undefined) { + this[MAP][key].push(value); + } else { + this[MAP][name] = [value]; + } + } + + /** + * Check for header name existence + * + * @param String name Header name + * @return Boolean + */ + has(name) { + name = `${name}`; + validateName(name); + return find(this[MAP], name) !== undefined; + } + + /** + * Delete all header values given name + * + * @param String name Header name + * @return Void + */ + delete(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key !== undefined) { + delete this[MAP][key]; + } + } + + /** + * Return raw headers (non-spec api) + * + * @return Object + */ + raw() { + return this[MAP]; + } + + /** + * Get an iterator on keys. + * + * @return Iterator + */ + keys() { + return createHeadersIterator(this, 'key'); + } + + /** + * Get an iterator on values. + * + * @return Iterator + */ + values() { + return createHeadersIterator(this, 'value'); + } + + /** + * Get an iterator on entries. + * + * This is the default iterator of the Headers object. + * + * @return Iterator + */ + [Symbol.iterator]() { + return createHeadersIterator(this, 'key+value'); + } +} +Headers.prototype.entries = Headers.prototype[Symbol.iterator]; + +Object.defineProperty(Headers.prototype, Symbol.toStringTag, { + value: 'Headers', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Headers.prototype, { + get: { enumerable: true }, + forEach: { enumerable: true }, + set: { enumerable: true }, + append: { enumerable: true }, + has: { enumerable: true }, + delete: { enumerable: true }, + keys: { enumerable: true }, + values: { enumerable: true }, + entries: { enumerable: true } +}); + +function getHeaders(headers) { + let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; + + const keys = Object.keys(headers[MAP]).sort(); + return keys.map(kind === 'key' ? function (k) { + return k.toLowerCase(); + } : kind === 'value' ? function (k) { + return headers[MAP][k].join(', '); + } : function (k) { + return [k.toLowerCase(), headers[MAP][k].join(', ')]; + }); +} + +const INTERNAL = Symbol('internal'); + +function createHeadersIterator(target, kind) { + const iterator = Object.create(HeadersIteratorPrototype); + iterator[INTERNAL] = { + target, + kind, + index: 0 + }; + return iterator; +} + +const HeadersIteratorPrototype = Object.setPrototypeOf({ + next() { + // istanbul ignore if + if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { + throw new TypeError('Value of `this` is not a HeadersIterator'); + } + + var _INTERNAL = this[INTERNAL]; + const target = _INTERNAL.target, + kind = _INTERNAL.kind, + index = _INTERNAL.index; + + const values = getHeaders(target, kind); + const len = values.length; + if (index >= len) { + return { + value: undefined, + done: true + }; + } + + this[INTERNAL].index = index + 1; + + return { + value: values[index], + done: false + }; + } +}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); + +Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { + value: 'HeadersIterator', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * Export the Headers object in a form that Node.js can consume. + * + * @param Headers headers + * @return Object + */ +function exportNodeCompatibleHeaders(headers) { + const obj = Object.assign({ __proto__: null }, headers[MAP]); + + // http.request() only supports string as Host header. This hack makes + // specifying custom Host header possible. + const hostHeaderKey = find(headers[MAP], 'Host'); + if (hostHeaderKey !== undefined) { + obj[hostHeaderKey] = obj[hostHeaderKey][0]; + } + + return obj; +} + +/** + * Create a Headers object from an object of headers, ignoring those that do + * not conform to HTTP grammar productions. + * + * @param Object obj Object of headers + * @return Headers + */ +function createHeadersLenient(obj) { + const headers = new Headers(); + for (const name of Object.keys(obj)) { + if (invalidTokenRegex.test(name)) { + continue; + } + if (Array.isArray(obj[name])) { + for (const val of obj[name]) { + if (invalidHeaderCharRegex.test(val)) { + continue; + } + if (headers[MAP][name] === undefined) { + headers[MAP][name] = [val]; + } else { + headers[MAP][name].push(val); + } + } + } else if (!invalidHeaderCharRegex.test(obj[name])) { + headers[MAP][name] = [obj[name]]; + } + } + return headers; +} + +const INTERNALS$1 = Symbol('Response internals'); + +// fix an issue where "STATUS_CODES" aren't a named export for node <10 +const STATUS_CODES = http.STATUS_CODES; + +/** + * Response class + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +class Response { + constructor() { + let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + Body.call(this, body, opts); + + const status = opts.status || 200; + const headers = new Headers(opts.headers); + + if (body != null && !headers.has('Content-Type')) { + const contentType = extractContentType(body); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + this[INTERNALS$1] = { + url: opts.url, + status, + statusText: opts.statusText || STATUS_CODES[status], + headers, + counter: opts.counter + }; + } + + get url() { + return this[INTERNALS$1].url || ''; + } + + get status() { + return this[INTERNALS$1].status; + } + + /** + * Convenience property representing if the request ended normally + */ + get ok() { + return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; + } + + get redirected() { + return this[INTERNALS$1].counter > 0; + } + + get statusText() { + return this[INTERNALS$1].statusText; + } + + get headers() { + return this[INTERNALS$1].headers; + } + + /** + * Clone this response + * + * @return Response + */ + clone() { + return new Response(clone(this), { + url: this.url, + status: this.status, + statusText: this.statusText, + headers: this.headers, + ok: this.ok, + redirected: this.redirected + }); + } +} + +Body.mixIn(Response.prototype); + +Object.defineProperties(Response.prototype, { + url: { enumerable: true }, + status: { enumerable: true }, + ok: { enumerable: true }, + redirected: { enumerable: true }, + statusText: { enumerable: true }, + headers: { enumerable: true }, + clone: { enumerable: true } +}); + +Object.defineProperty(Response.prototype, Symbol.toStringTag, { + value: 'Response', + writable: false, + enumerable: false, + configurable: true +}); + +const INTERNALS$2 = Symbol('Request internals'); + +// fix an issue where "format", "parse" aren't a named export for node <10 +const parse_url = Url.parse; +const format_url = Url.format; + +const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; + +/** + * Check if a value is an instance of Request. + * + * @param Mixed input + * @return Boolean + */ +function isRequest(input) { + return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; +} + +function isAbortSignal(signal) { + const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); + return !!(proto && proto.constructor.name === 'AbortSignal'); +} + +/** + * Request class + * + * @param Mixed input Url or Request instance + * @param Object init Custom options + * @return Void + */ +class Request { + constructor(input) { + let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + let parsedURL; + + // normalize input + if (!isRequest(input)) { + if (input && input.href) { + // in order to support Node.js' Url objects; though WHATWG's URL objects + // will fall into this branch also (since their `toString()` will return + // `href` property anyway) + parsedURL = parse_url(input.href); + } else { + // coerce input to a string before attempting to parse + parsedURL = parse_url(`${input}`); + } + input = {}; + } else { + parsedURL = parse_url(input.url); + } + + let method = init.method || input.method || 'GET'; + method = method.toUpperCase(); + + if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { + throw new TypeError('Request with GET/HEAD method cannot have body'); + } + + let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; + + Body.call(this, inputBody, { + timeout: init.timeout || input.timeout || 0, + size: init.size || input.size || 0 + }); + + const headers = new Headers(init.headers || input.headers || {}); + + if (inputBody != null && !headers.has('Content-Type')) { + const contentType = extractContentType(inputBody); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + let signal = isRequest(input) ? input.signal : null; + if ('signal' in init) signal = init.signal; + + if (signal != null && !isAbortSignal(signal)) { + throw new TypeError('Expected signal to be an instanceof AbortSignal'); + } + + this[INTERNALS$2] = { + method, + redirect: init.redirect || input.redirect || 'follow', + headers, + parsedURL, + signal + }; + + // node-fetch-only options + this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; + this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; + this.counter = init.counter || input.counter || 0; + this.agent = init.agent || input.agent; + } + + get method() { + return this[INTERNALS$2].method; + } + + get url() { + return format_url(this[INTERNALS$2].parsedURL); + } + + get headers() { + return this[INTERNALS$2].headers; + } + + get redirect() { + return this[INTERNALS$2].redirect; + } + + get signal() { + return this[INTERNALS$2].signal; + } + + /** + * Clone this request + * + * @return Request + */ + clone() { + return new Request(this); + } +} + +Body.mixIn(Request.prototype); + +Object.defineProperty(Request.prototype, Symbol.toStringTag, { + value: 'Request', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Request.prototype, { + method: { enumerable: true }, + url: { enumerable: true }, + headers: { enumerable: true }, + redirect: { enumerable: true }, + clone: { enumerable: true }, + signal: { enumerable: true } +}); + +/** + * Convert a Request to Node.js http request options. + * + * @param Request A Request instance + * @return Object The options object to be passed to http.request + */ +function getNodeRequestOptions(request) { + const parsedURL = request[INTERNALS$2].parsedURL; + const headers = new Headers(request[INTERNALS$2].headers); + + // fetch step 1.3 + if (!headers.has('Accept')) { + headers.set('Accept', '*/*'); + } + + // Basic fetch + if (!parsedURL.protocol || !parsedURL.hostname) { + throw new TypeError('Only absolute URLs are supported'); + } + + if (!/^https?:$/.test(parsedURL.protocol)) { + throw new TypeError('Only HTTP(S) protocols are supported'); + } + + if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { + throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); + } + + // HTTP-network-or-cache fetch steps 2.4-2.7 + let contentLengthValue = null; + if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { + contentLengthValue = '0'; + } + if (request.body != null) { + const totalBytes = getTotalBytes(request); + if (typeof totalBytes === 'number') { + contentLengthValue = String(totalBytes); + } + } + if (contentLengthValue) { + headers.set('Content-Length', contentLengthValue); + } + + // HTTP-network-or-cache fetch step 2.11 + if (!headers.has('User-Agent')) { + headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); + } + + // HTTP-network-or-cache fetch step 2.15 + if (request.compress && !headers.has('Accept-Encoding')) { + headers.set('Accept-Encoding', 'gzip,deflate'); + } + + let agent = request.agent; + if (typeof agent === 'function') { + agent = agent(parsedURL); + } + + if (!headers.has('Connection') && !agent) { + headers.set('Connection', 'close'); + } + + // HTTP-network fetch step 4.2 + // chunked encoding is handled by Node.js + + return Object.assign({}, parsedURL, { + method: request.method, + headers: exportNodeCompatibleHeaders(headers), + agent + }); +} + +/** + * abort-error.js + * + * AbortError interface for cancelled requests + */ + +/** + * Create AbortError instance + * + * @param String message Error message for human + * @return AbortError + */ +function AbortError(message) { + Error.call(this, message); + + this.type = 'aborted'; + this.message = message; + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +AbortError.prototype = Object.create(Error.prototype); +AbortError.prototype.constructor = AbortError; +AbortError.prototype.name = 'AbortError'; + +// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 +const PassThrough$1 = Stream.PassThrough; +const resolve_url = Url.resolve; + +/** + * Fetch function + * + * @param Mixed url Absolute url or Request instance + * @param Object opts Fetch options + * @return Promise + */ +function fetch(url, opts) { + + // allow custom promise + if (!fetch.Promise) { + throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); + } + + Body.Promise = fetch.Promise; + + // wrap http.request into fetch + return new fetch.Promise(function (resolve, reject) { + // build request object + const request = new Request(url, opts); + const options = getNodeRequestOptions(request); + + const send = (options.protocol === 'https:' ? https : http).request; + const signal = request.signal; + + let response = null; + + const abort = function abort() { + let error = new AbortError('The user aborted a request.'); + reject(error); + if (request.body && request.body instanceof Stream.Readable) { + request.body.destroy(error); + } + if (!response || !response.body) return; + response.body.emit('error', error); + }; + + if (signal && signal.aborted) { + abort(); + return; + } + + const abortAndFinalize = function abortAndFinalize() { + abort(); + finalize(); + }; + + // send request + const req = send(options); + let reqTimeout; + + if (signal) { + signal.addEventListener('abort', abortAndFinalize); + } + + function finalize() { + req.abort(); + if (signal) signal.removeEventListener('abort', abortAndFinalize); + clearTimeout(reqTimeout); + } + + if (request.timeout) { + req.once('socket', function (socket) { + reqTimeout = setTimeout(function () { + reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); + finalize(); + }, request.timeout); + }); + } + + req.on('error', function (err) { + reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); + finalize(); + }); + + req.on('response', function (res) { + clearTimeout(reqTimeout); + + const headers = createHeadersLenient(res.headers); + + // HTTP fetch step 5 + if (fetch.isRedirect(res.statusCode)) { + // HTTP fetch step 5.2 + const location = headers.get('Location'); + + // HTTP fetch step 5.3 + const locationURL = location === null ? null : resolve_url(request.url, location); + + // HTTP fetch step 5.5 + switch (request.redirect) { + case 'error': + reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); + finalize(); + return; + case 'manual': + // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. + if (locationURL !== null) { + // handle corrupted header + try { + headers.set('Location', locationURL); + } catch (err) { + // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request + reject(err); + } + } + break; + case 'follow': + // HTTP-redirect fetch step 2 + if (locationURL === null) { + break; + } + + // HTTP-redirect fetch step 5 + if (request.counter >= request.follow) { + reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 6 (counter increment) + // Create a new Request object. + const requestOpts = { + headers: new Headers(request.headers), + follow: request.follow, + counter: request.counter + 1, + agent: request.agent, + compress: request.compress, + method: request.method, + body: request.body, + signal: request.signal, + timeout: request.timeout, + size: request.size + }; + + // HTTP-redirect fetch step 9 + if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { + reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 11 + if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { + requestOpts.method = 'GET'; + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); + } + + // HTTP-redirect fetch step 15 + resolve(fetch(new Request(locationURL, requestOpts))); + finalize(); + return; + } + } + + // prepare response + res.once('end', function () { + if (signal) signal.removeEventListener('abort', abortAndFinalize); + }); + let body = res.pipe(new PassThrough$1()); + + const response_options = { + url: request.url, + status: res.statusCode, + statusText: res.statusMessage, + headers: headers, + size: request.size, + timeout: request.timeout, + counter: request.counter + }; + + // HTTP-network fetch step 12.1.1.3 + const codings = headers.get('Content-Encoding'); + + // HTTP-network fetch step 12.1.1.4: handle content codings + + // in following scenarios we ignore compression support + // 1. compression support is disabled + // 2. HEAD request + // 3. no Content-Encoding header + // 4. no content response (204) + // 5. content not modified response (304) + if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { + response = new Response(body, response_options); + resolve(response); + return; + } + + // For Node v6+ + // Be less strict when decoding compressed responses, since sometimes + // servers send slightly invalid responses that are still accepted + // by common browsers. + // Always using Z_SYNC_FLUSH is what cURL does. + const zlibOptions = { + flush: zlib.Z_SYNC_FLUSH, + finishFlush: zlib.Z_SYNC_FLUSH + }; + + // for gzip + if (codings == 'gzip' || codings == 'x-gzip') { + body = body.pipe(zlib.createGunzip(zlibOptions)); + response = new Response(body, response_options); + resolve(response); + return; + } + + // for deflate + if (codings == 'deflate' || codings == 'x-deflate') { + // handle the infamous raw deflate response from old servers + // a hack for old IIS and Apache servers + const raw = res.pipe(new PassThrough$1()); + raw.once('data', function (chunk) { + // see http://stackoverflow.com/questions/37519828 + if ((chunk[0] & 0x0F) === 0x08) { + body = body.pipe(zlib.createInflate()); + } else { + body = body.pipe(zlib.createInflateRaw()); + } + response = new Response(body, response_options); + resolve(response); + }); + return; + } + + // for br + if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { + body = body.pipe(zlib.createBrotliDecompress()); + response = new Response(body, response_options); + resolve(response); + return; + } + + // otherwise, use response as-is + response = new Response(body, response_options); + resolve(response); + }); + + writeToStream(req, request); + }); +} +/** + * Redirect code matching + * + * @param Number code Status code + * @return Boolean + */ +fetch.isRedirect = function (code) { + return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; +}; + +// expose Promise +fetch.Promise = global.Promise; + +export default fetch; +export { Headers, Request, Response, FetchError }; diff --git a/node_modules/node-fetch/package.json b/node_modules/node-fetch/package.json new file mode 100644 index 00000000..21604691 --- /dev/null +++ b/node_modules/node-fetch/package.json @@ -0,0 +1,66 @@ +{ + "name": "node-fetch", + "version": "2.6.1", + "description": "A light-weight module that brings window.fetch to node.js", + "main": "lib/index", + "browser": "./browser.js", + "module": "lib/index.mjs", + "files": [ + "lib/index.js", + "lib/index.mjs", + "lib/index.es.js", + "browser.js" + ], + "engines": { + "node": "4.x || >=6.0.0" + }, + "scripts": { + "build": "cross-env BABEL_ENV=rollup rollup -c", + "prepare": "npm run build", + "test": "cross-env BABEL_ENV=test mocha --require babel-register --throw-deprecation test/test.js", + "report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js", + "coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json" + }, + "repository": { + "type": "git", + "url": "https://github.com/bitinn/node-fetch.git" + }, + "keywords": [ + "fetch", + "http", + "promise" + ], + "author": "David Frank", + "license": "MIT", + "bugs": { + "url": "https://github.com/bitinn/node-fetch/issues" + }, + "homepage": "https://github.com/bitinn/node-fetch", + "devDependencies": { + "@ungap/url-search-params": "^0.1.2", + "abort-controller": "^1.1.0", + "abortcontroller-polyfill": "^1.3.0", + "babel-core": "^6.26.3", + "babel-plugin-istanbul": "^4.1.6", + "babel-preset-env": "^1.6.1", + "babel-register": "^6.16.3", + "chai": "^3.5.0", + "chai-as-promised": "^7.1.1", + "chai-iterator": "^1.1.1", + "chai-string": "~1.3.0", + "codecov": "^3.3.0", + "cross-env": "^5.2.0", + "form-data": "^2.3.3", + "is-builtin-module": "^1.0.0", + "mocha": "^5.0.0", + "nyc": "11.9.0", + "parted": "^0.1.1", + "promise": "^8.0.3", + "resumer": "0.0.0", + "rollup": "^0.63.4", + "rollup-plugin-babel": "^3.0.7", + "string-to-arraybuffer": "^1.0.2", + "whatwg-url": "^5.0.0" + }, + "dependencies": {} +} diff --git a/node_modules/sms77-client/LICENSE b/node_modules/sms77-client/LICENSE new file mode 100644 index 00000000..a0d305dc --- /dev/null +++ b/node_modules/sms77-client/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020-present sms77 e.K. + +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/sms77-client/README.md b/node_modules/sms77-client/README.md new file mode 100644 index 00000000..28828c62 --- /dev/null +++ b/node_modules/sms77-client/README.md @@ -0,0 +1,39 @@ +![Sms77.io Logo](https://www.sms77.io/wp-content/uploads/2019/07/sms77-Logo-400x79.png "Sms77.io Logo") +# JavaScript API Client for the Sms77.io SMS Gateway + +## Installation +This library relies on the the global fetch API. +In order to to use it with NodeJS u need to install [node-fetch](https://github.com/node-fetch/node-fetch). +For NodeJS versions < 12 use the [globalThis polyfill](https://github.com/es-shims/globalThis). + +**NPM** ```npm install sms77-client node-fetch``` **Yarn** ```yarn add sms77-client node-fetch``` + +**Browser** +```html + +``` + +### Example +```javascript +//const globalThis = require('globalthis')(); // uncomment if NodeJS < NodeJS versions < 12 +//globalThis.fetch = require('node-fetch').default; // uncomment in NodeJS environments +//const Sms77Client = require('sms77-client'); // uncomment in NodeJS environments + +new Sms77Client('MY_SUPER_SECRET_SMS77_IO_API_KEY!') +.balance() +.then(balance => console.log(`My balance is: ${balance}`)) +.catch(error => console.error(`Error while fetching: ${balance}`)); +``` + +#### Tests +1. ```git clone https://github.com/sms77io/js-client``` +2. ```cd js-client && npm install``` +3. ```SMS77_API_KEY=InsertSms77ApiKey npm run test``` + +Set ```SMS77_LIVE_TEST=1``` for live tests performing actual http requests. + +Set ```SMS77_DEBUG=1``` for details printed to stdout. + + +##### Support +Need help? Feel free to send us an email. \ No newline at end of file diff --git a/node_modules/sms77-client/dist/BaseClient.d.ts b/node_modules/sms77-client/dist/BaseClient.d.ts new file mode 100644 index 00000000..2826f99c --- /dev/null +++ b/node_modules/sms77-client/dist/BaseClient.d.ts @@ -0,0 +1,22 @@ +import { Endpoint } from './constants/Endpoint'; +import { AnyObject } from './types'; +declare type Response = R | string; +declare type MethodArgs = [Endpoint, AnyObject | undefined | null]; +export declare type MethodCall = (...a: MethodArgs) => Promise>; +interface HttpMethods { + get: MethodCall; + post: MethodCall; +} +export declare class BaseClient implements HttpMethods { + protected apiKey: string; + protected sentWith: string; + protected debug: boolean; + get: (a_0: Endpoint, a_1: AnyObject | null | undefined) => Promise>; + post: (a_0: Endpoint, a_1: AnyObject | null | undefined) => Promise>; + private assertIs; + static readonly BASE_URL = "https://gateway.sms77.io/api"; + constructor(apiKey: string, sentWith?: string, debug?: boolean); + private request; + private normalizePayload; +} +export {}; diff --git a/node_modules/sms77-client/dist/Sms77Client.d.ts b/node_modules/sms77-client/dist/Sms77Client.d.ts new file mode 100644 index 00000000..7a293b5e --- /dev/null +++ b/node_modules/sms77-client/dist/Sms77Client.d.ts @@ -0,0 +1,16 @@ +import { AnalyticsParams, AnalyticsResponse, ContactsParams, ContactsResponse, HooksParams, HooksResponse, JournalParams, JournalResponse, LookupParams, LookupResponse, PricingParams, PricingResponse, SmsParams, SmsResponse, StatusParams, StatusResponse, ValidateForVoiceParams, ValidateForVoiceResponse, VoiceParams, VoiceResponse } from './types'; +import { BaseClient } from './BaseClient'; +export * from './types'; +export default class Sms77Client extends BaseClient { + analytics: (p?: AnalyticsParams | undefined) => Promise; + balance: () => Promise; + contacts: (p: ContactsParams) => Promise; + hooks: (p: HooksParams) => Promise; + journal: (p: JournalParams) => Promise; + lookup: (p: LookupParams) => Promise; + pricing: (p?: PricingParams | undefined) => Promise; + sms: (p: SmsParams) => Promise; + status: (p: StatusParams) => Promise; + validateForVoice: (p: ValidateForVoiceParams) => Promise; + voice: (p: VoiceParams) => Promise; +} diff --git a/node_modules/sms77-client/dist/Sms77Client.umd.js b/node_modules/sms77-client/dist/Sms77Client.umd.js new file mode 100644 index 00000000..c06937ec --- /dev/null +++ b/node_modules/sms77-client/dist/Sms77Client.umd.js @@ -0,0 +1,692 @@ +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Sms77Client = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +exports.__esModule = true; +exports.BaseClient = void 0; +var Util_1 = __importDefault(require("./lib/Util")); +var ErrorCode_1 = require("./constants/ErrorCode"); +var METHODS = ['get', 'post']; +var BaseClient = /** @class */ (function () { + function BaseClient(apiKey, sentWith, debug) { + var e_1, _a; + var _this = this; + if (sentWith === void 0) { sentWith = 'js'; } + if (debug === void 0) { debug = false; } + this.apiKey = apiKey; + this.sentWith = sentWith; + this.debug = debug; + this.get = function () { + var a = []; + for (var _i = 0; _i < arguments.length; _i++) { + a[_i] = arguments[_i]; + } + return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + return [2 /*return*/, '']; + }); }); + }; + this.post = function () { + var a = []; + for (var _i = 0; _i < arguments.length; _i++) { + a[_i] = arguments[_i]; + } + return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + return [2 /*return*/, '']; + }); }); + }; + this.normalizePayload = function (o) { return Object.fromEntries(Object.entries(o).map(function (_a) { + var _b = __read(_a, 2), k = _b[0], v = _b[1]; + return [k, Util_1["default"].toNumberedBool(v)]; + })); }; + this.assertIs(this); + var _loop_1 = function (name_1) { + this_1[name_1] = + function () { + var a = []; + for (var _i = 0; _i < arguments.length; _i++) { + a[_i] = arguments[_i]; + } + return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.request(name_1, a)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); + }; + }; + var this_1 = this; + try { + for (var METHODS_1 = __values(METHODS), METHODS_1_1 = METHODS_1.next(); !METHODS_1_1.done; METHODS_1_1 = METHODS_1.next()) { + var name_1 = METHODS_1_1.value; + _loop_1(name_1); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (METHODS_1_1 && !METHODS_1_1.done && (_a = METHODS_1["return"])) _a.call(METHODS_1); + } + finally { if (e_1) throw e_1.error; } + } + } + BaseClient.prototype.assertIs = function (value) { + }; + BaseClient.prototype.request = function (method, _a) { + var _b = __read(_a, 2), e = _b[0], _c = _b[1], o = _c === void 0 ? {} : _c; + return __awaiter(this, void 0, void 0, function () { + var url, opts, entries, params_1, res, body, apiCode, parsed; + return __generator(this, function (_d) { + switch (_d.label) { + case 0: + url = BaseClient.BASE_URL + "/" + e; + opts = { + headers: { + Authorization: "Basic " + this.apiKey, + sentWith: this.sentWith + }, + method: method + }; + if (o && Object.keys(o).length) { + o = this.normalizePayload(o); + entries = Object.entries(o); + params_1 = new URLSearchParams; + entries.forEach((function (_a) { + var _b = __read(_a, 2), k = _b[0], v = _b[1]; + return params_1.set(k, v); + })); + 'get' === method + ? url += "?" + params_1.toString() : opts.body = params_1; + } + return [4 /*yield*/, fetch(url, opts)]; + case 1: + res = _d.sent(); + return [4 /*yield*/, res.text()]; + case 2: + body = _d.sent(); + if (typeof body === 'string') { + try { + body = JSON.parse(body); + } + catch (e) { } + } + apiCode = null; + if (typeof body === 'string' || typeof body === 'number') { + parsed = Number.parseFloat("" + body); + if (Number.isInteger(parsed)) { + apiCode = parsed; + } + } + if (this.debug) { + console.debug({ + request: __assign(__assign({}, opts), { url: url, body: opts.body instanceof URLSearchParams + ? Object.fromEntries(opts.body) : opts.body }), + response: { + apiCode: apiCode, + body: body, + headers: Object.fromEntries(res.headers), + status: res.status + } + }); + } + if (apiCode && apiCode in ErrorCode_1.ErrorCode) { + throw new Error(apiCode + ": " + ErrorCode_1.ErrorCode[apiCode]); + } + return [2 /*return*/, body]; + } + }); + }); + }; + BaseClient.BASE_URL = 'https://gateway.sms77.io/api'; + return BaseClient; +}()); +exports.BaseClient = BaseClient; + +},{"./constants/ErrorCode":5,"./lib/Util":9}],3:[function(require,module,exports){ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +exports.__esModule = true; +var BaseClient_1 = require("./BaseClient"); +var Endpoint_1 = require("./constants/Endpoint"); +var TextTransformer_1 = __importDefault(require("./lib/TextTransformer")); +var ContactsAction_1 = require("./constants/byEndpoint/contacts/ContactsAction"); +var ContactsResponseCode_1 = require("./constants/byEndpoint/contacts/ContactsResponseCode"); +__exportStar(require("./types"), exports); +var Sms77Client = /** @class */ (function (_super) { + __extends(Sms77Client, _super); + function Sms77Client() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.analytics = function (p) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.get(Endpoint_1.Endpoint.Analytics, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); }; + _this.balance = function () { return __awaiter(_this, void 0, void 0, function () { var _a, _b; return __generator(this, function (_c) { + switch (_c.label) { + case 0: + _b = (_a = Number).parseFloat; + return [4 /*yield*/, this.get(Endpoint_1.Endpoint.Balance, {})]; + case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])]; + } + }); }); }; + _this.contacts = function (p) { return __awaiter(_this, void 0, void 0, function () { + var args, method, res, type, isCSV, isCode; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + args = [Endpoint_1.Endpoint.Contacts, p]; + method = p.action === ContactsAction_1.ContactsAction.Delete ? this.post : this.get; + return [4 /*yield*/, method.apply(void 0, __spread(args))]; + case 1: + res = _a.sent(); + type = typeof res; + isCSV = type === 'string'; + isCode = type === 'number'; + if (isCSV || isCode) { + return [2 /*return*/, res]; + } + else if (Array.isArray(res)) { + return [2 /*return*/, res]; + } + if (typeof res === 'object') { + if (Object.values(ContactsResponseCode_1.ContactsResponseCode) + .includes(Number.parseInt(res["return"]))) { + if (res.id) { + return [2 /*return*/, Number.parseInt(res.id)]; + } + else if (p.id) { + return [2 /*return*/, p.id]; + } + } + } + return [2 /*return*/, res]; + } + }); + }); }; + _this.hooks = function (p) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.post(Endpoint_1.Endpoint.Hooks, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); }; + _this.journal = function (p) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.get(Endpoint_1.Endpoint.Journal, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); }; + _this.lookup = function (p) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.post(Endpoint_1.Endpoint.Lookup, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); }; + _this.pricing = function (p) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.post(Endpoint_1.Endpoint.Pricing, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); }; + _this.sms = function (p) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.post(Endpoint_1.Endpoint.Sms, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); }; + _this.status = function (p) { return __awaiter(_this, void 0, void 0, function () { + var res; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.get(Endpoint_1.Endpoint.Status, p)]; + case 1: + res = _a.sent(); + return [2 /*return*/, p._json ? TextTransformer_1["default"].status(res) : res]; + } + }); + }); }; + _this.validateForVoice = function (p) { return __awaiter(_this, void 0, void 0, function () { + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.post(Endpoint_1.Endpoint.ValidateForVoice, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); + }); }; + _this.voice = function (p) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, this.post(Endpoint_1.Endpoint.Voice, p)]; + case 1: return [2 /*return*/, _a.sent()]; + } + }); }); }; + return _this; + } + return Sms77Client; +}(BaseClient_1.BaseClient)); +exports["default"] = Sms77Client; + +},{"./BaseClient":2,"./constants/Endpoint":4,"./constants/byEndpoint/contacts/ContactsAction":6,"./constants/byEndpoint/contacts/ContactsResponseCode":7,"./lib/TextTransformer":8,"./types":13}],4:[function(require,module,exports){ +"use strict"; +exports.__esModule = true; +exports.Endpoint = void 0; +var Endpoint; +(function (Endpoint) { + Endpoint["Analytics"] = "analytics"; + Endpoint["Balance"] = "balance"; + Endpoint["Contacts"] = "contacts"; + Endpoint["Hooks"] = "hooks"; + Endpoint["Lookup"] = "lookup"; + Endpoint["Journal"] = "journal"; + Endpoint["Pricing"] = "pricing"; + Endpoint["Sms"] = "sms"; + Endpoint["Status"] = "status"; + Endpoint["ValidateForVoice"] = "validate_for_voice"; + Endpoint["Voice"] = "voice"; +})(Endpoint = exports.Endpoint || (exports.Endpoint = {})); + +},{}],5:[function(require,module,exports){ +"use strict"; +exports.__esModule = true; +exports.ErrorCode = void 0; +var ErrorCode; +(function (ErrorCode) { + ErrorCode[ErrorCode["InvalidCountryCode"] = 201] = "InvalidCountryCode"; + ErrorCode[ErrorCode["InvalidRecipientNumber"] = 202] = "InvalidRecipientNumber"; + ErrorCode[ErrorCode["MissingAuthentication"] = 300] = "MissingAuthentication"; + ErrorCode[ErrorCode["MissingParameterTo"] = 301] = "MissingParameterTo"; + ErrorCode[ErrorCode["MissingParameterType"] = 304] = "MissingParameterType"; + ErrorCode[ErrorCode["MissingParameterText"] = 305] = "MissingParameterText"; + ErrorCode[ErrorCode["InvalidSender"] = 306] = "InvalidSender"; + ErrorCode[ErrorCode["MissingParameterUrl"] = 307] = "MissingParameterUrl"; + ErrorCode[ErrorCode["InvalidType"] = 400] = "InvalidType"; + ErrorCode[ErrorCode["ParameterLongExceedsCharLimit"] = 401] = "ParameterLongExceedsCharLimit"; + ErrorCode[ErrorCode["PreventedByReloadLock"] = 402] = "PreventedByReloadLock"; + ErrorCode[ErrorCode["InsufficientCredits"] = 500] = "InsufficientCredits"; + ErrorCode[ErrorCode["CarrierFailed"] = 600] = "CarrierFailed"; + ErrorCode[ErrorCode["UnknownError"] = 700] = "UnknownError"; + ErrorCode[ErrorCode["MissingLogoFile"] = 801] = "MissingLogoFile"; + ErrorCode[ErrorCode["NonExistingLogoFile"] = 802] = "NonExistingLogoFile"; + ErrorCode[ErrorCode["MissingRingTone"] = 803] = "MissingRingTone"; + ErrorCode[ErrorCode["InvalidApiKey"] = 900] = "InvalidApiKey"; + ErrorCode[ErrorCode["InvalidMessageId"] = 901] = "InvalidMessageId"; + ErrorCode[ErrorCode["DeactivatedApi"] = 902] = "DeactivatedApi"; + ErrorCode[ErrorCode["DisallowedIp"] = 903] = "DisallowedIp"; +})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); + +},{}],6:[function(require,module,exports){ +"use strict"; +exports.__esModule = true; +exports.ContactsAction = void 0; +var ContactsAction; +(function (ContactsAction) { + ContactsAction["Delete"] = "del"; + ContactsAction["Read"] = "read"; + ContactsAction["Write"] = "write"; +})(ContactsAction = exports.ContactsAction || (exports.ContactsAction = {})); + +},{}],7:[function(require,module,exports){ +"use strict"; +exports.__esModule = true; +exports.ContactsResponseCode = void 0; +var ContactsResponseCode; +(function (ContactsResponseCode) { + ContactsResponseCode[ContactsResponseCode["Error"] = 151] = "Error"; + ContactsResponseCode[ContactsResponseCode["Success"] = 152] = "Success"; +})(ContactsResponseCode = exports.ContactsResponseCode || (exports.ContactsResponseCode = {})); + +},{}],8:[function(require,module,exports){ +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +exports.__esModule = true; +var Util_1 = __importDefault(require("./Util")); +var TextTransformer = /** @class */ (function () { + function TextTransformer() { + } + TextTransformer.contacts = function (csv) { + return Util_1["default"].csvToArray(csv, false) + .map(function (_a) { + var _b = __read(_a, 3), id = _b[0], nick = _b[1], number = _b[2]; + return ({ + id: Number.parseInt(id), + nick: nick, + number: number + }); + }); + }; + TextTransformer.pricing = function (csv) { + var e_1, _a; + var networks = Util_1["default"].csvToArray(csv, true); + var countries = []; + var _loop_1 = function (network) { + var _a = __read(network, 9), countryCode = _a[0], countryName = _a[1], countryPrefix = _a[2], mcc = _a[3], mncs = _a[4], networkName = _a[5], price = _a[6], features = _a[7], comment = _a[8]; + var country = countries.find(function (c) { return c.countryCode === countryCode; }); + var hasCountry = undefined !== country; + var obj = country || { + countryCode: countryCode, + countryName: countryName, + countryPrefix: countryPrefix, + networks: [] + }; + obj.networks.push({ + comment: comment, + features: features.split(',').filter(function (s) { return '' !== s; }), + mcc: mcc, + mncs: mncs.split(','), + networkName: networkName.trim(), + price: Number.parseFloat(price) + }); + if (!hasCountry) { + countries.push(obj); + } + }; + try { + for (var networks_1 = __values(networks), networks_1_1 = networks_1.next(); !networks_1_1.done; networks_1_1 = networks_1.next()) { + var network = networks_1_1.value; + _loop_1(network); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (networks_1_1 && !networks_1_1.done && (_a = networks_1["return"])) _a.call(networks_1); + } + finally { if (e_1) throw e_1.error; } + } + return { + countCountries: countries.length, + countNetworks: networks.length, + countries: countries + }; + }; + TextTransformer.status = function (text) { + var _a = __read(Util_1["default"].splitByLine(text), 2), report = _a[0], timestamp = _a[1]; + return { + report: report, + timestamp: timestamp + }; + }; + return TextTransformer; +}()); +exports["default"] = TextTransformer; + +},{"./Util":9}],9:[function(require,module,exports){ +"use strict"; +exports.__esModule = true; +var Util = /** @class */ (function () { + function Util() { + } + Util.addSignature = function (_a) { + var position = _a.position, signature = _a.signature, text = _a.text; + return 'append' === position + ? "" + signature + text : "" + text + signature; + }; + Util.toNumberedBool = function (value) { + return typeof value === 'boolean' + ? value + ? 1 + : 0 + : value; + }; + Util.splitByLine = function (str) { + return str.split(/[\r\n]+/); + }; + Util.isNumeric = function (val) { + return Number.isFinite(val) && !Number.isNaN(Number.parseFloat(val)); + }; + /* Thanks Michael @ https://stackoverflow.com/a/25352300/9737058 */ + Util.isAlphaNumeric = function (str) { + for (var i = 0; i < str.length; i++) { + var code = str.charCodeAt(i); + if (!(code > 47 && code < 58) && // numeric (0-9) + !(code > 64 && code < 91) && // upper alpha (A-Z) + !(code > 96 && code < 123)) { // lower alpha (a-z) + return false; + } + } + return true; + }; + Util.csvToArray = function (csv, skipHeader) { + var arr = Util.splitByLine(csv.trim().replace(/"/g, '')); + if (skipHeader) { + arr.shift(); + } + return arr.map(function (l) { return l.trim().split(';'); }); + }; + return Util; +}()); +exports["default"] = Util; + +},{}],10:[function(require,module,exports){ +"use strict"; +exports.__esModule = true; + +},{}],11:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],12:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],13:[function(require,module,exports){ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +exports.__esModule = true; +__exportStar(require("./analytics"), exports); +__exportStar(require("./contacts"), exports); +__exportStar(require("./hooks"), exports); +__exportStar(require("./journal"), exports); +__exportStar(require("./lookup"), exports); +__exportStar(require("./pricing"), exports); +__exportStar(require("./sms"), exports); +__exportStar(require("./status"), exports); +__exportStar(require("./validateForVoice"), exports); +__exportStar(require("./voice"), exports); + +},{"./analytics":10,"./contacts":11,"./hooks":12,"./journal":14,"./lookup":15,"./pricing":16,"./sms":17,"./status":18,"./validateForVoice":19,"./voice":20}],14:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],15:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],16:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],17:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],18:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],19:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}],20:[function(require,module,exports){ +arguments[4][10][0].apply(exports,arguments) +},{"dup":10}]},{},[1])(1) +}); diff --git a/node_modules/sms77-client/dist/constants/Endpoint.d.ts b/node_modules/sms77-client/dist/constants/Endpoint.d.ts new file mode 100644 index 00000000..a9367639 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/Endpoint.d.ts @@ -0,0 +1,13 @@ +export declare enum Endpoint { + Analytics = "analytics", + Balance = "balance", + Contacts = "contacts", + Hooks = "hooks", + Lookup = "lookup", + Journal = "journal", + Pricing = "pricing", + Sms = "sms", + Status = "status", + ValidateForVoice = "validate_for_voice", + Voice = "voice" +} diff --git a/node_modules/sms77-client/dist/constants/Endpoint.js b/node_modules/sms77-client/dist/constants/Endpoint.js new file mode 100644 index 00000000..9b2608c8 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/Endpoint.js @@ -0,0 +1,17 @@ +"use strict"; +exports.__esModule = true; +exports.Endpoint = void 0; +var Endpoint; +(function (Endpoint) { + Endpoint["Analytics"] = "analytics"; + Endpoint["Balance"] = "balance"; + Endpoint["Contacts"] = "contacts"; + Endpoint["Hooks"] = "hooks"; + Endpoint["Lookup"] = "lookup"; + Endpoint["Journal"] = "journal"; + Endpoint["Pricing"] = "pricing"; + Endpoint["Sms"] = "sms"; + Endpoint["Status"] = "status"; + Endpoint["ValidateForVoice"] = "validate_for_voice"; + Endpoint["Voice"] = "voice"; +})(Endpoint = exports.Endpoint || (exports.Endpoint = {})); diff --git a/node_modules/sms77-client/dist/constants/ErrorCode.d.ts b/node_modules/sms77-client/dist/constants/ErrorCode.d.ts new file mode 100644 index 00000000..94c10825 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/ErrorCode.d.ts @@ -0,0 +1,23 @@ +export declare enum ErrorCode { + InvalidCountryCode = 201, + InvalidRecipientNumber = 202, + MissingAuthentication = 300, + MissingParameterTo = 301, + MissingParameterType = 304, + MissingParameterText = 305, + InvalidSender = 306, + MissingParameterUrl = 307, + InvalidType = 400, + ParameterLongExceedsCharLimit = 401, + PreventedByReloadLock = 402, + InsufficientCredits = 500, + CarrierFailed = 600, + UnknownError = 700, + MissingLogoFile = 801, + NonExistingLogoFile = 802, + MissingRingTone = 803, + InvalidApiKey = 900, + InvalidMessageId = 901, + DeactivatedApi = 902, + DisallowedIp = 903 +} diff --git a/node_modules/sms77-client/dist/constants/ErrorCode.js b/node_modules/sms77-client/dist/constants/ErrorCode.js new file mode 100644 index 00000000..ef28f5cd --- /dev/null +++ b/node_modules/sms77-client/dist/constants/ErrorCode.js @@ -0,0 +1,27 @@ +"use strict"; +exports.__esModule = true; +exports.ErrorCode = void 0; +var ErrorCode; +(function (ErrorCode) { + ErrorCode[ErrorCode["InvalidCountryCode"] = 201] = "InvalidCountryCode"; + ErrorCode[ErrorCode["InvalidRecipientNumber"] = 202] = "InvalidRecipientNumber"; + ErrorCode[ErrorCode["MissingAuthentication"] = 300] = "MissingAuthentication"; + ErrorCode[ErrorCode["MissingParameterTo"] = 301] = "MissingParameterTo"; + ErrorCode[ErrorCode["MissingParameterType"] = 304] = "MissingParameterType"; + ErrorCode[ErrorCode["MissingParameterText"] = 305] = "MissingParameterText"; + ErrorCode[ErrorCode["InvalidSender"] = 306] = "InvalidSender"; + ErrorCode[ErrorCode["MissingParameterUrl"] = 307] = "MissingParameterUrl"; + ErrorCode[ErrorCode["InvalidType"] = 400] = "InvalidType"; + ErrorCode[ErrorCode["ParameterLongExceedsCharLimit"] = 401] = "ParameterLongExceedsCharLimit"; + ErrorCode[ErrorCode["PreventedByReloadLock"] = 402] = "PreventedByReloadLock"; + ErrorCode[ErrorCode["InsufficientCredits"] = 500] = "InsufficientCredits"; + ErrorCode[ErrorCode["CarrierFailed"] = 600] = "CarrierFailed"; + ErrorCode[ErrorCode["UnknownError"] = 700] = "UnknownError"; + ErrorCode[ErrorCode["MissingLogoFile"] = 801] = "MissingLogoFile"; + ErrorCode[ErrorCode["NonExistingLogoFile"] = 802] = "NonExistingLogoFile"; + ErrorCode[ErrorCode["MissingRingTone"] = 803] = "MissingRingTone"; + ErrorCode[ErrorCode["InvalidApiKey"] = 900] = "InvalidApiKey"; + ErrorCode[ErrorCode["InvalidMessageId"] = 901] = "InvalidMessageId"; + ErrorCode[ErrorCode["DeactivatedApi"] = 902] = "DeactivatedApi"; + ErrorCode[ErrorCode["DisallowedIp"] = 903] = "DisallowedIp"; +})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); diff --git a/node_modules/sms77-client/dist/constants/STRING_BOOLEAN_VALUES.d.ts b/node_modules/sms77-client/dist/constants/STRING_BOOLEAN_VALUES.d.ts new file mode 100644 index 00000000..1bcb408c --- /dev/null +++ b/node_modules/sms77-client/dist/constants/STRING_BOOLEAN_VALUES.d.ts @@ -0,0 +1,2 @@ +declare const _default: readonly [string, string]; +export default _default; diff --git a/node_modules/sms77-client/dist/constants/STRING_BOOLEAN_VALUES.js b/node_modules/sms77-client/dist/constants/STRING_BOOLEAN_VALUES.js new file mode 100644 index 00000000..59eb4607 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/STRING_BOOLEAN_VALUES.js @@ -0,0 +1,6 @@ +"use strict"; +exports.__esModule = true; +exports["default"] = [ + true.toString(), + false.toString(), +]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/analytics.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/analytics.d.ts new file mode 100644 index 00000000..8f50b674 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/analytics.d.ts @@ -0,0 +1,3 @@ +export declare const ANALYTICS_GROUPS: readonly ["date", "label", "subaccount", "country"]; +export declare const ANALYTICS_LABELS: readonly ["all"]; +export declare const ANALYTICS_SUBACCOUNTS: readonly ["only_main", "all"]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/analytics.js b/node_modules/sms77-client/dist/constants/byEndpoint/analytics.js new file mode 100644 index 00000000..25eba496 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/analytics.js @@ -0,0 +1,6 @@ +"use strict"; +exports.__esModule = true; +exports.ANALYTICS_SUBACCOUNTS = exports.ANALYTICS_LABELS = exports.ANALYTICS_GROUPS = void 0; +exports.ANALYTICS_GROUPS = ['date', 'label', 'subaccount', 'country']; +exports.ANALYTICS_LABELS = ['all']; +exports.ANALYTICS_SUBACCOUNTS = ['only_main', 'all']; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsAction.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsAction.d.ts new file mode 100644 index 00000000..993d38d5 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsAction.d.ts @@ -0,0 +1,5 @@ +export declare enum ContactsAction { + Delete = "del", + Read = "read", + Write = "write" +} diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsAction.js b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsAction.js new file mode 100644 index 00000000..7317369f --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsAction.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.ContactsAction = void 0; +var ContactsAction; +(function (ContactsAction) { + ContactsAction["Delete"] = "del"; + ContactsAction["Read"] = "read"; + ContactsAction["Write"] = "write"; +})(ContactsAction = exports.ContactsAction || (exports.ContactsAction = {})); diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsResponseCode.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsResponseCode.d.ts new file mode 100644 index 00000000..77d5d2be --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsResponseCode.d.ts @@ -0,0 +1,4 @@ +export declare enum ContactsResponseCode { + Error = 151, + Success = 152 +} diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsResponseCode.js b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsResponseCode.js new file mode 100644 index 00000000..0fa3ac8e --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/contacts/ContactsResponseCode.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.ContactsResponseCode = void 0; +var ContactsResponseCode; +(function (ContactsResponseCode) { + ContactsResponseCode[ContactsResponseCode["Error"] = 151] = "Error"; + ContactsResponseCode[ContactsResponseCode["Success"] = 152] = "Success"; +})(ContactsResponseCode = exports.ContactsResponseCode || (exports.ContactsResponseCode = {})); diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/hooks/HooksAction.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/HooksAction.d.ts new file mode 100644 index 00000000..654c69e7 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/HooksAction.d.ts @@ -0,0 +1,5 @@ +export declare enum HooksAction { + Read = "read", + Subscribe = "subscribe", + Unsubscribe = "unsubscribe" +} diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/hooks/HooksAction.js b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/HooksAction.js new file mode 100644 index 00000000..59b14232 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/HooksAction.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.HooksAction = void 0; +var HooksAction; +(function (HooksAction) { + HooksAction["Read"] = "read"; + HooksAction["Subscribe"] = "subscribe"; + HooksAction["Unsubscribe"] = "unsubscribe"; +})(HooksAction = exports.HooksAction || (exports.HooksAction = {})); diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/hooks/index.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/index.d.ts new file mode 100644 index 00000000..aff2bf8c --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/index.d.ts @@ -0,0 +1,2 @@ +export declare const HOOK_EVENT_TYPES: readonly ["dlr", "voice_status", "sms_mo"]; +export declare const HOOK_REQUEST_METHODS: readonly ["GET", "POST"]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/hooks/index.js b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/index.js new file mode 100644 index 00000000..3b2f4a57 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/hooks/index.js @@ -0,0 +1,12 @@ +"use strict"; +exports.__esModule = true; +exports.HOOK_REQUEST_METHODS = exports.HOOK_EVENT_TYPES = void 0; +exports.HOOK_EVENT_TYPES = [ + 'dlr', + 'voice_status', + 'sms_mo', +]; +exports.HOOK_REQUEST_METHODS = [ + 'GET', + 'POST', +]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/journal.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/journal.d.ts new file mode 100644 index 00000000..b038f6bf --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/journal.d.ts @@ -0,0 +1 @@ +export declare const JOURNAL_TYPES: readonly ["outbound", "inbound", "voice", "replies"]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/journal.js b/node_modules/sms77-client/dist/constants/byEndpoint/journal.js new file mode 100644 index 00000000..e791c098 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/journal.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.JOURNAL_TYPES = void 0; +exports.JOURNAL_TYPES = [ + 'outbound', + 'inbound', + 'voice', + 'replies', +]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LOOKUP_GSM_CODES.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LOOKUP_GSM_CODES.d.ts new file mode 100644 index 00000000..59854042 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LOOKUP_GSM_CODES.d.ts @@ -0,0 +1 @@ +export declare const LOOKUP_GSM_CODES: readonly ["0", "1", "2", "3", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "10", "11", "12", "13", "14", "15", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "3a", "47", "48", "56", "2100", "2101", "2102", "2200", "2201", "2202", "2203", "2204", "2205", "2206", "2207", "2300", "2301", "2302", "2400", "2401", "2402", "2403", "2404", "6000", "6xxx", "6001", "6002", "6003", "6004", "6005", "6006", "8000", "8001", "8002", "8003", "8004", "8008", "800b", "8010", "a001", "a002", "cxxx", "c000", "c001", "c002", "c003", "c004", "c005", "c006", "c007", "c008", "c009", "c00a", "c00b", "c00d", "d000", "d001", "d002", "d004", "d00a", "d00c", "d010", "d020", "e010", "e040", "e082", "fc0a", "fc06", "fc07", "fc08", "ffdd", "ffde", "ffdf", "ffe0", "ffe1", "ffe5", "fff0", "ffff", "4xxx", "81xx", "82xx", "83xx", "84xx", "85xx", "86xx", "87xx", "88xx", "8axx", "89xx", "8cxx", "exxx", "e140"]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LOOKUP_GSM_CODES.js b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LOOKUP_GSM_CODES.js new file mode 100644 index 00000000..7652cc88 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LOOKUP_GSM_CODES.js @@ -0,0 +1,148 @@ +"use strict"; +exports.__esModule = true; +exports.LOOKUP_GSM_CODES = void 0; +exports.LOOKUP_GSM_CODES = [ + '0', + '1', + '2', + '3', + '5', + '6', + '7', + '8', + '9', + 'a', + 'b', + 'c', + 'd', + 'e', + 'f', + '10', + '11', + '12', + '13', + '14', + '15', + '17', + '18', + '19', + '1a', + '1b', + '1c', + '1d', + '1e', + '1f', + '20', + '21', + '22', + '23', + '24', + '25', + '26', + '27', + '28', + '2b', + '2c', + '2d', + '2e', + '2f', + '30', + '31', + '32', + '33', + '34', + '35', + '36', + '3a', + '47', + '48', + '56', + '2100', + '2101', + '2102', + '2200', + '2201', + '2202', + '2203', + '2204', + '2205', + '2206', + '2207', + '2300', + '2301', + '2302', + '2400', + '2401', + '2402', + '2403', + '2404', + '6000', + '6xxx', + '6001', + '6002', + '6003', + '6004', + '6005', + '6006', + '8000', + '8001', + '8002', + '8003', + '8004', + '8008', + '800b', + '8010', + 'a001', + 'a002', + 'cxxx', + 'c000', + 'c001', + 'c002', + 'c003', + 'c004', + 'c005', + 'c006', + 'c007', + 'c008', + 'c009', + 'c00a', + 'c00b', + 'c00d', + 'd000', + 'd001', + 'd002', + 'd004', + 'd00a', + 'd00c', + 'd010', + 'd020', + 'e010', + 'e040', + 'e082', + 'fc0a', + 'fc06', + 'fc07', + 'fc08', + 'ffdd', + 'ffde', + 'ffdf', + 'ffe0', + 'ffe1', + 'ffe5', + 'fff0', + 'ffff', + '4xxx', + '81xx', + '82xx', + '83xx', + '84xx', + '85xx', + '86xx', + '87xx', + '88xx', + '8axx', + '89xx', + '8cxx', + 'exxx', + 'e140', +]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LookupType.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LookupType.d.ts new file mode 100644 index 00000000..7c10ed9c --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LookupType.d.ts @@ -0,0 +1,6 @@ +export declare enum LookupType { + CallingNameDelivery = "cnam", + Format = "format", + HomeLocationRegister = "hlr", + MobileNumberPortability = "mnp" +} diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LookupType.js b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LookupType.js new file mode 100644 index 00000000..dac8d298 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/LookupType.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.LookupType = void 0; +var LookupType; +(function (LookupType) { + LookupType["CallingNameDelivery"] = "cnam"; + LookupType["Format"] = "format"; + LookupType["HomeLocationRegister"] = "hlr"; + LookupType["MobileNumberPortability"] = "mnp"; +})(LookupType = exports.LookupType || (exports.LookupType = {})); diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/NetworkType.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/NetworkType.d.ts new file mode 100644 index 00000000..410502cb --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/NetworkType.d.ts @@ -0,0 +1,14 @@ +export declare enum NetworkType { + FixedLine = "fixed_line", + FixedLineOrMobile = "fixed_line_or_mobile", + Mobile = "mobile", + Pager = "pager", + PersonalNumber = "personal_number", + PremiumRate = "premium_rate", + SharedCost = "shared_cost", + TollFree = "toll_free", + Uan = "uan", + Unkown = "unknown", + Voicemail = "voicemail", + Voip = "voip" +} diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/NetworkType.js b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/NetworkType.js new file mode 100644 index 00000000..3af9d502 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/NetworkType.js @@ -0,0 +1,18 @@ +"use strict"; +exports.__esModule = true; +exports.NetworkType = void 0; +var NetworkType; +(function (NetworkType) { + NetworkType["FixedLine"] = "fixed_line"; + NetworkType["FixedLineOrMobile"] = "fixed_line_or_mobile"; + NetworkType["Mobile"] = "mobile"; + NetworkType["Pager"] = "pager"; + NetworkType["PersonalNumber"] = "personal_number"; + NetworkType["PremiumRate"] = "premium_rate"; + NetworkType["SharedCost"] = "shared_cost"; + NetworkType["TollFree"] = "toll_free"; + NetworkType["Uan"] = "uan"; + NetworkType["Unkown"] = "unknown"; + NetworkType["Voicemail"] = "voicemail"; + NetworkType["Voip"] = "voip"; +})(NetworkType = exports.NetworkType || (exports.NetworkType = {})); diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/ProviderName.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/ProviderName.d.ts new file mode 100644 index 00000000..0b476e36 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/ProviderName.d.ts @@ -0,0 +1,8 @@ +export declare enum ProviderName { + D1 = "d1", + D2 = "d2", + O2 = "o2", + Eplus = "eplus", + NotAvailable = "N/A", + International = "int" +} diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/ProviderName.js b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/ProviderName.js new file mode 100644 index 00000000..d7de0225 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/ProviderName.js @@ -0,0 +1,12 @@ +"use strict"; +exports.__esModule = true; +exports.ProviderName = void 0; +var ProviderName; +(function (ProviderName) { + ProviderName["D1"] = "d1"; + ProviderName["D2"] = "d2"; + ProviderName["O2"] = "o2"; + ProviderName["Eplus"] = "eplus"; + ProviderName["NotAvailable"] = "N/A"; + ProviderName["International"] = "int"; +})(ProviderName = exports.ProviderName || (exports.ProviderName = {})); diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/index.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/index.d.ts new file mode 100644 index 00000000..b0dabf29 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/index.d.ts @@ -0,0 +1,11 @@ +import { ErrorCode } from '../../ErrorCode'; +export declare const API_RESPONSE_CODES: readonly [100, ErrorCode.InvalidRecipientNumber, ErrorCode.InsufficientCredits, ErrorCode.CarrierFailed]; +export declare const CNAM_API_CODES: readonly [ErrorCode.InvalidRecipientNumber, ErrorCode.CarrierFailed]; +export declare const HLR_LOOKUP_OUTCOME_CODES: readonly [1, 2, 0]; +export declare const HLR_PORTED_CODES: readonly ["unknown", "ported", "not_ported", "assumed_not_ported", "assumed_ported"]; +export declare const HLR_REACHABLE_CODES: readonly ["unknown", "reachable", "undeliverable", "absent", "bad_number", "blacklisted"]; +export declare const HLR_ROAMING_CODES: readonly ["not_roaming"]; +export declare const HLR_STATUS_MESSAGE_CODES: readonly ["error", "success"]; +export declare const HLR_VALID_NUMBER_CODES: readonly ["unknown", "valid", "not_valid"]; +export declare const ROAMING_STATUS_CODES: readonly ["not_roaming", "roaming", "unknown"]; +export declare const STRING_RESPONSE_CODES: readonly ["100", string, string, string]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/lookup/index.js b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/index.js new file mode 100644 index 00000000..cecc7137 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/lookup/index.js @@ -0,0 +1,40 @@ +"use strict"; +exports.__esModule = true; +exports.STRING_RESPONSE_CODES = exports.ROAMING_STATUS_CODES = exports.HLR_VALID_NUMBER_CODES = exports.HLR_STATUS_MESSAGE_CODES = exports.HLR_ROAMING_CODES = exports.HLR_REACHABLE_CODES = exports.HLR_PORTED_CODES = exports.HLR_LOOKUP_OUTCOME_CODES = exports.CNAM_API_CODES = exports.API_RESPONSE_CODES = void 0; +var ErrorCode_1 = require("../../ErrorCode"); +exports.API_RESPONSE_CODES = [ + 100, + ErrorCode_1.ErrorCode.InvalidRecipientNumber, + ErrorCode_1.ErrorCode.InsufficientCredits, + ErrorCode_1.ErrorCode.CarrierFailed, +]; +exports.CNAM_API_CODES = [ + ErrorCode_1.ErrorCode.InvalidRecipientNumber, + ErrorCode_1.ErrorCode.CarrierFailed +]; +exports.HLR_LOOKUP_OUTCOME_CODES = [1, 2, 0]; +exports.HLR_PORTED_CODES = [ + 'unknown', + 'ported', + 'not_ported', + 'assumed_not_ported', + 'assumed_ported' +]; +exports.HLR_REACHABLE_CODES = [ + 'unknown', + 'reachable', + 'undeliverable', + 'absent', + 'bad_number', + 'blacklisted' +]; +exports.HLR_ROAMING_CODES = ['not_roaming',]; +exports.HLR_STATUS_MESSAGE_CODES = ['error', 'success',]; +exports.HLR_VALID_NUMBER_CODES = ['unknown', 'valid', 'not_valid']; +exports.ROAMING_STATUS_CODES = ['not_roaming', 'roaming', 'unknown']; +exports.STRING_RESPONSE_CODES = [ + '100', + ErrorCode_1.ErrorCode.InvalidRecipientNumber.toString(), + ErrorCode_1.ErrorCode.InsufficientCredits.toString(), + ErrorCode_1.ErrorCode.CarrierFailed.toString(), +]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/pricing.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/pricing.d.ts new file mode 100644 index 00000000..73dc44af --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/pricing.d.ts @@ -0,0 +1 @@ +export declare const PRICING_FORMATS: readonly ["json", "csv"]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/pricing.js b/node_modules/sms77-client/dist/constants/byEndpoint/pricing.js new file mode 100644 index 00000000..52293886 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/pricing.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.PRICING_FORMATS = void 0; +exports.PRICING_FORMATS = ['json', 'csv',]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/sms.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/sms.d.ts new file mode 100644 index 00000000..e54b78dd --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/sms.d.ts @@ -0,0 +1,4 @@ +export declare const SMS_DEBUG_VALUES: readonly [string, string]; +export declare const SMS_ENCODINGS: readonly ["gsm", "ucs2"]; +export declare const SMS_SIGNATURE_POSITIONS: readonly ["append", "prepend"]; +export declare const SMS_TYPES: readonly ["direct", "economy"]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/sms.js b/node_modules/sms77-client/dist/constants/byEndpoint/sms.js new file mode 100644 index 00000000..a0607606 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/sms.js @@ -0,0 +1,20 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +exports.__esModule = true; +exports.SMS_TYPES = exports.SMS_SIGNATURE_POSITIONS = exports.SMS_ENCODINGS = exports.SMS_DEBUG_VALUES = void 0; +var STRING_BOOLEAN_VALUES_1 = __importDefault(require("../STRING_BOOLEAN_VALUES")); +exports.SMS_DEBUG_VALUES = STRING_BOOLEAN_VALUES_1["default"]; +exports.SMS_ENCODINGS = [ + 'gsm', + 'ucs2' +]; +exports.SMS_SIGNATURE_POSITIONS = [ + 'append', + 'prepend', +]; +exports.SMS_TYPES = [ + 'direct', + 'economy', +]; diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/status/StatusReportCode.d.ts b/node_modules/sms77-client/dist/constants/byEndpoint/status/StatusReportCode.d.ts new file mode 100644 index 00000000..8ce47698 --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/status/StatusReportCode.d.ts @@ -0,0 +1,11 @@ +export declare enum StatusReportCode { + Delivered = "DELIVERED", + NotDelivered = "NOTDELIVERED", + Buffered = "BUFFERED", + Transmitted = "TRANSMITTED", + Accepted = "ACCEPTED", + Expired = "EXPIRED", + Rejected = "REJECTED", + Failed = "FAILED", + Unknown = "UNKNOWN" +} diff --git a/node_modules/sms77-client/dist/constants/byEndpoint/status/StatusReportCode.js b/node_modules/sms77-client/dist/constants/byEndpoint/status/StatusReportCode.js new file mode 100644 index 00000000..e486ed9f --- /dev/null +++ b/node_modules/sms77-client/dist/constants/byEndpoint/status/StatusReportCode.js @@ -0,0 +1,15 @@ +"use strict"; +exports.__esModule = true; +exports.StatusReportCode = void 0; +var StatusReportCode; +(function (StatusReportCode) { + StatusReportCode["Delivered"] = "DELIVERED"; + StatusReportCode["NotDelivered"] = "NOTDELIVERED"; + StatusReportCode["Buffered"] = "BUFFERED"; + StatusReportCode["Transmitted"] = "TRANSMITTED"; + StatusReportCode["Accepted"] = "ACCEPTED"; + StatusReportCode["Expired"] = "EXPIRED"; + StatusReportCode["Rejected"] = "REJECTED"; + StatusReportCode["Failed"] = "FAILED"; + StatusReportCode["Unknown"] = "UNKNOWN"; +})(StatusReportCode = exports.StatusReportCode || (exports.StatusReportCode = {})); diff --git a/node_modules/sms77-client/dist/lib/TextTransformer.d.ts b/node_modules/sms77-client/dist/lib/TextTransformer.d.ts new file mode 100644 index 00000000..e705c6d8 --- /dev/null +++ b/node_modules/sms77-client/dist/lib/TextTransformer.d.ts @@ -0,0 +1,6 @@ +import { Contact, PricingResponseJson, StatusResponseJson } from '../types'; +export default class TextTransformer { + static contacts(csv: string): Contact[]; + static pricing(csv: string): PricingResponseJson; + static status(text: string): StatusResponseJson; +} diff --git a/node_modules/sms77-client/dist/lib/TextTransformer.js b/node_modules/sms77-client/dist/lib/TextTransformer.js new file mode 100644 index 00000000..06ce53f4 --- /dev/null +++ b/node_modules/sms77-client/dist/lib/TextTransformer.js @@ -0,0 +1,102 @@ +"use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +exports.__esModule = true; +var Util_1 = __importDefault(require("./Util")); +var TextTransformer = /** @class */ (function () { + function TextTransformer() { + } + TextTransformer.contacts = function (csv) { + return Util_1["default"].csvToArray(csv, false) + .map(function (_a) { + var _b = __read(_a, 3), id = _b[0], nick = _b[1], number = _b[2]; + return ({ + id: Number.parseInt(id), + nick: nick, + number: number + }); + }); + }; + TextTransformer.pricing = function (csv) { + var e_1, _a; + var networks = Util_1["default"].csvToArray(csv, true); + var countries = []; + var _loop_1 = function (network) { + var _a = __read(network, 9), countryCode = _a[0], countryName = _a[1], countryPrefix = _a[2], mcc = _a[3], mncs = _a[4], networkName = _a[5], price = _a[6], features = _a[7], comment = _a[8]; + var country = countries.find(function (c) { return c.countryCode === countryCode; }); + var hasCountry = undefined !== country; + var obj = country || { + countryCode: countryCode, + countryName: countryName, + countryPrefix: countryPrefix, + networks: [] + }; + obj.networks.push({ + comment: comment, + features: features.split(',').filter(function (s) { return '' !== s; }), + mcc: mcc, + mncs: mncs.split(','), + networkName: networkName.trim(), + price: Number.parseFloat(price) + }); + if (!hasCountry) { + countries.push(obj); + } + }; + try { + for (var networks_1 = __values(networks), networks_1_1 = networks_1.next(); !networks_1_1.done; networks_1_1 = networks_1.next()) { + var network = networks_1_1.value; + _loop_1(network); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (networks_1_1 && !networks_1_1.done && (_a = networks_1["return"])) _a.call(networks_1); + } + finally { if (e_1) throw e_1.error; } + } + return { + countCountries: countries.length, + countNetworks: networks.length, + countries: countries + }; + }; + TextTransformer.status = function (text) { + var _a = __read(Util_1["default"].splitByLine(text), 2), report = _a[0], timestamp = _a[1]; + return { + report: report, + timestamp: timestamp + }; + }; + return TextTransformer; +}()); +exports["default"] = TextTransformer; diff --git a/node_modules/sms77-client/dist/lib/Util.d.ts b/node_modules/sms77-client/dist/lib/Util.d.ts new file mode 100644 index 00000000..723d5fca --- /dev/null +++ b/node_modules/sms77-client/dist/lib/Util.d.ts @@ -0,0 +1,9 @@ +import { AddSignatureOpts } from '../types'; +export default class Util { + static addSignature({ position, signature, text }: AddSignatureOpts): string; + static toNumberedBool(value: any): any; + static splitByLine(str: string): string[]; + static isNumeric(val: any): boolean; + static isAlphaNumeric(str: string): boolean; + static csvToArray(csv: string, skipHeader: boolean): (string[])[]; +} diff --git a/node_modules/sms77-client/dist/lib/Util.js b/node_modules/sms77-client/dist/lib/Util.js new file mode 100644 index 00000000..b65c0edc --- /dev/null +++ b/node_modules/sms77-client/dist/lib/Util.js @@ -0,0 +1,45 @@ +"use strict"; +exports.__esModule = true; +var Util = /** @class */ (function () { + function Util() { + } + Util.addSignature = function (_a) { + var position = _a.position, signature = _a.signature, text = _a.text; + return 'append' === position + ? "" + signature + text : "" + text + signature; + }; + Util.toNumberedBool = function (value) { + return typeof value === 'boolean' + ? value + ? 1 + : 0 + : value; + }; + Util.splitByLine = function (str) { + return str.split(/[\r\n]+/); + }; + Util.isNumeric = function (val) { + return Number.isFinite(val) && !Number.isNaN(Number.parseFloat(val)); + }; + /* Thanks Michael @ https://stackoverflow.com/a/25352300/9737058 */ + Util.isAlphaNumeric = function (str) { + for (var i = 0; i < str.length; i++) { + var code = str.charCodeAt(i); + if (!(code > 47 && code < 58) && // numeric (0-9) + !(code > 64 && code < 91) && // upper alpha (A-Z) + !(code > 96 && code < 123)) { // lower alpha (a-z) + return false; + } + } + return true; + }; + Util.csvToArray = function (csv, skipHeader) { + var arr = Util.splitByLine(csv.trim().replace(/"/g, '')); + if (skipHeader) { + arr.shift(); + } + return arr.map(function (l) { return l.trim().split(';'); }); + }; + return Util; +}()); +exports["default"] = Util; diff --git a/node_modules/sms77-client/dist/types/analytics.d.ts b/node_modules/sms77-client/dist/types/analytics.d.ts new file mode 100644 index 00000000..75270d89 --- /dev/null +++ b/node_modules/sms77-client/dist/types/analytics.d.ts @@ -0,0 +1,34 @@ +import { ANALYTICS_GROUPS, ANALYTICS_LABELS, ANALYTICS_SUBACCOUNTS } from '../constants/byEndpoint/analytics'; +export declare type AnalyticBase = { + direct: number; + economy: number; + hlr: number; + inbound: number; + mnp: number; + usage_eur: number; + voice: number; +}; +export declare type AnalyticGroupByCountry = AnalyticBase & { + country: string; +}; +export declare type AnalyticGroupByDate = AnalyticBase & { + date: string; +}; +export declare type AnalyticGroupBySubaccount = AnalyticBase & { + account: string; +}; +export declare type AnalyticGroupByLabel = AnalyticBase & { + label: string; +}; +export declare type Analytic = AnalyticGroupByCountry | AnalyticGroupByDate | AnalyticGroupBySubaccount | AnalyticGroupByLabel; +export declare type AnalyticsGroupBy = typeof ANALYTICS_GROUPS[number]; +export declare type AnalyticsLabel = typeof ANALYTICS_LABELS[number] | string; +export declare type AnalyticsSubaccounts = typeof ANALYTICS_SUBACCOUNTS[number] | number; +export declare type AnalyticsParams = { + start?: string; + end?: string; + label?: AnalyticsLabel; + subaccounts?: AnalyticsSubaccounts; + group_by?: AnalyticsGroupBy; +}; +export declare type AnalyticsResponse = Analytic[]; diff --git a/node_modules/sms77-client/dist/types/contacts.d.ts b/node_modules/sms77-client/dist/types/contacts.d.ts new file mode 100644 index 00000000..f664146c --- /dev/null +++ b/node_modules/sms77-client/dist/types/contacts.d.ts @@ -0,0 +1,32 @@ +import { ContactsAction } from '../constants/byEndpoint/contacts/ContactsAction'; +export declare type Contact = { + email?: string; + id?: number; + ID?: string; + Name?: string; + number?: string; + Number?: string; + nick?: string; +}; +export declare type ContactsBaseParams = { + action: A; + json?: boolean; +}; +export declare type ContactsDelParams = ContactsBaseParams & { + id: number; +}; +export declare type ContactsReadParams = ContactsBaseParams & { + id?: number; +}; +export declare type ContactsWriteParams = ContactsBaseParams & { + email?: string; + empfaenger?: string; + id?: number; + nick?: string; +}; +export declare type ContactsParams = ContactsDelParams | ContactsReadParams | ContactsWriteParams; +export declare type ContactsWriteResponse = { + return: string; + id: string; +}; +export declare type ContactsResponse = Contact[] | string | number | ContactsWriteResponse; diff --git a/node_modules/sms77-client/dist/types/hooks.d.ts b/node_modules/sms77-client/dist/types/hooks.d.ts new file mode 100644 index 00000000..bc72b4cc --- /dev/null +++ b/node_modules/sms77-client/dist/types/hooks.d.ts @@ -0,0 +1,40 @@ +import { HooksAction } from '../constants/byEndpoint/hooks/HooksAction'; +import { HOOK_EVENT_TYPES, HOOK_REQUEST_METHODS } from '../constants/byEndpoint/hooks'; +declare type HooksBaseParams = { + action: A; +}; +export declare type HooksParams = HooksReadParams | HooksSubscribeParams | HooksUnsubscribeParams; +export declare type HooksReadParams = HooksBaseParams; +export declare type HookEventType = (typeof HOOK_EVENT_TYPES)[number]; +export declare type HookRequestMethod = (typeof HOOK_REQUEST_METHODS)[number]; +export declare type HooksSubscribeParams = HooksBaseParams & Omit & { + request_method?: HookRequestMethod; +}; +export declare type HooksUnsubscribeParams = HooksBaseParams & { + id: number; +}; +export declare type HooksResponse = HooksReadSuccessResponse | HooksReadResponse | HooksSubscribeSuccessResponse | HooksSubscribeErrorResponse | HooksUnsubscribeResponse; +declare type HooksReadResponse = { + success: B; +}; +export declare type Hook = { + created: string; + event_type: HookEventType; + id: string; + request_method: HookRequestMethod; + target_url: string; +}; +export declare type HooksReadSuccessResponse = HooksReadResponse & { + hooks: Hook[]; +}; +declare type HooksSubscribeResponse = { + success: B; +}; +export declare type HooksSubscribeSuccessResponse = HooksSubscribeResponse & { + id: number; +}; +export declare type HooksSubscribeErrorResponse = HooksSubscribeResponse; +export declare type HooksUnsubscribeResponse = { + success: boolean; +}; +export {}; diff --git a/node_modules/sms77-client/dist/types/index.d.ts b/node_modules/sms77-client/dist/types/index.d.ts new file mode 100644 index 00000000..ed47ca43 --- /dev/null +++ b/node_modules/sms77-client/dist/types/index.d.ts @@ -0,0 +1,13 @@ +export * from './analytics'; +export * from './contacts'; +export * from './hooks'; +export * from './journal'; +export * from './lookup'; +export * from './pricing'; +export * from './sms'; +export * from './status'; +export * from './validateForVoice'; +export * from './voice'; +export declare type AnyObject = { + [k: string]: any; +}; diff --git a/node_modules/sms77-client/dist/types/journal.d.ts b/node_modules/sms77-client/dist/types/journal.d.ts new file mode 100644 index 00000000..ff9af621 --- /dev/null +++ b/node_modules/sms77-client/dist/types/journal.d.ts @@ -0,0 +1,37 @@ +import { JOURNAL_TYPES } from '../constants/byEndpoint/journal'; +export declare type JournalType = (typeof JOURNAL_TYPES)[number]; +export declare type JournalParams = { + date_from?: string; + date_to?: string; + id?: number; + state?: string; + to?: string; + type: JournalType; +}; +export declare type JournalBase = { + from: string; + id: string; + price: string; + text: string; + timestamp: string; + to: string; +}; +export declare type JournalOutbound = JournalBase & { + connection: string; + dlr: string | null; + dlr_timestamp: string | null; + foreign_id: string | null; + label: string | null; + latency: string | null; + mccmnc: string | null; + type: string; +}; +export declare type JournalVoice = JournalBase & { + duration: string; + error: string; + status: string; + xml: boolean; +}; +export declare type JournalInbound = JournalBase; +export declare type Journal = JournalOutbound | JournalInbound | JournalVoice; +export declare type JournalResponse = Journal[]; diff --git a/node_modules/sms77-client/dist/types/lookup.d.ts b/node_modules/sms77-client/dist/types/lookup.d.ts new file mode 100644 index 00000000..961a0322 --- /dev/null +++ b/node_modules/sms77-client/dist/types/lookup.d.ts @@ -0,0 +1,95 @@ +import { NetworkType } from '../constants/byEndpoint/lookup/NetworkType'; +import { API_RESPONSE_CODES, CNAM_API_CODES, HLR_LOOKUP_OUTCOME_CODES, HLR_PORTED_CODES, HLR_REACHABLE_CODES, HLR_ROAMING_CODES, HLR_STATUS_MESSAGE_CODES, HLR_VALID_NUMBER_CODES, ROAMING_STATUS_CODES, STRING_RESPONSE_CODES } from '../constants/byEndpoint/lookup'; +import STRING_BOOLEAN_VALUES from '../constants/STRING_BOOLEAN_VALUES'; +import { ProviderName } from '../constants/byEndpoint/lookup/ProviderName'; +import { LookupType } from '../constants/byEndpoint/lookup/LookupType'; +import { LOOKUP_GSM_CODES } from '../constants/byEndpoint/lookup/LOOKUP_GSM_CODES'; +export declare type ApiResponseCode = typeof API_RESPONSE_CODES[number]; +export declare type StringResponseCode = typeof STRING_RESPONSE_CODES[number]; +export declare type StringBoolean = typeof STRING_BOOLEAN_VALUES[number]; +export declare type CNAMApiCodes = typeof CNAM_API_CODES[number]; +export declare type Carrier = { + country: string; + name: string; + network_code: string; + network_type: NetworkType; +}; +export declare type Format = { + national: string; + carrier: string; + country_code: string; + country_iso: string; + country_name: string; + international: string; + international_formatted: string; + network_type: NetworkType; + success: boolean; +}; +export declare type GsmCode = typeof LOOKUP_GSM_CODES[number]; +export declare type HLR = { + country_code: string; + country_code_iso3?: string; + country_name: string; + country_prefix: string; + current_carrier: Carrier; + gsm_code: GsmCode; + gsm_message: string; + international_format_number: string; + international_formatted: string; + lookup_outcome: typeof HLR_LOOKUP_OUTCOME_CODES[number] | boolean; + lookup_outcome_message: string; + national_format_number: string; + original_carrier: Carrier; + ported: typeof HLR_PORTED_CODES[number]; + reachable: typeof HLR_REACHABLE_CODES[number]; + roaming: typeof HLR_ROAMING_CODES[number] | Roaming; + status: boolean; + status_message: typeof HLR_STATUS_MESSAGE_CODES[number]; + valid_number: typeof HLR_VALID_NUMBER_CODES[number]; +}; +export declare type MNP = { + country: string; + international_formatted: string; + isPorted: boolean; + mccmnc: string; + national_format: string; + network: string; + number: string; +}; +export declare type Roaming = { + roaming_country_code: string; + roaming_network_code: string; + roaming_network_name: string; + status: typeof ROAMING_STATUS_CODES[number]; +}; +export declare type HLRApiResponse = string | HLR | number | { + code: string; +}; +export declare type FormatApiResponse = string | Format; +export declare type LookupResponse = string | number | FormatApiResponse | HLRApiResponse | CNAMApiResponse | MNPApiResponse; +export declare type MNPApiJsonResponse = { + code: ApiResponseCode; + mnp: MNP; + price: number; + success: boolean; +}; +export declare type MNPApiResponse = ProviderName | MNPApiJsonResponse; +declare type BaseLookupParams = { + type: T; + number: string; +}; +export declare type LookupCnamParams = BaseLookupParams; +export declare type LookupFormatParams = BaseLookupParams; +export declare type LookupHlrParams = BaseLookupParams; +export declare type LookupMnpParams = BaseLookupParams & { + json?: boolean; +}; +export declare type LookupParams = LookupCnamParams | LookupFormatParams | LookupHlrParams | LookupMnpParams; +export declare type CNAMApiJsonResponse = { + code: StringResponseCode; + name: string; + number: string; + success: StringBoolean; +}; +export declare type CNAMApiResponse = CNAMApiCodes | CNAMApiJsonResponse; +export {}; diff --git a/node_modules/sms77-client/dist/types/pricing.d.ts b/node_modules/sms77-client/dist/types/pricing.d.ts new file mode 100644 index 00000000..67249387 --- /dev/null +++ b/node_modules/sms77-client/dist/types/pricing.d.ts @@ -0,0 +1,26 @@ +import { PRICING_FORMATS } from '../constants/byEndpoint/pricing'; +export declare type CountryNetwork = { + comment: string; + features: string[]; + mcc: string; + mncs: string[]; + networkName: string; + price: number; +}; +export declare type PricingParams = { + country?: string; + format?: typeof PRICING_FORMATS[number]; +}; +export declare type CsvNetwork = CountryNetwork & Omit; +export declare type CountryPricing = { + countryCode: string; + countryName: string; + countryPrefix: string; + networks: CountryNetwork[]; +}; +export declare type PricingResponse = PricingResponseJson | string; +export declare type PricingResponseJson = { + countCountries: number; + countNetworks: number; + countries: CountryPricing[]; +}; diff --git a/node_modules/sms77-client/dist/types/sms.d.ts b/node_modules/sms77-client/dist/types/sms.d.ts new file mode 100644 index 00000000..e44638f5 --- /dev/null +++ b/node_modules/sms77-client/dist/types/sms.d.ts @@ -0,0 +1,52 @@ +import { SMS_DEBUG_VALUES, SMS_ENCODINGS, SMS_SIGNATURE_POSITIONS, SMS_TYPES } from '../constants/byEndpoint/sms'; +export declare type SmsResponse = number | string | SmsJsonResponse; +export declare type AddSignatureOpts = { + position: typeof SMS_SIGNATURE_POSITIONS[number]; + signature: string; + text: string; +}; +export declare type SmsMessage = { + encoding: typeof SMS_ENCODINGS[number]; + error: string | null; + error_text: string | null; + id: string | null; + messages?: string[]; + parts: number; + price: number; + recipient: string; + sender: string; + success: boolean; + text: string; +}; +export declare type SmsType = typeof SMS_TYPES[number]; +export declare type SmsParams = { + _extras?: { + signature?: string; + signaturePosition?: AddSignatureOpts['position']; + }; + debug?: boolean; + delay?: string; + details?: boolean; + flash?: boolean; + foreign_id?: string; + from?: string; + label?: string; + json?: boolean; + no_reload?: boolean; + text: string; + to: string; + unicode?: boolean; + udh?: string; + utf8?: boolean; + ttl?: number; + performance_tracking?: boolean; + return_msg_id?: boolean; +}; +export declare type SmsJsonResponse = { + debug: typeof SMS_DEBUG_VALUES[number]; + balance: number; + messages: SmsMessage[]; + sms_type: SmsType; + success: string; + total_price: number; +}; diff --git a/node_modules/sms77-client/dist/types/status.d.ts b/node_modules/sms77-client/dist/types/status.d.ts new file mode 100644 index 00000000..54046598 --- /dev/null +++ b/node_modules/sms77-client/dist/types/status.d.ts @@ -0,0 +1,10 @@ +import { StatusReportCode } from '../constants/byEndpoint/status/StatusReportCode'; +export declare type StatusResponseJson = { + report: StatusReportCode; + timestamp: string; +}; +export declare type StatusParams = { + _json?: boolean; + msg_id: string; +}; +export declare type StatusResponse = string | StatusResponseJson; diff --git a/node_modules/sms77-client/dist/types/validateForVoice.d.ts b/node_modules/sms77-client/dist/types/validateForVoice.d.ts new file mode 100644 index 00000000..4f8898db --- /dev/null +++ b/node_modules/sms77-client/dist/types/validateForVoice.d.ts @@ -0,0 +1,13 @@ +export declare type ValidateForVoiceResponse = { + code?: string; + error: string | null; + formatted_output?: string | null; + id?: number | null; + sender?: string; + success: boolean; + voice?: boolean; +}; +export declare type ValidateForVoiceParams = { + number: string; + callback?: string; +}; diff --git a/node_modules/sms77-client/dist/types/voice.d.ts b/node_modules/sms77-client/dist/types/voice.d.ts new file mode 100644 index 00000000..567f9b0c --- /dev/null +++ b/node_modules/sms77-client/dist/types/voice.d.ts @@ -0,0 +1,25 @@ +export declare type VoiceJsonMessage = { + error: string | null; + error_text: string | null; + id: string | null; + price: number; + recipient: string; + sender: string; + success: boolean; + text: string; +}; +export declare type VoiceJsonResponse = { + debug: boolean; + balance: number; + messages: VoiceJsonMessage[]; + success: string; + total_price: number; +}; +export declare type VoiceResponse = string | VoiceJsonResponse; +export declare type VoiceParams = { + json?: boolean; + text: string; + to: string; + xml?: boolean; + from?: string; +}; diff --git a/node_modules/sms77-client/dist/validators/request/sms.d.ts b/node_modules/sms77-client/dist/validators/request/sms.d.ts new file mode 100644 index 00000000..4e0c97ed --- /dev/null +++ b/node_modules/sms77-client/dist/validators/request/sms.d.ts @@ -0,0 +1,23 @@ +import { SmsParams } from '../../types'; +export declare const DEFAULT_PATTERN: RegExp; +export declare const DELAY_DATE_FORMAT = "yyyy-mm-dd hh:ii"; +export declare const DELAY_PATTERN: RegExp; +export declare const FOREIGN_ID_MAX_LENGTH = 64; +export declare const FOREIGN_ID_PATTERN: RegExp; +export declare const FROM_ALLOWED_SPECIAL_CHARS: string[]; +export declare const FROM_ALPHANUMERIC_MAX = 11; +export declare const FROM_NUMERIC_MAX = 16; +export declare const LABEL_MAX_LENGTH = 100; +export declare const LABEL_PATTERN: RegExp; +export declare const TEXT_MAX_LENGTH = 1520; +export declare const TTL_MAX: number; +export declare const TTL_MIN = 1; +declare const _default: (params: SmsParams) => void; +export default _default; +export declare const foreign_id: (foreignId: SmsParams['foreign_id']) => void; +export declare const from: (from: SmsParams['from']) => void; +export declare const label: (label: SmsParams['label']) => void; +export declare const text: (text: SmsParams['text']) => void; +export declare const to: (to: SmsParams['to']) => void; +export declare const ttl: (ttl: SmsParams['ttl']) => void; +export declare const delay: (delay: SmsParams['delay']) => void; diff --git a/node_modules/sms77-client/dist/validators/request/sms.js b/node_modules/sms77-client/dist/validators/request/sms.js new file mode 100644 index 00000000..10dae16b --- /dev/null +++ b/node_modules/sms77-client/dist/validators/request/sms.js @@ -0,0 +1,133 @@ +"use strict"; +var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +exports.__esModule = true; +exports.delay = exports.ttl = exports.to = exports.text = exports.label = exports.from = exports.foreign_id = exports.TTL_MIN = exports.TTL_MAX = exports.TEXT_MAX_LENGTH = exports.LABEL_PATTERN = exports.LABEL_MAX_LENGTH = exports.FROM_NUMERIC_MAX = exports.FROM_ALPHANUMERIC_MAX = exports.FROM_ALLOWED_SPECIAL_CHARS = exports.FOREIGN_ID_PATTERN = exports.FOREIGN_ID_MAX_LENGTH = exports.DELAY_PATTERN = exports.DELAY_DATE_FORMAT = exports.DEFAULT_PATTERN = void 0; +var isValid_1 = __importDefault(require("date-fns/isValid")); +var Util_1 = __importDefault(require("../../lib/Util")); +exports.DEFAULT_PATTERN = /[0-9a-z-@_.]/i; +exports.DELAY_DATE_FORMAT = 'yyyy-mm-dd hh:ii'; +exports.DELAY_PATTERN = /^([0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/; +exports.FOREIGN_ID_MAX_LENGTH = 64; +exports.FOREIGN_ID_PATTERN = exports.DEFAULT_PATTERN; +exports.FROM_ALLOWED_SPECIAL_CHARS = ['/', ' ', '.', '-', '@', '_', '!', '(', ')', '+', '$', ',', '&',]; +exports.FROM_ALPHANUMERIC_MAX = 11; +exports.FROM_NUMERIC_MAX = 16; +exports.LABEL_MAX_LENGTH = 100; +exports.LABEL_PATTERN = exports.DEFAULT_PATTERN; +exports.TEXT_MAX_LENGTH = 1520; +exports.TTL_MAX = Number.MAX_SAFE_INTEGER; +exports.TTL_MIN = 1; +exports["default"] = (function (params) { + exports.delay(params.delay); + exports.foreign_id(params.foreign_id); + exports.from(params.from); + exports.label(params.label); + exports.text(params.text); + exports.to(params.to); + exports.ttl(params.ttl); +}); +var foreign_id = function (foreignId) { + if (!foreignId) { + return; + } + if (foreignId.match(exports.FOREIGN_ID_PATTERN)) { + throw new Error("foreign_id must match the regex pattern " + exports.FOREIGN_ID_PATTERN + "."); + } + if (exports.FOREIGN_ID_MAX_LENGTH < foreignId.length) { + throw new Error("The foreign_id cannot be longer than " + exports.FOREIGN_ID_MAX_LENGTH + " characters."); + } +}; +exports.foreign_id = foreign_id; +var from = function (from) { + var e_1, _a; + if (!from || !from.length) { + return; + } + if (from.length > exports.FROM_NUMERIC_MAX) { + throw new Error('Argument \'from\' may not exceed $numericMax chars.'); + } + if (from.length > exports.FROM_ALPHANUMERIC_MAX && !Util_1["default"].isNumeric(from)) { + throw new Error('Argument \'from\' must be numeric. if > $alphaNumericMax chars.'); + } + try { + for (var FROM_ALLOWED_SPECIAL_CHARS_1 = __values(exports.FROM_ALLOWED_SPECIAL_CHARS), FROM_ALLOWED_SPECIAL_CHARS_1_1 = FROM_ALLOWED_SPECIAL_CHARS_1.next(); !FROM_ALLOWED_SPECIAL_CHARS_1_1.done; FROM_ALLOWED_SPECIAL_CHARS_1_1 = FROM_ALLOWED_SPECIAL_CHARS_1.next()) { + var char = FROM_ALLOWED_SPECIAL_CHARS_1_1.value; + from = from.replace(char, ''); + } + } + catch (e_1_1) { e_1 = { error: e_1_1 }; } + finally { + try { + if (FROM_ALLOWED_SPECIAL_CHARS_1_1 && !FROM_ALLOWED_SPECIAL_CHARS_1_1.done && (_a = FROM_ALLOWED_SPECIAL_CHARS_1["return"])) _a.call(FROM_ALLOWED_SPECIAL_CHARS_1); + } + finally { if (e_1) throw e_1.error; } + } + if (!Util_1["default"].isAlphaNumeric(from)) { + throw new Error('Argument \'from\' must be alphanumeric.'); + } +}; +exports.from = from; +var label = function (label) { + if (!label) { + return; + } + if (label.match(exports.LABEL_PATTERN)) { + throw new Error("label must match the regex pattern " + exports.LABEL_PATTERN + "."); + } + if (exports.LABEL_MAX_LENGTH < label.length) { + throw new Error("The label cannot be longer than " + exports.LABEL_MAX_LENGTH + " characters."); + } +}; +exports.label = label; +var text = function (text) { + if (!(text || '').length) { + throw new Error('You cannot send an empty message.'); + } + if (exports.TEXT_MAX_LENGTH < text.length) { + throw new Error("The text cannot be longer than " + exports.TEXT_MAX_LENGTH + " characters."); + } +}; +exports.text = text; +var to = function (to) { + if (!(to || '').length) { + throw new Error('You must specify at least one recipient.'); + } +}; +exports.to = to; +var ttl = function (ttl) { + if (!ttl) { + return; + } + if (ttl < exports.TTL_MIN) { + throw new Error("ttl must be at least " + exports.TTL_MIN + "."); + } + if (ttl > exports.TTL_MAX) { + throw new Error("ttl may not exceed " + exports.TTL_MAX + "."); + } +}; +exports.ttl = ttl; +var delay = function (delay) { + if (!delay) { + return; + } + if (isValid_1["default"](delay)) { + return; + } + if (!delay.match(exports.DELAY_PATTERN)) + throw new Error('Delay must be a valid UNIX timestamp or in the format of ' + + (exports.DELAY_DATE_FORMAT + ".")); +}; +exports.delay = delay; diff --git a/node_modules/sms77-client/package.json b/node_modules/sms77-client/package.json new file mode 100644 index 00000000..532949f8 --- /dev/null +++ b/node_modules/sms77-client/package.json @@ -0,0 +1,57 @@ +{ + "author": "sms77 e.K.", + "description": "API client for the Sms77.io SMS gateway", + "dependencies": { + "date-fns": "^2.16.1" + }, + "devDependencies": { + "@types/node": "^12.12.6", + "@types/node-fetch": "^2.5.8", + "@types/globalthis": "^1.0.1", + "@types/uuid": "^8.3.0", + "browserify": "^17.0.0", + "jasmine-fail-fast": "^2.0.1", + "jest": "^26.6.3", + "node-fetch": "^2.6.1", + "ts-jest": "^26.4.4", + "tsify": "^5.0.2", + "typescript": "^4.1.3", + "uuid": "^8.3.2" + }, + "files": [ + "dist/Sms77Client.umd.js", + "dist/constants/**/*", + "dist/lib/**/*", + "dist/validators/**/*", + "dist/*.d.ts", + "dist/types/*.d.ts" + ], + "keywords": [ + "2fa", + "sms", + "gateway", + "text2speech", + "hlr", + "cnam", + "mnp" + ], + "license": "MIT", + "main": "dist/Sms77Client.umd.js", + "name": "sms77-client", + "peerDependencies": { + "node-fetch": "^2.6.1" + }, + "repository": "https://github.com/sms77io/js-client", + "scripts": { + "build": "rm -rf dist && tsc && npm run bundle", + "bundle": "node build/build.js > dist/$npm_package_sms77io_bundleName.umd.js", + "prepublishOnly": "npm run build", + "test": "npx jest" + }, + "sms77io": { + "bundleName": "Sms77Client" + }, + "types": "dist/Sms77Client.d.ts", + "version": "2.5.1", + "homepage": "https://github.com/sms77io/js-client" +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..b947ded7 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,11276 @@ +{ + "name": "@sms77.io/github-action-voice", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "@sms77.io/github-action-voice", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@actions/core": "^1.2.6", + "node-fetch": "^2.6.1", + "sms77-client": "^2.5.1" + }, + "devDependencies": { + "@types/jest": "^26.0.20", + "@types/node": "^12.12.6", + "@types/node-fetch": "^2.5.8", + "jest": "^26.6.3", + "typescript": "^4.1.1-rc" + } + }, + "node_modules/@actions/core": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", + "integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==" + }, + "node_modules/@babel/code-frame": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", + "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.12.13" + } + }, + "node_modules/@babel/core": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.13.tgz", + "integrity": "sha512-BQKE9kXkPlXHPeqissfxo0lySWJcYdEP0hdtJOH/iJfDdhOCcgtNCjftCJg3qqauB4h+lz2N6ixM++b9DN1Tcw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@babel/generator": "^7.12.13", + "@babel/helper-module-transforms": "^7.12.13", + "@babel/helpers": "^7.12.13", + "@babel/parser": "^7.12.13", + "@babel/template": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.19", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@babel/generator": { + "version": "7.12.15", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.15.tgz", + "integrity": "sha512-6F2xHxBiFXWNSGb7vyCUTBF8RCLY66rS0zEPcP8t/nQyXjha5EuK4z7H5o7fWG8B4M7y6mqVWq1J+1PuwRhecQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.13", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + } + }, + "node_modules/@babel/generator/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.13.tgz", + "integrity": "sha512-TZvmPn0UOqmvi5G4vvw0qZTpVptGkB1GL61R6lKvrSdIxGm5Pky7Q3fpKiIkQCAtRCBUwB0PaThlx9vebCDSwA==", + "dev": true, + "dependencies": { + "@babel/helper-get-function-arity": "^7.12.13", + "@babel/template": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-get-function-arity": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.13.tgz", + "integrity": "sha512-DjEVzQNz5LICkzN0REdpD5prGoidvbdYk1BVgRUOINaWJP2t6avB27X1guXK1kXNrX0WMfsrm1A/ZBthYuIMQg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.13.tgz", + "integrity": "sha512-B+7nN0gIL8FZ8SvMcF+EPyB21KnCcZHQZFczCxbiNGV/O0rsrSBlWGLzmtBJ3GMjSVMIm4lpFhR+VdVBuIsUcQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.12.13.tgz", + "integrity": "sha512-NGmfvRp9Rqxy0uHSSVP+SRIW1q31a7Ji10cLBcqSDUngGentY4FRiHOFZFE1CLU5eiL0oE8reH7Tg1y99TDM/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.12.13.tgz", + "integrity": "sha512-acKF7EjqOR67ASIlDTupwkKM1eUisNAjaSduo5Cz+793ikfnpe7p4Q7B7EWU2PCoSTPWsQkR7hRUWEIZPiVLGA==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.12.13", + "@babel/helper-replace-supers": "^7.12.13", + "@babel/helper-simple-access": "^7.12.13", + "@babel/helper-split-export-declaration": "^7.12.13", + "@babel/helper-validator-identifier": "^7.12.11", + "@babel/template": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13", + "lodash": "^4.17.19" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.13.tgz", + "integrity": "sha512-BdWQhoVJkp6nVjB7nkFWcn43dkprYauqtk++Py2eaf/GRDFm5BxRqEIZCiHlZUGAVmtwKcsVL1dC68WmzeFmiA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz", + "integrity": "sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA==", + "dev": true + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.12.13.tgz", + "integrity": "sha512-pctAOIAMVStI2TMLhozPKbf5yTEXc0OJa0eENheb4w09SrgOWEs+P4nTOZYJQCqs8JlErGLDPDJTiGIp3ygbLg==", + "dev": true, + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.12.13", + "@babel/helper-optimise-call-expression": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.12.13.tgz", + "integrity": "sha512-0ski5dyYIHEfwpWGx5GPWhH35j342JaflmCeQmsPWcrOQDtCN6C1zKAVRFVbK53lPW2c9TsuLLSUDf0tIGJ5hA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.13.tgz", + "integrity": "sha512-tCJDltF83htUtXx5NLcaDqRmknv652ZWCHyoTETf1CXYJdPC7nohZohjUgieXhv0hTJdRf2FjDueFehdNucpzg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", + "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", + "dev": true + }, + "node_modules/@babel/helpers": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.12.13.tgz", + "integrity": "sha512-oohVzLRZ3GQEk4Cjhfs9YkJA4TdIDTObdBEZGrd6F/T0GPSnuV6l22eMcxlvcvzVIPH3VTtxbseudM1zIE+rPQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/highlight": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.12.13.tgz", + "integrity": "sha512-kocDQvIbgMKlWxXe9fof3TQ+gkIPOUSEYhJjqUjvKMez3krV7vbzYCDq39Oj11UAVK7JqPVGQPlgE85dPNlQww==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.12.11", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.12.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz", + "integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.13.tgz", + "integrity": "sha512-A81F9pDwyS7yM//KwbCSDqy3Uj4NMIurtplxphWxoYtNPov7cJsDkAFNNyVlIZ3jwGycVsurZ+LtOA8gZ376iQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.13.tgz", + "integrity": "sha512-/7xxiGA57xMo/P2GVvdEumr8ONhFOhfgq2ihK3h1e6THqzTAkHbkXgB0xI9yeTfIUoH3+oAeHhqm/I43OTbbjA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@babel/parser": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "node_modules/@babel/traverse": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.13.tgz", + "integrity": "sha512-3Zb4w7eE/OslI0fTp8c7b286/cQps3+vdLW3UcwC8VSJC6GbKn55aeVVu2QJNuCDoeKyptLOFrPq8WqZZBodyA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@babel/generator": "^7.12.13", + "@babel/helper-function-name": "^7.12.13", + "@babel/helper-split-export-declaration": "^7.12.13", + "@babel/parser": "^7.12.13", + "@babel/types": "^7.12.13", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.19" + } + }, + "node_modules/@babel/types": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.12.13.tgz", + "integrity": "sha512-oKrdZTld2im1z8bDwTOQvUbxKwE+854zc16qWZQlcTqMN00pWxHQ4ZeOq0yDMnisOpRykH2/5Qqcrk/OlbAjiQ==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.12.11", + "lodash": "^4.17.19", + "to-fast-properties": "^2.0.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "dev": true, + "dependencies": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + }, + "bin": { + "watch": "cli.js" + }, + "engines": { + "node": ">=0.1.95" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", + "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", + "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.6.2", + "jest-util": "^26.6.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/core": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", + "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/reporters": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.6.2", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-resolve-dependencies": "^26.6.3", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "jest-watcher": "^26.6.2", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/core/node_modules/jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", + "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/fake-timers": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", + "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/globals": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", + "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/types": "^26.6.2", + "expect": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/reporters": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", + "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^7.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "node-notifier": "^8.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", + "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-result": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", + "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", + "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/transform": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", + "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.6.2", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.6.2", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.2.tgz", + "integrity": "sha512-sruwd86RJHdsVf/AtBoijDmUqJp3B6hF/DGC23C+JaegnDHaZyewCjoVGTdg3J0uz3Zs7NnIT05OBOmML72lQw==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.1.12", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.12.tgz", + "integrity": "sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.2.tgz", + "integrity": "sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.0.tgz", + "integrity": "sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.11.0.tgz", + "integrity": "sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.3.0" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.4.tgz", + "integrity": "sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", + "integrity": "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "26.0.20", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.20.tgz", + "integrity": "sha512-9zi2Y+5USJRxd0FsahERhBwlcvFh6D2GLQnY2FH2BzK8J9s9omvNHIbvABwIluXa0fD8XVKMLTO0aOEuUfACAA==", + "dev": true, + "dependencies": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, + "node_modules/@types/node": { + "version": "12.20.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.1.tgz", + "integrity": "sha512-tCkE96/ZTO+cWbln2xfyvd6ngHLanvVlJ3e5BeirJ3BYI5GbAyubIrmV4JjjugDly5D9fHjOL5MNsqsCnqwW6g==", + "dev": true + }, + "node_modules/@types/node-fetch": { + "version": "2.5.8", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.8.tgz", + "integrity": "sha512-fbjI6ja0N5ZA8TV53RUqzsKNkl9fv8Oj3T7zxW7FGv1GSH7gwJaNF8dzCjrqKaxKeUpTz4yT1DaJFq/omNpGfw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, + "node_modules/@types/node-fetch/node_modules/form-data": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz", + "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "node_modules/@types/prettier": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.2.0.tgz", + "integrity": "sha512-O3SQC6+6AySHwrspYn2UvC6tjo6jCTMMmylxZUFhE1CulVu5l3AxU6ca9lrJDTQDVllF62LIxVSx5fuYL6LiZg==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz", + "integrity": "sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "15.0.13", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.13.tgz", + "integrity": "sha512-kQ5JNTrbDv3Rp5X2n/iUu37IJBDU2gsZ5R/g1/KHOOEc5IKfUFjXT6DENPGduh08I/pamwtEq4oul7gUqKTQDQ==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "20.2.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz", + "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==", + "dev": true + }, + "node_modules/abab": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", + "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", + "dev": true + }, + "node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", + "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", + "dev": true, + "dependencies": { + "type-fest": "^0.11.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true, + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", + "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", + "dev": true + }, + "node_modules/babel-jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", + "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "dev": true, + "dependencies": { + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz", + "integrity": "sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^4.0.0", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", + "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", + "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^26.6.2", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "node_modules/base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "dependencies": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "node_modules/cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "dependencies": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "dependencies": { + "rsvp": "^4.8.4" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "node_modules/chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "node_modules/cjs-module-lexer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", + "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", + "dev": true + }, + "node_modules/class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "node_modules/collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "dependencies": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.1" + } + }, + "node_modules/copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/date-fns": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.17.0.tgz", + "integrity": "sha512-ZEhqxUtEZeGgg9eHNSOAJ8O9xqSgiJdrL0lzSSfMF54x6KXWJiOH/xntSJ9YomJPrYH/p08t6gWjGWq1SDJlSA==", + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, + "node_modules/debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decimal.js": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.1.tgz", + "integrity": "sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==", + "dev": true + }, + "node_modules/decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/emittery": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", + "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=4.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/exec-sh": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz", + "integrity": "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==", + "dev": true + }, + "node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "dependencies": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "dependencies": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true, + "engines": [ + "node >=0.6.0" + ] + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", + "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "dependencies": { + "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "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/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", + "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "dev": true + }, + "node_modules/growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true, + "optional": true + }, + "node_modules/har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", + "dev": true, + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "dependencies": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", + "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", + "dev": true + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/import-local": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", + "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/ip-regex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", + "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-core-module": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz", + "integrity": "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-docker": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz", + "integrity": "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==", + "dev": true, + "optional": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz", + "integrity": "sha1-DFLlS8yjkbssSUsh6GJtczbG45c=", + "dev": true + }, + "node_modules/is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "optional": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", + "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", + "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-reports": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", + "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", + "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "import-local": "^3.0.2", + "jest-cli": "^26.6.3" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-changed-files": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", + "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "execa": "^4.0.0", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-cli": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", + "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.6.3", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "prompts": "^2.0.1", + "yargs": "^15.4.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-cli/node_modules/jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-docblock": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-each": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", + "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", + "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2", + "jsdom": "^16.4.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-node": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", + "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-haste-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", + "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "fsevents": "^2.1.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", + "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.6.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "dev": true, + "dependencies": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-mock": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", + "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", + "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", + "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.6.2", + "read-pkg-up": "^7.0.1", + "resolve": "^1.18.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", + "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runner": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", + "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.6.2", + "jest-leak-detector": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runner/node_modules/jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-runtime": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", + "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/globals": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^0.6.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.4.1" + }, + "bin": { + "jest-runtime": "bin/jest-runtime.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runtime/node_modules/jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-serializer": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", + "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", + "dev": true, + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.4" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", + "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", + "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", + "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", + "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.6.2", + "string-length": "^4.0.1" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "node_modules/jsdom": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.4.0.tgz", + "integrity": "sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "acorn": "^7.1.1", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.2.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.0", + "domexception": "^2.0.1", + "escodegen": "^1.14.1", + "html-encoding-sniffer": "^2.0.1", + "is-potential-custom-element-name": "^1.0.0", + "nwsapi": "^2.2.0", + "parse5": "5.1.1", + "request": "^2.88.2", + "request-promise-native": "^1.0.8", + "saxes": "^5.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^3.0.1", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0", + "ws": "^7.2.3", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true + }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/makeerror": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", + "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", + "dev": true, + "dependencies": { + "tmpl": "1.0.x" + } + }, + "node_modules/map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "dependencies": { + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "dependencies": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mime-db": { + "version": "1.45.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.45.0.tgz", + "integrity": "sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.28", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.28.tgz", + "integrity": "sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ==", + "dev": true, + "dependencies": { + "mime-db": "1.45.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node_modules/node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "dev": true + }, + "node_modules/node-modules-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", + "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/node-notifier": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.1.tgz", + "integrity": "sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA==", + "dev": true, + "optional": true, + "dependencies": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + } + }, + "node_modules/node-notifier/node_modules/semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "optional": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nwsapi": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", + "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", + "dev": true + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "dependencies": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "dependencies": { + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "dev": true + }, + "node_modules/pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", + "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==", + "dev": true, + "dependencies": { + "node-modules-regexp": "^1.0.0" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/prompts": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.0.tgz", + "integrity": "sha512-awZAKrk3vN6CroQukBL+R9051a4R3zCZBlJm/HBfrSZ8iTpYix3VX1vU4mveiLpiwmOJT4wokTF9m6HUk4KqWQ==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/react-is": { + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.1.tgz", + "integrity": "sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA==", + "dev": true + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "node_modules/repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "dev": true, + "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/request-promise-core": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", + "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", + "dev": true, + "dependencies": { + "lodash": "^4.17.19" + }, + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "request": "^2.34" + } + }, + "node_modules/request-promise-native": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz", + "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==", + "deprecated": "request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142", + "dev": true, + "dependencies": { + "request-promise-core": "1.1.4", + "stealthy-require": "^1.1.1", + "tough-cookie": "^2.3.3" + }, + "engines": { + "node": ">=0.12.0" + }, + "peerDependencies": { + "request": "^2.34" + } + }, + "node_modules/request-promise-native/node_modules/tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/request/node_modules/tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/request/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true, + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", + "dev": true, + "dependencies": { + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", + "dev": true + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true, + "engines": { + "node": "6.* || >= 7.*" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "dependencies": { + "ret": "~0.1.10" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "dev": true, + "dependencies": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "bin": { + "sane": "src/cli.js" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/sane/node_modules/anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "dependencies": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "node_modules/sane/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/sane/node_modules/execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true, + "optional": true + }, + "node_modules/signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sms77-client": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/sms77-client/-/sms77-client-2.5.1.tgz", + "integrity": "sha512-jL9P9qcjkaOA33ifapdXq7YB1A678RlC7VU8z4mrEYE9FpSl712/V/X5Je1zbh+bNp7xTvwCZhGtgQxD91N3Zg==", + "dependencies": { + "date-fns": "^2.16.1" + }, + "peerDependencies": { + "node-fetch": "^2.6.1" + } + }, + "node_modules/snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "dependencies": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "dependencies": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "dependencies": { + "kind-of": "^3.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "dev": true + }, + "node_modules/spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz", + "integrity": "sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==", + "dev": true + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "node_modules/sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "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/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "dependencies": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-length": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.1.tgz", + "integrity": "sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz", + "integrity": "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "dev": true + }, + "node_modules/tmpl": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", + "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "dependencies": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz", + "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==", + "dev": true, + "dependencies": { + "ip-regex": "^2.1.0", + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.0.2.tgz", + "integrity": "sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", + "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.5.tgz", + "integrity": "sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "dependencies": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "dependencies": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", + "dev": true + }, + "node_modules/use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz", + "integrity": "sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "dev": true, + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", + "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", + "dev": true, + "dependencies": { + "makeerror": "1.0.x" + } + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.4.0.tgz", + "integrity": "sha512-vwTUFf6V4zhcPkWp/4CQPr1TW9Ml6SF4lVyaIMBdJw5i6qUUJ1QWM4Z6YYVkfka0OUIzVo/0aNtGVGk256IKWw==", + "dev": true, + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^2.0.2", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.3.tgz", + "integrity": "sha512-hr6vCR76GsossIRsr8OLR9acVVm1jyfEWvhbNjtgPOrfvAlKzvyeg/P6r8RuDjRyrcQoPQT7K0DGEPc7Ae6jzA==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/y18n": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", + "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + } + }, + "dependencies": { + "@actions/core": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", + "integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==" + }, + "@babel/code-frame": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", + "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", + "dev": true, + "requires": { + "@babel/highlight": "^7.12.13" + } + }, + "@babel/core": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.13.tgz", + "integrity": "sha512-BQKE9kXkPlXHPeqissfxo0lySWJcYdEP0hdtJOH/iJfDdhOCcgtNCjftCJg3qqauB4h+lz2N6ixM++b9DN1Tcw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.13", + "@babel/generator": "^7.12.13", + "@babel/helper-module-transforms": "^7.12.13", + "@babel/helpers": "^7.12.13", + "@babel/parser": "^7.12.13", + "@babel/template": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.19", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.12.15", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.15.tgz", + "integrity": "sha512-6F2xHxBiFXWNSGb7vyCUTBF8RCLY66rS0zEPcP8t/nQyXjha5EuK4z7H5o7fWG8B4M7y6mqVWq1J+1PuwRhecQ==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "@babel/helper-function-name": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.13.tgz", + "integrity": "sha512-TZvmPn0UOqmvi5G4vvw0qZTpVptGkB1GL61R6lKvrSdIxGm5Pky7Q3fpKiIkQCAtRCBUwB0PaThlx9vebCDSwA==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.12.13", + "@babel/template": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.13.tgz", + "integrity": "sha512-DjEVzQNz5LICkzN0REdpD5prGoidvbdYk1BVgRUOINaWJP2t6avB27X1guXK1kXNrX0WMfsrm1A/ZBthYuIMQg==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.13.tgz", + "integrity": "sha512-B+7nN0gIL8FZ8SvMcF+EPyB21KnCcZHQZFczCxbiNGV/O0rsrSBlWGLzmtBJ3GMjSVMIm4lpFhR+VdVBuIsUcQ==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-module-imports": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.12.13.tgz", + "integrity": "sha512-NGmfvRp9Rqxy0uHSSVP+SRIW1q31a7Ji10cLBcqSDUngGentY4FRiHOFZFE1CLU5eiL0oE8reH7Tg1y99TDM/g==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-module-transforms": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.12.13.tgz", + "integrity": "sha512-acKF7EjqOR67ASIlDTupwkKM1eUisNAjaSduo5Cz+793ikfnpe7p4Q7B7EWU2PCoSTPWsQkR7hRUWEIZPiVLGA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.12.13", + "@babel/helper-replace-supers": "^7.12.13", + "@babel/helper-simple-access": "^7.12.13", + "@babel/helper-split-export-declaration": "^7.12.13", + "@babel/helper-validator-identifier": "^7.12.11", + "@babel/template": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13", + "lodash": "^4.17.19" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.13.tgz", + "integrity": "sha512-BdWQhoVJkp6nVjB7nkFWcn43dkprYauqtk++Py2eaf/GRDFm5BxRqEIZCiHlZUGAVmtwKcsVL1dC68WmzeFmiA==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.12.13.tgz", + "integrity": "sha512-C+10MXCXJLiR6IeG9+Wiejt9jmtFpxUc3MQqCmPY8hfCjyUGl9kT+B2okzEZrtykiwrc4dbCPdDoz0A/HQbDaA==", + "dev": true + }, + "@babel/helper-replace-supers": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.12.13.tgz", + "integrity": "sha512-pctAOIAMVStI2TMLhozPKbf5yTEXc0OJa0eENheb4w09SrgOWEs+P4nTOZYJQCqs8JlErGLDPDJTiGIp3ygbLg==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.12.13", + "@babel/helper-optimise-call-expression": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-simple-access": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.12.13.tgz", + "integrity": "sha512-0ski5dyYIHEfwpWGx5GPWhH35j342JaflmCeQmsPWcrOQDtCN6C1zKAVRFVbK53lPW2c9TsuLLSUDf0tIGJ5hA==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.13.tgz", + "integrity": "sha512-tCJDltF83htUtXx5NLcaDqRmknv652ZWCHyoTETf1CXYJdPC7nohZohjUgieXhv0hTJdRf2FjDueFehdNucpzg==", + "dev": true, + "requires": { + "@babel/types": "^7.12.13" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", + "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", + "dev": true + }, + "@babel/helpers": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.12.13.tgz", + "integrity": "sha512-oohVzLRZ3GQEk4Cjhfs9YkJA4TdIDTObdBEZGrd6F/T0GPSnuV6l22eMcxlvcvzVIPH3VTtxbseudM1zIE+rPQ==", + "dev": true, + "requires": { + "@babel/template": "^7.12.13", + "@babel/traverse": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "@babel/highlight": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.12.13.tgz", + "integrity": "sha512-kocDQvIbgMKlWxXe9fof3TQ+gkIPOUSEYhJjqUjvKMez3krV7vbzYCDq39Oj11UAVK7JqPVGQPlgE85dPNlQww==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.12.11", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "@babel/parser": { + "version": "7.12.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz", + "integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==", + "dev": true + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.13.tgz", + "integrity": "sha512-A81F9pDwyS7yM//KwbCSDqy3Uj4NMIurtplxphWxoYtNPov7cJsDkAFNNyVlIZ3jwGycVsurZ+LtOA8gZ376iQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/template": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.13.tgz", + "integrity": "sha512-/7xxiGA57xMo/P2GVvdEumr8ONhFOhfgq2ihK3h1e6THqzTAkHbkXgB0xI9yeTfIUoH3+oAeHhqm/I43OTbbjA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.13", + "@babel/parser": "^7.12.13", + "@babel/types": "^7.12.13" + } + }, + "@babel/traverse": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.13.tgz", + "integrity": "sha512-3Zb4w7eE/OslI0fTp8c7b286/cQps3+vdLW3UcwC8VSJC6GbKn55aeVVu2QJNuCDoeKyptLOFrPq8WqZZBodyA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.13", + "@babel/generator": "^7.12.13", + "@babel/helper-function-name": "^7.12.13", + "@babel/helper-split-export-declaration": "^7.12.13", + "@babel/parser": "^7.12.13", + "@babel/types": "^7.12.13", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.19" + } + }, + "@babel/types": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.12.13.tgz", + "integrity": "sha512-oKrdZTld2im1z8bDwTOQvUbxKwE+854zc16qWZQlcTqMN00pWxHQ4ZeOq0yDMnisOpRykH2/5Qqcrk/OlbAjiQ==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.12.11", + "lodash": "^4.17.19", + "to-fast-properties": "^2.0.0" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "dev": true, + "requires": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + } + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + } + }, + "@istanbuljs/schema": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", + "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "dev": true + }, + "@jest/console": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", + "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.6.2", + "jest-util": "^26.6.2", + "slash": "^3.0.0" + } + }, + "@jest/core": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", + "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/reporters": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.6.2", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-resolve-dependencies": "^26.6.3", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "jest-watcher": "^26.6.2", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + } + } + } + }, + "@jest/environment": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", + "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "dev": true, + "requires": { + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2" + } + }, + "@jest/fake-timers": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", + "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + } + }, + "@jest/globals": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", + "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "dev": true, + "requires": { + "@jest/environment": "^26.6.2", + "@jest/types": "^26.6.2", + "expect": "^26.6.2" + } + }, + "@jest/reporters": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", + "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "dev": true, + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "node-notifier": "^8.0.0", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^7.0.0" + } + }, + "@jest/source-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", + "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "dev": true, + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + } + }, + "@jest/test-result": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", + "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", + "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "dev": true, + "requires": { + "@jest/test-result": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3" + } + }, + "@jest/transform": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", + "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.6.2", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.6.2", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + } + }, + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + } + }, + "@sinonjs/commons": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.2.tgz", + "integrity": "sha512-sruwd86RJHdsVf/AtBoijDmUqJp3B6hF/DGC23C+JaegnDHaZyewCjoVGTdg3J0uz3Zs7NnIT05OBOmML72lQw==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@types/babel__core": { + "version": "7.1.12", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.12.tgz", + "integrity": "sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.2.tgz", + "integrity": "sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.0.tgz", + "integrity": "sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.11.0.tgz", + "integrity": "sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg==", + "dev": true, + "requires": { + "@babel/types": "^7.3.0" + } + }, + "@types/graceful-fs": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.4.tgz", + "integrity": "sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", + "integrity": "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "26.0.20", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.20.tgz", + "integrity": "sha512-9zi2Y+5USJRxd0FsahERhBwlcvFh6D2GLQnY2FH2BzK8J9s9omvNHIbvABwIluXa0fD8XVKMLTO0aOEuUfACAA==", + "dev": true, + "requires": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, + "@types/node": { + "version": "12.20.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.1.tgz", + "integrity": "sha512-tCkE96/ZTO+cWbln2xfyvd6ngHLanvVlJ3e5BeirJ3BYI5GbAyubIrmV4JjjugDly5D9fHjOL5MNsqsCnqwW6g==", + "dev": true + }, + "@types/node-fetch": { + "version": "2.5.8", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.8.tgz", + "integrity": "sha512-fbjI6ja0N5ZA8TV53RUqzsKNkl9fv8Oj3T7zxW7FGv1GSH7gwJaNF8dzCjrqKaxKeUpTz4yT1DaJFq/omNpGfw==", + "dev": true, + "requires": { + "@types/node": "*", + "form-data": "^3.0.0" + }, + "dependencies": { + "form-data": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz", + "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } + } + }, + "@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "@types/prettier": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.2.0.tgz", + "integrity": "sha512-O3SQC6+6AySHwrspYn2UvC6tjo6jCTMMmylxZUFhE1CulVu5l3AxU6ca9lrJDTQDVllF62LIxVSx5fuYL6LiZg==", + "dev": true + }, + "@types/stack-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.0.tgz", + "integrity": "sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw==", + "dev": true + }, + "@types/yargs": { + "version": "15.0.13", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.13.tgz", + "integrity": "sha512-kQ5JNTrbDv3Rp5X2n/iUu37IJBDU2gsZ5R/g1/KHOOEc5IKfUFjXT6DENPGduh08I/pamwtEq4oul7gUqKTQDQ==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "20.2.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz", + "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==", + "dev": true + }, + "abab": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", + "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", + "dev": true + }, + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "requires": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-escapes": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", + "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", + "dev": true, + "requires": { + "type-fest": "^0.11.0" + } + }, + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", + "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", + "dev": true + }, + "babel-jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", + "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "dev": true, + "requires": { + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + } + }, + "babel-plugin-istanbul": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz", + "integrity": "sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^4.0.0", + "test-exclude": "^6.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", + "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "dev": true, + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + } + }, + "babel-preset-jest": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", + "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^26.6.2", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + } + } + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "requires": { + "rsvp": "^4.8.4" + } + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "cjs-module-lexer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", + "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", + "dev": true + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + } + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "requires": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + } + }, + "date-fns": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.17.0.tgz", + "integrity": "sha512-ZEhqxUtEZeGgg9eHNSOAJ8O9xqSgiJdrL0lzSSfMF54x6KXWJiOH/xntSJ9YomJPrYH/p08t6gWjGWq1SDJlSA==" + }, + "debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "decimal.js": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.1.tgz", + "integrity": "sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==", + "dev": true + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true + }, + "diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true + }, + "domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "requires": { + "webidl-conversions": "^5.0.0" + }, + "dependencies": { + "webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true + } + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "emittery": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", + "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + }, + "escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "exec-sh": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz", + "integrity": "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==", + "dev": true + }, + "execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + } + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "fb-watchman": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", + "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", + "dev": true, + "requires": { + "bser": "2.1.1" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "requires": { + "map-cache": "^0.2.2" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true + }, + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "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" + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "graceful-fs": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", + "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "dev": true + }, + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true, + "optional": true + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "dev": true, + "requires": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "hosted-git-info": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", + "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", + "dev": true + }, + "html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "requires": { + "whatwg-encoding": "^1.0.5" + } + }, + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "import-local": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", + "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "ip-regex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", + "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", + "dev": true + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "is-core-module": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz", + "integrity": "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "is-docker": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz", + "integrity": "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==", + "dev": true, + "optional": true + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-potential-custom-element-name": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz", + "integrity": "sha1-DFLlS8yjkbssSUsh6GJtczbG45c=", + "dev": true + }, + "is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "optional": true, + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", + "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "dev": true, + "requires": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", + "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + } + }, + "istanbul-reports": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", + "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", + "dev": true, + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", + "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", + "dev": true, + "requires": { + "@jest/core": "^26.6.3", + "import-local": "^3.0.2", + "jest-cli": "^26.6.3" + } + }, + "jest-changed-files": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", + "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "execa": "^4.0.0", + "throat": "^5.0.0" + } + }, + "jest-cli": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", + "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", + "dev": true, + "requires": { + "@jest/core": "^26.6.3", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.6.3", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "prompts": "^2.0.1", + "yargs": "^15.4.1" + }, + "dependencies": { + "jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + } + } + } + }, + "jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + } + }, + "jest-docblock": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "dev": true, + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", + "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2" + } + }, + "jest-environment-jsdom": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", + "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", + "dev": true, + "requires": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2", + "jsdom": "^16.4.0" + } + }, + "jest-environment-node": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", + "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", + "dev": true, + "requires": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + } + }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true + }, + "jest-haste-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", + "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.1.2", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + } + }, + "jest-jasmine2": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", + "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.6.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2", + "throat": "^5.0.0" + } + }, + "jest-leak-detector": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "dev": true, + "requires": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + } + }, + "jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + } + }, + "jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + } + }, + "jest-mock": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", + "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/node": "*" + } + }, + "jest-pnp-resolver": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", + "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", + "dev": true, + "requires": {} + }, + "jest-regex-util": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", + "dev": true + }, + "jest-resolve": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", + "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.6.2", + "read-pkg-up": "^7.0.1", + "resolve": "^1.18.1", + "slash": "^3.0.0" + } + }, + "jest-resolve-dependencies": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", + "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.6.2" + } + }, + "jest-runner": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", + "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.6.2", + "jest-leak-detector": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + }, + "dependencies": { + "jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + } + } + } + }, + "jest-runtime": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", + "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", + "dev": true, + "requires": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/globals": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^0.6.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.4.1" + }, + "dependencies": { + "jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + } + } + } + }, + "jest-serializer": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", + "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", + "dev": true, + "requires": { + "@types/node": "*", + "graceful-fs": "^4.2.4" + } + }, + "jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "dependencies": { + "semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "jest-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", + "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + } + }, + "jest-validate": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", + "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.6.2" + }, + "dependencies": { + "camelcase": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", + "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "dev": true + } + } + }, + "jest-watcher": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", + "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", + "dev": true, + "requires": { + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.6.2", + "string-length": "^4.0.1" + } + }, + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "jsdom": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.4.0.tgz", + "integrity": "sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w==", + "dev": true, + "requires": { + "abab": "^2.0.3", + "acorn": "^7.1.1", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.2.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.0", + "domexception": "^2.0.1", + "escodegen": "^1.14.1", + "html-encoding-sniffer": "^2.0.1", + "is-potential-custom-element-name": "^1.0.0", + "nwsapi": "^2.2.0", + "parse5": "5.1.1", + "request": "^2.88.2", + "request-promise-native": "^1.0.8", + "saxes": "^5.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^3.0.1", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0", + "ws": "^7.2.3", + "xml-name-validator": "^3.0.0" + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "makeerror": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", + "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", + "dev": true, + "requires": { + "tmpl": "1.0.x" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "mime-db": { + "version": "1.45.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.45.0.tgz", + "integrity": "sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w==", + "dev": true + }, + "mime-types": { + "version": "2.1.28", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.28.tgz", + "integrity": "sha512-0TO2yJ5YHYr7M2zzT7gDU1tbwHxEUWBCLt0lscSNpcdAfFyJOVEpRYNS7EXVcTLNj/25QO8gulHC5JtTzSE2UQ==", + "dev": true, + "requires": { + "mime-db": "1.45.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "dev": true + }, + "node-modules-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", + "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", + "dev": true + }, + "node-notifier": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.1.tgz", + "integrity": "sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA==", + "dev": true, + "optional": true, + "requires": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + }, + "dependencies": { + "semver": { + "version": "7.3.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", + "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "dev": true, + "optional": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "nwsapi": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", + "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "dev": true + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true + }, + "pirates": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", + "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==", + "dev": true, + "requires": { + "node-modules-regexp": "^1.0.0" + } + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + } + }, + "prompts": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.0.tgz", + "integrity": "sha512-awZAKrk3vN6CroQukBL+R9051a4R3zCZBlJm/HBfrSZ8iTpYix3VX1vU4mveiLpiwmOJT4wokTF9m6HUk4KqWQ==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "react-is": { + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.1.tgz", + "integrity": "sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA==", + "dev": true + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "dev": true, + "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" + }, + "dependencies": { + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + } + } + }, + "request-promise-core": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", + "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", + "dev": true, + "requires": { + "lodash": "^4.17.19" + } + }, + "request-promise-native": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz", + "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==", + "dev": true, + "requires": { + "request-promise-core": "1.1.4", + "stealthy-require": "^1.1.1", + "tough-cookie": "^2.3.3" + }, + "dependencies": { + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + } + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", + "dev": true, + "requires": { + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "~0.1.10" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "dev": true, + "requires": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "requires": { + "xmlchars": "^2.2.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + } + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "sms77-client": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/sms77-client/-/sms77-client-2.5.1.tgz", + "integrity": "sha512-jL9P9qcjkaOA33ifapdXq7YB1A678RlC7VU8z4mrEYE9FpSl712/V/X5Je1zbh+bNp7xTvwCZhGtgQxD91N3Zg==", + "requires": { + "date-fns": "^2.16.1" + } + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "dev": true, + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "dev": true + }, + "spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz", + "integrity": "sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "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" + } + }, + "stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + } + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", + "dev": true + }, + "string-length": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.1.tgz", + "integrity": "sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw==", + "dev": true, + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "string-width": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + }, + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "supports-hyperlinks": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz", + "integrity": "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==", + "dev": true, + "requires": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + } + }, + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + } + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } + }, + "throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "dev": true + }, + "tmpl": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", + "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "tough-cookie": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz", + "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==", + "dev": true, + "requires": { + "ip-regex": "^2.1.0", + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "tr46": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.0.2.tgz", + "integrity": "sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg==", + "dev": true, + "requires": { + "punycode": "^2.1.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "type-fest": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", + "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", + "dev": true + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typescript": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.5.tgz", + "integrity": "sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==", + "dev": true + }, + "union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + } + } + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + } + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "optional": true + }, + "v8-to-istanbul": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz", + "integrity": "sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true + } + } + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "dev": true, + "requires": { + "browser-process-hrtime": "^1.0.0" + } + }, + "w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "requires": { + "xml-name-validator": "^3.0.0" + } + }, + "walker": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", + "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", + "dev": true, + "requires": { + "makeerror": "1.0.x" + } + }, + "webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true + }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "requires": { + "iconv-lite": "0.4.24" + } + }, + "whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "whatwg-url": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.4.0.tgz", + "integrity": "sha512-vwTUFf6V4zhcPkWp/4CQPr1TW9Ml6SF4lVyaIMBdJw5i6qUUJ1QWM4Z6YYVkfka0OUIzVo/0aNtGVGk256IKWw==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^2.0.2", + "webidl-conversions": "^6.1.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "ws": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.3.tgz", + "integrity": "sha512-hr6vCR76GsossIRsr8OLR9acVVm1jyfEWvhbNjtgPOrfvAlKzvyeg/P6r8RuDjRyrcQoPQT7K0DGEPc7Ae6jzA==", + "dev": true, + "requires": {} + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "y18n": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", + "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", + "dev": true + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..6cc14cad --- /dev/null +++ b/package.json @@ -0,0 +1,43 @@ +{ + "author": "André Matthies (https://sms77.io)", + "bugs": { + "email": "a.matthies@sms77.io", + "url": "https://github.com/sms77io/github-action-voice/issues" + }, + "dependencies": { + "@actions/core": "^1.2.6", + "node-fetch": "^2.6.1", + "sms77-client": "^2.5.1" + }, + "devDependencies": { + "@types/jest": "^26.0.20", + "@types/node": "^12.12.6", + "@types/node-fetch": "^2.5.8", + "jest": "^26.6.3", + "typescript": "^4.1.1-rc" + }, + "description": "Send SMS through GitHub Actions via the Sms77.io Gateway", + "homepage": "https://github.com/sms77io/github-action-voice", + "keywords": [ + "github", + "actions", + "sms77", + "voice", + "gateway", + "tts" + ], + "license": "MIT", + "main": "dist/index.js", + "name": "@sms77.io/github-action-voice", + "repository": { + "type": "git", + "url": "git+https://github.com/sms77io/github-action-voice.git" + }, + "scripts": { + "act": "act -s SMS77_API_KEY=$SMS77_API_KEY", + "build": "tsc", + "prepublishOnly": "npm run build", + "test": "npm run build && jest" + }, + "version": "1.0.0" +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..365a1626 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,40 @@ +import {debug, error, getInput, setFailed, setOutput} from '@actions/core'; +import Sms77Client, {VoiceParams} from 'sms77-client'; +import fetch from 'node-fetch'; +import {ok} from 'assert'; + +(global as any).fetch = fetch; + +type Type = Pick; + +const voiceParams: Type = { + from: undefined, + text: '', + to: '', +}; + +const send = async () => { + (<(keyof Type)[]>Object.keys(voiceParams)) + .forEach(k => (voiceParams[k]) = getInput(k)); + + debug('Sending Voice'); + + try { + const apiKey = getInput('apiKey') || process.env.SMS77_API_KEY; + ok(apiKey); + + const response = await (new Sms77Client(apiKey, 'github-action-voice')) + .voice(voiceParams) as string; + debug('API reached, Voice dispatch ended.'); + setOutput('API response', response); + + return response; + } catch (e) { + error(e.message); + setFailed(e.message); + } +}; + +export default send; + +send(); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..21e0c030 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "esModuleInterop": true, + "module": "CommonJS", + "moduleResolution": "node", + "outDir": "./dist", + "strict": true, + "target": "ES6" + }, + "exclude": [ + "./src/**/*.test.ts" + ], + "include": [ + "./src/**/*" + ] +} \ No newline at end of file