@okam/stack-ui 1.36.0 → 1.37.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 (271) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/components/Lightbox/interface.d.ts +2 -0
  3. package/index111.js +1 -1
  4. package/index111.mjs +1 -1
  5. package/index113.js +1 -1
  6. package/index113.mjs +1 -1
  7. package/index114.js +1 -1
  8. package/index114.mjs +2 -2
  9. package/index115.js +1 -1
  10. package/index115.mjs +1 -1
  11. package/index122.js +1 -1
  12. package/index122.mjs +3 -3
  13. package/index123.js +1 -1
  14. package/index123.mjs +3 -3
  15. package/index124.js +1 -1
  16. package/index124.mjs +1 -1
  17. package/index125.js +1 -1
  18. package/index125.mjs +1 -1
  19. package/index130.js +1 -1
  20. package/index130.mjs +1 -1
  21. package/index132.js +1 -1
  22. package/index132.mjs +2 -2
  23. package/index133.js +1 -1
  24. package/index133.mjs +5 -5
  25. package/index134.js +1 -1
  26. package/index134.mjs +3 -3
  27. package/index135.js +1 -1
  28. package/index135.mjs +9 -9
  29. package/index141.js +1 -1
  30. package/index141.mjs +1 -1
  31. package/index145.js +1 -1
  32. package/index145.mjs +2 -2
  33. package/index147.js +1 -1
  34. package/index147.mjs +1 -1
  35. package/index148.js +1 -1
  36. package/index148.mjs +2 -2
  37. package/index152.js +1 -1
  38. package/index152.mjs +46 -12
  39. package/index153.js +2 -1
  40. package/index153.mjs +13 -46
  41. package/index154.js +1 -2
  42. package/index154.mjs +29 -12
  43. package/index155.js +1 -1
  44. package/index155.mjs +57 -30
  45. package/index156.js +1 -1
  46. package/index156.mjs +12 -57
  47. package/index159.js +1 -1
  48. package/index159.mjs +1 -1
  49. package/index161.js +1 -1
  50. package/index161.mjs +68 -22
  51. package/index162.js +1 -1
  52. package/index162.mjs +370 -62
  53. package/index163.js +1 -1
  54. package/index163.mjs +44 -379
  55. package/index164.js +1 -1
  56. package/index164.mjs +4 -47
  57. package/index165.js +1 -1
  58. package/index165.mjs +25 -4
  59. package/index166.js +1 -1
  60. package/index166.mjs +46 -23
  61. package/index167.js +1 -1
  62. package/index167.mjs +4 -46
  63. package/index168.js +1 -1
  64. package/index168.mjs +24 -5
  65. package/index169.js +1 -1
  66. package/index169.mjs +11 -23
  67. package/index170.js +1 -1
  68. package/index170.mjs +4 -12
  69. package/index171.js +1 -1
  70. package/index171.mjs +14 -4
  71. package/index172.js +1 -1
  72. package/index172.mjs +21 -14
  73. package/index173.js +1 -1
  74. package/index173.mjs +42 -21
  75. package/index174.js +1 -1
  76. package/index174.mjs +52 -37
  77. package/index175.js +1 -1
  78. package/index175.mjs +39 -55
  79. package/index176.js +1 -1
  80. package/index176.mjs +27 -40
  81. package/index177.js +1 -1
  82. package/index177.mjs +30 -27
  83. package/index178.js +1 -1
  84. package/index178.mjs +13 -30
  85. package/index179.js +1 -1
  86. package/index179.mjs +10 -14
  87. package/index18.js +1 -1
  88. package/index18.mjs +45 -42
  89. package/index180.js +1 -1
  90. package/index180.mjs +28 -10
  91. package/index181.js +1 -1
  92. package/index181.mjs +9 -28
  93. package/index182.js +1 -1
  94. package/index182.mjs +6 -9
  95. package/index183.js +1 -1
  96. package/index183.mjs +5 -6
  97. package/index184.js +1 -1
  98. package/index184.mjs +7 -5
  99. package/index185.js +1 -1
  100. package/index185.mjs +29 -7
  101. package/index186.js +1 -1
  102. package/index186.mjs +16 -27
  103. package/index187.js +1 -1
  104. package/index187.mjs +12 -17
  105. package/index188.js +1 -1
  106. package/index188.mjs +43 -13
  107. package/index189.js +1 -1
  108. package/index189.mjs +7 -42
  109. package/index190.js +1 -1
  110. package/index190.mjs +17 -8
  111. package/index191.js +1 -1
  112. package/index191.mjs +3 -18
  113. package/index192.js +1 -1
  114. package/index192.mjs +5 -3
  115. package/index193.js +1 -1
  116. package/index193.mjs +19 -4
  117. package/index194.js +1 -1
  118. package/index194.mjs +54 -19
  119. package/index195.js +1 -1
  120. package/index195.mjs +23 -50
  121. package/index196.js +1 -1
  122. package/index196.mjs +122 -138
  123. package/index197.js +1 -1
  124. package/index197.mjs +129 -192
  125. package/index198.js +1 -1
  126. package/index198.mjs +44 -22
  127. package/index199.js +1 -1
  128. package/index199.mjs +14 -49
  129. package/index200.js +1 -1
  130. package/index200.mjs +93 -46
  131. package/index201.js +1 -1
  132. package/index201.mjs +98 -89
  133. package/index202.js +1 -1
  134. package/index202.mjs +5 -72
  135. package/index203.js +1 -1
  136. package/index203.mjs +3 -68
  137. package/index204.js +1 -1
  138. package/index204.mjs +125 -7
  139. package/index205.js +1 -1
  140. package/index205.mjs +29 -11
  141. package/index206.js +1 -1
  142. package/index206.mjs +40 -113
  143. package/index207.js +1 -1
  144. package/index207.mjs +41 -131
  145. package/index208.js +1 -1
  146. package/index208.mjs +36 -43
  147. package/index209.js +1 -1
  148. package/index209.mjs +110 -11
  149. package/index210.js +1 -1
  150. package/index210.mjs +59 -77
  151. package/index211.js +1 -1
  152. package/index211.mjs +94 -99
  153. package/index212.js +1 -1
  154. package/index212.mjs +98 -5
  155. package/index213.js +1 -1
  156. package/index213.mjs +140 -3
  157. package/index214.js +1 -1
  158. package/index214.mjs +191 -119
  159. package/index215.js +1 -1
  160. package/index215.mjs +22 -29
  161. package/index216.js +1 -1
  162. package/index216.mjs +49 -51
  163. package/index217.js +1 -1
  164. package/index217.mjs +47 -43
  165. package/index218.js +1 -1
  166. package/index218.mjs +95 -35
  167. package/index219.js +1 -1
  168. package/index219.mjs +72 -114
  169. package/index220.js +1 -1
  170. package/index220.mjs +67 -76
  171. package/index221.js +1 -1
  172. package/index221.mjs +7 -101
  173. package/index222.js +1 -1
  174. package/index222.mjs +12 -98
  175. package/index250.js +1 -1
  176. package/index250.mjs +4 -4
  177. package/index252.js +1 -1
  178. package/index252.mjs +8 -8
  179. package/index253.js +1 -1
  180. package/index253.mjs +1 -1
  181. package/index255.js +1 -1
  182. package/index255.mjs +5 -5
  183. package/index256.js +1 -1
  184. package/index256.mjs +1 -1
  185. package/index257.js +1 -1
  186. package/index257.mjs +4 -4
  187. package/index258.js +1 -1
  188. package/index258.mjs +1 -1
  189. package/index259.js +1 -1
  190. package/index259.mjs +1 -1
  191. package/index260.js +1 -1
  192. package/index260.mjs +4 -4
  193. package/index261.js +1 -1
  194. package/index261.mjs +4 -4
  195. package/index262.js +1 -1
  196. package/index262.mjs +1 -1
  197. package/index263.js +1 -1
  198. package/index263.mjs +4 -4
  199. package/index264.js +1 -1
  200. package/index264.mjs +4 -4
  201. package/index265.js +1 -1
  202. package/index265.mjs +1 -1
  203. package/index266.js +1 -1
  204. package/index266.mjs +4 -4
  205. package/index267.js +1 -1
  206. package/index267.mjs +4 -4
  207. package/index268.js +1 -1
  208. package/index268.mjs +1 -1
  209. package/index269.js +1 -1
  210. package/index269.mjs +1 -1
  211. package/index270.js +1 -1
  212. package/index270.mjs +4 -4
  213. package/index271.js +1 -1
  214. package/index271.mjs +4 -4
  215. package/index272.js +1 -1
  216. package/index272.mjs +1 -1
  217. package/index273.js +1 -1
  218. package/index273.mjs +4 -4
  219. package/index274.js +1 -1
  220. package/index274.mjs +4 -4
  221. package/index275.js +1 -1
  222. package/index275.mjs +4 -4
  223. package/index276.js +1 -1
  224. package/index276.mjs +1 -1
  225. package/index277.js +1 -1
  226. package/index277.mjs +4 -4
  227. package/index278.js +1 -1
  228. package/index278.mjs +4 -4
  229. package/index279.js +1 -1
  230. package/index279.mjs +4 -4
  231. package/index280.js +1 -1
  232. package/index280.mjs +4 -4
  233. package/index281.js +1 -1
  234. package/index281.mjs +4 -4
  235. package/index282.js +1 -1
  236. package/index282.mjs +1 -1
  237. package/index283.js +1 -1
  238. package/index283.mjs +1 -1
  239. package/index284.js +1 -1
  240. package/index284.mjs +1 -1
  241. package/index285.js +1 -1
  242. package/index285.mjs +4 -4
  243. package/index286.js +1 -1
  244. package/index286.mjs +4 -4
  245. package/index287.js +1 -1
  246. package/index287.mjs +4 -4
  247. package/index288.js +1 -1
  248. package/index288.mjs +4 -4
  249. package/index289.js +1 -1
  250. package/index289.mjs +5 -5
  251. package/index298.js +1 -1
  252. package/index298.mjs +3 -3
  253. package/index300.js +1 -1
  254. package/index300.mjs +2 -2
  255. package/index301.js +1 -1
  256. package/index301.mjs +5 -5
  257. package/index304.js +1 -1
  258. package/index304.mjs +3 -3
  259. package/index307.js +1 -1
  260. package/index307.mjs +5 -5
  261. package/index308.js +1 -1
  262. package/index308.mjs +1 -1
  263. package/index309.js +1 -1
  264. package/index309.mjs +4 -4
  265. package/index310.js +1 -1
  266. package/index310.mjs +2 -2
  267. package/index314.js +1 -1
  268. package/index314.mjs +1 -1
  269. package/index9.js +1 -1
  270. package/index9.mjs +28 -26
  271. package/package.json +1 -1
package/index198.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),i=new WeakMap;function c(s){let{triggerRef:e,isOpen:r,onClose:t}=s;a.useEffect(()=>{if(!r||t===null)return;let o=n=>{let l=n.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement)return;let f=t||i.get(e.current);f&&f()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,t,e])}exports.onCloseMap=i;exports.useCloseOnScroll=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index201.js"),u=require("./index212.js");function d(e,t){return t=l.toCalendar(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function $(e,t){var a,r,i,n;return(n=(i=(a=e.isEqual)===null||a===void 0?void 0:a.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&n!==void 0?n:e.identifier===t.identifier}function s(e,t,a){let r=e.calendar.toJulianDay(e),i=g(t),n=Math.ceil(r+1-i)%7;return n<0&&(n+=7),n}function m(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function v(e,t){return o(e)-o(t)}function o(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let c=null;function p(){return c==null&&(c=new Intl.DateTimeFormat().resolvedOptions().timeZone),c}const f=new Map;function y(e){if(Intl.Locale){let a=f.get(e);return a||(a=new Intl.Locale(e).maximize().region,a&&f.set(e,a)),a}let t=e.split("-")[1];return t==="u"?void 0:t}function g(e){let t=y(e);return t&&u.weekStartData[t]||0}exports.compareDate=m;exports.compareTime=v;exports.getDayOfWeek=s;exports.getLocalTimeZone=p;exports.isEqualCalendar=$;exports.isSameDay=d;
package/index198.mjs CHANGED
@@ -1,25 +1,47 @@
1
- import { useEffect as a } from "react";
2
- const i = /* @__PURE__ */ new WeakMap();
3
- function u(s) {
4
- let { triggerRef: e, isOpen: r, onClose: t } = s;
5
- a(() => {
6
- if (!r || t === null) return;
7
- let o = (n) => {
8
- let l = n.target;
9
- if (!e.current || l instanceof Node && !l.contains(e.current) || n.target instanceof HTMLInputElement || n.target instanceof HTMLTextAreaElement) return;
10
- let f = t || i.get(e.current);
11
- f && f();
12
- };
13
- return window.addEventListener("scroll", o, !0), () => {
14
- window.removeEventListener("scroll", o, !0);
15
- };
16
- }, [
17
- r,
18
- t,
19
- e
20
- ]);
1
+ import { toCalendar as l } from "./index201.mjs";
2
+ import { weekStartData as u } from "./index212.mjs";
3
+ function p(e, a) {
4
+ return a = l(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
5
+ }
6
+ function v(e, a) {
7
+ var t, r, i, n;
8
+ return (n = (i = (t = e.isEqual) === null || t === void 0 ? void 0 : t.call(e, a)) !== null && i !== void 0 ? i : (r = a.isEqual) === null || r === void 0 ? void 0 : r.call(a, e)) !== null && n !== void 0 ? n : e.identifier === a.identifier;
9
+ }
10
+ function y(e, a, t) {
11
+ let r = e.calendar.toJulianDay(e), i = d(a), n = Math.ceil(r + 1 - i) % 7;
12
+ return n < 0 && (n += 7), n;
13
+ }
14
+ function g(e, a) {
15
+ return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
16
+ }
17
+ function x(e, a) {
18
+ return c(e) - c(a);
19
+ }
20
+ function c(e) {
21
+ return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
22
+ }
23
+ let f = null;
24
+ function D() {
25
+ return f == null && (f = new Intl.DateTimeFormat().resolvedOptions().timeZone), f;
26
+ }
27
+ const o = /* @__PURE__ */ new Map();
28
+ function $(e) {
29
+ if (Intl.Locale) {
30
+ let t = o.get(e);
31
+ return t || (t = new Intl.Locale(e).maximize().region, t && o.set(e, t)), t;
32
+ }
33
+ let a = e.split("-")[1];
34
+ return a === "u" ? void 0 : a;
35
+ }
36
+ function d(e) {
37
+ let a = $(e);
38
+ return a && u[a] || 0;
21
39
  }
22
40
  export {
23
- i as onCloseMap,
24
- u as useCloseOnScroll
41
+ g as compareDate,
42
+ x as compareTime,
43
+ y as getDayOfWeek,
44
+ D as getLocalTimeZone,
45
+ v as isEqualCalendar,
46
+ p as isSameDay
25
47
  };
package/index199.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@react-aria/focus"),D=require("react"),h=require("./index195.js"),y=require("./index200.js"),t=[];function b(a,i){let{onClose:n,shouldCloseOnBlur:l,isOpen:o,isDismissable:u=!1,isKeyboardDismissDisabled:d=!1,shouldCloseOnInteractOutside:s}=a;D.useEffect(()=>{if(o&&!t.includes(i))return t.push(i),()=>{let e=t.indexOf(i);e>=0&&t.splice(e,1)}},[o,i]);let r=()=>{t[t.length-1]===i&&n&&n()},c=e=>{(!s||s(e.target))&&t[t.length-1]===i&&(e.stopPropagation(),e.preventDefault())},f=e=>{(!s||s(e.target))&&(t[t.length-1]===i&&(e.stopPropagation(),e.preventDefault()),r())},p=e=>{e.key==="Escape"&&!d&&!e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault(),r())};y.useInteractOutside({ref:i,onInteractOutside:u&&o?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:O}=h.useFocusWithin({isDisabled:!l,onBlurWithin:e=>{!e.relatedTarget||v.isElementInChildOfActiveScope(e.relatedTarget)||(!s||s(e.relatedTarget))&&(n==null||n())}}),g=e=>{e.target===e.currentTarget&&e.preventDefault()};return{overlayProps:{onKeyDown:p,...O},underlayProps:{onPointerDown:g}}}exports.useOverlay=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index201.js"),o=require("./index200.js");function e(r){return`${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}:${String(r.second).padStart(2,"0")}${r.millisecond?String(r.millisecond/1e3).slice(1):""}`}function n(r){let a=i.toCalendar(r,new o.GregorianCalendar),t;return a.era==="BC"?t=a.year===1?"0000":"-"+String(Math.abs(1-a.year)).padStart(6,"00"):t=String(a.year).padStart(4,"0"),`${t}-${String(a.month).padStart(2,"0")}-${String(a.day).padStart(2,"0")}`}function d(r){return`${n(r)}T${e(r)}`}exports.dateTimeToString=d;exports.dateToString=n;exports.timeToString=e;
package/index199.mjs CHANGED
@@ -1,52 +1,17 @@
1
- import { isElementInChildOfActiveScope as g } from "@react-aria/focus";
2
- import { useEffect as m } from "react";
3
- import { useFocusWithin as v } from "./index195.mjs";
4
- import { useInteractOutside as b } from "./index200.mjs";
5
- const t = [];
6
- function C(a, i) {
7
- let { onClose: o, shouldCloseOnBlur: l, isOpen: n, isDismissable: d = !1, isKeyboardDismissDisabled: u = !1, shouldCloseOnInteractOutside: s } = a;
8
- m(() => {
9
- if (n && !t.includes(i))
10
- return t.push(i), () => {
11
- let e = t.indexOf(i);
12
- e >= 0 && t.splice(e, 1);
13
- };
14
- }, [
15
- n,
16
- i
17
- ]);
18
- let r = () => {
19
- t[t.length - 1] === i && o && o();
20
- }, f = (e) => {
21
- (!s || s(e.target)) && t[t.length - 1] === i && (e.stopPropagation(), e.preventDefault());
22
- }, p = (e) => {
23
- (!s || s(e.target)) && (t[t.length - 1] === i && (e.stopPropagation(), e.preventDefault()), r());
24
- }, c = (e) => {
25
- e.key === "Escape" && !u && !e.nativeEvent.isComposing && (e.stopPropagation(), e.preventDefault(), r());
26
- };
27
- b({
28
- ref: i,
29
- onInteractOutside: d && n ? p : void 0,
30
- onInteractOutsideStart: f
31
- });
32
- let { focusWithinProps: O } = v({
33
- isDisabled: !l,
34
- onBlurWithin: (e) => {
35
- !e.relatedTarget || g(e.relatedTarget) || (!s || s(e.relatedTarget)) && (o == null || o());
36
- }
37
- }), D = (e) => {
38
- e.target === e.currentTarget && e.preventDefault();
39
- };
40
- return {
41
- overlayProps: {
42
- onKeyDown: c,
43
- ...O
44
- },
45
- underlayProps: {
46
- onPointerDown: D
47
- }
48
- };
1
+ import { toCalendar as e } from "./index201.mjs";
2
+ import { GregorianCalendar as n } from "./index200.mjs";
3
+ function o(a) {
4
+ return `${String(a.hour).padStart(2, "0")}:${String(a.minute).padStart(2, "0")}:${String(a.second).padStart(2, "0")}${a.millisecond ? String(a.millisecond / 1e3).slice(1) : ""}`;
5
+ }
6
+ function $(a) {
7
+ let r = e(a, new n()), t;
8
+ return r.era === "BC" ? t = r.year === 1 ? "0000" : "-" + String(Math.abs(1 - r.year)).padStart(6, "00") : t = String(r.year).padStart(4, "0"), `${t}-${String(r.month).padStart(2, "0")}-${String(r.day).padStart(2, "0")}`;
9
+ }
10
+ function c(a) {
11
+ return `${$(a)}T${o(a)}`;
49
12
  }
50
13
  export {
51
- C as useOverlay
14
+ c as dateTimeToString,
15
+ $ as dateToString,
16
+ o as timeToString
52
17
  };
package/index200.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index170.js"),v=require("./index188.js"),m=require("react");function D(r){let{ref:n,onInteractOutside:s,isDisabled:d,onInteractOutsideStart:l}=r,E=m.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=v.useEffectEvent(e=>{s&&c(e,n)&&(l&&l(e),E.current.isPointerDown=!0)}),f=v.useEffectEvent(e=>{s&&s(e)});m.useEffect(()=>{let e=E.current;if(d)return;const p=n.current,t=w.getOwnerDocument(p);if(typeof PointerEvent<"u"){let i=u=>{e.isPointerDown&&c(u,n)&&f(u),e.isPointerDown=!1};return t.addEventListener("pointerdown",o,!0),t.addEventListener("pointerup",i,!0),()=>{t.removeEventListener("pointerdown",o,!0),t.removeEventListener("pointerup",i,!0)}}else if(process.env.NODE_ENV==="test"){let i=a=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&c(a,n)&&f(a),e.isPointerDown=!1},u=a=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&c(a,n)&&f(a),e.isPointerDown=!1};return t.addEventListener("mousedown",o,!0),t.addEventListener("mouseup",i,!0),t.addEventListener("touchstart",o,!0),t.addEventListener("touchend",u,!0),()=>{t.removeEventListener("mousedown",o,!0),t.removeEventListener("mouseup",i,!0),t.removeEventListener("touchstart",o,!0),t.removeEventListener("touchend",u,!0)}}},[n,d,o,f])}function c(r,n){if(r.button>0)return!1;if(r.target){const s=r.target.ownerDocument;if(!s||!s.documentElement.contains(r.target)||r.target.closest("[data-react-aria-top-layer]"))return!1}return n.current?!r.composedPath().includes(n.current):!1}exports.useInteractOutside=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("./index196.js"),b=require("./index203.js"),y=1721426;function l(r,e,t,f){e=g(r,e);let a=e-1,n=-2;return t<=2?n=0:d(e)&&(n=-1),y-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*t-362)/12+n+f)}function d(r){return r%4===0&&(r%100!==0||r%400===0)}function g(r,e){return r==="BC"?1-e:e}function M(r){let e="AD";return r<=0&&(e="BC",r=1-r),[e,r]}const q={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class B{fromJulianDay(e){let t=e,f=t-y,a=Math.floor(f/146097),n=b.mod(f,146097),c=Math.floor(n/36524),s=b.mod(n,36524),D=Math.floor(s/1461),p=b.mod(s,1461),$=Math.floor(p/365),C=a*400+c*100+D*4+$+(c!==4&&$!==4?1:0),[i,o]=M(C),m=t-l(i,o,1,1),u=2;t<l(i,o,3,1)?u=0:d(o)&&(u=1);let h=Math.floor(((m+u)*12+373)/367),x=t-l(i,o,h,1)+1;return new Y.CalendarDate(i,o,h,x)}toJulianDay(e){return l(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return q[d(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return d(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}exports.GregorianCalendar=B;exports.fromExtendedYear=M;exports.getExtendedYear=g;exports.gregorianToJulianDay=l;exports.isLeapYear=d;
package/index200.mjs CHANGED
@@ -1,51 +1,98 @@
1
- import { getOwnerDocument as p } from "./index170.mjs";
2
- import { useEffectEvent as m } from "./index188.mjs";
3
- import { useRef as w, useEffect as D } from "react";
4
- function $(r) {
5
- let { ref: n, onInteractOutside: s, isDisabled: d, onInteractOutsideStart: l } = r, E = w({
6
- isPointerDown: !1,
7
- ignoreEmulatedMouseEvents: !1
8
- }), o = m((e) => {
9
- s && c(e, n) && (l && l(e), E.current.isPointerDown = !0);
10
- }), f = m((e) => {
11
- s && s(e);
12
- });
13
- D(() => {
14
- let e = E.current;
15
- if (d) return;
16
- const v = n.current, t = p(v);
17
- if (typeof PointerEvent < "u") {
18
- let i = (u) => {
19
- e.isPointerDown && c(u, n) && f(u), e.isPointerDown = !1;
20
- };
21
- return t.addEventListener("pointerdown", o, !0), t.addEventListener("pointerup", i, !0), () => {
22
- t.removeEventListener("pointerdown", o, !0), t.removeEventListener("pointerup", i, !0);
23
- };
24
- } else if (process.env.NODE_ENV === "test") {
25
- let i = (a) => {
26
- e.ignoreEmulatedMouseEvents ? e.ignoreEmulatedMouseEvents = !1 : e.isPointerDown && c(a, n) && f(a), e.isPointerDown = !1;
27
- }, u = (a) => {
28
- e.ignoreEmulatedMouseEvents = !0, e.isPointerDown && c(a, n) && f(a), e.isPointerDown = !1;
29
- };
30
- return t.addEventListener("mousedown", o, !0), t.addEventListener("mouseup", i, !0), t.addEventListener("touchstart", o, !0), t.addEventListener("touchend", u, !0), () => {
31
- t.removeEventListener("mousedown", o, !0), t.removeEventListener("mouseup", i, !0), t.removeEventListener("touchstart", o, !0), t.removeEventListener("touchend", u, !0);
32
- };
33
- }
34
- }, [
35
- n,
36
- d,
37
- o,
38
- f
39
- ]);
1
+ import { CalendarDate as m } from "./index196.mjs";
2
+ import { mod as s } from "./index203.mjs";
3
+ const p = 1721426;
4
+ function b(r, e, t, l) {
5
+ e = C(r, e);
6
+ let a = e - 1, n = -2;
7
+ return t <= 2 ? n = 0 : d(e) && (n = -1), p - 1 + 365 * a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + Math.floor((367 * t - 362) / 12 + n + l);
40
8
  }
41
- function c(r, n) {
42
- if (r.button > 0) return !1;
43
- if (r.target) {
44
- const s = r.target.ownerDocument;
45
- if (!s || !s.documentElement.contains(r.target) || r.target.closest("[data-react-aria-top-layer]")) return !1;
9
+ function d(r) {
10
+ return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
11
+ }
12
+ function C(r, e) {
13
+ return r === "BC" ? 1 - e : e;
14
+ }
15
+ function Y(r) {
16
+ let e = "AD";
17
+ return r <= 0 && (e = "BC", r = 1 - r), [
18
+ e,
19
+ r
20
+ ];
21
+ }
22
+ const B = {
23
+ standard: [
24
+ 31,
25
+ 28,
26
+ 31,
27
+ 30,
28
+ 31,
29
+ 30,
30
+ 31,
31
+ 31,
32
+ 30,
33
+ 31,
34
+ 30,
35
+ 31
36
+ ],
37
+ leapyear: [
38
+ 31,
39
+ 29,
40
+ 31,
41
+ 30,
42
+ 31,
43
+ 30,
44
+ 31,
45
+ 31,
46
+ 30,
47
+ 31,
48
+ 30,
49
+ 31
50
+ ]
51
+ };
52
+ class q {
53
+ fromJulianDay(e) {
54
+ let t = e, l = t - p, a = Math.floor(l / 146097), n = s(l, 146097), $ = Math.floor(n / 36524), i = s(n, 36524), y = Math.floor(i / 1461), x = s(i, 1461), u = Math.floor(x / 365), M = a * 400 + $ * 100 + y * 4 + u + ($ !== 4 && u !== 4 ? 1 : 0), [f, o] = Y(M), g = t - b(f, o, 1, 1), c = 2;
55
+ t < b(f, o, 3, 1) ? c = 0 : d(o) && (c = 1);
56
+ let h = Math.floor(((g + c) * 12 + 373) / 367), D = t - b(f, o, h, 1) + 1;
57
+ return new m(f, o, h, D);
58
+ }
59
+ toJulianDay(e) {
60
+ return b(e.era, e.year, e.month, e.day);
61
+ }
62
+ getDaysInMonth(e) {
63
+ return B[d(e.year) ? "leapyear" : "standard"][e.month - 1];
64
+ }
65
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
66
+ getMonthsInYear(e) {
67
+ return 12;
68
+ }
69
+ getDaysInYear(e) {
70
+ return d(e.year) ? 366 : 365;
71
+ }
72
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
73
+ getYearsInEra(e) {
74
+ return 9999;
75
+ }
76
+ getEras() {
77
+ return [
78
+ "BC",
79
+ "AD"
80
+ ];
81
+ }
82
+ isInverseEra(e) {
83
+ return e.era === "BC";
84
+ }
85
+ balanceDate(e) {
86
+ e.year <= 0 && (e.era = e.era === "BC" ? "AD" : "BC", e.year = 1 - e.year);
87
+ }
88
+ constructor() {
89
+ this.identifier = "gregory";
46
90
  }
47
- return n.current ? !r.composedPath().includes(n.current) : !1;
48
91
  }
49
92
  export {
50
- $ as useInteractOutside
93
+ q as GregorianCalendar,
94
+ Y as fromExtendedYear,
95
+ C as getExtendedYear,
96
+ b as gregorianToJulianDay,
97
+ d as isLeapYear
51
98
  };
package/index201.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index168.js"),E=require("./index165.js"),w=require("./index183.js"),S=require("./index176.js"),m=typeof document<"u"&&window.visualViewport,y=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let s=0,f;function T(e={}){let{isDisabled:t}=e;E.useLayoutEffect(()=>{if(!t)return s++,s===1&&(S.isIOS()?f=x():f=b()),()=>{s--,s===0&&f()}},[t])}function b(){return v.chain(r(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),r(document.documentElement,"overflow","hidden"))}function x(){let e,t,n=c=>{e=w.getScrollParent(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=r(e,"overscrollBehavior","contain"))},o=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},u=()=>{t&&t()},a=c=>{let l=c.target;L(l)&&(h(),l.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{l.style.transform="",m&&(m.height<window.innerHeight?requestAnimationFrame(()=>{$(l)}):m.addEventListener("resize",()=>$(l),{once:!0}))}))},i=null,h=()=>{if(i)return;let c=()=>{window.scrollTo(0,0)},l=window.pageXOffset,p=window.pageYOffset;i=v.chain(d(window,"scroll",c),r(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),r(document.documentElement,"overflow","hidden"),r(document.body,"marginTop",`-${p}px`),()=>{window.scrollTo(l,p)}),window.scrollTo(0,0)},g=v.chain(d(document,"touchstart",n,{passive:!1,capture:!0}),d(document,"touchmove",o,{passive:!1,capture:!0}),d(document,"touchend",u,{passive:!1,capture:!0}),d(document,"focus",a,!0));return()=>{t==null||t(),i==null||i(),g()}}function r(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function d(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function $(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let o=w.getScrollParent(n);if(o!==document.documentElement&&o!==document.body&&o!==n){let u=o.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>u+n.clientHeight&&(o.scrollTop+=a-u)}n=o.parentElement}}function L(e){return e instanceof HTMLInputElement&&!y.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}exports.usePreventScroll=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index196.js"),D=require("./index197.js"),f=require("./index200.js"),m=require("./index198.js");function c(e){e=d(e,new f.GregorianCalendar);let t=f.getExtendedYear(e.era,e.year);return $(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function $(e,t,n,r,o,a,i){let u=new Date;return u.setUTCHours(r,o,a,i),u.setUTCFullYear(e,t-1,n),u.getTime()}function s(e,t){if(t==="UTC")return 0;if(e>0&&t===m.getLocalTimeZone())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:a,minute:i,second:u}=p(e,t);return $(n,r,o,a,i,u,0)-Math.floor(e/1e3)*1e3}const h=new Map;function p(e,t){let n=h.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),h.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let a of r)a.type!=="literal"&&(o[a.type]=a.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const y=864e5;function C(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>v(e,t,a))}function v(e,t,n){let r=p(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function b(e,t,n="compatible"){let r=T(e);if(t==="UTC")return c(r);if(t===m.getLocalTimeZone()&&n==="compatible"){r=d(r,new f.GregorianCalendar);let l=new Date,g=f.getExtendedYear(r.era,r.year);return l.setFullYear(g,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=c(r),a=s(o-y,t),i=s(o+y,t),u=C(r,t,o-a,o-i);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-a,o-i);case"compatible":case"later":return Math.max(o-a,o-i);case"reject":throw new RangeError("No such absolute time found")}}function x(e,t,n="compatible"){return new Date(b(e,t,n))}function T(e,t){let n=0,r=0,o=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:a}=t),new w.CalendarDateTime(e.calendar,e.era,e.year,e.month,e.day,n,r,o,a)}function d(e,t){if(m.isEqualCalendar(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,D.constrain(r),r}exports.epochFromDate=c;exports.getTimeZoneOffset=s;exports.toAbsolute=b;exports.toCalendar=d;exports.toCalendarDateTime=T;exports.toDate=x;
package/index201.mjs CHANGED
@@ -1,100 +1,109 @@
1
- import { chain as $ } from "./index168.mjs";
2
- import { useLayoutEffect as b } from "./index165.mjs";
3
- import { getScrollParent as w } from "./index183.mjs";
4
- import { isIOS as g } from "./index176.mjs";
5
- const m = typeof document < "u" && window.visualViewport, T = /* @__PURE__ */ new Set([
6
- "checkbox",
7
- "radio",
8
- "range",
9
- "color",
10
- "file",
11
- "image",
12
- "button",
13
- "submit",
14
- "reset"
15
- ]);
16
- let s = 0, f;
17
- function C(e = {}) {
18
- let { isDisabled: t } = e;
19
- b(() => {
20
- if (!t)
21
- return s++, s === 1 && (g() ? f = S() : f = y()), () => {
22
- s--, s === 0 && f();
23
- };
24
- }, [
25
- t
26
- ]);
1
+ import { CalendarDateTime as w } from "./index196.mjs";
2
+ import { constrain as x } from "./index197.mjs";
3
+ import { GregorianCalendar as $, getExtendedYear as d } from "./index200.mjs";
4
+ import { isEqualCalendar as D, getLocalTimeZone as h } from "./index198.mjs";
5
+ function i(e) {
6
+ e = y(e, new $());
7
+ let t = d(e.era, e.year);
8
+ return b(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
27
9
  }
28
- function y() {
29
- return $(l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"));
10
+ function b(e, t, n, r, o, a, c) {
11
+ let f = /* @__PURE__ */ new Date();
12
+ return f.setUTCHours(r, o, a, c), f.setUTCFullYear(e, t - 1, n), f.getTime();
30
13
  }
31
- function S() {
32
- let e, t, n = (c) => {
33
- e = w(c.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = l(e, "overscrollBehavior", "contain"));
34
- }, o = (c) => {
35
- if (!e || e === document.documentElement || e === document.body) {
36
- c.preventDefault();
37
- return;
38
- }
39
- e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && c.preventDefault();
40
- }, u = () => {
41
- t && t();
42
- }, a = (c) => {
43
- let r = c.target;
44
- x(r) && (h(), r.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
45
- r.style.transform = "", m && (m.height < window.innerHeight ? requestAnimationFrame(() => {
46
- v(r);
47
- }) : m.addEventListener("resize", () => v(r), {
48
- once: !0
49
- }));
50
- }));
51
- }, d = null, h = () => {
52
- if (d) return;
53
- let c = () => {
54
- window.scrollTo(0, 0);
55
- }, r = window.pageXOffset, p = window.pageYOffset;
56
- d = $(i(window, "scroll", c), l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"), l(document.body, "marginTop", `-${p}px`), () => {
57
- window.scrollTo(r, p);
58
- }), window.scrollTo(0, 0);
59
- }, E = $(i(document, "touchstart", n, {
60
- passive: !1,
61
- capture: !0
62
- }), i(document, "touchmove", o, {
63
- passive: !1,
64
- capture: !0
65
- }), i(document, "touchend", u, {
66
- passive: !1,
67
- capture: !0
68
- }), i(document, "focus", a, !0));
69
- return () => {
70
- t == null || t(), d == null || d(), E();
71
- };
14
+ function l(e, t) {
15
+ if (t === "UTC") return 0;
16
+ if (e > 0 && t === h()) return new Date(e).getTimezoneOffset() * -6e4;
17
+ let { year: n, month: r, day: o, hour: a, minute: c, second: f } = p(e, t);
18
+ return b(n, r, o, a, c, f, 0) - Math.floor(e / 1e3) * 1e3;
72
19
  }
73
- function l(e, t, n) {
74
- let o = e.style[t];
75
- return e.style[t] = n, () => {
76
- e.style[t] = o;
20
+ const s = /* @__PURE__ */ new Map();
21
+ function p(e, t) {
22
+ let n = s.get(t);
23
+ n || (n = new Intl.DateTimeFormat("en-US", {
24
+ timeZone: t,
25
+ hour12: !1,
26
+ era: "short",
27
+ year: "numeric",
28
+ month: "numeric",
29
+ day: "numeric",
30
+ hour: "numeric",
31
+ minute: "numeric",
32
+ second: "numeric"
33
+ }), s.set(t, n));
34
+ let r = n.formatToParts(new Date(e)), o = {};
35
+ for (let a of r) a.type !== "literal" && (o[a.type] = a.value);
36
+ return {
37
+ // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
38
+ year: o.era === "BC" || o.era === "B" ? -o.year + 1 : +o.year,
39
+ month: +o.month,
40
+ day: +o.day,
41
+ hour: o.hour === "24" ? 0 : +o.hour,
42
+ minute: +o.minute,
43
+ second: +o.second
77
44
  };
78
45
  }
79
- function i(e, t, n, o) {
80
- return e.addEventListener(t, n, o), () => {
81
- e.removeEventListener(t, n, o);
82
- };
46
+ const m = 864e5;
47
+ function g(e, t, n, r) {
48
+ return (n === r ? [
49
+ n
50
+ ] : [
51
+ n,
52
+ r
53
+ ]).filter((a) => C(e, t, a));
83
54
  }
84
- function v(e) {
85
- let t = document.scrollingElement || document.documentElement, n = e;
86
- for (; n && n !== t; ) {
87
- let o = w(n);
88
- if (o !== document.documentElement && o !== document.body && o !== n) {
89
- let u = o.getBoundingClientRect().top, a = n.getBoundingClientRect().top;
90
- a > u + n.clientHeight && (o.scrollTop += a - u);
91
- }
92
- n = o.parentElement;
55
+ function C(e, t, n) {
56
+ let r = p(n, t);
57
+ return e.year === r.year && e.month === r.month && e.day === r.day && e.hour === r.hour && e.minute === r.minute && e.second === r.second;
58
+ }
59
+ function v(e, t, n = "compatible") {
60
+ let r = M(e);
61
+ if (t === "UTC") return i(r);
62
+ if (t === h() && n === "compatible") {
63
+ r = y(r, new $());
64
+ let u = /* @__PURE__ */ new Date(), T = d(r.era, r.year);
65
+ return u.setFullYear(T, r.month - 1, r.day), u.setHours(r.hour, r.minute, r.second, r.millisecond), u.getTime();
66
+ }
67
+ let o = i(r), a = l(o - m, t), c = l(o + m, t), f = g(r, t, o - a, o - c);
68
+ if (f.length === 1) return f[0];
69
+ if (f.length > 1) switch (n) {
70
+ case "compatible":
71
+ case "earlier":
72
+ return f[0];
73
+ case "later":
74
+ return f[f.length - 1];
75
+ case "reject":
76
+ throw new RangeError("Multiple possible absolute times found");
93
77
  }
78
+ switch (n) {
79
+ case "earlier":
80
+ return Math.min(o - a, o - c);
81
+ case "compatible":
82
+ case "later":
83
+ return Math.max(o - a, o - c);
84
+ case "reject":
85
+ throw new RangeError("No such absolute time found");
86
+ }
87
+ }
88
+ function P(e, t, n = "compatible") {
89
+ return new Date(v(e, t, n));
90
+ }
91
+ function M(e, t) {
92
+ let n = 0, r = 0, o = 0, a = 0;
93
+ if ("timeZone" in e) ({ hour: n, minute: r, second: o, millisecond: a } = e);
94
+ else if ("hour" in e && !t) return e;
95
+ return t && ({ hour: n, minute: r, second: o, millisecond: a } = t), new w(e.calendar, e.era, e.year, e.month, e.day, n, r, o, a);
94
96
  }
95
- function x(e) {
96
- return e instanceof HTMLInputElement && !T.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
97
+ function y(e, t) {
98
+ if (D(e.calendar, t)) return e;
99
+ let n = t.fromJulianDay(e.calendar.toJulianDay(e)), r = e.copy();
100
+ return r.calendar = t, r.era = n.era, r.year = n.year, r.month = n.month, r.day = n.day, x(r), r;
97
101
  }
98
102
  export {
99
- C as usePreventScroll
103
+ i as epochFromDate,
104
+ l as getTimeZoneOffset,
105
+ v as toAbsolute,
106
+ y as toCalendar,
107
+ M as toCalendarDateTime,
108
+ P as toDate
100
109
  };
package/index202.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index255.js"),r=require("./index256.js"),t=require("./index257.js"),s=require("./index258.js"),u=require("./index259.js"),n=require("./index260.js"),i=require("./index261.js"),o=require("./index262.js"),c=require("./index263.js"),q=require("./index264.js"),R=require("./index265.js"),l=require("./index266.js"),E=require("./index267.js"),S=require("./index268.js"),h=require("./index269.js"),L=require("./index270.js"),T=require("./index271.js"),a=require("./index272.js"),I=require("./index273.js"),P=require("./index274.js"),U=require("./index275.js"),d=require("./index276.js"),f=require("./index277.js"),p=require("./index278.js"),k=require("./index279.js"),K=require("./index280.js"),N=require("./index281.js"),b=require("./index282.js"),v=require("./index283.js"),z=require("./index284.js"),A=require("./index285.js"),B=require("./index286.js"),C=require("./index287.js"),D=require("./index288.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index255.js");function _(e,t,i){r._(e,t),t.set(e,i)}exports._=_;
package/index202.mjs CHANGED
@@ -1,74 +1,7 @@
1
- import r from "./index255.mjs";
2
- import o from "./index256.mjs";
3
- import f from "./index257.mjs";
4
- import t from "./index258.mjs";
5
- import p from "./index259.mjs";
6
- import $ from "./index260.mjs";
7
- import e from "./index261.mjs";
8
- import m from "./index262.mjs";
9
- import s from "./index263.mjs";
10
- import d from "./index264.mjs";
11
- import c from "./index265.mjs";
12
- import i from "./index266.mjs";
13
- import x from "./index267.mjs";
14
- import a from "./index268.mjs";
15
- import b from "./index269.mjs";
16
- import R from "./index270.mjs";
17
- import l from "./index271.mjs";
18
- import E from "./index272.mjs";
19
- import S from "./index273.mjs";
20
- import h from "./index274.mjs";
21
- import L from "./index275.mjs";
22
- import T from "./index276.mjs";
23
- import u from "./index277.mjs";
24
- import I from "./index278.mjs";
25
- import P from "./index279.mjs";
26
- import U from "./index280.mjs";
27
- import k from "./index281.mjs";
28
- import n from "./index282.mjs";
29
- import v from "./index283.mjs";
30
- import K from "./index284.mjs";
31
- import N from "./index285.mjs";
32
- import z from "./index286.mjs";
33
- import A from "./index287.mjs";
34
- import B from "./index288.mjs";
35
- var C = {};
36
- C = {
37
- "ar-AE": r,
38
- "bg-BG": o,
39
- "cs-CZ": f,
40
- "da-DK": t,
41
- "de-DE": p,
42
- "el-GR": $,
43
- "en-US": e,
44
- "es-ES": m,
45
- "et-EE": s,
46
- "fi-FI": d,
47
- "fr-FR": c,
48
- "he-IL": i,
49
- "hr-HR": x,
50
- "hu-HU": a,
51
- "it-IT": b,
52
- "ja-JP": R,
53
- "ko-KR": l,
54
- "lt-LT": E,
55
- "lv-LV": S,
56
- "nb-NO": h,
57
- "nl-NL": L,
58
- "pl-PL": T,
59
- "pt-BR": u,
60
- "pt-PT": I,
61
- "ro-RO": P,
62
- "ru-RU": U,
63
- "sk-SK": k,
64
- "sl-SI": n,
65
- "sr-SP": v,
66
- "sv-SE": K,
67
- "tr-TR": N,
68
- "uk-UA": z,
69
- "zh-CN": A,
70
- "zh-TW": B
71
- };
1
+ import { _ as t } from "./index255.mjs";
2
+ function a(_, e, i) {
3
+ t(_, e), e.set(_, i);
4
+ }
72
5
  export {
73
- C as default
6
+ a as _
74
7
  };
package/index203.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let s=new WeakMap,i=[];function p(d,n=document.body){let o=new Set(d),a=new Set,u=t=>{for(let l of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(l);let r=l=>{if(o.has(l)||l.parentElement&&a.has(l.parentElement)&&l.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of o)if(l.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r}),v=r(t);if(v===NodeFilter.FILTER_ACCEPT&&b(t),v!==NodeFilter.FILTER_REJECT){let l=e.nextNode();for(;l!=null;)b(l),l=e.nextNode()}},b=t=>{var r;let e=(r=s.get(t))!==null&&r!==void 0?r:0;t.getAttribute("aria-hidden")==="true"&&e===0||(e===0&&t.setAttribute("aria-hidden","true"),a.add(t),s.set(t,e+1))};i.length&&i[i.length-1].disconnect(),u(n);let c=new MutationObserver(t=>{for(let r of t)if(!(r.type!=="childList"||r.addedNodes.length===0)&&![...o,...a].some(e=>e.contains(r.target))){for(let e of r.removedNodes)e instanceof Element&&(o.delete(e),a.delete(e));for(let e of r.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer==="true")?o.add(e):e instanceof Element&&u(e)}});c.observe(n,{childList:!0,subtree:!0});let f={visibleNodes:o,hiddenNodes:a,observe(){c.observe(n,{childList:!0,subtree:!0})},disconnect(){c.disconnect()}};return i.push(f),()=>{c.disconnect();for(let t of a){let r=s.get(t);r!=null&&(r===1?(t.removeAttribute("aria-hidden"),s.delete(t)):s.set(t,r-1))}f===i[i.length-1]?(i.pop(),i.length&&i[i.length-1].observe()):i.splice(i.indexOf(f),1)}}function E(d){let n=i[i.length-1];if(n&&!n.visibleNodes.has(d))return n.visibleNodes.add(d),()=>{n.visibleNodes.delete(d)}}exports.ariaHideOutside=p;exports.keepVisible=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e,t){return e-t*Math.floor(e/t)}exports.mod=o;