umaki 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/README.md +22 -0
  2. package/dist/LICENSE.txt +1 -1
  3. package/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
  4. package/dist/_virtual/_commonjsHelpers.es.js +0 -13
  5. package/dist/_virtual/isBetween.cjs.js +6 -14
  6. package/dist/_virtual/isBetween.cjs2.js +4 -0
  7. package/dist/_virtual/isBetween.es.js +5 -13
  8. package/dist/_virtual/isBetween.es2.js +4 -0
  9. package/dist/_virtual/timezone.cjs.js +6 -14
  10. package/dist/_virtual/timezone.cjs2.js +4 -0
  11. package/dist/_virtual/timezone.es.js +5 -13
  12. package/dist/_virtual/timezone.es2.js +4 -0
  13. package/dist/_virtual/utc.cjs.js +6 -14
  14. package/dist/_virtual/utc.cjs2.js +4 -0
  15. package/dist/_virtual/utc.es.js +5 -13
  16. package/dist/_virtual/utc.es2.js +4 -0
  17. package/dist/index.cjs.js +6 -15
  18. package/dist/index.es.js +4 -13
  19. package/dist/libs/config/defaultConfig.cjs.js +0 -11
  20. package/dist/libs/config/defaultConfig.es.js +0 -11
  21. package/dist/libs/config/getConfig.cjs.js +0 -11
  22. package/dist/libs/config/getConfig.es.js +0 -11
  23. package/dist/libs/config/index.d.ts +1 -1
  24. package/dist/libs/config/setConfig.cjs.js +0 -11
  25. package/dist/libs/config/setConfig.es.js +0 -11
  26. package/dist/libs/control/bgScrollStop.cjs.js +0 -11
  27. package/dist/libs/control/bgScrollStop.es.js +0 -11
  28. package/dist/libs/control/pd.cjs.js +0 -11
  29. package/dist/libs/control/pd.es.js +0 -11
  30. package/dist/libs/control/scrollToHash.cjs.js +0 -11
  31. package/dist/libs/control/scrollToHash.es.js +0 -11
  32. package/dist/libs/control/videoPlayControl.cjs.js +0 -11
  33. package/dist/libs/control/videoPlayControl.es.js +0 -11
  34. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
  35. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
  36. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
  37. package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
  38. package/dist/libs/eventControl/debounce.cjs.js +0 -11
  39. package/dist/libs/eventControl/debounce.es.js +0 -11
  40. package/dist/libs/eventControl/throttle.cjs.js +0 -11
  41. package/dist/libs/eventControl/throttle.es.js +0 -11
  42. package/dist/libs/get/getAspectRatio.cjs.js +0 -11
  43. package/dist/libs/get/getAspectRatio.es.js +0 -11
  44. package/dist/libs/get/getClassNames.cjs.js +0 -11
  45. package/dist/libs/get/getClassNames.es.js +0 -11
  46. package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
  47. package/dist/libs/get/getDocumentHeight.es.js +0 -11
  48. package/dist/libs/get/getEventPaths.cjs.js +1 -13
  49. package/dist/libs/get/getEventPaths.es.js +1 -13
  50. package/dist/libs/get/getGcd.cjs.js +0 -11
  51. package/dist/libs/get/getGcd.es.js +0 -11
  52. package/dist/libs/get/getGravatarUrl.cjs.js +9 -0
  53. package/dist/libs/get/getGravatarUrl.d.ts +12 -0
  54. package/dist/libs/get/getGravatarUrl.es.js +9 -0
  55. package/dist/libs/get/getGravatarUrl.test.d.ts +1 -0
  56. package/dist/libs/get/getOrientation.cjs.js +0 -11
  57. package/dist/libs/get/getOrientation.es.js +0 -11
  58. package/dist/libs/get/getParentList.cjs.js +0 -11
  59. package/dist/libs/get/getParentList.es.js +0 -11
  60. package/dist/libs/get/getQueryParams.cjs.js +0 -11
  61. package/dist/libs/get/getQueryParams.es.js +0 -11
  62. package/dist/libs/get/getRem.cjs.js +4 -13
  63. package/dist/libs/get/getRem.d.ts +1 -0
  64. package/dist/libs/get/getRem.es.js +4 -13
  65. package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
  66. package/dist/libs/get/getScrollbarWidth.es.js +0 -11
  67. package/dist/libs/get/getSessionStorage.cjs.js +0 -11
  68. package/dist/libs/get/getSessionStorage.es.js +0 -11
  69. package/dist/libs/get/getStringLength.cjs.js +0 -11
  70. package/dist/libs/get/getStringLength.es.js +0 -11
  71. package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
  72. package/dist/libs/get/getStylePropertyValue.es.js +0 -11
  73. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
  74. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
  75. package/dist/libs/get/getUaData.cjs.js +1 -12
  76. package/dist/libs/get/getUaData.es.js +1 -12
  77. package/dist/libs/get/index.d.ts +1 -0
  78. package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
  79. package/dist/libs/is/checkDeviceSize.es.js +0 -11
  80. package/dist/libs/is/index.d.ts +1 -1
  81. package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
  82. package/dist/libs/is/isAfterDateTime.es.js +0 -11
  83. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
  84. package/dist/libs/is/isBetweenDateTime.es.js +1 -12
  85. package/dist/libs/is/isExistAllElements.cjs.js +0 -11
  86. package/dist/libs/is/isExistAllElements.es.js +0 -11
  87. package/dist/libs/is/isIpad.cjs.js +0 -11
  88. package/dist/libs/is/isIpad.es.js +0 -11
  89. package/dist/libs/is/isKeyExists.cjs.js +1 -12
  90. package/dist/libs/is/isKeyExists.es.js +1 -12
  91. package/dist/libs/is/isSafari.cjs.js +0 -11
  92. package/dist/libs/is/isSafari.es.js +0 -11
  93. package/dist/libs/is/isScrollable.cjs.js +0 -11
  94. package/dist/libs/is/isScrollable.es.js +0 -11
  95. package/dist/libs/is/isTouchSupport.cjs.js +2 -13
  96. package/dist/libs/is/isTouchSupport.es.js +2 -13
  97. package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
  98. package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
  99. package/dist/libs/remove/removeAttribute.cjs.js +0 -11
  100. package/dist/libs/remove/removeAttribute.es.js +0 -11
  101. package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
  102. package/dist/libs/remove/removeSessionStorage.es.js +0 -11
  103. package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
  104. package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
  105. package/dist/libs/security/htmlSanitize.cjs.js +0 -11
  106. package/dist/libs/security/htmlSanitize.es.js +0 -11
  107. package/dist/libs/set/set100vh.cjs.js +0 -11
  108. package/dist/libs/set/set100vh.es.js +0 -11
  109. package/dist/libs/set/set100vw.cjs.js +0 -11
  110. package/dist/libs/set/set100vw.es.js +0 -11
  111. package/dist/libs/set/setAttribute.cjs.js +0 -11
  112. package/dist/libs/set/setAttribute.es.js +0 -11
  113. package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
  114. package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
  115. package/dist/libs/set/setSessionStorage.cjs.js +0 -11
  116. package/dist/libs/set/setSessionStorage.es.js +0 -11
  117. package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
  118. package/dist/libs/set/setStylePropertyValue.es.js +0 -11
  119. package/dist/libs/to/toBoolean.cjs.js +0 -11
  120. package/dist/libs/to/toBoolean.es.js +0 -11
  121. package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
  122. package/dist/libs/to/toPositiveNumber.es.js +0 -11
  123. package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
  124. package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
  125. package/dist/libs/wait/sleep.cjs.js +0 -11
  126. package/dist/libs/wait/sleep.es.js +0 -11
  127. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
  128. package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
  129. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +23 -0
  130. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +23 -0
  131. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +71 -0
  132. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +71 -0
  133. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +83 -0
  134. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +83 -0
  135. package/package.json +20 -18
  136. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.cjs.js +0 -30
  137. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.es.js +0 -30
  138. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs.js +0 -78
  139. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.es.js +0 -78
  140. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs.js +0 -91
  141. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.es.js +0 -91
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const setScrollPositionToCenter = (rootElement, targetElement, behavior = "smooth") => {
15
4
  const rootHalfW = rootElement.getBoundingClientRect().width / 2;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  const setScrollPositionToCenter = (rootElement, targetElement, behavior = "smooth") => {
13
2
  const rootHalfW = rootElement.getBoundingClientRect().width / 2;
14
3
  const buttonHalfW = targetElement.getBoundingClientRect().width / 2;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const store = require("store2");
15
4
  const setSessionStorage = (key, value) => {
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  import store from "store2";
13
2
  const setSessionStorage = (key, value) => {
14
3
  store.session.set(key, value);
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const setStylePropertyValue = (key, value) => {
15
4
  document.documentElement.style.setProperty(key, value);
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  const setStylePropertyValue = (key, value) => {
13
2
  document.documentElement.style.setProperty(key, value);
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const toBoolean = (booleanStr) => {
15
4
  return booleanStr ? booleanStr.toLowerCase() === "true" : false;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  const toBoolean = (booleanStr) => {
13
2
  return booleanStr ? booleanStr.toLowerCase() === "true" : false;
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const toPositiveNumber = (n) => Math.abs(n);
15
4
  exports.toPositiveNumber = toPositiveNumber;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  const toPositiveNumber = (n) => Math.abs(n);
13
2
  export {
14
3
  toPositiveNumber
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const wrapTextWithSpans = (element) => {
15
4
  if (!element) return;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  const wrapTextWithSpans = (element) => {
13
2
  if (!element) return;
14
3
  if (element.nodeType === Node.TEXT_NODE) {
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const sleep = (time) => {
15
4
  return new Promise((resolve) => setTimeout(resolve, time * 1e3, "foo"));
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  const sleep = (time) => {
13
2
  return new Promise((resolve) => setTimeout(resolve, time * 1e3, "foo"));
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const waitForAllMediaLoaded = async (firstViewOnly = false) => {
15
4
  if (!document.images) return Promise.resolve(true);
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
1
  const waitForAllMediaLoaded = async (firstViewOnly = false) => {
13
2
  if (!document.images) return Promise.resolve(true);
14
3
  if (document.images.length === 0) return Promise.resolve(true);
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const isBetween$1 = require("../../../../../../_virtual/isBetween.cjs2.js");
4
+ var isBetween = isBetween$1.__module.exports;
5
+ var hasRequiredIsBetween;
6
+ function requireIsBetween() {
7
+ if (hasRequiredIsBetween) return isBetween$1.__module.exports;
8
+ hasRequiredIsBetween = 1;
9
+ (function(module2, exports$1) {
10
+ !(function(e, i) {
11
+ module2.exports = i();
12
+ })(isBetween, (function() {
13
+ return function(e, i, t) {
14
+ i.prototype.isBetween = function(e2, i2, s, f) {
15
+ var n = t(e2), o = t(i2), r = "(" === (f = f || "()")[0], u = ")" === f[1];
16
+ return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
17
+ };
18
+ };
19
+ }));
20
+ })(isBetween$1.__module);
21
+ return isBetween$1.__module.exports;
22
+ }
23
+ exports.__require = requireIsBetween;
@@ -0,0 +1,23 @@
1
+ import { __module as isBetween$1 } from "../../../../../../_virtual/isBetween.es2.js";
2
+ var isBetween = isBetween$1.exports;
3
+ var hasRequiredIsBetween;
4
+ function requireIsBetween() {
5
+ if (hasRequiredIsBetween) return isBetween$1.exports;
6
+ hasRequiredIsBetween = 1;
7
+ (function(module, exports$1) {
8
+ !(function(e, i) {
9
+ module.exports = i();
10
+ })(isBetween, (function() {
11
+ return function(e, i, t) {
12
+ i.prototype.isBetween = function(e2, i2, s, f) {
13
+ var n = t(e2), o = t(i2), r = "(" === (f = f || "()")[0], u = ")" === f[1];
14
+ return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
15
+ };
16
+ };
17
+ }));
18
+ })(isBetween$1);
19
+ return isBetween$1.exports;
20
+ }
21
+ export {
22
+ requireIsBetween as __require
23
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const timezone$1 = require("../../../../../../_virtual/timezone.cjs2.js");
4
+ var timezone = timezone$1.__module.exports;
5
+ var hasRequiredTimezone;
6
+ function requireTimezone() {
7
+ if (hasRequiredTimezone) return timezone$1.__module.exports;
8
+ hasRequiredTimezone = 1;
9
+ (function(module2, exports$1) {
10
+ !(function(t, e) {
11
+ module2.exports = e();
12
+ })(timezone, (function() {
13
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
14
+ return function(n, i, o) {
15
+ var r, a = function(t2, n2, i2) {
16
+ void 0 === i2 && (i2 = {});
17
+ var o2 = new Date(t2), r2 = (function(t3, n3) {
18
+ void 0 === n3 && (n3 = {});
19
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
20
+ return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
21
+ })(n2, i2);
22
+ return r2.formatToParts(o2);
23
+ }, u = function(e2, n2) {
24
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
25
+ var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
26
+ c >= 0 && (r2[c] = parseInt(m, 10));
27
+ }
28
+ var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
29
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
30
+ }, f = i.prototype;
31
+ f.tz = function(t2, e2) {
32
+ void 0 === t2 && (t2 = r);
33
+ var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
34
+ if (!Number(s2)) n2 = this.utcOffset(0, e2);
35
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
36
+ var m = n2.utcOffset();
37
+ n2 = n2.add(i2 - m, "minute");
38
+ }
39
+ return n2.$x.$timezone = t2, n2;
40
+ }, f.offsetName = function(t2) {
41
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find((function(t3) {
42
+ return "timezonename" === t3.type.toLowerCase();
43
+ }));
44
+ return n2 && n2.value;
45
+ };
46
+ var s = f.startOf;
47
+ f.startOf = function(t2, e2) {
48
+ if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
49
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
50
+ return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
51
+ }, o.tz = function(t2, e2, n2) {
52
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
53
+ if ("string" != typeof t2) return o(t2).tz(a2);
54
+ var s2 = (function(t3, e3, n3) {
55
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
56
+ if (e3 === o2) return [i3, e3];
57
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
58
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
59
+ })(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
60
+ return d.$x.$timezone = a2, d;
61
+ }, o.tz.guess = function() {
62
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
63
+ }, o.tz.setDefault = function(t2) {
64
+ r = t2;
65
+ };
66
+ };
67
+ }));
68
+ })(timezone$1.__module);
69
+ return timezone$1.__module.exports;
70
+ }
71
+ exports.__require = requireTimezone;
@@ -0,0 +1,71 @@
1
+ import { __module as timezone$1 } from "../../../../../../_virtual/timezone.es2.js";
2
+ var timezone = timezone$1.exports;
3
+ var hasRequiredTimezone;
4
+ function requireTimezone() {
5
+ if (hasRequiredTimezone) return timezone$1.exports;
6
+ hasRequiredTimezone = 1;
7
+ (function(module, exports$1) {
8
+ !(function(t, e) {
9
+ module.exports = e();
10
+ })(timezone, (function() {
11
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
12
+ return function(n, i, o) {
13
+ var r, a = function(t2, n2, i2) {
14
+ void 0 === i2 && (i2 = {});
15
+ var o2 = new Date(t2), r2 = (function(t3, n3) {
16
+ void 0 === n3 && (n3 = {});
17
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
18
+ return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
19
+ })(n2, i2);
20
+ return r2.formatToParts(o2);
21
+ }, u = function(e2, n2) {
22
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
23
+ var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
24
+ c >= 0 && (r2[c] = parseInt(m, 10));
25
+ }
26
+ var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
27
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
28
+ }, f = i.prototype;
29
+ f.tz = function(t2, e2) {
30
+ void 0 === t2 && (t2 = r);
31
+ var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
32
+ if (!Number(s2)) n2 = this.utcOffset(0, e2);
33
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
34
+ var m = n2.utcOffset();
35
+ n2 = n2.add(i2 - m, "minute");
36
+ }
37
+ return n2.$x.$timezone = t2, n2;
38
+ }, f.offsetName = function(t2) {
39
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find((function(t3) {
40
+ return "timezonename" === t3.type.toLowerCase();
41
+ }));
42
+ return n2 && n2.value;
43
+ };
44
+ var s = f.startOf;
45
+ f.startOf = function(t2, e2) {
46
+ if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
47
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
48
+ return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
49
+ }, o.tz = function(t2, e2, n2) {
50
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
51
+ if ("string" != typeof t2) return o(t2).tz(a2);
52
+ var s2 = (function(t3, e3, n3) {
53
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
54
+ if (e3 === o2) return [i3, e3];
55
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
56
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
57
+ })(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
58
+ return d.$x.$timezone = a2, d;
59
+ }, o.tz.guess = function() {
60
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
61
+ }, o.tz.setDefault = function(t2) {
62
+ r = t2;
63
+ };
64
+ };
65
+ }));
66
+ })(timezone$1);
67
+ return timezone$1.exports;
68
+ }
69
+ export {
70
+ requireTimezone as __require
71
+ };
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const utc$1 = require("../../../../../../_virtual/utc.cjs2.js");
4
+ var utc = utc$1.__module.exports;
5
+ var hasRequiredUtc;
6
+ function requireUtc() {
7
+ if (hasRequiredUtc) return utc$1.__module.exports;
8
+ hasRequiredUtc = 1;
9
+ (function(module2, exports$1) {
10
+ !(function(t, i) {
11
+ module2.exports = i();
12
+ })(utc, (function() {
13
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
14
+ return function(s, f, n) {
15
+ var u = f.prototype;
16
+ n.utc = function(t2) {
17
+ var i2 = { date: t2, utc: true, args: arguments };
18
+ return new f(i2);
19
+ }, u.utc = function(i2) {
20
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
21
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
22
+ }, u.local = function() {
23
+ return n(this.toDate(), { locale: this.$L, utc: false });
24
+ };
25
+ var r = u.parse;
26
+ u.parse = function(t2) {
27
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
28
+ };
29
+ var o = u.init;
30
+ u.init = function() {
31
+ if (this.$u) {
32
+ var t2 = this.$d;
33
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
34
+ } else o.call(this);
35
+ };
36
+ var a = u.utcOffset;
37
+ u.utcOffset = function(s2, f2) {
38
+ var n2 = this.$utils().u;
39
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
40
+ if ("string" == typeof s2 && (s2 = (function(t2) {
41
+ void 0 === t2 && (t2 = "");
42
+ var s3 = t2.match(i);
43
+ if (!s3) return null;
44
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
45
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
46
+ })(s2), null === s2)) return this;
47
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
48
+ if (0 === u2) return this.utc(f2);
49
+ var r2 = this.clone();
50
+ if (f2) return r2.$offset = u2, r2.$u = false, r2;
51
+ var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
52
+ return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
53
+ };
54
+ var h = u.format;
55
+ u.format = function(t2) {
56
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
57
+ return h.call(this, i2);
58
+ }, u.valueOf = function() {
59
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
60
+ return this.$d.valueOf() - 6e4 * t2;
61
+ }, u.isUTC = function() {
62
+ return !!this.$u;
63
+ }, u.toISOString = function() {
64
+ return this.toDate().toISOString();
65
+ }, u.toString = function() {
66
+ return this.toDate().toUTCString();
67
+ };
68
+ var l = u.toDate;
69
+ u.toDate = function(t2) {
70
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
71
+ };
72
+ var c = u.diff;
73
+ u.diff = function(t2, i2, e2) {
74
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
75
+ var s2 = this.local(), f2 = n(t2).local();
76
+ return c.call(s2, f2, i2, e2);
77
+ };
78
+ };
79
+ }));
80
+ })(utc$1.__module);
81
+ return utc$1.__module.exports;
82
+ }
83
+ exports.__require = requireUtc;
@@ -0,0 +1,83 @@
1
+ import { __module as utc$1 } from "../../../../../../_virtual/utc.es2.js";
2
+ var utc = utc$1.exports;
3
+ var hasRequiredUtc;
4
+ function requireUtc() {
5
+ if (hasRequiredUtc) return utc$1.exports;
6
+ hasRequiredUtc = 1;
7
+ (function(module, exports$1) {
8
+ !(function(t, i) {
9
+ module.exports = i();
10
+ })(utc, (function() {
11
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
12
+ return function(s, f, n) {
13
+ var u = f.prototype;
14
+ n.utc = function(t2) {
15
+ var i2 = { date: t2, utc: true, args: arguments };
16
+ return new f(i2);
17
+ }, u.utc = function(i2) {
18
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
19
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
20
+ }, u.local = function() {
21
+ return n(this.toDate(), { locale: this.$L, utc: false });
22
+ };
23
+ var r = u.parse;
24
+ u.parse = function(t2) {
25
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
26
+ };
27
+ var o = u.init;
28
+ u.init = function() {
29
+ if (this.$u) {
30
+ var t2 = this.$d;
31
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
32
+ } else o.call(this);
33
+ };
34
+ var a = u.utcOffset;
35
+ u.utcOffset = function(s2, f2) {
36
+ var n2 = this.$utils().u;
37
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
38
+ if ("string" == typeof s2 && (s2 = (function(t2) {
39
+ void 0 === t2 && (t2 = "");
40
+ var s3 = t2.match(i);
41
+ if (!s3) return null;
42
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
43
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
44
+ })(s2), null === s2)) return this;
45
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
46
+ if (0 === u2) return this.utc(f2);
47
+ var r2 = this.clone();
48
+ if (f2) return r2.$offset = u2, r2.$u = false, r2;
49
+ var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
50
+ return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
51
+ };
52
+ var h = u.format;
53
+ u.format = function(t2) {
54
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
55
+ return h.call(this, i2);
56
+ }, u.valueOf = function() {
57
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
58
+ return this.$d.valueOf() - 6e4 * t2;
59
+ }, u.isUTC = function() {
60
+ return !!this.$u;
61
+ }, u.toISOString = function() {
62
+ return this.toDate().toISOString();
63
+ }, u.toString = function() {
64
+ return this.toDate().toUTCString();
65
+ };
66
+ var l = u.toDate;
67
+ u.toDate = function(t2) {
68
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
69
+ };
70
+ var c = u.diff;
71
+ u.diff = function(t2, i2, e2) {
72
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
73
+ var s2 = this.local(), f2 = n(t2).local();
74
+ return c.call(s2, f2, i2, e2);
75
+ };
76
+ };
77
+ }));
78
+ })(utc$1);
79
+ return utc$1.exports;
80
+ }
81
+ export {
82
+ requireUtc as __require
83
+ };