From f29e1f1d8dad0684c63f094a8acc8678ff6aa2ab Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Sat, 20 Jul 2024 22:03:39 -0500 Subject: [PATCH 01/54] changes --- package.json | 7 +- public/index.html | 57 +++-- public/material-theme.json | 425 +++++++++++++++++++++++++++++++++++++ public/style.css | 9 + rollup.config.js | 4 +- 5 files changed, 477 insertions(+), 25 deletions(-) create mode 100644 public/material-theme.json create mode 100644 public/style.css diff --git a/package.json b/package.json index 7008aa5..1057023 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,13 @@ { "name": "rollup-starter-app", + "main": "./src/main.js", + "version": "1.0.0", "devDependencies": { "@rollup/plugin-commonjs": "^17.0.0", + "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^11.1.0", "npm-run-all": "^4.1.5", - "rollup": "^2.36.2", + "rollup": "^2.79.1", "rollup-plugin-terser": "^7.0.2", "serve": "^11.3.2" }, @@ -17,4 +20,4 @@ "dev": "npm-run-all --parallel start watch", "start": "serve public" } -} +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index b2b646c..04fd2bf 100644 --- a/public/index.html +++ b/public/index.html @@ -1,21 +1,36 @@ - - - - - - rollup-starter-app - - - - -

rollup-starter-app

-

The time is ...

- - - \ No newline at end of file + + + + + + rollup-starter-app + + + + +

starter-app-now

+

The time is ...

+
This is a new div to include.
+ + + diff --git a/public/material-theme.json b/public/material-theme.json new file mode 100644 index 0000000..8786bc3 --- /dev/null +++ b/public/material-theme.json @@ -0,0 +1,425 @@ +{ + "description": "TYPE: CUSTOM\nMaterial Theme Builder export 2024-07-11 11:32:47", + "seed": "#00007C", + "coreColors": { + "primary": "#00007C" + }, + "extendedColors": [ + { + "name": "Custom Color", + "color": "#3F7EC7", + "description": "", + "harmonized": false + } + ], + "schemes": { + "light": { + "primary": "#565992", + "surfaceTint": "#565992", + "onPrimary": "#FFFFFF", + "primaryContainer": "#E0E0FF", + "onPrimaryContainer": "#11144B", + "secondary": "#5C5D72", + "onSecondary": "#FFFFFF", + "secondaryContainer": "#E1E0F9", + "onSecondaryContainer": "#191A2C", + "tertiary": "#78536B", + "onTertiary": "#FFFFFF", + "tertiaryContainer": "#FFD8EE", + "onTertiaryContainer": "#2E1126", + "error": "#BA1A1A", + "onError": "#FFFFFF", + "errorContainer": "#FFDAD6", + "onErrorContainer": "#410002", + "background": "#FBF8FF", + "onBackground": "#1B1B21", + "surface": "#FBF8FF", + "onSurface": "#1B1B21", + "surfaceVariant": "#E4E1EC", + "onSurfaceVariant": "#46464F", + "outline": "#777680", + "outlineVariant": "#C7C5D0", + "shadow": "#000000", + "scrim": "#000000", + "inverseSurface": "#303036", + "inverseOnSurface": "#F2EFF7", + "inversePrimary": "#BFC2FF", + "primaryFixed": "#E0E0FF", + "onPrimaryFixed": "#11144B", + "primaryFixedDim": "#BFC2FF", + "onPrimaryFixedVariant": "#3E4278", + "secondaryFixed": "#E1E0F9", + "onSecondaryFixed": "#191A2C", + "secondaryFixedDim": "#C5C4DD", + "onSecondaryFixedVariant": "#444559", + "tertiaryFixed": "#FFD8EE", + "onTertiaryFixed": "#2E1126", + "tertiaryFixedDim": "#E8B9D5", + "onTertiaryFixedVariant": "#5E3C52", + "surfaceDim": "#DCD9E0", + "surfaceBright": "#FBF8FF", + "surfaceContainerLowest": "#FFFFFF", + "surfaceContainerLow": "#F5F2FA", + "surfaceContainer": "#F0ECF4", + "surfaceContainerHigh": "#EAE7EF", + "surfaceContainerHighest": "#E4E1E9" + }, + "light-medium-contrast": { + "primary": "#3A3E74", + "surfaceTint": "#565992", + "onPrimary": "#FFFFFF", + "primaryContainer": "#6C70AA", + "onPrimaryContainer": "#FFFFFF", + "secondary": "#404155", + "onSecondary": "#FFFFFF", + "secondaryContainer": "#727389", + "onSecondaryContainer": "#FFFFFF", + "tertiary": "#5A384E", + "onTertiary": "#FFFFFF", + "tertiaryContainer": "#906981", + "onTertiaryContainer": "#FFFFFF", + "error": "#8C0009", + "onError": "#FFFFFF", + "errorContainer": "#DA342E", + "onErrorContainer": "#FFFFFF", + "background": "#FBF8FF", + "onBackground": "#1B1B21", + "surface": "#FBF8FF", + "onSurface": "#1B1B21", + "surfaceVariant": "#E4E1EC", + "onSurfaceVariant": "#42424B", + "outline": "#5F5E67", + "outlineVariant": "#7B7A83", + "shadow": "#000000", + "scrim": "#000000", + "inverseSurface": "#303036", + "inverseOnSurface": "#F2EFF7", + "inversePrimary": "#BFC2FF", + "primaryFixed": "#6C70AA", + "onPrimaryFixed": "#FFFFFF", + "primaryFixedDim": "#53578F", + "onPrimaryFixedVariant": "#FFFFFF", + "secondaryFixed": "#727389", + "onSecondaryFixed": "#FFFFFF", + "secondaryFixedDim": "#5A5A6F", + "onSecondaryFixedVariant": "#FFFFFF", + "tertiaryFixed": "#906981", + "onTertiaryFixed": "#FFFFFF", + "tertiaryFixedDim": "#765168", + "onTertiaryFixedVariant": "#FFFFFF", + "surfaceDim": "#DCD9E0", + "surfaceBright": "#FBF8FF", + "surfaceContainerLowest": "#FFFFFF", + "surfaceContainerLow": "#F5F2FA", + "surfaceContainer": "#F0ECF4", + "surfaceContainerHigh": "#EAE7EF", + "surfaceContainerHighest": "#E4E1E9" + }, + "light-high-contrast": { + "primary": "#181C51", + "surfaceTint": "#565992", + "onPrimary": "#FFFFFF", + "primaryContainer": "#3A3E74", + "onPrimaryContainer": "#FFFFFF", + "secondary": "#202133", + "onSecondary": "#FFFFFF", + "secondaryContainer": "#404155", + "onSecondaryContainer": "#FFFFFF", + "tertiary": "#36182D", + "onTertiary": "#FFFFFF", + "tertiaryContainer": "#5A384E", + "onTertiaryContainer": "#FFFFFF", + "error": "#4E0002", + "onError": "#FFFFFF", + "errorContainer": "#8C0009", + "onErrorContainer": "#FFFFFF", + "background": "#FBF8FF", + "onBackground": "#1B1B21", + "surface": "#FBF8FF", + "onSurface": "#000000", + "surfaceVariant": "#E4E1EC", + "onSurfaceVariant": "#23232B", + "outline": "#42424B", + "outlineVariant": "#42424B", + "shadow": "#000000", + "scrim": "#000000", + "inverseSurface": "#303036", + "inverseOnSurface": "#FFFFFF", + "inversePrimary": "#ECEAFF", + "primaryFixed": "#3A3E74", + "onPrimaryFixed": "#FFFFFF", + "primaryFixedDim": "#23275D", + "onPrimaryFixedVariant": "#FFFFFF", + "secondaryFixed": "#404155", + "onSecondaryFixed": "#FFFFFF", + "secondaryFixedDim": "#2A2B3E", + "onSecondaryFixedVariant": "#FFFFFF", + "tertiaryFixed": "#5A384E", + "onTertiaryFixed": "#FFFFFF", + "tertiaryFixedDim": "#412237", + "onTertiaryFixedVariant": "#FFFFFF", + "surfaceDim": "#DCD9E0", + "surfaceBright": "#FBF8FF", + "surfaceContainerLowest": "#FFFFFF", + "surfaceContainerLow": "#F5F2FA", + "surfaceContainer": "#F0ECF4", + "surfaceContainerHigh": "#EAE7EF", + "surfaceContainerHighest": "#E4E1E9" + }, + "dark": { + "primary": "#BFC2FF", + "surfaceTint": "#BFC2FF", + "onPrimary": "#272B60", + "primaryContainer": "#3E4278", + "onPrimaryContainer": "#E0E0FF", + "secondary": "#C5C4DD", + "onSecondary": "#2E2F42", + "secondaryContainer": "#444559", + "onSecondaryContainer": "#E1E0F9", + "tertiary": "#E8B9D5", + "onTertiary": "#46263B", + "tertiaryContainer": "#5E3C52", + "onTertiaryContainer": "#FFD8EE", + "error": "#FFB4AB", + "onError": "#690005", + "errorContainer": "#93000A", + "onErrorContainer": "#FFDAD6", + "background": "#131318", + "onBackground": "#E4E1E9", + "surface": "#131318", + "onSurface": "#E4E1E9", + "surfaceVariant": "#46464F", + "onSurfaceVariant": "#C7C5D0", + "outline": "#918F9A", + "outlineVariant": "#46464F", + "shadow": "#000000", + "scrim": "#000000", + "inverseSurface": "#E4E1E9", + "inverseOnSurface": "#303036", + "inversePrimary": "#565992", + "primaryFixed": "#E0E0FF", + "onPrimaryFixed": "#11144B", + "primaryFixedDim": "#BFC2FF", + "onPrimaryFixedVariant": "#3E4278", + "secondaryFixed": "#E1E0F9", + "onSecondaryFixed": "#191A2C", + "secondaryFixedDim": "#C5C4DD", + "onSecondaryFixedVariant": "#444559", + "tertiaryFixed": "#FFD8EE", + "onTertiaryFixed": "#2E1126", + "tertiaryFixedDim": "#E8B9D5", + "onTertiaryFixedVariant": "#5E3C52", + "surfaceDim": "#131318", + "surfaceBright": "#39393F", + "surfaceContainerLowest": "#0E0E13", + "surfaceContainerLow": "#1B1B21", + "surfaceContainer": "#1F1F25", + "surfaceContainerHigh": "#2A292F", + "surfaceContainerHighest": "#35343A" + }, + "dark-medium-contrast": { + "primary": "#C4C6FF", + "surfaceTint": "#BFC2FF", + "onPrimary": "#0B0E46", + "primaryContainer": "#888CC8", + "onPrimaryContainer": "#000000", + "secondary": "#C9C9E1", + "onSecondary": "#141526", + "secondaryContainer": "#8F8FA6", + "onSecondaryContainer": "#000000", + "tertiary": "#ECBDD9", + "onTertiary": "#280C20", + "tertiaryContainer": "#AE849E", + "onTertiaryContainer": "#000000", + "error": "#FFBAB1", + "onError": "#370001", + "errorContainer": "#FF5449", + "onErrorContainer": "#000000", + "background": "#131318", + "onBackground": "#E4E1E9", + "surface": "#131318", + "onSurface": "#FDF9FF", + "surfaceVariant": "#46464F", + "onSurfaceVariant": "#CCC9D4", + "outline": "#A3A2AC", + "outlineVariant": "#83828C", + "shadow": "#000000", + "scrim": "#000000", + "inverseSurface": "#E4E1E9", + "inverseOnSurface": "#2A292F", + "inversePrimary": "#3F437A", + "primaryFixed": "#E0E0FF", + "onPrimaryFixed": "#050741", + "primaryFixedDim": "#BFC2FF", + "onPrimaryFixedVariant": "#2D3167", + "secondaryFixed": "#E1E0F9", + "onSecondaryFixed": "#0E1021", + "secondaryFixedDim": "#C5C4DD", + "onSecondaryFixedVariant": "#343548", + "tertiaryFixed": "#FFD8EE", + "onTertiaryFixed": "#22071B", + "tertiaryFixedDim": "#E8B9D5", + "onTertiaryFixedVariant": "#4C2C41", + "surfaceDim": "#131318", + "surfaceBright": "#39393F", + "surfaceContainerLowest": "#0E0E13", + "surfaceContainerLow": "#1B1B21", + "surfaceContainer": "#1F1F25", + "surfaceContainerHigh": "#2A292F", + "surfaceContainerHighest": "#35343A" + }, + "dark-high-contrast": { + "primary": "#FDF9FF", + "surfaceTint": "#BFC2FF", + "onPrimary": "#000000", + "primaryContainer": "#C4C6FF", + "onPrimaryContainer": "#000000", + "secondary": "#FDF9FF", + "onSecondary": "#000000", + "secondaryContainer": "#C9C9E1", + "onSecondaryContainer": "#000000", + "tertiary": "#FFF9F9", + "onTertiary": "#000000", + "tertiaryContainer": "#ECBDD9", + "onTertiaryContainer": "#000000", + "error": "#FFF9F9", + "onError": "#000000", + "errorContainer": "#FFBAB1", + "onErrorContainer": "#000000", + "background": "#131318", + "onBackground": "#E4E1E9", + "surface": "#131318", + "onSurface": "#FFFFFF", + "surfaceVariant": "#46464F", + "onSurfaceVariant": "#FDF9FF", + "outline": "#CCC9D4", + "outlineVariant": "#CCC9D4", + "shadow": "#000000", + "scrim": "#000000", + "inverseSurface": "#E4E1E9", + "inverseOnSurface": "#000000", + "inversePrimary": "#20245A", + "primaryFixed": "#E5E4FF", + "onPrimaryFixed": "#000000", + "primaryFixedDim": "#C4C6FF", + "onPrimaryFixedVariant": "#0B0E46", + "secondaryFixed": "#E6E4FE", + "onSecondaryFixed": "#000000", + "secondaryFixedDim": "#C9C9E1", + "onSecondaryFixedVariant": "#141526", + "tertiaryFixed": "#FFDEF0", + "onTertiaryFixed": "#000000", + "tertiaryFixedDim": "#ECBDD9", + "onTertiaryFixedVariant": "#280C20", + "surfaceDim": "#131318", + "surfaceBright": "#39393F", + "surfaceContainerLowest": "#0E0E13", + "surfaceContainerLow": "#1B1B21", + "surfaceContainer": "#1F1F25", + "surfaceContainerHigh": "#2A292F", + "surfaceContainerHighest": "#35343A" + } + }, + "palettes": { + "primary": { + "0": "#000000", + "5": "#00004E", + "10": "#00006E", + "15": "#090D80", + "20": "#191F8A", + "25": "#272D94", + "30": "#333AA0", + "35": "#4046AC", + "40": "#4C53B9", + "50": "#656DD4", + "60": "#7F87F0", + "70": "#9DA3FF", + "80": "#BFC2FF", + "90": "#E0E0FF", + "95": "#F1EFFF", + "98": "#FBF8FF", + "99": "#FFFBFF", + "100": "#FFFFFF" + }, + "secondary": { + "0": "#000000", + "5": "#0D0F24", + "10": "#181A2F", + "15": "#22243A", + "20": "#2D2F45", + "25": "#383A51", + "30": "#44455D", + "35": "#4F5069", + "40": "#5B5C75", + "50": "#74758F", + "60": "#8E8EAA", + "70": "#A9A9C5", + "80": "#C4C4E1", + "90": "#E0E0FE", + "95": "#F1EFFF", + "98": "#FBF8FF", + "99": "#FFFBFF", + "100": "#FFFFFF" + }, + "tertiary": { + "0": "#000000", + "5": "#24041C", + "10": "#310F28", + "15": "#3D1932", + "20": "#49243D", + "25": "#552F49", + "30": "#623A55", + "35": "#6F4561", + "40": "#7C516D", + "50": "#976986", + "60": "#B382A1", + "70": "#D09CBC", + "80": "#EDB7D7", + "90": "#FFD8EE", + "95": "#FFECF4", + "98": "#FFF8F9", + "99": "#FFFBFF", + "100": "#FFFFFF" + }, + "neutral": { + "0": "#000000", + "5": "#111114", + "10": "#1B1B1F", + "15": "#262529", + "20": "#303034", + "25": "#3C3B3F", + "30": "#47464A", + "35": "#535256", + "40": "#5F5E62", + "50": "#78767A", + "60": "#929094", + "70": "#ADAAAF", + "80": "#C8C5CA", + "90": "#E5E1E6", + "95": "#F3EFF4", + "98": "#FCF8FD", + "99": "#FFFBFF", + "100": "#FFFFFF" + }, + "neutral-variant": { + "0": "#000000", + "5": "#101018", + "10": "#1B1B23", + "15": "#25252D", + "20": "#303038", + "25": "#3B3B43", + "30": "#46464F", + "35": "#52515B", + "40": "#5E5D67", + "50": "#777680", + "60": "#918F9A", + "70": "#ACAAB4", + "80": "#C7C5D0", + "90": "#E4E1EC", + "95": "#F2EFFA", + "98": "#FBF8FF", + "99": "#FFFBFF", + "100": "#FFFFFF" + } + } +} \ No newline at end of file diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..343e0bb --- /dev/null +++ b/public/style.css @@ -0,0 +1,9 @@ +html, +body { + min-height: 100%; + min-width: 100%; +} +div { + background-color: blue; + color: yellow; +} diff --git a/rollup.config.js b/rollup.config.js index ca3870c..eb2964c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -7,9 +7,9 @@ import { terser } from 'rollup-plugin-terser'; const production = !process.env.ROLLUP_WATCH; export default { - input: 'src/main.js', + input: './src/main.js', output: { - file: 'public/bundle.js', + file: './public/bundle.js', format: 'iife', // immediately-invoked function expression — suitable for From 174a8bb30f94cd8a40be7bbc8447043884b57345 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:01:41 -0500 Subject: [PATCH 03/54] sizes --- public/index.html | 86 +++++++++++++++++++++++++++++++++-------------- public/style.css | 58 ++++++++++++++++++++++++++++---- src/main.js | 6 ++-- src/sizes.js | 7 ++++ 4 files changed, 122 insertions(+), 35 deletions(-) create mode 100644 src/sizes.js diff --git a/public/index.html b/public/index.html index 1c857d3..315d5f1 100644 --- a/public/index.html +++ b/public/index.html @@ -1,36 +1,70 @@ - - - Faith Heating and Cooling Chicago + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + -

Our new app

-

The time is ...

-
This is another div to insert.
+
+

Our new app

+
+
+

The time is ...

+

header height is

+

main height is

+

footer height is

+
+ diff --git a/public/style.css b/public/style.css index 343e0bb..0d14b9d 100644 --- a/public/style.css +++ b/public/style.css @@ -1,9 +1,53 @@ -html, -body { - min-height: 100%; - min-width: 100%; +html{ + height:100vh; + min-height:100%; + display:block; + font-family:system-ui,roboto,sans-serif; + font-style:normal; + font-weight:400; + font-size:10px; + line-height:1.5; + overflow:hidden; + white-space:normal; + text-overflow:ellipsis; } -div { - background-color: blue; - color: yellow; +body{ + min-height:100%; + min-width:100%; + height:100%; + width:100%; + display:grid; + grid-template-rows:auto 1fr auto; + gap:1rem; + font-size:calc(2.1rem + 0.18vw); + overflow-x:hidden; + overflow-y:scroll; + background-color:#212123; + color:#f2f2f2; } +header{ + height:100%; + min-height:65px; + background:orange; + display:grid; + place-items:center; +} +main{ + height:100%; + background:pink; + display:grid; + place-items:center; +} +footer{ + height:100%; + min-height:65px; + background:green; + display:grid;; + place-items:center; +} +@media (prefers-color-scheme: light) { + body { + background-color:#f2f2f2; + color:#212123; + } +} \ No newline at end of file diff --git a/src/main.js b/src/main.js index f70bbf9..a83cf2f 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,9 @@ import update from './update.js'; - // even though Rollup is bundling all your files together, errors and // logs will still point to your original source modules console.log('if you have sourcemaps enabled in your devtools, click on main.js:5 -->'); -update(); \ No newline at end of file +update(); + +import sizes from './sizes.js'; +sizes(); \ No newline at end of file diff --git a/src/sizes.js b/src/sizes.js new file mode 100644 index 0000000..b70cc9f --- /dev/null +++ b/src/sizes.js @@ -0,0 +1,7 @@ +var headerHeight = document.querySelector("header"); + +var headerSize = document.getElementById("headerHeight"); + +export function sizes(){ + headerSize.innerHTML = headerHeight; +} From d37e03589c80776f656673e359e8c74c9b38b0ee Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:40:56 -0500 Subject: [PATCH 04/54] working with sizes --- public/index.html | 24 +++++++++++++++++------- public/style.css | 2 +- src/main.js | 4 ++-- src/sizes.js | 15 ++++++++++----- 4 files changed, 30 insertions(+), 15 deletions(-) diff --git a/public/index.html b/public/index.html index 315d5f1..046bbdb 100644 --- a/public/index.html +++ b/public/index.html @@ -50,21 +50,31 @@ -moz-text-size-adjust: 100%; text-size-adjust:100%; } - +
-

Our new app

+ + +
+
-

The time is ...

-

header height is

-

main height is

-

footer height is

+ + ... + + +
- + + + diff --git a/public/style.css b/public/style.css index 0d14b9d..a41474f 100644 --- a/public/style.css +++ b/public/style.css @@ -21,7 +21,7 @@ body{ gap:1rem; font-size:calc(2.1rem + 0.18vw); overflow-x:hidden; - overflow-y:scroll; + overflow-y:auto; background-color:#212123; color:#f2f2f2; } diff --git a/src/main.js b/src/main.js index a83cf2f..34f7306 100644 --- a/src/main.js +++ b/src/main.js @@ -1,9 +1,9 @@ import update from './update.js'; +import sizes from './sizes.js'; + // even though Rollup is bundling all your files together, errors and // logs will still point to your original source modules console.log('if you have sourcemaps enabled in your devtools, click on main.js:5 -->'); update(); - -import sizes from './sizes.js'; sizes(); \ No newline at end of file diff --git a/src/sizes.js b/src/sizes.js index b70cc9f..5d5222c 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -1,7 +1,12 @@ -var headerHeight = document.querySelector("header"); +var hh = document.querySelector("header").clientHeight; +var mh = document.querySelector("main").clientHeight; +var fh = document.querySelector("footer").clientHeight; +var headerSpan = document.querySelector("#headerHeight"); +var mainSpan = document.querySelector("#mainHeight"); +var footerSpan = document.querySelector("#footerHeight"); -var headerSize = document.getElementById("headerHeight"); - -export function sizes(){ - headerSize.innerHTML = headerHeight; +export default function sizes(){ + headerSpan.innerText = "hh: " + hh; + mainSpan.innerText = "mh: " + mh; + footerSpan.innerText = "fh: " + fh; } From 84bc0c34d0c31529f8d12eaba6cfd08648743d53 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:58:08 -0500 Subject: [PATCH 05/54] indx1 --- public/index.html | 13 ++++++++++--- src/main.js | 2 ++ src/sizes.js | 6 +++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/public/index.html b/public/index.html index 046bbdb..21675d0 100644 --- a/public/index.html +++ b/public/index.html @@ -1,8 +1,11 @@ + + WorkSite + @@ -15,9 +18,11 @@ - + - + + + @@ -27,7 +32,9 @@ - + + + diff --git a/src/main.js b/src/main.js index 34f7306..5713ec9 100644 --- a/src/main.js +++ b/src/main.js @@ -1,8 +1,10 @@ import update from './update.js'; + import sizes from './sizes.js'; // even though Rollup is bundling all your files together, errors and // logs will still point to your original source modules + console.log('if you have sourcemaps enabled in your devtools, click on main.js:5 -->'); update(); diff --git a/src/sizes.js b/src/sizes.js index 5d5222c..609744a 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -6,7 +6,7 @@ var mainSpan = document.querySelector("#mainHeight"); var footerSpan = document.querySelector("#footerHeight"); export default function sizes(){ - headerSpan.innerText = "hh: " + hh; - mainSpan.innerText = "mh: " + mh; - footerSpan.innerText = "fh: " + fh; + headerSpan.innerText = hh + "px"; + mainSpan.innerText = mh + "px"; + footerSpan.innerText = fh + "px"; } From 54553f7f61683cea9dcd8e94a929d4101f0255bc Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:02:05 -0500 Subject: [PATCH 06/54] updated all --- public/index.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/index.html b/public/index.html index 21675d0..82e5189 100644 --- a/public/index.html +++ b/public/index.html @@ -19,9 +19,7 @@ - - From f74d80bb24762b52ccac24f5d6be9f827817b352 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:05:03 -0500 Subject: [PATCH 07/54] ind2 --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 82e5189..5644a18 100644 --- a/public/index.html +++ b/public/index.html @@ -31,7 +31,7 @@ - + From 1218c22fa15378f39e6563c52f4e96a911647bb6 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:28:57 -0500 Subject: [PATCH 08/54] first commit --- public/index.html | 4 +--- src/sizes.js | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 5644a18..e753421 100644 --- a/public/index.html +++ b/public/index.html @@ -6,8 +6,7 @@ WorkSite - - + @@ -27,7 +26,6 @@ - diff --git a/src/sizes.js b/src/sizes.js index 609744a..b753373 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -1,3 +1,6 @@ +var docEl = document.documentElement; +var pageWidth = docEl.clientWidth; +alert(pageWidth var hh = document.querySelector("header").clientHeight; var mh = document.querySelector("main").clientHeight; var fh = document.querySelector("footer").clientHeight; @@ -9,4 +12,4 @@ export default function sizes(){ headerSpan.innerText = hh + "px"; mainSpan.innerText = mh + "px"; footerSpan.innerText = fh + "px"; -} +} \ No newline at end of file From 6d626ddd6f170897d58c576ba5bd5b518269d09d Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:32:24 -0500 Subject: [PATCH 09/54] updated with width --- src/sizes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sizes.js b/src/sizes.js index b753373..6743d1c 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -1,6 +1,6 @@ var docEl = document.documentElement; var pageWidth = docEl.clientWidth; -alert(pageWidth +alert(pageWidth); var hh = document.querySelector("header").clientHeight; var mh = document.querySelector("main").clientHeight; var fh = document.querySelector("footer").clientHeight; @@ -9,6 +9,7 @@ var mainSpan = document.querySelector("#mainHeight"); var footerSpan = document.querySelector("#footerHeight"); export default function sizes(){ + headerSpan.innerText = hh + "px"; mainSpan.innerText = mh + "px"; footerSpan.innerText = fh + "px"; From 3e9ea6d76ab7890ac78f5fe22d660ee12c3c0a7b Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:37:03 -0500 Subject: [PATCH 10/54] console log the width --- src/sizes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sizes.js b/src/sizes.js index 6743d1c..53e2a99 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -1,6 +1,6 @@ var docEl = document.documentElement; var pageWidth = docEl.clientWidth; -alert(pageWidth); +console.log(pageWidth); var hh = document.querySelector("header").clientHeight; var mh = document.querySelector("main").clientHeight; var fh = document.querySelector("footer").clientHeight; From d0f422059779e23d66e61ff57e69dfac2c163d30 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:39:42 -0500 Subject: [PATCH 11/54] wide --- src/sizes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sizes.js b/src/sizes.js index 53e2a99..b29d4d8 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -1,6 +1,6 @@ var docEl = document.documentElement; var pageWidth = docEl.clientWidth; -console.log(pageWidth); +console.log(pageWidth + "px wide"); var hh = document.querySelector("header").clientHeight; var mh = document.querySelector("main").clientHeight; var fh = document.querySelector("footer").clientHeight; From 517be323b9641cc60b59b84634ab9d767643ca7e Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:40:22 -0500 Subject: [PATCH 12/54] console logs the page width --- src/sizes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sizes.js b/src/sizes.js index b29d4d8..2546863 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -13,4 +13,5 @@ export default function sizes(){ headerSpan.innerText = hh + "px"; mainSpan.innerText = mh + "px"; footerSpan.innerText = fh + "px"; + } \ No newline at end of file From ca7938daf9f09640e569d79dc3db8ddf55ea4703 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:12:32 -0500 Subject: [PATCH 13/54] new header --- public/index.html | 27 +++++++++--- public/style.css | 105 +++++++++++++++++++++++++++------------------- 2 files changed, 82 insertions(+), 50 deletions(-) diff --git a/public/index.html b/public/index.html index e753421..462d052 100644 --- a/public/index.html +++ b/public/index.html @@ -43,6 +43,8 @@ + + + + diff --git a/public/style.css b/public/style.css index 930c1ab..3cbd8dc 100644 --- a/public/style.css +++ b/public/style.css @@ -33,6 +33,7 @@ body { 'wght' 400, 'GRAD' 0, 'opsz' 24 +} header { height: 100%; min-height: 65px; From 3a176d77061d4c131328fb0962c5f42caa97ea8c Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:30:03 -0500 Subject: [PATCH 15/54] grid header --- public/index.html | 6 +++--- public/style.css | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 19de530..abab6c9 100644 --- a/public/index.html +++ b/public/index.html @@ -59,7 +59,7 @@ - + @@ -79,10 +79,10 @@

LOGO

- + ... - +
diff --git a/public/style.css b/public/style.css index 3cbd8dc..1767cff 100644 --- a/public/style.css +++ b/public/style.css @@ -51,9 +51,16 @@ main { height: 100%; background: lightblue; color: black; +} +main .main-wrapper{ + height:100%; + width:100%; display: grid; place-items: center; } +header h1{ + font-size:calc(2.4rem + 0.18vw) +} footer { height: 100%; min-height: 65px; @@ -62,6 +69,12 @@ footer { display: grid; place-items: center; } +footer .footer-wrapper{ + height:100%; + width:100%; + display: grid; + place-items: center; +} @media (prefers-color-scheme: light) { body { From 47acfe310308292d8d488b6a6653dfa93414795d Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:33:43 -0500 Subject: [PATCH 16/54] fontsize h1 --- public/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index 1767cff..34d8593 100644 --- a/public/style.css +++ b/public/style.css @@ -58,8 +58,8 @@ main .main-wrapper{ display: grid; place-items: center; } -header h1{ - font-size:calc(2.4rem + 0.18vw) +header .main-wrapper h1{ + font-size:calc(2rem + 0.18vw); } footer { height: 100%; From 77d02581e0ae8e5a5293b89238eef715effcfaa7 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:38:12 -0500 Subject: [PATCH 17/54] styles update --- public/style.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public/style.css b/public/style.css index 34d8593..a8859f6 100644 --- a/public/style.css +++ b/public/style.css @@ -23,7 +23,7 @@ body { gap: 1rem; font-size: calc(2.1rem + 0.18vw); overflow-x: hidden; - overflow-y: scroll; + overflow-y: auto; background-color: #212123; color: #f2f2f2; } @@ -37,6 +37,7 @@ body { header { height: 100%; min-height: 65px; + max-height: 65px; background: pink; color: black; } @@ -47,6 +48,9 @@ header .header-wrapper{ place-items: center; grid-template-columns: auto 1fr auto; } +header .header-wrapper h1{ + font-size:calc(2rem + 0.18vw); +} main { height: 100%; background: lightblue; @@ -58,9 +62,6 @@ main .main-wrapper{ display: grid; place-items: center; } -header .main-wrapper h1{ - font-size:calc(2rem + 0.18vw); -} footer { height: 100%; min-height: 65px; From fc5d1ee9b280d415306b4f01e38fd8428d72e534 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:39:00 -0500 Subject: [PATCH 18/54] h1 changed --- public/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/style.css b/public/style.css index a8859f6..275613b 100644 --- a/public/style.css +++ b/public/style.css @@ -21,7 +21,7 @@ body { grid-template-rows: auto calc(100dvh - 65px - 2rem) auto; grid-template-rows: auto 1fr auto; gap: 1rem; - font-size: calc(2.1rem + 0.18vw); + font-size: calc(2.8rem + 0.18vw); overflow-x: hidden; overflow-y: auto; background-color: #212123; From 908edbb0fe82e6d99d082252447dec613a87ae2e Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:41:34 -0500 Subject: [PATCH 19/54] h1 changed --- public/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index 275613b..99ed508 100644 --- a/public/style.css +++ b/public/style.css @@ -21,7 +21,7 @@ body { grid-template-rows: auto calc(100dvh - 65px - 2rem) auto; grid-template-rows: auto 1fr auto; gap: 1rem; - font-size: calc(2.8rem + 0.18vw); + font-size: calc(2.1rem + 0.18vw); overflow-x: hidden; overflow-y: auto; background-color: #212123; @@ -49,7 +49,7 @@ header .header-wrapper{ grid-template-columns: auto 1fr auto; } header .header-wrapper h1{ - font-size:calc(2rem + 0.18vw); + font-size:calc(2.4rem + 0.18vw); } main { height: 100%; From 75cd1cb5d973a4cee5ea2da773d0bae884834517 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:51:57 -0500 Subject: [PATCH 20/54] header wrapper bg --- public/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/public/style.css b/public/style.css index 99ed508..36b55eb 100644 --- a/public/style.css +++ b/public/style.css @@ -47,6 +47,7 @@ header .header-wrapper{ display: grid; place-items: center; grid-template-columns: auto 1fr auto; + background:pink; } header .header-wrapper h1{ font-size:calc(2.4rem + 0.18vw); From 10f893710d49bc6fcae8510a076fcd26824142c6 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:18:00 -0500 Subject: [PATCH 21/54] header wrapper bg --- public/style.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/style.css b/public/style.css index 36b55eb..2eb9335 100644 --- a/public/style.css +++ b/public/style.css @@ -40,14 +40,14 @@ header { max-height: 65px; background: pink; color: black; + padding:0 5px; } header .header-wrapper{ height:100%; - width:100%; display: grid; place-items: center; grid-template-columns: auto 1fr auto; - background:pink; + background:rgb(177, 176, 176); } header .header-wrapper h1{ font-size:calc(2.4rem + 0.18vw); @@ -56,26 +56,26 @@ main { height: 100%; background: lightblue; color: black; + padding:0 5px; } main .main-wrapper{ height:100%; - width:100%; display: grid; place-items: center; + background:rgb(119, 166, 182); } footer { height: 100%; min-height: 65px; background: lightgreen; color: black; - display: grid; - place-items: center; + padding: 0 5px; } footer .footer-wrapper{ height:100%; - width:100%; display: grid; place-items: center; + background:rgb(137, 180, 137); } @media (prefers-color-scheme: light) { From a2e865357dbeb172736d6302a9474b65ebcbae57 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:25:41 -0500 Subject: [PATCH 22/54] brders --- public/style.css | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/public/style.css b/public/style.css index 2eb9335..27fd0c3 100644 --- a/public/style.css +++ b/public/style.css @@ -40,14 +40,16 @@ header { max-height: 65px; background: pink; color: black; - padding:0 5px; } header .header-wrapper{ - height:100%; + margin:auto; + height:calc(100% - 2px); + width:calc(100% - 2px); display: grid; place-items: center; grid-template-columns: auto 1fr auto; background:rgb(177, 176, 176); + border:1px solid white; } header .header-wrapper h1{ font-size:calc(2.4rem + 0.18vw); @@ -56,26 +58,31 @@ main { height: 100%; background: lightblue; color: black; - padding:0 5px; } main .main-wrapper{ - height:100%; + margin:auto; + height:calc(100% - 2px); + width:calc(100% - px); display: grid; place-items: center; background:rgb(119, 166, 182); + border:1px solid white; + } footer { height: 100%; min-height: 65px; background: lightgreen; color: black; - padding: 0 5px; } footer .footer-wrapper{ - height:100%; + margin:auto; + height:calc(100% - 2px); + width:calc(100% - 2px); display: grid; place-items: center; background:rgb(137, 180, 137); + border:1px solid white; } @media (prefers-color-scheme: light) { From e4f67e7687809f41ebee886091d50c7c95c793e1 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:27:57 -0500 Subject: [PATCH 23/54] transparencies --- public/style.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/style.css b/public/style.css index 27fd0c3..2fd62f3 100644 --- a/public/style.css +++ b/public/style.css @@ -48,7 +48,7 @@ header .header-wrapper{ display: grid; place-items: center; grid-template-columns: auto 1fr auto; - background:rgb(177, 176, 176); + background:rgba(177, 176, 176, 0.76); border:1px solid white; } header .header-wrapper h1{ @@ -65,7 +65,7 @@ main .main-wrapper{ width:calc(100% - px); display: grid; place-items: center; - background:rgb(119, 166, 182); + background:rgba(119, 166, 182, 0.76); border:1px solid white; } @@ -81,7 +81,7 @@ footer .footer-wrapper{ width:calc(100% - 2px); display: grid; place-items: center; - background:rgb(137, 180, 137); + background:rgba(137, 180, 137, 0.76); border:1px solid white; } From 303e82d6189646f023814016b877e69aea904db1 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:33:59 -0500 Subject: [PATCH 24/54] max h1 --- public/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/public/style.css b/public/style.css index 2fd62f3..9eaf8d5 100644 --- a/public/style.css +++ b/public/style.css @@ -53,6 +53,7 @@ header .header-wrapper{ } header .header-wrapper h1{ font-size:calc(2.4rem + 0.18vw); + max-height: 3rem; } main { height: 100%; From aa82be4e0de0b0acd3d8178a1e41199a3b3965b4 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:34:37 -0500 Subject: [PATCH 25/54] reset --- public/style.css | 1 - 1 file changed, 1 deletion(-) diff --git a/public/style.css b/public/style.css index 9eaf8d5..2fd62f3 100644 --- a/public/style.css +++ b/public/style.css @@ -53,7 +53,6 @@ header .header-wrapper{ } header .header-wrapper h1{ font-size:calc(2.4rem + 0.18vw); - max-height: 3rem; } main { height: 100%; From 690996ad844dba295879f401132e168a2bb2b75e Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 05:29:50 -0500 Subject: [PATCH 26/54] form --- public/index.html | 38 ++++++++++++++++++++++++++++++++++++++ public/style.css | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 70 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index abab6c9..16d318a 100644 --- a/public/index.html +++ b/public/index.html @@ -84,6 +84,44 @@

LOGO

+
+
+ + +
+ +
+ + +
+ +
+ + diff --git a/public/style.css b/public/style.css index 2fd62f3..1dfd1de 100644 --- a/public/style.css +++ b/public/style.css @@ -10,6 +10,13 @@ html { overflow: hidden; white-space: normal; text-overflow: ellipsis; + text-wrap:balance; + -webkit-overscroll-behavior:contain; + overscroll-behavior: contain; + overflow-wrap: break-word; + accent-color: auto; + scroll-behavior: smooth; + scrollbar-width: thin; } body { min-height: 100%; @@ -51,8 +58,32 @@ header .header-wrapper{ background:rgba(177, 176, 176, 0.76); border:1px solid white; } +header .header-wrapper nav{ + margin: 0 4px; + height:48px; + width:48px; + background:hsla(0, 0%, 100%, 0.76); + display:flex; + justify-content: center; + align-items: center; + border-radius:4px; + appearance: none; + -webkit-user-select:none; + user-select: none; + cursor: pointer; + outline:none; + -webkit-tap-highlight-color: transparent; + tap-highlight-color:transparent; + touch-action: manipulation; + transition:all; + will-change:auto; +} +header .header-wrapper nav:is(:hover,:focus){ + background:hsla(0, 0%, 100%, 0.46); + transform: all 200ms ease-in-out; +} header .header-wrapper h1{ - font-size:calc(2.4rem + 0.18vw); + font-size:calc(2.8rem + 0.18vw); } main { height: 100%; From a18cc20cfcdd98b64603689e6800b5de0e4a62c8 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:55:29 -0500 Subject: [PATCH 27/54] nav update --- public/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/style.css b/public/style.css index 1dfd1de..cff31de 100644 --- a/public/style.css +++ b/public/style.css @@ -59,7 +59,7 @@ header .header-wrapper{ border:1px solid white; } header .header-wrapper nav{ - margin: 0 4px; + margin: 0 6px 0 4px; height:48px; width:48px; background:hsla(0, 0%, 100%, 0.76); From a83365af19baea9b8e7329e61124a54c9383aa12 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:59:16 -0500 Subject: [PATCH 28/54] h1 upd --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 16d318a..c4ea6fb 100644 --- a/public/index.html +++ b/public/index.html @@ -70,10 +70,10 @@ menu - -

LOGO

+ + From a2119b3e9eb2f8bb4eaf751080cc0504c052cbce Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:00:18 -0500 Subject: [PATCH 29/54] upd h1 --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index c4ea6fb..58a359c 100644 --- a/public/index.html +++ b/public/index.html @@ -73,7 +73,7 @@

LOGO

- + From fc6023f720a6ce22e0dd374a4e870dae33246bc1 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:06:00 -0500 Subject: [PATCH 30/54] form script --- public/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 58a359c..a81526e 100644 --- a/public/index.html +++ b/public/index.html @@ -89,15 +89,14 @@

LOGO

-
- + + \ No newline at end of file diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js new file mode 100644 index 0000000..5ae7634 --- /dev/null +++ b/public/indexedDB/js/app.js @@ -0,0 +1,48 @@ +(function () { + // 1.)Check if the IndexedDB is supported + // The following code checks if a web browser supports the indexedDB: + + if(!window.indexedDB){ + console.log(`Your browser doesn't support IndexedDB`); + return; + } + + // 2)Open a database + // To open a connection o a database, you use the open() method of the window.indexedDBL + + const request = indexedDB.openl('CRM', 1); + + // The open() method accepts two arguments: + // -The database name (CRM) + // -The database version(1) + // The open() method returns a request object which is an instanace of the IDBOpenDBRequest interface. + // When you call the open() method, it can succeed or fail. To handlle each case, you can assign the corresponding event handler as follows.: + request.onerror = (event) => { + console.error(`Database error: ${event.target.errorCode}`); + }; + request.onsuccess = (event) => { + // add implementation here + }; + + // 3) Create object stores + // When you open the database for the first time, the onupgradeneeded event trigger will trigger. + // If you open the database for the second time with a version higher than the existing, the onupgradeneeded event also triggers. + // For the firSt time, you can use the onupgradeneeded event handle to initialize the object stores and indexes. + // For example, the following onupgradeneeded event handler creates the Contacts object store and its index. + + // create the Contacts object store and indexes + request.onupgradeneeded = (event) => { + let db = event.target.result; + + // create the Contacts object store + // with auto-increment id + let store = db.createObjectStore('Contacts', { + autoIncrement: true + }); + + // create an index on the email property + let index = store.createIndex('email', 'email', { + unique: true + }); + }; +})(); \ No newline at end of file From 74305387d3c620976aa071f3741d94bc11414adf Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 03:39:27 -0500 Subject: [PATCH 32/54] spelling error --- public/indexedDB/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index 5ae7634..b4348bc 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -10,13 +10,13 @@ // 2)Open a database // To open a connection o a database, you use the open() method of the window.indexedDBL - const request = indexedDB.openl('CRM', 1); + const request = indexedDB.open('CRM', 1); // The open() method accepts two arguments: // -The database name (CRM) // -The database version(1) - // The open() method returns a request object which is an instanace of the IDBOpenDBRequest interface. - // When you call the open() method, it can succeed or fail. To handlle each case, you can assign the corresponding event handler as follows.: + // The open() method returns a request object which is an instance of the IDBOpenDBRequest interface. + // When you call the open() method, it can succeed or fail. To handle each case, you can assign the corresponding event handler as follows.: request.onerror = (event) => { console.error(`Database error: ${event.target.errorCode}`); }; From c11cca94da67506b88398e19a6ab610cc35b041d Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 04:21:20 -0500 Subject: [PATCH 33/54] update Roll --- public/indexedDB/js/app.js | 47 +++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index b4348bc..75572d9 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -16,7 +16,8 @@ // -The database name (CRM) // -The database version(1) // The open() method returns a request object which is an instance of the IDBOpenDBRequest interface. - // When you call the open() method, it can succeed or fail. To handle each case, you can assign the corresponding event handler as follows.: + // When you call the open() method, it can succeed or fail. To handle each case, you can assign the corresponding event handler as follows: + request.onerror = (event) => { console.error(`Database error: ${event.target.errorCode}`); }; @@ -45,4 +46,48 @@ unique: true }); }; + // How it works. + + // - First, get the IDBDatabase instance from the event.target.result and assign it to the db variable. + // - Second, call the createObjectStore() method to create the Contacts object store with the autoincrement key. It means that the IndexedDB will generate an auto-increment number starting at one as the key for every new object inserted into the Contact object store. + // - Third, call the createIndex() method to create an index on the email property. Since the email is unique, the index should also be unique. To do so, you specify the third argument of the createIndex() method { unique: true }. + + // 4) Insert data into object stores + // Once you open a connection to the database successfully, you can manage data in the onsuccess event handler. + // For example, to add an object to an object store, you follow these steps: + // First, open a new transaction. + // Second, get an object store. + // Third, call the put() method of the object store to insert a new record. + // Finally, close the connection to the database once the transaction completes. + // The following insertContact() function inserts a new contact into the Contacts object store: + + function insertContact(db, contact) { + // create a new transaction + const txn = db.transaction('Contacts', 'readwrite'); + // get the Contacts object store + const store = txn.objectStore('Contacts'); + // + let query = store.put(contact); + + // handle success case + query.onsuccess = function (event) { + console.log(event); + }; + + // handle the error case + query.onerror = function (event) { + console.log(event.target.errorCode); + } + + // close the database once the + // transaction completes + txn.oncomplete = function () { + db.close(); + }; + } + + // To create a new transaction, you cal the transaction() method of the IDBDatabase object. + // You can open a transaction in one of two modes: readwrite or readonly. The readwrite mode allows hou to read data from and write data to the database while the readonly mode allows you to only read data from the database. + // It's a good practice to open readonly transaction if you need to read data from a database only. + // After defining the insertContact() function, you can call it in the onsuccess event handler of the request to insert one or more contacts like this: })(); \ No newline at end of file From 1c944d49709649948ea35c75328d529fcbb3742c Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 05:28:16 -0500 Subject: [PATCH 34/54] secta --- public/indexedDB/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/indexedDB/index.html b/public/indexedDB/index.html index 93e5f2c..89a34cb 100644 --- a/public/indexedDB/index.html +++ b/public/indexedDB/index.html @@ -2,7 +2,7 @@ - + IndexedDB From 7db7e5e0cb4e483f963f7804ca0cd7c7654a4b10 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 05:32:02 -0500 Subject: [PATCH 35/54] wrapup --- public/indexedDB/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index 75572d9..8a6f6c0 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -49,7 +49,7 @@ // How it works. // - First, get the IDBDatabase instance from the event.target.result and assign it to the db variable. - // - Second, call the createObjectStore() method to create the Contacts object store with the autoincrement key. It means that the IndexedDB will generate an auto-increment number starting at one as the key for every new object inserted into the Contact object store. + // - Second, call the createObjectStore() method to create the Contacts object store with the auto increment key. It means that the IndexedDB will generate an auto-increment number starting at one as the key for every new object inserted into the Contact object store. // - Third, call the createIndex() method to create an index on the email property. Since the email is unique, the index should also be unique. To do so, you specify the third argument of the createIndex() method { unique: true }. // 4) Insert data into object stores From 53d784a1aba89a8382ad746668d59cd6ca391ee6 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:17:10 -0500 Subject: [PATCH 36/54] getContacts() --- public/indexedDB/js/app.js | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index 8a6f6c0..f4a5d15 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -90,4 +90,75 @@ // You can open a transaction in one of two modes: readwrite or readonly. The readwrite mode allows hou to read data from and write data to the database while the readonly mode allows you to only read data from the database. // It's a good practice to open readonly transaction if you need to read data from a database only. // After defining the insertContact() function, you can call it in the onsuccess event handler of the request to insert one or more contacts like this: + + request.onsuccess = (event) => { + const db = event.target.result; + + insertContact(db, { + email: 'john.doe@outlook.com', + firstName: 'John', + lastName: 'Doe' + }); + + insertContact(db, { + email: 'jane.doe@gmail.com', + firstName: 'Jane', + lastName: 'Doe' + }); + }; + + // Now, if you open the index.html file in ghe web browser, the code in the app.js will execute to: + + // - Create the CRM database in the IndexedDB. + // - Create the Contacts object store in the CRM database. + // - Insert two records into the object store. + + // If you open the devtools on the web browser, you'll see the CRM database with the Contact object store. And in the Contacts object store, you'll see the data there as shown in the following picture: + + // 5) Read data from the object store by key + + // To read an object by its key, you use the get() method of teh object store. The following getContactById() function finds a contact by an id: +function getContactById(db, id) { + const txn = db.transaction('Contacts', 'readonly'); + const store = txn.objectStore('Contacts'); + let query = store.get(id); + + query.onsuccess = (event) => { + if(!event.target.result) { + console.log(`The contact with ${id} not found`); + } else { + console.table(event.target.result); + } + }; + + query.onerror = (event) => { + console.log(event.target.errorCode); + } + + txn.oncomplete = function () { + db.close(); + }; +}; +// When you call the get() method of the object store, it returns a query that will execute asynchronously. +// Because the query can succeed or fail, you need to assign the onsuccess and onerror handlers each case. +// If the query succeeded, you'll get the result in the event.target.result. Otherwise, you'll get an error code via event.target.errorCode. +// The following code closes the connection to the database once the transaction completes: + +txn.oncomplete = function () { + db.close(); +}; + +// Actually, the database connection is closed only when when all the transactions are completed. +// The following calls the getContactById() in the onsuccess event handler to get the contact with id 1. + +request.onsuccess = (event) => { + const db = event.target.results; + getContactById(db, 1); +}; + +// 6) Read data from the object store by an index +// The following defines a new function called getContactByEmail() that uses the email index to query data: + + + })(); \ No newline at end of file From 452ebb4f0db8a67c72f1a48957573b606a137de9 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:28:37 -0500 Subject: [PATCH 37/54] (7 Read all data from Object Store --- public/indexedDB/js/app.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index f4a5d15..25ca8e1 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -159,6 +159,43 @@ request.onsuccess = (event) => { // 6) Read data from the object store by an index // The following defines a new function called getContactByEmail() that uses the email index to query data: +function getContactByEmail(db, email) { + const txn = db.transaction( + 'Contacts', 'readonly'); + const store = txn.objectStore('Contacts'); + + // get the index from the Object Store + const index = store.index('email'); + // query by indexes + let query = index.get(email); + + // return the result object on success + query.onsuccess = (event) => { + console.log(event.target.errorCode); + } + + // close the database connection + txn.oncomplete = function(){ + db.close(); + }; +} + +// HOw it works. + +// - First, get the email index object from the Contacts object store. +// - Second, use t he index to read teh data by calling the get() method. +// - Third, sow the result in the onsuccess event handler if of the query. + +// The following illustrates how to use the getContactsByEmail() function in the onsuccess event handler: +request.onsuccess = (event) => { + const db = event.target.result; +// get contact by email + getContactByEmail(db, 'jane.doe@gmail.com'); +}; + +// 7) Read all data from an object store +// The following shows how to use a cursor to read all the objects from the Contacts object store: + })(); \ No newline at end of file From c99f97d89919cbf053e52e4b13c56bc08d836a07 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:29:38 -0500 Subject: [PATCH 38/54] withBackup --- public/indexedDB/js/app-backedup.js | 184 ++++++++++++++++++++++++++++ public/indexedDB/js/app.js | 75 +++++++++++- 2 files changed, 258 insertions(+), 1 deletion(-) create mode 100644 public/indexedDB/js/app-backedup.js diff --git a/public/indexedDB/js/app-backedup.js b/public/indexedDB/js/app-backedup.js new file mode 100644 index 0000000..fef5ef2 --- /dev/null +++ b/public/indexedDB/js/app-backedup.js @@ -0,0 +1,184 @@ +(function () { + // check for IndexedDB support + if (!window.indexedDB) { + console.log(`Your browser doesn't support IndexedDB`); + return; + } + + // open the CRM database with the version 1 + const request = indexedDB.open('CRM', 1); + + // create the Contacts object store and indexes + request.onupgradeneeded = (event) => { + let db = event.target.result; + + // create the Contacts object store + // with auto-increment id + let store = db.createObjectStore('Contacts', { + autoIncrement: true + }); + + // create an index on the email property + let index = store.createIndex('email', 'email', { + unique: true + }); + }; + + // handle the error event + request.onerror = (event) => { + console.error(`Database error: ${event.target.errorCode}`); + }; + + // handle the success event + request.onsuccess = (event) => { + const db = event.target.result; + + // insert contacts + // insertContact(db, { + // email: 'john.doe@outlook.com', + // firstName: 'John', + // lastName: 'Doe' + // }); + + // insertContact(db, { + // email: 'jane.doe@gmail.com', + // firstName: 'Jane', + // lastName: 'Doe' + // }); + + + // get contact by id 1 + // getContactById(db, 1); + + + // get contact by email + // getContactByEmail(db, 'jane.doe@gmail.com'); + + // get all contacts + // getAllContacts(db); + + deleteContact(db, 1); + + }; + + function insertContact(db, contact) { + // create a new transaction + const txn = db.transaction('Contacts', 'readwrite'); + + // get the Contacts object store + const store = txn.objectStore('Contacts'); + // + let query = store.put(contact); + + // handle success case + query.onsuccess = function (event) { + console.log(event); + }; + + // handle the error case + query.onerror = function (event) { + console.log(event.target.errorCode); + } + + // close the database once the + // transaction completes + txn.oncomplete = function () { + db.close(); + }; + } + + + function getContactById(db, id) { + const txn = db.transaction('Contacts', 'readonly'); + const store = txn.objectStore('Contacts'); + + let query = store.get(id); + + query.onsuccess = (event) => { + if (!event.target.result) { + console.log(`The contact with ${id} not found`); + } else { + console.table(event.target.result); + } + }; + + query.onerror = (event) => { + console.log(event.target.errorCode); + } + + txn.oncomplete = function () { + db.close(); + }; + }; + + function getContactByEmail(db, email) { + const txn = db.transaction('Contacts', 'readonly'); + const store = txn.objectStore('Contacts'); + + // get the index from the Object Store + const index = store.index('email'); + // query by indexes + let query = index.get(email); + + // return the result object on success + query.onsuccess = (event) => { + console.table(query.result); // result objects + }; + + query.onerror = (event) => { + console.log(event.target.errorCode); + } + + // close the database connection + txn.oncomplete = function () { + db.close(); + }; + } + + function getAllContacts(db) { + const txn = db.transaction('Contacts', "readonly"); + const objectStore = txn.objectStore('Contacts'); + + objectStore.openCursor().onsuccess = (event) => { + let cursor = event.target.result; + if (cursor) { + let contact = cursor.value; + console.log(contact); + // continue next record + cursor.continue(); + } + }; + // close the database connection + txn.oncomplete = function () { + db.close(); + }; + } + + + function deleteContact(db, id) { + // create a new transaction + const txn = db.transaction('Contacts', 'readwrite'); + + // get the Contacts object store + const store = txn.objectStore('Contacts'); + // + let query = store.delete(id); + + // handle the success case + query.onsuccess = function (event) { + console.log(event); + }; + + // handle the error case + query.onerror = function (event) { + console.log(event.target.errorCode); + } + + // close the database once the + // transaction completes + txn.oncomplete = function () { + db.close(); + }; + + } +})(); \ No newline at end of file diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index 25ca8e1..a702d15 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -196,6 +196,79 @@ request.onsuccess = (event) => { // 7) Read all data from an object store // The following shows how to use a cursor to read all the objects from the Contacts object store: +function getAllContacts(db){ + const txn = db.transaction('Contacts', "readonly"); + const objectStore = txn.objectStore('Contacts'); + + objectStore.openCursor().onsuccess = (event) => { + let cursor = event.target.result; + if(cursor) { + let contact = cursor.value; + console.log(contact); + // continue next record + cursor.continue(); + } + }; + // close the database connection + txn.oncomplete = function() { + db.close(); + }; +} +// The objectStore.openCursor() returns a cursor used to iterate over an object store. +// To iterate over the objects in an object store using the cursor, you need to assign an onsuccess handler: + +objectStore.openCursor().onsuccess = (event) => { + // ... +}; + +// the event.target.result returns the cursor. To get the data, you use the cursor.value property. +// the cursor.continue() method advances the cursor to the position of the next record in the object store. +// The following calls the getAllContacts() in the onsuccess event handler to show all data from the Contacts object store: + +request.onsuccess = (event) => { + const db = event.target.result; + // get all contacts + getAllContacts(db); +}; + +// 8) Delete a contact + + +// To delete a record from the object store, you use the delete()method of the object store. +// The following function deletes a contact by its id from the Contacts object store: + +function deleteContact(db, id){ + + // create a new transaction + const txn = db.transaction('Contacts', 'readwrite'); + // get the Contacts object store + const store = txn.objectStore('Contacts'); + // + let query = store.delete(id); + + // handle the success case + query.onsuccess = function (event) { + console.log(event); + }; -})(); \ No newline at end of file + // handle the error case + query.onerror = function (event) { + console.log(event.target.errorCode); + } + + // close the database once the transaction completes + txn.oncomplete = function () { + db.close(); + }; +} + +// And you can call the deleteContact() function in the onsuccess event handler to delete the contact with id 1 as follows: + +request.onsuccess = (event) => { + const db = event.target.result; + deleteContact(db, 1); +}; + +} +})(); From 8a1e0b874e34ae080a7bf3b29638f39ded09b163 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:32:13 -0500 Subject: [PATCH 39/54] udpateNow() --- public/indexedDB/js/app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index a702d15..ebc54c3 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -270,5 +270,4 @@ request.onsuccess = (event) => { deleteContact(db, 1); }; -} })(); From 050be0d31ecd7975c87b7949e9cdd88f7ce12381 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:36:04 -0500 Subject: [PATCH 40/54] Summary --- public/indexedDB/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index ebc54c3..547cd3e 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -271,3 +271,10 @@ request.onsuccess = (event) => { }; })(); + +// SUMMARY + +// - The IndexedDB is a large-scale object stored in web browsers. +// - The IndexedDB stores data as key-value pairs. The values can be any data including simple and complex ones. +// - The IndexedDB consists of one or more databases. Each database has one or more object stores. Typically, you create a database in the IndexedDB per web application. +// - The IndexedDB is useful for web applications that don't require a persistent internet connection, especially for application that work both online and offline. \ No newline at end of file From dfa70986d30dc90d24fb2931c0119a0c98fa9b1e Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:40:45 -0500 Subject: [PATCH 41/54] IndexedDB updatde() --- public/indexedDB/js/app.js | 46 +++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index 547cd3e..76fddf0 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -1,5 +1,7 @@ (function () { + // 1.)Check if the IndexedDB is supported + // The following code checks if a web browser supports the indexedDB: if(!window.indexedDB){ @@ -8,14 +10,19 @@ } // 2)Open a database + // To open a connection o a database, you use the open() method of the window.indexedDBL const request = indexedDB.open('CRM', 1); // The open() method accepts two arguments: + // -The database name (CRM) + // -The database version(1) + // The open() method returns a request object which is an instance of the IDBOpenDBRequest interface. + // When you call the open() method, it can succeed or fail. To handle each case, you can assign the corresponding event handler as follows: request.onerror = (event) => { @@ -26,9 +33,13 @@ }; // 3) Create object stores + // When you open the database for the first time, the onupgradeneeded event trigger will trigger. + // If you open the database for the second time with a version higher than the existing, the onupgradeneeded event also triggers. + // For the firSt time, you can use the onupgradeneeded event handle to initialize the object stores and indexes. + // For example, the following onupgradeneeded event handler creates the Contacts object store and its index. // create the Contacts object store and indexes @@ -46,19 +57,29 @@ unique: true }); }; + + // How it works. // - First, get the IDBDatabase instance from the event.target.result and assign it to the db variable. + // - Second, call the createObjectStore() method to create the Contacts object store with the auto increment key. It means that the IndexedDB will generate an auto-increment number starting at one as the key for every new object inserted into the Contact object store. + // - Third, call the createIndex() method to create an index on the email property. Since the email is unique, the index should also be unique. To do so, you specify the third argument of the createIndex() method { unique: true }. // 4) Insert data into object stores + // Once you open a connection to the database successfully, you can manage data in the onsuccess event handler. + // For example, to add an object to an object store, you follow these steps: // First, open a new transaction. + // Second, get an object store. + // Third, call the put() method of the object store to insert a new record. + // Finally, close the connection to the database once the transaction completes. + // The following insertContact() function inserts a new contact into the Contacts object store: function insertContact(db, contact) { @@ -68,7 +89,6 @@ const store = txn.objectStore('Contacts'); // let query = store.put(contact); - // handle success case query.onsuccess = function (event) { console.log(event); @@ -87,8 +107,11 @@ } // To create a new transaction, you cal the transaction() method of the IDBDatabase object. + // You can open a transaction in one of two modes: readwrite or readonly. The readwrite mode allows hou to read data from and write data to the database while the readonly mode allows you to only read data from the database. + // It's a good practice to open readonly transaction if you need to read data from a database only. + // After defining the insertContact() function, you can call it in the onsuccess event handler of the request to insert one or more contacts like this: request.onsuccess = (event) => { @@ -110,7 +133,9 @@ // Now, if you open the index.html file in ghe web browser, the code in the app.js will execute to: // - Create the CRM database in the IndexedDB. + // - Create the Contacts object store in the CRM database. + // - Insert two records into the object store. // If you open the devtools on the web browser, you'll see the CRM database with the Contact object store. And in the Contacts object store, you'll see the data there as shown in the following picture: @@ -118,6 +143,7 @@ // 5) Read data from the object store by key // To read an object by its key, you use the get() method of teh object store. The following getContactById() function finds a contact by an id: + function getContactById(db, id) { const txn = db.transaction('Contacts', 'readonly'); const store = txn.objectStore('Contacts'); @@ -140,8 +166,11 @@ function getContactById(db, id) { }; }; // When you call the get() method of the object store, it returns a query that will execute asynchronously. + // Because the query can succeed or fail, you need to assign the onsuccess and onerror handlers each case. + // If the query succeeded, you'll get the result in the event.target.result. Otherwise, you'll get an error code via event.target.errorCode. + // The following code closes the connection to the database once the transaction completes: txn.oncomplete = function () { @@ -149,6 +178,7 @@ txn.oncomplete = function () { }; // Actually, the database connection is closed only when when all the transactions are completed. + // The following calls the getContactById() in the onsuccess event handler to get the contact with id 1. request.onsuccess = (event) => { @@ -157,6 +187,7 @@ request.onsuccess = (event) => { }; // 6) Read data from the object store by an index + // The following defines a new function called getContactByEmail() that uses the email index to query data: function getContactByEmail(db, email) { @@ -180,10 +211,12 @@ function getContactByEmail(db, email) { }; } -// HOw it works. +// How it works. // - First, get the email index object from the Contacts object store. + // - Second, use t he index to read teh data by calling the get() method. + // - Third, sow the result in the onsuccess event handler if of the query. // The following illustrates how to use the getContactsByEmail() function in the onsuccess event handler: @@ -194,6 +227,7 @@ request.onsuccess = (event) => { }; // 7) Read all data from an object store + // The following shows how to use a cursor to read all the objects from the Contacts object store: function getAllContacts(db){ @@ -214,6 +248,7 @@ function getAllContacts(db){ db.close(); }; } + // The objectStore.openCursor() returns a cursor used to iterate over an object store. // To iterate over the objects in an object store using the cursor, you need to assign an onsuccess handler: @@ -222,7 +257,9 @@ objectStore.openCursor().onsuccess = (event) => { }; // the event.target.result returns the cursor. To get the data, you use the cursor.value property. + // the cursor.continue() method advances the cursor to the position of the next record in the object store. + // The following calls the getAllContacts() in the onsuccess event handler to show all data from the Contacts object store: request.onsuccess = (event) => { @@ -233,8 +270,8 @@ request.onsuccess = (event) => { // 8) Delete a contact - // To delete a record from the object store, you use the delete()method of the object store. + // The following function deletes a contact by its id from the Contacts object store: function deleteContact(db, id){ @@ -275,6 +312,9 @@ request.onsuccess = (event) => { // SUMMARY // - The IndexedDB is a large-scale object stored in web browsers. + // - The IndexedDB stores data as key-value pairs. The values can be any data including simple and complex ones. + // - The IndexedDB consists of one or more databases. Each database has one or more object stores. Typically, you create a database in the IndexedDB per web application. + // - The IndexedDB is useful for web applications that don't require a persistent internet connection, especially for application that work both online and offline. \ No newline at end of file From 3016dfed778c9726fc0d849811dd6bca1947df8d Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:44:41 -0500 Subject: [PATCH 42/54] apps-upd1 --- public/indexedDB/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/indexedDB/js/app.js b/public/indexedDB/js/app.js index 76fddf0..968d8c4 100644 --- a/public/indexedDB/js/app.js +++ b/public/indexedDB/js/app.js @@ -1,5 +1,5 @@ (function () { - + // 1.)Check if the IndexedDB is supported // The following code checks if a web browser supports the indexedDB: @@ -215,7 +215,7 @@ function getContactByEmail(db, email) { // - First, get the email index object from the Contacts object store. -// - Second, use t he index to read teh data by calling the get() method. +// - Second, use the index to read teh data by calling the get() method. // - Third, sow the result in the onsuccess event handler if of the query. From 2a3d7a365c21d18ddac9ff8da20f9fac4b5ff12f Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:03:53 -0500 Subject: [PATCH 43/54] form --- public/indexedDB/index.html | 20 ++++++++++++++++- public/indexedDB/js/form-data.js | 36 +++++++++++++++++++++++++++++++ public/indexedDB/js/subscribe.php | 0 public/indexedDB/subscribe.php | 0 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 public/indexedDB/js/form-data.js create mode 100644 public/indexedDB/js/subscribe.php create mode 100644 public/indexedDB/subscribe.php diff --git a/public/indexedDB/index.html b/public/indexedDB/index.html index 89a34cb..e58eb5c 100644 --- a/public/indexedDB/index.html +++ b/public/indexedDB/index.html @@ -6,6 +6,24 @@ IndexedDB - +
+

Subscribe

+
+
+ + +
+
+ + +
+
+ +
+
+ + \ No newline at end of file diff --git a/public/indexedDB/js/form-data.js b/public/indexedDB/js/form-data.js new file mode 100644 index 0000000..0b3e500 --- /dev/null +++ b/public/indexedDB/js/form-data.js @@ -0,0 +1,36 @@ +// Script shows the values of a FormData object: + +const btn = document.querySelector('#submit'); +const form = document.querySelector('#subscription'); +const messageEl = document.querySelector('#message'); + + +btn.addEventListener('click', (e) => { + // prevent the form submitting + e.preventDefault(); + + // show the form values + // const formData = new FormData(form); + // const values = [...formData.entries()]; + // console.log(values); + + subscribe(); +}); + +const subscribe = async () => { + try { + let response = await fetch('subscribe.php', { + method: 'POST', + body: new FormData(form), + }); + const result = await response.json(); + + showMessage(result.message, response.json.status == 200 ? 'success' : 'error'); + } catch (error) { + showMessage(error.message, 'error'); + } +}; + +const showMessage = (message, type = 'success')=> { + messageEl.innerHTML =`
${message}
`; +}; diff --git a/public/indexedDB/js/subscribe.php b/public/indexedDB/js/subscribe.php new file mode 100644 index 0000000..e69de29 diff --git a/public/indexedDB/subscribe.php b/public/indexedDB/subscribe.php new file mode 100644 index 0000000..e69de29 From a2875e1125e0999ff57a58f2cebab1e61417c946 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:17:00 -0500 Subject: [PATCH 44/54] chamge --- public/index.html | 4 +--- public/webmanifest.json | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 public/webmanifest.json diff --git a/public/index.html b/public/index.html index a81526e..b809e3b 100644 --- a/public/index.html +++ b/public/index.html @@ -7,9 +7,7 @@ WorkSite - - + diff --git a/public/webmanifest.json b/public/webmanifest.json new file mode 100644 index 0000000..f5ba86c --- /dev/null +++ b/public/webmanifest.json @@ -0,0 +1 @@ +{"name":"Faith Heating and Cooling Chicago","short_name":"Faith HVAC","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file From 59cc9d146fa38f5ce2e9bfac301e9099b8126d37 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 19:04:25 -0500 Subject: [PATCH 45/54] id upd --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index b809e3b..808b5b8 100644 --- a/public/index.html +++ b/public/index.html @@ -91,7 +91,7 @@

LOGO

- + + --> From 7697af74063a1727f0668d211a91a58d7479557f Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 22:50:59 -0500 Subject: [PATCH 49/54] site-verify --- public/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/index.html b/public/index.html index 07aed37..8a0a987 100644 --- a/public/index.html +++ b/public/index.html @@ -3,6 +3,10 @@ + + + + WorkSite Date: Fri, 9 Aug 2024 22:57:47 -0500 Subject: [PATCH 50/54] json + more --- public/index.html | 46 +++++----------------------------------------- 1 file changed, 5 insertions(+), 41 deletions(-) diff --git a/public/index.html b/public/index.html index 8a0a987..b2fdeb8 100644 --- a/public/index.html +++ b/public/index.html @@ -69,8 +69,8 @@ "addressCountry": "US" } } - - + } + + @@ -107,43 +108,6 @@

LOGO

... - From a0f0feebc738868c22209a1eabbfed4b8b7af77a Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 23:33:34 -0500 Subject: [PATCH 51/54] fr --- public/index.html | 12 ++---------- public/webmanifest.json | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/public/index.html b/public/index.html index b2fdeb8..30f4af8 100644 --- a/public/index.html +++ b/public/index.html @@ -71,16 +71,8 @@ } +*{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-text-size-adjust:100%;-moz-text-size-adjust: 100%;text-size-adjust:100%;} + diff --git a/public/webmanifest.json b/public/webmanifest.json index f5ba86c..950ec94 100644 --- a/public/webmanifest.json +++ b/public/webmanifest.json @@ -1 +1 @@ -{"name":"Faith Heating and Cooling Chicago","short_name":"Faith HVAC","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file +{"name":"Faith Heating and Cooling Chicago","short_name":"Faith HVAC","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#000000","background_color":"#ffffff","display":"standalone"} \ No newline at end of file From 6801517cc6e61313f60f07066a05878487172b24 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Fri, 9 Aug 2024 23:41:44 -0500 Subject: [PATCH 52/54] hi --- public/bundle.js | 2214 ++++++++++++++++++++++++++++++++++++++++++ public/bundle.js.map | 1 + 2 files changed, 2215 insertions(+) create mode 100644 public/bundle.js create mode 100644 public/bundle.js.map diff --git a/public/bundle.js b/public/bundle.js new file mode 100644 index 0000000..78f66ee --- /dev/null +++ b/public/bundle.js @@ -0,0 +1,2214 @@ +(function () { + 'use strict'; + + function _typeof(o) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { + return typeof o; + } : function (o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, _typeof(o); + } + + function requiredArgs(required, args) { + if (args.length < required) { + throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); + } + } + + /** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param {*} value - the value to check + * @returns {boolean} true if the given value is a date + * @throws {TypeError} 1 arguments required + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ + function isDate(value) { + requiredArgs(1, arguments); + return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]'; + } + + /** + * @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) { + requiredArgs(1, arguments); + var argStr = Object.prototype.toString.call(argument); + + // Clone the date + if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') { + // Prevent the date to lose the milliseconds when passed to new Date() in IE10 + return new Date(argument.getTime()); + } else if (typeof argument === 'number' || argStr === '[object Number]') { + return new Date(argument); + } else { + if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') { + // eslint-disable-next-line no-console + console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); + // eslint-disable-next-line no-console + console.warn(new Error().stack); + } + return new Date(NaN); + } + } + + /** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param {*} date - the date to check + * @returns {Boolean} the date is valid + * @throws {TypeError} 1 argument required + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertable into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ + function isValid(dirtyDate) { + requiredArgs(1, arguments); + if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') { + return false; + } + var date = toDate(dirtyDate); + return !isNaN(Number(date)); + } + + 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); + } + + /** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the milliseconds added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ + function addMilliseconds(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var timestamp = toDate(dirtyDate).getTime(); + var amount = toInteger(dirtyAmount); + return new Date(timestamp + amount); + } + + /** + * @name subMilliseconds + * @category Millisecond Helpers + * @summary Subtract the specified number of milliseconds from the given date. + * + * @description + * Subtract the specified number of milliseconds from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the milliseconds subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: + * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:29.250 + */ + function subMilliseconds(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMilliseconds(dirtyDate, -amount); + } + + var MILLISECONDS_IN_DAY = 86400000; + 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; + } + + 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; + } + + 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; + } + } + + 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; + } + + var MILLISECONDS_IN_WEEK$1 = 604800000; + 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) + 1; + } + + var defaultOptions = {}; + function getDefaultOptions() { + return defaultOptions; + } + + function startOfUTCWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); + + // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + date.setUTCDate(date.getUTCDate() - diff); + date.setUTCHours(0, 0, 0, 0); + return date; + } + + function getUTCWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getUTCFullYear(); + var defaultOptions = getDefaultOptions(); + var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + + // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + var firstWeekOfNextYear = new Date(0); + firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); + var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); + var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options); + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } + } + + function startOfUTCWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + var year = getUTCWeekYear(dirtyDate, options); + var firstWeek = new Date(0); + firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeek.setUTCHours(0, 0, 0, 0); + var date = startOfUTCWeek(firstWeek, options); + return date; + } + + var MILLISECONDS_IN_WEEK = 604800000; + 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; + } + + function addLeadingZeros(number, targetLength) { + var sign = number < 0 ? '-' : ''; + var output = Math.abs(number).toString(); + while (output.length < targetLength) { + output = '0' + output; + } + return sign + output; + } + + /* + * | | 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$2 = { + // Year + y: function y(date, token) { + // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens + // | Year | y | yy | yyy | yyyy | yyyyy | + // |----------|-------|----|-------|-------|-------| + // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | + // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | + // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | + // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | + // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | + + var signedYear = date.getUTCFullYear(); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length); + }, + // Month + M: function M(date, token) { + var month = date.getUTCMonth(); + return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2); + }, + // Day of the month + d: function d(date, token) { + return addLeadingZeros(date.getUTCDate(), token.length); + }, + // AM or PM + a: function a(date, token) { + var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am'; + switch (token) { + case 'a': + case 'aa': + return dayPeriodEnumValue.toUpperCase(); + case 'aaa': + return dayPeriodEnumValue; + case 'aaaaa': + return dayPeriodEnumValue[0]; + case 'aaaa': + default: + return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.'; + } + }, + // Hour [1-12] + h: function h(date, token) { + return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length); + }, + // Hour [0-23] + H: function H(date, token) { + return addLeadingZeros(date.getUTCHours(), token.length); + }, + // Minute + m: function m(date, token) { + return addLeadingZeros(date.getUTCMinutes(), token.length); + }, + // Second + s: function s(date, token) { + return addLeadingZeros(date.getUTCSeconds(), token.length); + }, + // Fraction of second + S: function S(date, token) { + var numberOfDigits = token.length; + var milliseconds = date.getUTCMilliseconds(); + var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); + return addLeadingZeros(fractionalSeconds, token.length); + } + }; + var lightFormatters = formatters$2; + + var dayPeriodEnum = { + am: 'am', + pm: 'pm', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + }; + /* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | Milliseconds in day | + * | b | AM, PM, noon, midnight | B | Flexible day period | + * | c | Stand-alone local day of week | C* | Localized hour w/ day period | + * | d | Day of month | D | Day of year | + * | e | Local day of week | E | Day of week | + * | f | | F* | Day of week in month | + * | g* | Modified Julian day | G | Era | + * | h | Hour [1-12] | H | Hour [0-23] | + * | i! | ISO day of week | I! | ISO week of year | + * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | + * | k | Hour [1-24] | K | Hour [0-11] | + * | l* | (deprecated) | L | Stand-alone month | + * | m | Minute | M | Month | + * | n | | N | | + * | o! | Ordinal number modifier | O | Timezone (GMT) | + * | p! | Long localized time | P! | Long localized date | + * | q | Stand-alone quarter | Q | Quarter | + * | r* | Related Gregorian year | R! | ISO week-numbering year | + * | s | Second | S | Fraction of second | + * | t! | Seconds timestamp | T! | Milliseconds timestamp | + * | u | Extended year | U* | Cyclic year | + * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | + * | w | Local week of year | W* | Week of month | + * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | + * | y | Year (abs) | Y | Local week-numbering year | + * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + * + * Letters marked by ! are non-standard, but implemented by date-fns: + * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) + * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, + * i.e. 7 for Sunday, 1 for Monday, etc. + * - `I` is ISO week of year, as opposed to `w` which is local week of year. + * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. + * `R` is supposed to be used in conjunction with `I` and `i` + * for universal ISO week-numbering date, whereas + * `Y` is supposed to be used in conjunction with `w` and `e` + * for week-numbering date specific to the locale. + * - `P` is long localized date format + * - `p` is long localized time format + */ + + var formatters = { + // Era + G: function G(date, token, localize) { + var era = date.getUTCFullYear() > 0 ? 1 : 0; + switch (token) { + // AD, BC + case 'G': + case 'GG': + case 'GGG': + return localize.era(era, { + width: 'abbreviated' + }); + // A, B + case 'GGGGG': + return localize.era(era, { + width: 'narrow' + }); + // Anno Domini, Before Christ + case 'GGGG': + default: + return localize.era(era, { + width: 'wide' + }); + } + }, + // Year + y: function y(date, token, localize) { + // Ordinal number + if (token === 'yo') { + var signedYear = date.getUTCFullYear(); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return localize.ordinalNumber(year, { + unit: 'year' + }); + } + return lightFormatters.y(date, token); + }, + // Local week-numbering year + Y: function Y(date, token, localize, options) { + var signedWeekYear = getUTCWeekYear(date, options); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; + + // Two digit year + if (token === 'YY') { + var twoDigitYear = weekYear % 100; + return addLeadingZeros(twoDigitYear, 2); + } + + // Ordinal number + if (token === 'Yo') { + return localize.ordinalNumber(weekYear, { + unit: 'year' + }); + } + + // Padding + return addLeadingZeros(weekYear, token.length); + }, + // ISO week-numbering year + R: function R(date, token) { + var isoWeekYear = getUTCISOWeekYear(date); + + // Padding + return addLeadingZeros(isoWeekYear, token.length); + }, + // Extended year. This is a single number designating the year of this calendar system. + // The main difference between `y` and `u` localizers are B.C. years: + // | Year | `y` | `u` | + // |------|-----|-----| + // | AC 1 | 1 | 1 | + // | BC 1 | 1 | 0 | + // | BC 2 | 2 | -1 | + // Also `yy` always returns the last two digits of a year, + // while `uu` pads single digit years to 2 characters and returns other years unchanged. + u: function u(date, token) { + var year = date.getUTCFullYear(); + return addLeadingZeros(year, token.length); + }, + // Quarter + Q: function Q(date, token, localize) { + var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); + switch (token) { + // 1, 2, 3, 4 + case 'Q': + return String(quarter); + // 01, 02, 03, 04 + case 'QQ': + return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th + case 'Qo': + return localize.ordinalNumber(quarter, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + case 'QQQ': + return localize.quarter(quarter, { + width: 'abbreviated', + context: 'formatting' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + case 'QQQQQ': + return localize.quarter(quarter, { + width: 'narrow', + context: 'formatting' + }); + // 1st quarter, 2nd quarter, ... + case 'QQQQ': + default: + return localize.quarter(quarter, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone quarter + q: function q(date, token, localize) { + var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); + switch (token) { + // 1, 2, 3, 4 + case 'q': + return String(quarter); + // 01, 02, 03, 04 + case 'qq': + return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th + case 'qo': + return localize.ordinalNumber(quarter, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + case 'qqq': + return localize.quarter(quarter, { + width: 'abbreviated', + context: 'standalone' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + case 'qqqqq': + return localize.quarter(quarter, { + width: 'narrow', + context: 'standalone' + }); + // 1st quarter, 2nd quarter, ... + case 'qqqq': + default: + return localize.quarter(quarter, { + width: 'wide', + context: 'standalone' + }); + } + }, + // Month + M: function M(date, token, localize) { + var month = date.getUTCMonth(); + switch (token) { + case 'M': + case 'MM': + return lightFormatters.M(date, token); + // 1st, 2nd, ..., 12th + case 'Mo': + return localize.ordinalNumber(month + 1, { + unit: 'month' + }); + // Jan, Feb, ..., Dec + case 'MMM': + return localize.month(month, { + width: 'abbreviated', + context: 'formatting' + }); + // J, F, ..., D + case 'MMMMM': + return localize.month(month, { + width: 'narrow', + context: 'formatting' + }); + // January, February, ..., December + case 'MMMM': + default: + return localize.month(month, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone month + L: function L(date, token, localize) { + var month = date.getUTCMonth(); + switch (token) { + // 1, 2, ..., 12 + case 'L': + return String(month + 1); + // 01, 02, ..., 12 + case 'LL': + return addLeadingZeros(month + 1, 2); + // 1st, 2nd, ..., 12th + case 'Lo': + return localize.ordinalNumber(month + 1, { + unit: 'month' + }); + // Jan, Feb, ..., Dec + case 'LLL': + return localize.month(month, { + width: 'abbreviated', + context: 'standalone' + }); + // J, F, ..., D + case 'LLLLL': + return localize.month(month, { + width: 'narrow', + context: 'standalone' + }); + // January, February, ..., December + case 'LLLL': + default: + return localize.month(month, { + width: 'wide', + context: 'standalone' + }); + } + }, + // Local week of year + w: function w(date, token, localize, options) { + var week = getUTCWeek(date, options); + if (token === 'wo') { + return localize.ordinalNumber(week, { + unit: 'week' + }); + } + return addLeadingZeros(week, token.length); + }, + // ISO week of year + I: function I(date, token, localize) { + var isoWeek = getUTCISOWeek(date); + if (token === 'Io') { + return localize.ordinalNumber(isoWeek, { + unit: 'week' + }); + } + return addLeadingZeros(isoWeek, token.length); + }, + // Day of the month + d: function d(date, token, localize) { + if (token === 'do') { + return localize.ordinalNumber(date.getUTCDate(), { + unit: 'date' + }); + } + return lightFormatters.d(date, token); + }, + // Day of year + D: function D(date, token, localize) { + var dayOfYear = getUTCDayOfYear(date); + if (token === 'Do') { + return localize.ordinalNumber(dayOfYear, { + unit: 'dayOfYear' + }); + } + return addLeadingZeros(dayOfYear, token.length); + }, + // Day of week + E: function E(date, token, localize) { + var dayOfWeek = date.getUTCDay(); + switch (token) { + // Tue + case 'E': + case 'EE': + case 'EEE': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + case 'EEEEE': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + case 'EEEEEE': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + case 'EEEE': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Local day of week + e: function e(date, token, localize, options) { + var dayOfWeek = date.getUTCDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + // Numerical value (Nth day of week with current locale or weekStartsOn) + case 'e': + return String(localDayOfWeek); + // Padded numerical value + case 'ee': + return addLeadingZeros(localDayOfWeek, 2); + // 1st, 2nd, ..., 7th + case 'eo': + return localize.ordinalNumber(localDayOfWeek, { + unit: 'day' + }); + case 'eee': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + case 'eeeee': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + case 'eeeeee': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + case 'eeee': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone local day of week + c: function c(date, token, localize, options) { + var dayOfWeek = date.getUTCDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + // Numerical value (same as in `e`) + case 'c': + return String(localDayOfWeek); + // Padded numerical value + case 'cc': + return addLeadingZeros(localDayOfWeek, token.length); + // 1st, 2nd, ..., 7th + case 'co': + return localize.ordinalNumber(localDayOfWeek, { + unit: 'day' + }); + case 'ccc': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'standalone' + }); + // T + case 'ccccc': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'standalone' + }); + // Tu + case 'cccccc': + return localize.day(dayOfWeek, { + width: 'short', + context: 'standalone' + }); + // Tuesday + case 'cccc': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'standalone' + }); + } + }, + // ISO day of week + i: function i(date, token, localize) { + var dayOfWeek = date.getUTCDay(); + var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; + switch (token) { + // 2 + case 'i': + return String(isoDayOfWeek); + // 02 + case 'ii': + return addLeadingZeros(isoDayOfWeek, token.length); + // 2nd + case 'io': + return localize.ordinalNumber(isoDayOfWeek, { + unit: 'day' + }); + // Tue + case 'iii': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + case 'iiiii': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + case 'iiiiii': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + case 'iiii': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // AM or PM + a: function a(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; + switch (token) { + case 'a': + case 'aa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + case 'aaa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }).toLowerCase(); + case 'aaaaa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + case 'aaaa': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // AM, PM, midnight, noon + b: function b(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue; + if (hours === 12) { + dayPeriodEnumValue = dayPeriodEnum.noon; + } else if (hours === 0) { + dayPeriodEnumValue = dayPeriodEnum.midnight; + } else { + dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; + } + switch (token) { + case 'b': + case 'bb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + case 'bbb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }).toLowerCase(); + case 'bbbbb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + case 'bbbb': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // in the morning, in the afternoon, in the evening, at night + B: function B(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue; + if (hours >= 17) { + dayPeriodEnumValue = dayPeriodEnum.evening; + } else if (hours >= 12) { + dayPeriodEnumValue = dayPeriodEnum.afternoon; + } else if (hours >= 4) { + dayPeriodEnumValue = dayPeriodEnum.morning; + } else { + dayPeriodEnumValue = dayPeriodEnum.night; + } + switch (token) { + case 'B': + case 'BB': + case 'BBB': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + case 'BBBBB': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + case 'BBBB': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Hour [1-12] + h: function h(date, token, localize) { + if (token === 'ho') { + var hours = date.getUTCHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + return lightFormatters.h(date, token); + }, + // Hour [0-23] + H: function H(date, token, localize) { + if (token === 'Ho') { + return localize.ordinalNumber(date.getUTCHours(), { + unit: 'hour' + }); + } + return lightFormatters.H(date, token); + }, + // Hour [0-11] + K: function K(date, token, localize) { + var hours = date.getUTCHours() % 12; + if (token === 'Ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + return addLeadingZeros(hours, token.length); + }, + // Hour [1-24] + k: function k(date, token, localize) { + var hours = date.getUTCHours(); + if (hours === 0) hours = 24; + if (token === 'ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + return addLeadingZeros(hours, token.length); + }, + // Minute + m: function m(date, token, localize) { + if (token === 'mo') { + return localize.ordinalNumber(date.getUTCMinutes(), { + unit: 'minute' + }); + } + return lightFormatters.m(date, token); + }, + // Second + s: function s(date, token, localize) { + if (token === 'so') { + return localize.ordinalNumber(date.getUTCSeconds(), { + unit: 'second' + }); + } + return lightFormatters.s(date, token); + }, + // Fraction of second + S: function S(date, token) { + return lightFormatters.S(date, token); + }, + // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) + X: function X(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + if (timezoneOffset === 0) { + return 'Z'; + } + switch (token) { + // Hours and optional minutes + case 'X': + return formatTimezoneWithOptionalMinutes(timezoneOffset); + + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XX` + case 'XXXX': + case 'XX': + // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XXX` + case 'XXXXX': + case 'XXX': // Hours and minutes with `:` delimiter + default: + return formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) + x: function x(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + switch (token) { + // Hours and optional minutes + case 'x': + return formatTimezoneWithOptionalMinutes(timezoneOffset); + + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xx` + case 'xxxx': + case 'xx': + // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xxx` + case 'xxxxx': + case 'xxx': // Hours and minutes with `:` delimiter + default: + return formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (GMT) + O: function O(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + switch (token) { + // Short + case 'O': + case 'OO': + case 'OOO': + return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); + // Long + case 'OOOO': + default: + return 'GMT' + formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (specific non-location) + z: function z(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + switch (token) { + // Short + case 'z': + case 'zz': + case 'zzz': + return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); + // Long + case 'zzzz': + default: + return 'GMT' + formatTimezone(timezoneOffset, ':'); + } + }, + // Seconds timestamp + t: function t(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = Math.floor(originalDate.getTime() / 1000); + return addLeadingZeros(timestamp, token.length); + }, + // Milliseconds timestamp + T: function T(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = originalDate.getTime(); + return addLeadingZeros(timestamp, token.length); + } + }; + function formatTimezoneShort(offset, dirtyDelimiter) { + var sign = offset > 0 ? '-' : '+'; + var absOffset = Math.abs(offset); + var hours = Math.floor(absOffset / 60); + var minutes = absOffset % 60; + if (minutes === 0) { + return sign + String(hours); + } + var delimiter = dirtyDelimiter || ''; + return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2); + } + function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { + if (offset % 60 === 0) { + var sign = offset > 0 ? '-' : '+'; + return sign + addLeadingZeros(Math.abs(offset) / 60, 2); + } + return formatTimezone(offset, dirtyDelimiter); + } + function formatTimezone(offset, dirtyDelimiter) { + var delimiter = dirtyDelimiter || ''; + var sign = offset > 0 ? '-' : '+'; + var absOffset = Math.abs(offset); + var hours = addLeadingZeros(Math.floor(absOffset / 60), 2); + var minutes = addLeadingZeros(absOffset % 60, 2); + return sign + hours + delimiter + minutes; + } + var formatters$1 = formatters; + + var dateLongFormatter = function dateLongFormatter(pattern, formatLong) { + switch (pattern) { + case 'P': + return formatLong.date({ + width: 'short' + }); + case 'PP': + return formatLong.date({ + width: 'medium' + }); + case 'PPP': + return formatLong.date({ + width: 'long' + }); + case 'PPPP': + default: + return formatLong.date({ + width: 'full' + }); + } + }; + var timeLongFormatter = function timeLongFormatter(pattern, formatLong) { + switch (pattern) { + case 'p': + return formatLong.time({ + width: 'short' + }); + case 'pp': + return formatLong.time({ + width: 'medium' + }); + case 'ppp': + return formatLong.time({ + width: 'long' + }); + case 'pppp': + default: + return formatLong.time({ + width: 'full' + }); + } + }; + var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) { + var matchResult = pattern.match(/(P+)(p+)?/) || []; + var datePattern = matchResult[1]; + var timePattern = matchResult[2]; + if (!timePattern) { + return dateLongFormatter(pattern, formatLong); + } + var dateTimeFormat; + switch (datePattern) { + case 'P': + dateTimeFormat = formatLong.dateTime({ + width: 'short' + }); + break; + case 'PP': + dateTimeFormat = formatLong.dateTime({ + width: 'medium' + }); + break; + case 'PPP': + dateTimeFormat = formatLong.dateTime({ + width: 'long' + }); + break; + case 'PPPP': + default: + dateTimeFormat = formatLong.dateTime({ + width: 'full' + }); + break; + } + return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong)); + }; + var longFormatters = { + p: timeLongFormatter, + P: dateTimeLongFormatter + }; + var longFormatters$1 = longFormatters; + + /** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ + function getTimezoneOffsetInMilliseconds(date) { + var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds())); + utcDate.setUTCFullYear(date.getFullYear()); + return date.getTime() - utcDate.getTime(); + } + + var protectedDayOfYearTokens = ['D', 'DD']; + var protectedWeekYearTokens = ['YY', 'YYYY']; + function isProtectedDayOfYearToken(token) { + return protectedDayOfYearTokens.indexOf(token) !== -1; + } + function isProtectedWeekYearToken(token) { + return protectedWeekYearTokens.indexOf(token) !== -1; + } + function throwProtectedError(token, format, input) { + if (token === 'YYYY') { + throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'YY') { + throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'D') { + throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'DD') { + throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } + } + + var formatDistanceLocale = { + lessThanXSeconds: { + one: 'less than a second', + other: 'less than {{count}} seconds' + }, + xSeconds: { + one: '1 second', + other: '{{count}} seconds' + }, + halfAMinute: 'half a minute', + lessThanXMinutes: { + one: 'less than a minute', + other: 'less than {{count}} minutes' + }, + xMinutes: { + one: '1 minute', + other: '{{count}} minutes' + }, + aboutXHours: { + one: 'about 1 hour', + other: 'about {{count}} hours' + }, + xHours: { + one: '1 hour', + other: '{{count}} hours' + }, + xDays: { + one: '1 day', + other: '{{count}} days' + }, + aboutXWeeks: { + one: 'about 1 week', + other: 'about {{count}} weeks' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weeks' + }, + aboutXMonths: { + one: 'about 1 month', + other: 'about {{count}} months' + }, + xMonths: { + one: '1 month', + other: '{{count}} months' + }, + aboutXYears: { + one: 'about 1 year', + other: 'about {{count}} years' + }, + xYears: { + one: '1 year', + other: '{{count}} years' + }, + overXYears: { + one: 'over 1 year', + other: 'over {{count}} years' + }, + almostXYears: { + one: 'almost 1 year', + other: 'almost {{count}} years' + } + }; + var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + return result; + }; + var formatDistance$1 = formatDistance; + + function buildFormatLongFn(args) { + return function () { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + // TODO: Remove String() + var width = options.width ? String(options.width) : args.defaultWidth; + var format = args.formats[width] || args.formats[args.defaultWidth]; + return format; + }; + } + + 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' + }) + }; + var formatLong$1 = formatLong; + + var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: 'P' + }; + var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; + }; + var formatRelative$1 = formatRelative; + + function buildLocalizeFn(args) { + return function (dirtyIndex, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone'; + var valuesArray; + if (context === 'formatting' && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; + // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it! + return valuesArray[index]; + }; + } + + var eraValues = { + narrow: ['B', 'A'], + abbreviated: ['BC', 'AD'], + wide: ['Before Christ', 'Anno Domini'] + }; + var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] + }; + + // Note: in English, the names of days of the week and months are capitalized. + // If you are making a new locale based on this one, check if the same is true for the language you're working on. + // Generally, formatted dates should look like they are in the middle of a sentence, + // e.g. in Spanish language the weekdays and months should be in the lowercase. + var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] + }; + var dayValues = { + narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], + short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], + abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] + }; + var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mi', + noon: 'n', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + } + }; + var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mi', + noon: 'n', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + } + }; + var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'st'; + case 2: + return number + 'nd'; + case 3: + return number + 'rd'; + } + } + return number + 'th'; + }; + var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) + }; + var localize$1 = localize; + + function buildMatchFn(args) { + return function (string) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) { + return null; + } + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }) : findKey(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; + } + function findKey(object, predicate) { + for (var key in object) { + if (object.hasOwnProperty(key) && predicate(object[key])) { + return key; + } + } + return undefined; + } + function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) { + if (predicate(array[key])) { + return key; + } + } + return undefined; + } + + function buildMatchPatternFn(args) { + return function (string) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; + } + + var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; + var parseOrdinalNumberPattern = /\d+/i; + var matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }; + var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] + }; + var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }; + var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] + }; + var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }; + var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] + }; + var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }; + var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] + }; + var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }; + var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } + }; + var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) + }; + var match$1 = match; + + /** + * @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$1, + formatLong: formatLong$1, + formatRelative: formatRelative$1, + localize: localize$1, + match: match$1, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1 + } + }; + var defaultLocale = locale; + + // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token + // (one of the certain letters followed by `o`) + // - (\w)\1* matches any sequences of the same letter + // - '' matches two quote characters in a row + // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), + // except a single quote symbol, which ends the sequence. + // Two quote characters do not end the sequence. + // If there is no matching single quote + // then the sequence will continue until the end of the string. + // - . matches any single character unmatched by previous parts of the RegExps + var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; + + // This RegExp catches symbols escaped by quotes, and also + // sequences of symbols P, p, and the combinations like `PPPPPPPppppp` + var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; + var escapedStringRegExp = /^'([^]*?)'?$/; + var doubleQuoteRegExp = /''/g; + var unescapedLatinCharacterRegExp = /[a-zA-Z]/; + + /** + * @name format + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear} + * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @param {Date|Number} date - the original date + * @param {String} format - the string of tokens + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is + * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @returns {String} the formatted date string + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `localize` property + * @throws {RangeError} `options.locale` must contain `formatLong` property + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ + + function format(dirtyDate, dirtyFormatStr, options) { + var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; + requiredArgs(2, arguments); + var formatStr = String(dirtyFormatStr); + var defaultOptions = getDefaultOptions(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale; + var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); + + // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); + + // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + if (!locale.localize) { + throw new RangeError('locale must contain localize property'); + } + if (!locale.formatLong) { + throw new RangeError('locale must contain formatLong property'); + } + var originalDate = toDate(dirtyDate); + if (!isValid(originalDate)) { + throw new RangeError('Invalid time value'); + } + + // Convert the date in system timezone to the same date in UTC+00:00 timezone. + // This ensures that when UTC functions will be implemented, locales will be compatible with them. + // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 + var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate); + var utcDate = subMilliseconds(originalDate, timezoneOffset); + var formatterOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale, + _originalDate: originalDate + }; + var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + if (firstCharacter === 'p' || firstCharacter === 'P') { + var longFormatter = longFormatters$1[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + return substring; + }).join('').match(formattingTokensRegExp).map(function (substring) { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return "'"; + } + var firstCharacter = substring[0]; + if (firstCharacter === "'") { + return cleanEscapedString(substring); + } + var formatter = formatters$1[firstCharacter]; + if (formatter) { + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) { + throwProtectedError(substring, dirtyFormatStr, String(dirtyDate)); + } + if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) { + throwProtectedError(substring, dirtyFormatStr, String(dirtyDate)); + } + return formatter(utcDate, substring, locale.localize, formatterOptions); + } + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } + return substring; + }).join(''); + return result; + } + function cleanEscapedString(input) { + var matched = input.match(escapedStringRegExp); + if (!matched) { + return input; + } + return matched[1].replace(doubleQuoteRegExp, "'"); + } + + var span = document.querySelector('#time-now'); + + function update() { + span.textContent = format(new Date(), 'h:mm:ssa'); + setTimeout(update, 1000); + } + + // even though Rollup is bundling all your files together, errors and + // logs will still point to your original source modules + console.log('if you have sourcemaps enabled in your devtools, click on main.js:5 -->'); + + update(); + +})(); +//# sourceMappingURL=bundle.js.map diff --git a/public/bundle.js.map b/public/bundle.js.map new file mode 100644 index 0000000..62672f4 --- /dev/null +++ b/public/bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../node_modules/date-fns/esm/isDate/index.js","../node_modules/date-fns/esm/toDate/index.js","../node_modules/date-fns/esm/isValid/index.js","../node_modules/date-fns/esm/_lib/toInteger/index.js","../node_modules/date-fns/esm/addMilliseconds/index.js","../node_modules/date-fns/esm/subMilliseconds/index.js","../node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js","../node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js","../node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js","../node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js","../node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js","../node_modules/date-fns/esm/_lib/defaultOptions/index.js","../node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js","../node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js","../node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js","../node_modules/date-fns/esm/_lib/getUTCWeek/index.js","../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","../node_modules/date-fns/esm/_lib/format/lightFormatters/index.js","../node_modules/date-fns/esm/_lib/format/formatters/index.js","../node_modules/date-fns/esm/_lib/format/longFormatters/index.js","../node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","../node_modules/date-fns/esm/_lib/protectedTokens/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js","../node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js","../node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js","../node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js","../node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/match/index.js","../node_modules/date-fns/esm/locale/en-US/index.js","../node_modules/date-fns/esm/format/index.js","../src/update.js","../src/main.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param {*} value - the value to check\n * @returns {boolean} true if the given value is a date\n * @throws {TypeError} 1 arguments required\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport default function isDate(value) {\n requiredArgs(1, arguments);\n return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}","import isDate from \"../isDate/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param {*} date - the date to check\n * @returns {Boolean} the date is valid\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport default function isValid(dirtyDate) {\n requiredArgs(1, arguments);\n if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {\n return false;\n }\n var date = toDate(dirtyDate);\n return !isNaN(Number(date));\n}","export default function toInteger(dirtyNumber) {\n if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\n return NaN;\n }\n var number = Number(dirtyNumber);\n if (isNaN(number)) {\n return number;\n }\n return number < 0 ? Math.ceil(number) : Math.floor(number);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @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`.\n * @returns {Date} the new date with the milliseconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nexport default function addMilliseconds(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var timestamp = toDate(dirtyDate).getTime();\n var amount = toInteger(dirtyAmount);\n return new Date(timestamp + amount);\n}","import addMilliseconds from \"../addMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name subMilliseconds\n * @category Millisecond Helpers\n * @summary Subtract the specified number of milliseconds from the given date.\n *\n * @description\n * Subtract the specified number of milliseconds from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @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`.\n * @returns {Date} the new date with the milliseconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:\n * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:29.250\n */\nexport default function subMilliseconds(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMilliseconds(dirtyDate, -amount);\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_DAY = 86400000;\nexport default function getUTCDayOfYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var timestamp = date.getTime();\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n var startOfYearTimestamp = date.getTime();\n var difference = timestamp - startOfYearTimestamp;\n return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function startOfUTCISOWeek(dirtyDate) {\n requiredArgs(1, arguments);\n var weekStartsOn = 1;\n var date = toDate(dirtyDate);\n var day = date.getUTCDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n date.setUTCDate(date.getUTCDate() - diff);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nexport default function getUTCISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getUTCFullYear();\n var fourthOfJanuaryOfNextYear = new Date(0);\n fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);\n var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);\n var fourthOfJanuaryOfThisYear = new Date(0);\n fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);\n var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}","import getUTCISOWeekYear from \"../getUTCISOWeekYear/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function startOfUTCISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var year = getUTCISOWeekYear(dirtyDate);\n var fourthOfJanuary = new Date(0);\n fourthOfJanuary.setUTCFullYear(year, 0, 4);\n fourthOfJanuary.setUTCHours(0, 0, 0, 0);\n var date = startOfUTCISOWeek(fourthOfJanuary);\n return date;\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport startOfUTCISOWeekYear from \"../startOfUTCISOWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000;\nexport default function getUTCISOWeek(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","var defaultOptions = {};\nexport function getDefaultOptions() {\n return defaultOptions;\n}\nexport function setDefaultOptions(newOptions) {\n defaultOptions = newOptions;\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function startOfUTCWeek(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var defaultOptions = getDefaultOptions();\n var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n var date = toDate(dirtyDate);\n var day = date.getUTCDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n date.setUTCDate(date.getUTCDate() - diff);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function getUTCWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getUTCFullYear();\n var defaultOptions = getDefaultOptions();\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n\n // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n var firstWeekOfNextYear = new Date(0);\n firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);\n var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);\n var firstWeekOfThisYear = new Date(0);\n firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);\n var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}","import getUTCWeekYear from \"../getUTCWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function startOfUTCWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var defaultOptions = getDefaultOptions();\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n var year = getUTCWeekYear(dirtyDate, options);\n var firstWeek = new Date(0);\n firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setUTCHours(0, 0, 0, 0);\n var date = startOfUTCWeek(firstWeek, options);\n return date;\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport startOfUTCWeekYear from \"../startOfUTCWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000;\nexport default function getUTCWeek(dirtyDate, options) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","export default function addLeadingZeros(number, targetLength) {\n var sign = number < 0 ? '-' : '';\n var output = Math.abs(number).toString();\n while (output.length < targetLength) {\n output = '0' + output;\n }\n return sign + output;\n}","import addLeadingZeros from \"../../addLeadingZeros/index.js\";\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\nvar formatters = {\n // Year\n y: function y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n var signedYear = date.getUTCFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n var year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);\n },\n // Month\n M: function M(date, token) {\n var month = date.getUTCMonth();\n return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n // Day of the month\n d: function d(date, token) {\n return addLeadingZeros(date.getUTCDate(), token.length);\n },\n // AM or PM\n a: function a(date, token) {\n var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';\n switch (token) {\n case 'a':\n case 'aa':\n return dayPeriodEnumValue.toUpperCase();\n case 'aaa':\n return dayPeriodEnumValue;\n case 'aaaaa':\n return dayPeriodEnumValue[0];\n case 'aaaa':\n default:\n return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';\n }\n },\n // Hour [1-12]\n h: function h(date, token) {\n return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);\n },\n // Hour [0-23]\n H: function H(date, token) {\n return addLeadingZeros(date.getUTCHours(), token.length);\n },\n // Minute\n m: function m(date, token) {\n return addLeadingZeros(date.getUTCMinutes(), token.length);\n },\n // Second\n s: function s(date, token) {\n return addLeadingZeros(date.getUTCSeconds(), token.length);\n },\n // Fraction of second\n S: function S(date, token) {\n var numberOfDigits = token.length;\n var milliseconds = date.getUTCMilliseconds();\n var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));\n return addLeadingZeros(fractionalSeconds, token.length);\n }\n};\nexport default formatters;","import getUTCDayOfYear from \"../../../_lib/getUTCDayOfYear/index.js\";\nimport getUTCISOWeek from \"../../../_lib/getUTCISOWeek/index.js\";\nimport getUTCISOWeekYear from \"../../../_lib/getUTCISOWeekYear/index.js\";\nimport getUTCWeek from \"../../../_lib/getUTCWeek/index.js\";\nimport getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\nimport addLeadingZeros from \"../../addLeadingZeros/index.js\";\nimport lightFormatters from \"../lightFormatters/index.js\";\nvar dayPeriodEnum = {\n am: 'am',\n pm: 'pm',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n};\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\n * | p! | Long localized time | P! | Long localized date |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nvar formatters = {\n // Era\n G: function G(date, token, localize) {\n var era = date.getUTCFullYear() > 0 ? 1 : 0;\n switch (token) {\n // AD, BC\n case 'G':\n case 'GG':\n case 'GGG':\n return localize.era(era, {\n width: 'abbreviated'\n });\n // A, B\n case 'GGGGG':\n return localize.era(era, {\n width: 'narrow'\n });\n // Anno Domini, Before Christ\n case 'GGGG':\n default:\n return localize.era(era, {\n width: 'wide'\n });\n }\n },\n // Year\n y: function y(date, token, localize) {\n // Ordinal number\n if (token === 'yo') {\n var signedYear = date.getUTCFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n var year = signedYear > 0 ? signedYear : 1 - signedYear;\n return localize.ordinalNumber(year, {\n unit: 'year'\n });\n }\n return lightFormatters.y(date, token);\n },\n // Local week-numbering year\n Y: function Y(date, token, localize, options) {\n var signedWeekYear = getUTCWeekYear(date, options);\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n // Two digit year\n if (token === 'YY') {\n var twoDigitYear = weekYear % 100;\n return addLeadingZeros(twoDigitYear, 2);\n }\n\n // Ordinal number\n if (token === 'Yo') {\n return localize.ordinalNumber(weekYear, {\n unit: 'year'\n });\n }\n\n // Padding\n return addLeadingZeros(weekYear, token.length);\n },\n // ISO week-numbering year\n R: function R(date, token) {\n var isoWeekYear = getUTCISOWeekYear(date);\n\n // Padding\n return addLeadingZeros(isoWeekYear, token.length);\n },\n // Extended year. This is a single number designating the year of this calendar system.\n // The main difference between `y` and `u` localizers are B.C. years:\n // | Year | `y` | `u` |\n // |------|-----|-----|\n // | AC 1 | 1 | 1 |\n // | BC 1 | 1 | 0 |\n // | BC 2 | 2 | -1 |\n // Also `yy` always returns the last two digits of a year,\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n u: function u(date, token) {\n var year = date.getUTCFullYear();\n return addLeadingZeros(year, token.length);\n },\n // Quarter\n Q: function Q(date, token, localize) {\n var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case 'Q':\n return String(quarter);\n // 01, 02, 03, 04\n case 'QQ':\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case 'Qo':\n return localize.ordinalNumber(quarter, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n case 'QQQ':\n return localize.quarter(quarter, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case 'QQQQQ':\n return localize.quarter(quarter, {\n width: 'narrow',\n context: 'formatting'\n });\n // 1st quarter, 2nd quarter, ...\n case 'QQQQ':\n default:\n return localize.quarter(quarter, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Stand-alone quarter\n q: function q(date, token, localize) {\n var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case 'q':\n return String(quarter);\n // 01, 02, 03, 04\n case 'qq':\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case 'qo':\n return localize.ordinalNumber(quarter, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n case 'qqq':\n return localize.quarter(quarter, {\n width: 'abbreviated',\n context: 'standalone'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case 'qqqqq':\n return localize.quarter(quarter, {\n width: 'narrow',\n context: 'standalone'\n });\n // 1st quarter, 2nd quarter, ...\n case 'qqqq':\n default:\n return localize.quarter(quarter, {\n width: 'wide',\n context: 'standalone'\n });\n }\n },\n // Month\n M: function M(date, token, localize) {\n var month = date.getUTCMonth();\n switch (token) {\n case 'M':\n case 'MM':\n return lightFormatters.M(date, token);\n // 1st, 2nd, ..., 12th\n case 'Mo':\n return localize.ordinalNumber(month + 1, {\n unit: 'month'\n });\n // Jan, Feb, ..., Dec\n case 'MMM':\n return localize.month(month, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // J, F, ..., D\n case 'MMMMM':\n return localize.month(month, {\n width: 'narrow',\n context: 'formatting'\n });\n // January, February, ..., December\n case 'MMMM':\n default:\n return localize.month(month, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Stand-alone month\n L: function L(date, token, localize) {\n var month = date.getUTCMonth();\n switch (token) {\n // 1, 2, ..., 12\n case 'L':\n return String(month + 1);\n // 01, 02, ..., 12\n case 'LL':\n return addLeadingZeros(month + 1, 2);\n // 1st, 2nd, ..., 12th\n case 'Lo':\n return localize.ordinalNumber(month + 1, {\n unit: 'month'\n });\n // Jan, Feb, ..., Dec\n case 'LLL':\n return localize.month(month, {\n width: 'abbreviated',\n context: 'standalone'\n });\n // J, F, ..., D\n case 'LLLLL':\n return localize.month(month, {\n width: 'narrow',\n context: 'standalone'\n });\n // January, February, ..., December\n case 'LLLL':\n default:\n return localize.month(month, {\n width: 'wide',\n context: 'standalone'\n });\n }\n },\n // Local week of year\n w: function w(date, token, localize, options) {\n var week = getUTCWeek(date, options);\n if (token === 'wo') {\n return localize.ordinalNumber(week, {\n unit: 'week'\n });\n }\n return addLeadingZeros(week, token.length);\n },\n // ISO week of year\n I: function I(date, token, localize) {\n var isoWeek = getUTCISOWeek(date);\n if (token === 'Io') {\n return localize.ordinalNumber(isoWeek, {\n unit: 'week'\n });\n }\n return addLeadingZeros(isoWeek, token.length);\n },\n // Day of the month\n d: function d(date, token, localize) {\n if (token === 'do') {\n return localize.ordinalNumber(date.getUTCDate(), {\n unit: 'date'\n });\n }\n return lightFormatters.d(date, token);\n },\n // Day of year\n D: function D(date, token, localize) {\n var dayOfYear = getUTCDayOfYear(date);\n if (token === 'Do') {\n return localize.ordinalNumber(dayOfYear, {\n unit: 'dayOfYear'\n });\n }\n return addLeadingZeros(dayOfYear, token.length);\n },\n // Day of week\n E: function E(date, token, localize) {\n var dayOfWeek = date.getUTCDay();\n switch (token) {\n // Tue\n case 'E':\n case 'EE':\n case 'EEE':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // T\n case 'EEEEE':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n case 'EEEEEE':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'formatting'\n });\n // Tuesday\n case 'EEEE':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Local day of week\n e: function e(date, token, localize, options) {\n var dayOfWeek = date.getUTCDay();\n var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (Nth day of week with current locale or weekStartsOn)\n case 'e':\n return String(localDayOfWeek);\n // Padded numerical value\n case 'ee':\n return addLeadingZeros(localDayOfWeek, 2);\n // 1st, 2nd, ..., 7th\n case 'eo':\n return localize.ordinalNumber(localDayOfWeek, {\n unit: 'day'\n });\n case 'eee':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // T\n case 'eeeee':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n case 'eeeeee':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'formatting'\n });\n // Tuesday\n case 'eeee':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Stand-alone local day of week\n c: function c(date, token, localize, options) {\n var dayOfWeek = date.getUTCDay();\n var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (same as in `e`)\n case 'c':\n return String(localDayOfWeek);\n // Padded numerical value\n case 'cc':\n return addLeadingZeros(localDayOfWeek, token.length);\n // 1st, 2nd, ..., 7th\n case 'co':\n return localize.ordinalNumber(localDayOfWeek, {\n unit: 'day'\n });\n case 'ccc':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'standalone'\n });\n // T\n case 'ccccc':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'standalone'\n });\n // Tu\n case 'cccccc':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'standalone'\n });\n // Tuesday\n case 'cccc':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'standalone'\n });\n }\n },\n // ISO day of week\n i: function i(date, token, localize) {\n var dayOfWeek = date.getUTCDay();\n var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n switch (token) {\n // 2\n case 'i':\n return String(isoDayOfWeek);\n // 02\n case 'ii':\n return addLeadingZeros(isoDayOfWeek, token.length);\n // 2nd\n case 'io':\n return localize.ordinalNumber(isoDayOfWeek, {\n unit: 'day'\n });\n // Tue\n case 'iii':\n return localize.day(dayOfWeek, {\n width: 'abbreviated',\n context: 'formatting'\n });\n // T\n case 'iiiii':\n return localize.day(dayOfWeek, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n case 'iiiiii':\n return localize.day(dayOfWeek, {\n width: 'short',\n context: 'formatting'\n });\n // Tuesday\n case 'iiii':\n default:\n return localize.day(dayOfWeek, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // AM or PM\n a: function a(date, token, localize) {\n var hours = date.getUTCHours();\n var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n switch (token) {\n case 'a':\n case 'aa':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n });\n case 'aaa':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n }).toLowerCase();\n case 'aaaaa':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'narrow',\n context: 'formatting'\n });\n case 'aaaa':\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // AM, PM, midnight, noon\n b: function b(date, token, localize) {\n var hours = date.getUTCHours();\n var dayPeriodEnumValue;\n if (hours === 12) {\n dayPeriodEnumValue = dayPeriodEnum.noon;\n } else if (hours === 0) {\n dayPeriodEnumValue = dayPeriodEnum.midnight;\n } else {\n dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n }\n switch (token) {\n case 'b':\n case 'bb':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n });\n case 'bbb':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n }).toLowerCase();\n case 'bbbbb':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'narrow',\n context: 'formatting'\n });\n case 'bbbb':\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // in the morning, in the afternoon, in the evening, at night\n B: function B(date, token, localize) {\n var hours = date.getUTCHours();\n var dayPeriodEnumValue;\n if (hours >= 17) {\n dayPeriodEnumValue = dayPeriodEnum.evening;\n } else if (hours >= 12) {\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\n } else if (hours >= 4) {\n dayPeriodEnumValue = dayPeriodEnum.morning;\n } else {\n dayPeriodEnumValue = dayPeriodEnum.night;\n }\n switch (token) {\n case 'B':\n case 'BB':\n case 'BBB':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'abbreviated',\n context: 'formatting'\n });\n case 'BBBBB':\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'narrow',\n context: 'formatting'\n });\n case 'BBBB':\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: 'wide',\n context: 'formatting'\n });\n }\n },\n // Hour [1-12]\n h: function h(date, token, localize) {\n if (token === 'ho') {\n var hours = date.getUTCHours() % 12;\n if (hours === 0) hours = 12;\n return localize.ordinalNumber(hours, {\n unit: 'hour'\n });\n }\n return lightFormatters.h(date, token);\n },\n // Hour [0-23]\n H: function H(date, token, localize) {\n if (token === 'Ho') {\n return localize.ordinalNumber(date.getUTCHours(), {\n unit: 'hour'\n });\n }\n return lightFormatters.H(date, token);\n },\n // Hour [0-11]\n K: function K(date, token, localize) {\n var hours = date.getUTCHours() % 12;\n if (token === 'Ko') {\n return localize.ordinalNumber(hours, {\n unit: 'hour'\n });\n }\n return addLeadingZeros(hours, token.length);\n },\n // Hour [1-24]\n k: function k(date, token, localize) {\n var hours = date.getUTCHours();\n if (hours === 0) hours = 24;\n if (token === 'ko') {\n return localize.ordinalNumber(hours, {\n unit: 'hour'\n });\n }\n return addLeadingZeros(hours, token.length);\n },\n // Minute\n m: function m(date, token, localize) {\n if (token === 'mo') {\n return localize.ordinalNumber(date.getUTCMinutes(), {\n unit: 'minute'\n });\n }\n return lightFormatters.m(date, token);\n },\n // Second\n s: function s(date, token, localize) {\n if (token === 'so') {\n return localize.ordinalNumber(date.getUTCSeconds(), {\n unit: 'second'\n });\n }\n return lightFormatters.s(date, token);\n },\n // Fraction of second\n S: function S(date, token) {\n return lightFormatters.S(date, token);\n },\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function X(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n if (timezoneOffset === 0) {\n return 'Z';\n }\n switch (token) {\n // Hours and optional minutes\n case 'X':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case 'XXXX':\n case 'XX':\n // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case 'XXXXX':\n case 'XXX': // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function x(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n switch (token) {\n // Hours and optional minutes\n case 'x':\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case 'xxxx':\n case 'xx':\n // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case 'xxxxx':\n case 'xxx': // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (GMT)\n O: function O(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n switch (token) {\n // Short\n case 'O':\n case 'OO':\n case 'OOO':\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n // Long\n case 'OOOO':\n default:\n return 'GMT' + formatTimezone(timezoneOffset, ':');\n }\n },\n // Timezone (specific non-location)\n z: function z(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timezoneOffset = originalDate.getTimezoneOffset();\n switch (token) {\n // Short\n case 'z':\n case 'zz':\n case 'zzz':\n return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n // Long\n case 'zzzz':\n default:\n return 'GMT' + formatTimezone(timezoneOffset, ':');\n }\n },\n // Seconds timestamp\n t: function t(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timestamp = Math.floor(originalDate.getTime() / 1000);\n return addLeadingZeros(timestamp, token.length);\n },\n // Milliseconds timestamp\n T: function T(date, token, _localize, options) {\n var originalDate = options._originalDate || date;\n var timestamp = originalDate.getTime();\n return addLeadingZeros(timestamp, token.length);\n }\n};\nfunction formatTimezoneShort(offset, dirtyDelimiter) {\n var sign = offset > 0 ? '-' : '+';\n var absOffset = Math.abs(offset);\n var hours = Math.floor(absOffset / 60);\n var minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n var delimiter = dirtyDelimiter || '';\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\nfunction formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {\n if (offset % 60 === 0) {\n var sign = offset > 0 ? '-' : '+';\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, dirtyDelimiter);\n}\nfunction formatTimezone(offset, dirtyDelimiter) {\n var delimiter = dirtyDelimiter || '';\n var sign = offset > 0 ? '-' : '+';\n var absOffset = Math.abs(offset);\n var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);\n var minutes = addLeadingZeros(absOffset % 60, 2);\n return sign + hours + delimiter + minutes;\n}\nexport default formatters;","var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {\n switch (pattern) {\n case 'P':\n return formatLong.date({\n width: 'short'\n });\n case 'PP':\n return formatLong.date({\n width: 'medium'\n });\n case 'PPP':\n return formatLong.date({\n width: 'long'\n });\n case 'PPPP':\n default:\n return formatLong.date({\n width: 'full'\n });\n }\n};\nvar timeLongFormatter = function timeLongFormatter(pattern, formatLong) {\n switch (pattern) {\n case 'p':\n return formatLong.time({\n width: 'short'\n });\n case 'pp':\n return formatLong.time({\n width: 'medium'\n });\n case 'ppp':\n return formatLong.time({\n width: 'long'\n });\n case 'pppp':\n default:\n return formatLong.time({\n width: 'full'\n });\n }\n};\nvar dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {\n var matchResult = pattern.match(/(P+)(p+)?/) || [];\n var datePattern = matchResult[1];\n var timePattern = matchResult[2];\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n var dateTimeFormat;\n switch (datePattern) {\n case 'P':\n dateTimeFormat = formatLong.dateTime({\n width: 'short'\n });\n break;\n case 'PP':\n dateTimeFormat = formatLong.dateTime({\n width: 'medium'\n });\n break;\n case 'PPP':\n dateTimeFormat = formatLong.dateTime({\n width: 'long'\n });\n break;\n case 'PPPP':\n default:\n dateTimeFormat = formatLong.dateTime({\n width: 'full'\n });\n break;\n }\n return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));\n};\nvar longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter\n};\nexport default longFormatters;","/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport default function getTimezoneOffsetInMilliseconds(date) {\n var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\n utcDate.setUTCFullYear(date.getFullYear());\n return date.getTime() - utcDate.getTime();\n}","var protectedDayOfYearTokens = ['D', 'DD'];\nvar protectedWeekYearTokens = ['YY', 'YYYY'];\nexport function isProtectedDayOfYearToken(token) {\n return protectedDayOfYearTokens.indexOf(token) !== -1;\n}\nexport function isProtectedWeekYearToken(token) {\n return protectedWeekYearTokens.indexOf(token) !== -1;\n}\nexport function throwProtectedError(token, format, input) {\n if (token === 'YYYY') {\n throw new RangeError(\"Use `yyyy` instead of `YYYY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'YY') {\n throw new RangeError(\"Use `yy` instead of `YY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'D') {\n throw new RangeError(\"Use `d` instead of `D` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'DD') {\n throw new RangeError(\"Use `dd` instead of `DD` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n }\n}","var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'less than a second',\n other: 'less than {{count}} seconds'\n },\n xSeconds: {\n one: '1 second',\n other: '{{count}} seconds'\n },\n halfAMinute: 'half a minute',\n lessThanXMinutes: {\n one: 'less than a minute',\n other: 'less than {{count}} minutes'\n },\n xMinutes: {\n one: '1 minute',\n other: '{{count}} minutes'\n },\n aboutXHours: {\n one: 'about 1 hour',\n other: 'about {{count}} hours'\n },\n xHours: {\n one: '1 hour',\n other: '{{count}} hours'\n },\n xDays: {\n one: '1 day',\n other: '{{count}} days'\n },\n aboutXWeeks: {\n one: 'about 1 week',\n other: 'about {{count}} weeks'\n },\n xWeeks: {\n one: '1 week',\n other: '{{count}} weeks'\n },\n aboutXMonths: {\n one: 'about 1 month',\n other: 'about {{count}} months'\n },\n xMonths: {\n one: '1 month',\n other: '{{count}} months'\n },\n aboutXYears: {\n one: 'about 1 year',\n other: 'about {{count}} years'\n },\n xYears: {\n one: '1 year',\n other: '{{count}} years'\n },\n overXYears: {\n one: 'over 1 year',\n other: 'over {{count}} years'\n },\n almostXYears: {\n one: 'almost 1 year',\n other: 'almost {{count}} years'\n }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n var result;\n var tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === 'string') {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace('{{count}}', count.toString());\n }\n if (options !== null && options !== void 0 && options.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return 'in ' + result;\n } else {\n return result + ' ago';\n }\n }\n return result;\n};\nexport default formatDistance;","export default function buildFormatLongFn(args) {\n return function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n // TODO: Remove String()\n var width = options.width ? String(options.width) : args.defaultWidth;\n var format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n full: 'EEEE, MMMM do, y',\n long: 'MMMM do, y',\n medium: 'MMM d, y',\n short: 'MM/dd/yyyy'\n};\nvar timeFormats = {\n full: 'h:mm:ss a zzzz',\n long: 'h:mm:ss a z',\n medium: 'h:mm:ss a',\n short: 'h:mm a'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;","var formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n return formatRelativeLocale[token];\n};\nexport default formatRelative;","export default function buildLocalizeFn(args) {\n return function (dirtyIndex, options) {\n var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';\n var valuesArray;\n if (context === 'formatting' && args.formattingValues) {\n var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;\n valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n var _defaultWidth = args.defaultWidth;\n var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;\n valuesArray = args.values[_width] || args.values[_defaultWidth];\n }\n var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;\n // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n narrow: ['B', 'A'],\n abbreviated: ['BC', 'AD'],\n wide: ['Before Christ', 'Anno Domini']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nvar monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n};\nvar dayValues = {\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n var number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n var rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + 'st';\n case 2:\n return number + 'nd';\n case 3:\n return number + 'rd';\n }\n }\n return number + 'th';\n};\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return quarter - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;","export default function buildMatchFn(args) {\n return function (string) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var width = options.width;\n var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];\n var matchResult = string.match(matchPattern);\n if (!matchResult) {\n return null;\n }\n var matchedString = matchResult[0];\n var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];\n var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {\n return pattern.test(matchedString);\n }) : findKey(parsePatterns, function (pattern) {\n return pattern.test(matchedString);\n });\n var value;\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback ? options.valueCallback(value) : value;\n var rest = string.slice(matchedString.length);\n return {\n value: value,\n rest: rest\n };\n };\n}\nfunction findKey(object, predicate) {\n for (var key in object) {\n if (object.hasOwnProperty(key) && predicate(object[key])) {\n return key;\n }\n }\n return undefined;\n}\nfunction findIndex(array, predicate) {\n for (var key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}","export default function buildMatchPatternFn(args) {\n return function (string) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n var matchedString = matchResult[0];\n var parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];\n value = options.valueCallback ? options.valueCallback(value) : value;\n var rest = string.slice(matchedString.length);\n return {\n value: value,\n rest: rest\n };\n };\n}","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i\n};\nvar parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\n};\nvar parseMonthPatterns = {\n 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],\n 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]\n};\nvar matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n};\nvar parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}\n * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}\n */\nvar locale = {\n code: 'en-US',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1\n }\n};\nexport default locale;","import isValid from \"../isValid/index.js\";\nimport subMilliseconds from \"../subMilliseconds/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport formatters from \"../_lib/format/formatters/index.js\";\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\"; // This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name format\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}\n * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @param {Date|Number} date - the original date\n * @param {String} format - the string of tokens\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @returns {String} the formatted date string\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\n\nexport default function format(dirtyDate, dirtyFormatStr, options) {\n var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;\n requiredArgs(2, arguments);\n var formatStr = String(dirtyFormatStr);\n var defaultOptions = getDefaultOptions();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);\n\n // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n if (!locale.localize) {\n throw new RangeError('locale must contain localize property');\n }\n if (!locale.formatLong) {\n throw new RangeError('locale must contain formatLong property');\n }\n var originalDate = toDate(dirtyDate);\n if (!isValid(originalDate)) {\n throw new RangeError('Invalid time value');\n }\n\n // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376\n var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);\n var utcDate = subMilliseconds(originalDate, timezoneOffset);\n var formatterOptions = {\n firstWeekContainsDate: firstWeekContainsDate,\n weekStartsOn: weekStartsOn,\n locale: locale,\n _originalDate: originalDate\n };\n var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {\n var firstCharacter = substring[0];\n if (firstCharacter === 'p' || firstCharacter === 'P') {\n var longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n }).join('').match(formattingTokensRegExp).map(function (substring) {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return \"'\";\n }\n var firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return cleanEscapedString(substring);\n }\n var formatter = formatters[firstCharacter];\n if (formatter) {\n if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {\n throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\n }\n if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {\n throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\n }\n return formatter(utcDate, substring, locale.localize, formatterOptions);\n }\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n }\n return substring;\n }).join('');\n return result;\n}\nfunction cleanEscapedString(input) {\n var matched = input.match(escapedStringRegExp);\n if (!matched) {\n return input;\n }\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}","import format from 'date-fns/format';\r\n\r\nvar span = document.querySelector('#time-now');\r\n\r\nexport default function update() {\r\n\tspan.textContent = format(new Date(), 'h:mm:ssa');\r\n\tsetTimeout(update, 1000);\r\n}","import update from './update.js';\r\n\r\n// even though Rollup is bundling all your files together, errors and\r\n// logs will still point to your original source modules\r\nconsole.log('if you have sourcemaps enabled in your devtools, click on main.js:5 -->');\r\n\r\nupdate();"],"names":["MILLISECONDS_IN_WEEK","formatters","formatDistance","formatLong","formatRelative","localize","match","longFormatters"],"mappings":";;;EAAe,SAAS,OAAO,CAAC,CAAC,EAAE;EACnC,EAAE,yBAAyB,CAAC;AAC5B;EACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;EACpG,IAAI,OAAO,OAAO,CAAC,CAAC;EACpB,GAAG,GAAG,UAAU,CAAC,EAAE;EACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;EACxH,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;EAChB;;ECRe,SAAS,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE;EACrD,EAAE,IAAI,IAAI,CAAC,MAAM,GAAG,QAAQ,EAAE;EAC9B,IAAI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EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;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AAM,CAAC,IAAI,IAAI,EAAE,EAAE,UAAU,CAAC,CAAC;EACnD,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;EAC1B;;ECLA;EACA;EACA,OAAO,CAAC,GAAG,CAAC,yEAAyE,CAAC,CAAC;AACvF;EACA,MAAM,EAAE;;;;;;"} \ No newline at end of file From 47632d24a8d32a3eabe433e048187b5371c6fce1 Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:02:49 -0500 Subject: [PATCH 53/54] new --- src/sizes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sizes.js b/src/sizes.js index 2546863..7957e07 100644 --- a/src/sizes.js +++ b/src/sizes.js @@ -8,10 +8,10 @@ var headerSpan = document.querySelector("#headerHeight"); var mainSpan = document.querySelector("#mainHeight"); var footerSpan = document.querySelector("#footerHeight"); -export default function sizes(){ +export default function sizes() { headerSpan.innerText = hh + "px"; mainSpan.innerText = mh + "px"; footerSpan.innerText = fh + "px"; - + } \ No newline at end of file From b2ee6b1543aed02cb32db0b67f7a7e29ec4a52fa Mon Sep 17 00:00:00 2001 From: Stephen <59994443+hvacsteve-chi@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:04:22 -0500 Subject: [PATCH 54/54] chg --- README.md | 3 +- public/style.css | 77 +++++++++++++++++++---------------------- public/webmanifest.json | 20 ++++++++++- 3 files changed, 56 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index e145070..f3e71fb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ This repo contains a bare-bones example of how to create an application using Rollup, including importing a module from `node_modules` and converting it from CommonJS. -*See also https://github.com/rollup/rollup-starter-lib* - +_See also https://github.com/rollup/rollup-starter-lib_ ## Getting started diff --git a/public/style.css b/public/style.css index cff31de..24f54f8 100644 --- a/public/style.css +++ b/public/style.css @@ -10,8 +10,8 @@ html { overflow: hidden; white-space: normal; text-overflow: ellipsis; - text-wrap:balance; - -webkit-overscroll-behavior:contain; + text-wrap: balance; + -webkit-overscroll-behavior: contain; overscroll-behavior: contain; overflow-wrap: break-word; accent-color: auto; @@ -35,11 +35,7 @@ body { color: #f2f2f2; } .material-symbols-outlined { - font-variation-settings: - 'FILL' 0, - 'wght' 400, - 'GRAD' 0, - 'opsz' 24 + font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; } header { height: 100%; @@ -48,57 +44,56 @@ header { background: pink; color: black; } -header .header-wrapper{ - margin:auto; - height:calc(100% - 2px); - width:calc(100% - 2px); +header .header-wrapper { + margin: auto; + height: calc(100% - 2px); + width: calc(100% - 2px); display: grid; place-items: center; grid-template-columns: auto 1fr auto; - background:rgba(177, 176, 176, 0.76); - border:1px solid white; + background: rgba(177, 176, 176, 0.76); + border: 1px solid white; } -header .header-wrapper nav{ +header .header-wrapper nav { margin: 0 6px 0 4px; - height:48px; - width:48px; - background:hsla(0, 0%, 100%, 0.76); - display:flex; + height: 48px; + width: 48px; + background: hsla(0, 0%, 100%, 0.76); + display: flex; justify-content: center; align-items: center; - border-radius:4px; + border-radius: 4px; appearance: none; - -webkit-user-select:none; + -webkit-user-select: none; user-select: none; cursor: pointer; - outline:none; + outline: none; -webkit-tap-highlight-color: transparent; - tap-highlight-color:transparent; + tap-highlight-color: transparent; touch-action: manipulation; - transition:all; - will-change:auto; + transition: all; + will-change: auto; } -header .header-wrapper nav:is(:hover,:focus){ - background:hsla(0, 0%, 100%, 0.46); +header .header-wrapper nav:is(:hover, :focus) { + background: hsla(0, 0%, 100%, 0.46); transform: all 200ms ease-in-out; } -header .header-wrapper h1{ - font-size:calc(2.8rem + 0.18vw); +header .header-wrapper h1 { + font-size: calc(2.8rem + 0.18vw); } main { height: 100%; background: lightblue; color: black; } -main .main-wrapper{ - margin:auto; - height:calc(100% - 2px); - width:calc(100% - px); +main .main-wrapper { + margin: auto; + height: calc(100% - 2px); + width: calc(100% - px); display: grid; place-items: center; - background:rgba(119, 166, 182, 0.76); - border:1px solid white; - + background: rgba(119, 166, 182, 0.76); + border: 1px solid white; } footer { height: 100%; @@ -106,14 +101,14 @@ footer { background: lightgreen; color: black; } -footer .footer-wrapper{ - margin:auto; - height:calc(100% - 2px); - width:calc(100% - 2px); +footer .footer-wrapper { + margin: auto; + height: calc(100% - 2px); + width: calc(100% - 2px); display: grid; place-items: center; - background:rgba(137, 180, 137, 0.76); - border:1px solid white; + background: rgba(137, 180, 137, 0.76); + border: 1px solid white; } @media (prefers-color-scheme: light) { diff --git a/public/webmanifest.json b/public/webmanifest.json index 950ec94..cc0fdcf 100644 --- a/public/webmanifest.json +++ b/public/webmanifest.json @@ -1 +1,19 @@ -{"name":"Faith Heating and Cooling Chicago","short_name":"Faith HVAC","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#000000","background_color":"#ffffff","display":"standalone"} \ No newline at end of file +{ + "name": "Faith Heating and Cooling Chicago", + "short_name": "Faith HVAC", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#000000", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file