@okam/stack-ui 1.27.0 → 1.27.2

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 (391) hide show
  1. package/components/Carousel/components/CarouselNavigationButton.d.ts +1 -1
  2. package/index.d.ts +2 -0
  3. package/index.js +1 -1
  4. package/index.mjs +158 -151
  5. package/index10.js +1 -1
  6. package/index10.mjs +2 -2
  7. package/index100.js +1 -2
  8. package/index100.mjs +17 -12
  9. package/index101.js +2 -1
  10. package/index101.mjs +22 -45
  11. package/index102.js +1 -1
  12. package/index102.mjs +1 -1
  13. package/index103.js +1 -1
  14. package/index103.mjs +1 -1
  15. package/index107.js +1 -1
  16. package/index107.mjs +1 -1
  17. package/index108.js +1 -1
  18. package/index108.mjs +1 -1
  19. package/index11.js +1 -1
  20. package/index11.mjs +3 -3
  21. package/index112.js +1 -1
  22. package/index112.mjs +1 -1
  23. package/index113.js +1 -1
  24. package/index113.mjs +1 -1
  25. package/index114.js +1 -1
  26. package/index114.mjs +2 -2
  27. package/index116.js +1 -1
  28. package/index116.mjs +3 -3
  29. package/index118.js +1 -1
  30. package/index118.mjs +1 -1
  31. package/index119.js +1 -1
  32. package/index119.mjs +1 -1
  33. package/index12.js +1 -1
  34. package/index12.mjs +44 -15
  35. package/index121.js +1 -1
  36. package/index121.mjs +1 -1
  37. package/index122.js +1 -1
  38. package/index122.mjs +3 -3
  39. package/index124.js +1 -1
  40. package/index124.mjs +2 -2
  41. package/index125.js +1 -1
  42. package/index125.mjs +2 -2
  43. package/index126.js +1 -1
  44. package/index126.mjs +1 -1
  45. package/index128.js +1 -1
  46. package/index128.mjs +1 -1
  47. package/index13.js +1 -2
  48. package/index13.mjs +17 -20
  49. package/index131.js +1 -1
  50. package/index131.mjs +1 -1
  51. package/index132.js +1 -1
  52. package/index132.mjs +1 -1
  53. package/index133.js +1 -1
  54. package/index133.mjs +19 -49
  55. package/index134.js +1 -1
  56. package/index134.mjs +49 -25
  57. package/index135.js +1 -1
  58. package/index135.mjs +25 -19
  59. package/index137.js +1 -1
  60. package/index137.mjs +14 -14
  61. package/index138.js +1 -1
  62. package/index138.mjs +1 -1
  63. package/index139.js +1 -1
  64. package/index139.mjs +3 -3
  65. package/index14.js +1 -1
  66. package/index14.mjs +18 -17
  67. package/index140.js +1 -1
  68. package/index140.mjs +2 -2
  69. package/index143.js +1 -1
  70. package/index143.mjs +1 -1
  71. package/index147.js +1 -1
  72. package/index147.mjs +1 -1
  73. package/index15.js +1 -1
  74. package/index15.mjs +16 -83
  75. package/index159.js +11 -1
  76. package/index159.mjs +116 -2
  77. package/index16.js +1 -1
  78. package/index16.mjs +81 -28
  79. package/index160.js +1 -1
  80. package/index160.mjs +2 -6
  81. package/index161.js +1 -1
  82. package/index161.mjs +5 -64
  83. package/index162.js +1 -1
  84. package/index162.mjs +54 -16
  85. package/index163.js +1 -1
  86. package/index163.mjs +21 -49
  87. package/index164.js +1 -1
  88. package/index164.mjs +42 -143
  89. package/index165.js +1 -1
  90. package/index165.mjs +151 -18
  91. package/index166.js +1 -1
  92. package/index166.mjs +17 -14
  93. package/index167.js +1 -1
  94. package/index167.mjs +14 -34
  95. package/index168.js +1 -1
  96. package/index168.mjs +36 -79
  97. package/index169.js +1 -1
  98. package/index169.mjs +75 -23
  99. package/index17.js +1 -1
  100. package/index17.mjs +30 -32
  101. package/index170.js +1 -1
  102. package/index170.mjs +22 -13
  103. package/index171.js +1 -1
  104. package/index171.mjs +16 -48
  105. package/index172.js +1 -1
  106. package/index172.mjs +54 -2
  107. package/index173.js +1 -11
  108. package/index173.mjs +2 -116
  109. package/index174.js +1 -1
  110. package/index174.mjs +2 -2
  111. package/index175.js +1 -1
  112. package/index175.mjs +2 -2
  113. package/index176.js +1 -1
  114. package/index176.mjs +2 -2
  115. package/index177.js +1 -1
  116. package/index177.mjs +2 -2
  117. package/index178.js +1 -1
  118. package/index178.mjs +3 -3
  119. package/index179.js +1 -1
  120. package/index179.mjs +4 -4
  121. package/index18.js +1 -1
  122. package/index18.mjs +33 -31
  123. package/index180.js +1 -1
  124. package/index180.mjs +1 -1
  125. package/index181.js +1 -1
  126. package/index181.mjs +2 -2
  127. package/index182.js +1 -1
  128. package/index182.mjs +1 -1
  129. package/index183.js +1 -1
  130. package/index183.mjs +2 -2
  131. package/index184.js +1 -1
  132. package/index184.mjs +1 -1
  133. package/index185.js +1 -1
  134. package/index185.mjs +2 -2
  135. package/index186.js +1 -1
  136. package/index186.mjs +1 -1
  137. package/index187.js +1 -1
  138. package/index187.mjs +2 -2
  139. package/index188.js +1 -1
  140. package/index188.mjs +1 -1
  141. package/index19.js +1 -1
  142. package/index19.mjs +30 -33
  143. package/index191.js +1 -1
  144. package/index191.mjs +4 -4
  145. package/index192.js +1 -1
  146. package/index192.mjs +2 -2
  147. package/index193.js +1 -1
  148. package/index193.mjs +5 -5
  149. package/index194.js +1 -1
  150. package/index194.mjs +4 -4
  151. package/index195.js +1 -1
  152. package/index195.mjs +5 -5
  153. package/index196.js +1 -1
  154. package/index196.mjs +5 -5
  155. package/index197.js +1 -1
  156. package/index197.mjs +2 -2
  157. package/index2.js +1 -1
  158. package/index2.mjs +20 -20
  159. package/index20.js +1 -1
  160. package/index20.mjs +32 -67
  161. package/index21.js +1 -1
  162. package/index21.mjs +61 -58
  163. package/index22.js +1 -1
  164. package/index22.mjs +66 -52
  165. package/index224.js +1 -1
  166. package/index224.mjs +123 -306
  167. package/index225.js +1 -1
  168. package/index225.mjs +173 -186
  169. package/index226.js +1 -1
  170. package/index226.mjs +9 -8
  171. package/index227.js +1 -1
  172. package/index227.mjs +3 -26
  173. package/index228.js +1 -1
  174. package/index228.mjs +34 -53
  175. package/index229.js +1 -1
  176. package/index229.mjs +5 -46
  177. package/index23.js +1 -1
  178. package/index23.mjs +37 -41
  179. package/index230.js +1 -1
  180. package/index230.mjs +28 -123
  181. package/index231.js +1 -1
  182. package/index231.mjs +6 -130
  183. package/index232.js +1 -1
  184. package/index232.mjs +293 -159
  185. package/index233.js +1 -1
  186. package/index233.mjs +192 -9
  187. package/index234.js +1 -1
  188. package/index234.mjs +8 -3
  189. package/index235.js +1 -1
  190. package/index235.mjs +25 -35
  191. package/index236.js +1 -1
  192. package/index236.mjs +55 -5
  193. package/index237.js +1 -1
  194. package/index237.mjs +44 -27
  195. package/index238.js +1 -1
  196. package/index238.mjs +124 -6
  197. package/index24.js +1 -1
  198. package/index24.mjs +57 -20
  199. package/index242.js +1 -1
  200. package/index242.mjs +1 -1
  201. package/index243.js +1 -1
  202. package/index243.mjs +1 -1
  203. package/index245.js +1 -1
  204. package/index245.mjs +1 -1
  205. package/index246.js +1 -1
  206. package/index246.mjs +2 -2
  207. package/index248.js +1 -1
  208. package/index248.mjs +2 -2
  209. package/index249.js +1 -1
  210. package/index249.mjs +3 -3
  211. package/index25.js +1 -1
  212. package/index25.mjs +20 -50
  213. package/index251.js +1 -1
  214. package/index251.mjs +1 -1
  215. package/index26.js +1 -1
  216. package/index26.mjs +50 -17
  217. package/index260.js +1 -1
  218. package/index260.mjs +6 -2
  219. package/index261.mjs +2 -2
  220. package/index262.mjs +2 -2
  221. package/index263.mjs +2 -2
  222. package/index264.js +1 -1
  223. package/index264.mjs +2 -72
  224. package/index265.js +1 -1
  225. package/index265.mjs +72 -2
  226. package/index266.mjs +2 -2
  227. package/index267.js +1 -1
  228. package/index267.mjs +2 -19
  229. package/index268.js +1 -1
  230. package/index268.mjs +19 -2
  231. package/index269.js +1 -1
  232. package/index269.mjs +2 -6
  233. package/index27.js +1 -1
  234. package/index27.mjs +16 -32
  235. package/index28.js +1 -1
  236. package/index28.mjs +32 -23
  237. package/index29.js +1 -1
  238. package/index29.mjs +24 -8
  239. package/index3.js +1 -1
  240. package/index3.mjs +1 -1
  241. package/index30.js +1 -1
  242. package/index30.mjs +8 -32
  243. package/index31.js +1 -1
  244. package/index31.mjs +29 -30
  245. package/index32.js +1 -1
  246. package/index32.mjs +28 -98
  247. package/index33.js +1 -1
  248. package/index33.mjs +102 -8
  249. package/index34.js +1 -1
  250. package/index34.mjs +8 -46
  251. package/index35.js +1 -1
  252. package/index35.mjs +46 -18
  253. package/index36.js +2 -1
  254. package/index36.mjs +19 -6
  255. package/index37.js +1 -1
  256. package/index37.mjs +6 -46
  257. package/index38.js +1 -1
  258. package/index38.mjs +45 -23
  259. package/index39.js +2 -1
  260. package/index39.mjs +26 -5
  261. package/index4.js +1 -1
  262. package/index4.mjs +5 -5
  263. package/index40.js +1 -1
  264. package/index40.mjs +4 -7
  265. package/index41.js +1 -1
  266. package/index41.mjs +5 -5
  267. package/index42.js +1 -1
  268. package/index42.mjs +8 -5
  269. package/index43.js +1 -1
  270. package/index43.mjs +2 -2
  271. package/index44.js +1 -1
  272. package/index44.mjs +1 -1
  273. package/index45.js +1 -1
  274. package/index45.mjs +4 -4
  275. package/index46.js +1 -1
  276. package/index46.mjs +3 -9
  277. package/index47.js +1 -1
  278. package/index47.mjs +7 -9
  279. package/index48.js +1 -1
  280. package/index48.mjs +9 -9
  281. package/index49.js +1 -1
  282. package/index49.mjs +13 -46
  283. package/index50.js +1 -1
  284. package/index50.mjs +46 -8
  285. package/index51.js +1 -1
  286. package/index51.mjs +6 -69
  287. package/index52.js +1 -1
  288. package/index52.mjs +71 -8
  289. package/index53.js +1 -1
  290. package/index53.mjs +7 -12
  291. package/index54.js +1 -1
  292. package/index54.mjs +12 -9
  293. package/index55.js +1 -1
  294. package/index55.mjs +10 -17
  295. package/index56.js +1 -1
  296. package/index56.mjs +17 -13
  297. package/index57.js +1 -1
  298. package/index57.mjs +5 -5
  299. package/index58.js +1 -1
  300. package/index58.mjs +6 -6
  301. package/index59.js +1 -1
  302. package/index59.mjs +10 -8
  303. package/index6.js +1 -1
  304. package/index6.mjs +1 -1
  305. package/index60.js +1 -1
  306. package/index60.mjs +5 -5
  307. package/index61.js +1 -1
  308. package/index61.mjs +6 -8
  309. package/index62.js +1 -1
  310. package/index62.mjs +13 -14
  311. package/index63.js +1 -2
  312. package/index63.mjs +14 -23
  313. package/index64.js +1 -1
  314. package/index64.mjs +21 -15
  315. package/index65.js +1 -1
  316. package/index65.mjs +16 -14
  317. package/index66.js +1 -1
  318. package/index66.mjs +13 -40
  319. package/index67.js +1 -1
  320. package/index67.mjs +39 -36
  321. package/index68.js +1 -1
  322. package/index68.mjs +37 -11
  323. package/index69.js +1 -1
  324. package/index69.mjs +11 -10
  325. package/index7.js +1 -1
  326. package/index7.mjs +2 -2
  327. package/index70.js +1 -1
  328. package/index70.mjs +10 -13
  329. package/index71.js +2 -1
  330. package/index71.mjs +15 -2
  331. package/index72.js +1 -1
  332. package/index72.mjs +11 -8
  333. package/index73.js +1 -2
  334. package/index73.mjs +1 -7
  335. package/index74.js +1 -1
  336. package/index74.mjs +7 -6
  337. package/index75.js +1 -1
  338. package/index75.mjs +6 -6
  339. package/index76.js +2 -1
  340. package/index76.mjs +8 -25
  341. package/index77.js +2 -1
  342. package/index77.mjs +8 -2
  343. package/index78.js +1 -6
  344. package/index78.mjs +25 -94
  345. package/index79.js +1 -1
  346. package/index79.mjs +2 -69
  347. package/index8.js +1 -1
  348. package/index8.mjs +5 -5
  349. package/index80.js +6 -1
  350. package/index80.mjs +82 -29
  351. package/index81.js +1 -42
  352. package/index81.mjs +64 -65
  353. package/index82.js +1 -1
  354. package/index82.mjs +32 -150
  355. package/index83.js +42 -9
  356. package/index83.mjs +65 -52
  357. package/index84.js +1 -1
  358. package/index84.mjs +145 -31
  359. package/index85.js +9 -1
  360. package/index85.mjs +54 -10
  361. package/index86.js +1 -1
  362. package/index86.mjs +38 -28
  363. package/index87.js +1 -1
  364. package/index87.mjs +12 -5
  365. package/index88.js +1 -12
  366. package/index88.mjs +31 -36
  367. package/index89.js +1 -1
  368. package/index89.mjs +6 -29
  369. package/index9.js +1 -1
  370. package/index9.mjs +4 -4
  371. package/index90.js +12 -1
  372. package/index90.mjs +39 -12
  373. package/index91.js +1 -7
  374. package/index91.mjs +23 -13
  375. package/index92.js +1 -15
  376. package/index92.mjs +9 -67
  377. package/index93.js +7 -1
  378. package/index93.mjs +17 -5
  379. package/index94.js +13 -14
  380. package/index94.mjs +63 -17
  381. package/index95.js +1 -1
  382. package/index95.mjs +7 -42
  383. package/index96.js +16 -1
  384. package/index96.mjs +24 -44
  385. package/index97.js +1 -1
  386. package/index97.mjs +42 -48
  387. package/index98.js +1 -1
  388. package/index98.mjs +45 -17
  389. package/index99.js +1 -2
  390. package/index99.mjs +47 -21
  391. package/package.json +1 -1
package/index16.mjs CHANGED
@@ -1,35 +1,88 @@
1
1
  "use client";
2
- import { jsxs as u, jsx as e } from "react/jsx-runtime";
3
- import { useCheckbox as B } from "@react-aria/checkbox";
4
- import { useFocusRing as F, FocusRing as R } from "@react-aria/focus";
5
- import { VisuallyHidden as v } from "@react-aria/visually-hidden";
6
- import { useToggleState as I } from "@react-stately/toggle";
7
- import { useRef as j } from "react";
8
- import r from "./index64.mjs";
9
- import D from "./index13.mjs";
10
- import b from "./index3.mjs";
11
- const A = (a) => {
2
+ import { jsxs as u, jsx as o } from "react/jsx-runtime";
3
+ import { isEmpty as P } from "lodash";
4
+ import { useRef as T } from "react";
5
+ import { useSelect as B, HiddenSelect as D } from "react-aria";
6
+ import { useFormContext as E, get as W } from "react-hook-form";
7
+ import { useSelectState as j } from "react-stately";
8
+ import R from "./index25.mjs";
9
+ import { ButtonWithForwardRef as q } from "./index6.mjs";
10
+ import C from "./index14.mjs";
11
+ import $ from "./index3.mjs";
12
+ import H from "./index37.mjs";
13
+ import { ListBox as K } from "./index107.mjs";
14
+ import L from "./index108.mjs";
15
+ const A = (m) => {
16
+ var b;
12
17
  const {
13
- id: i,
14
- label: f,
15
- isDisabled: t = !1,
16
- isError: n = !1,
17
- errorMessage: l,
18
- ariaLabel: p,
19
- icon: h,
20
- themeName: o = "checkbox",
21
- tokens: x,
22
- customTheme: s
23
- } = a, m = I(a), d = j(null), { inputProps: T } = B(a, m, d), { isSelected: k } = m, { focusProps: g, isFocusVisible: y } = F(), c = { ...x, selected: k, isDisabled: t, isError: n, isFocusVisible: y }, M = r(`${o}.container`, c, s), N = r(`${o}.checkBox`, c, s), $ = r(`${o}.checkMark`, c, s), C = r(`${o}.checkMarkIcon`, c, s);
24
- return /* @__PURE__ */ u("div", { children: [
25
- /* @__PURE__ */ e(R, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ u("label", { className: M, htmlFor: i, "aria-label": p, "aria-disabled": t, children: [
26
- /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e("input", { type: "checkbox", ref: d, "aria-labelledby": i, ...T, ...g }) }),
27
- /* @__PURE__ */ e("div", { className: N, "aria-checked": k, role: "checkbox", "aria-labelledby": i, children: /* @__PURE__ */ e("div", { className: $, children: h && /* @__PURE__ */ e(D, { icon: h, customTheme: C }) }) }),
28
- /* @__PURE__ */ e(b, { themeName: `${o}.label`, tokens: c, children: f })
29
- ] }) }),
30
- n && l && /* @__PURE__ */ e(b, { themeName: `${o}.errorMessage`, tokens: c, children: l })
18
+ name: i,
19
+ placeholderLabel: a,
20
+ disabled: l,
21
+ hookFormRef: c,
22
+ isError: r = !1,
23
+ errorMessage: n,
24
+ themeName: e = "select",
25
+ tokens: f,
26
+ customTheme: O,
27
+ label: d,
28
+ onSelectionChange: x,
29
+ defaultValue: N,
30
+ value: k,
31
+ icon: y,
32
+ popoverMatchesWidth: V,
33
+ options: w,
34
+ ...g
35
+ } = m, s = T(null), t = j({
36
+ ...g,
37
+ children: H,
38
+ selectedKey: k,
39
+ defaultSelectedKey: N,
40
+ items: w,
41
+ onSelectionChange: x
42
+ }), { triggerProps: F, menuProps: M, labelProps: v } = B({ ...g, label: d }, t, s), { onPress: p, onPressStart: h, ...I } = F;
43
+ return /* @__PURE__ */ u(R, { themeName: `${e}.wrapper`, children: [
44
+ d && /* @__PURE__ */ o($, { ...v, as: "label", themeName: `${e}.label`, children: d }),
45
+ /* @__PURE__ */ o(D, { ...c, state: t, triggerRef: s, name: i, isDisabled: !0 }),
46
+ /* @__PURE__ */ u(R, { themeName: `${e}.container`, children: [
47
+ /* @__PURE__ */ u(
48
+ q,
49
+ {
50
+ ...I,
51
+ handlePress: (S) => {
52
+ p == null || p(S), h == null || h(S);
53
+ },
54
+ ref: s,
55
+ disabled: l,
56
+ themeName: `${e}.button`,
57
+ tokens: { ...f, intent: r ? "error" : "default" },
58
+ children: [
59
+ t.selectedItem ? t.selectedItem.rendered : a,
60
+ /* @__PURE__ */ o(C, { icon: y ?? "ArrowDown" })
61
+ ]
62
+ }
63
+ ),
64
+ t.isOpen && s.current && /* @__PURE__ */ o(
65
+ L,
66
+ {
67
+ tokens: f,
68
+ state: t,
69
+ triggerRef: s,
70
+ placement: "bottom",
71
+ themeName: `${e}.popover`,
72
+ style: { [`--${e}-container-width`]: `${(b = s.current) == null ? void 0 : b.offsetWidth}px` },
73
+ children: /* @__PURE__ */ o(K, { ...M, themeName: e, state: t })
74
+ }
75
+ ),
76
+ r && /* @__PURE__ */ o($, { tokens: { ...f, isError: r }, themeName: `${e}.errorMessage`, children: n })
77
+ ] })
31
78
  ] });
79
+ }, se = (m) => {
80
+ const { name: i, required: a } = m, { register: l, formState: c } = E(), r = W(c.errors, i), n = (r == null ? void 0 : r.message) ?? void 0, { ref: e } = l(i, {
81
+ required: a ? "This is an error message" : !1
82
+ });
83
+ return /* @__PURE__ */ o(A, { ...m, isError: !P(n), errorMessage: n, hookFormRef: e });
32
84
  };
33
85
  export {
86
+ se as ReactHookFormSelect,
34
87
  A as default
35
88
  };
package/index160.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=require("./index172.js");r.__exports._=r.__exports._interop_require_default=_;function _(e){return e&&e.__esModule?e:{default:e}}module.exports=r.__exports;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
package/index160.mjs CHANGED
@@ -1,8 +1,4 @@
1
- import { __exports as r } from "./index172.mjs";
2
- r._ = r._interop_require_default = _;
3
- function _(e) {
4
- return e && e.__esModule ? e : { default: e };
5
- }
1
+ var e = { exports: {} };
6
2
  export {
7
- r as default
3
+ e as __module
8
4
  };
package/index161.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index201.js"),j=require("./index202.js"),z=require("./index163.js"),H=require("./index203.js"),L=require("./index164.js"),M=require("./index204.js"),O=require("./index162.js"),w=require("./index205.js"),T=require("./index206.js");var m;function A(){return m||(m=1,function(q,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return U}});const p=j.__require(),c=z.__require(),g=H.__require(),y=L.__require(),P=M.__require(),b=O.__require(),R=w.__require(),v=T.__require();function U(s,l,a){let n,r=typeof l=="string"?l:(0,c.formatWithValidation)(l);const i=r.match(/^[a-zA-Z]{1,}:\/\//),_=i?r.slice(i[0].length):r;if((_.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+r+"' passed to next/router in page: '"+s.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const e=(0,y.normalizeRepeatedSlashes)(_);r=(i?i[0]:"")+e}if(!(0,b.isLocalURL)(r))return a?[r]:r;try{n=new URL(r.startsWith("#")?s.asPath:s.pathname,"http://n")}catch{n=new URL("/","http://n")}try{const e=new URL(r,n);e.pathname=(0,P.normalizePathTrailingSlash)(e.pathname);let f="";if((0,R.isDynamicRoute)(e.pathname)&&e.searchParams&&a){const h=(0,p.searchParamsToUrlQuery)(e.searchParams),{result:d,params:S}=(0,v.interpolateAs)(e.pathname,e.pathname,h);d&&(f=(0,c.formatWithValidation)({pathname:d,hash:e.hash,query:(0,g.omit)(h,S)}))}const u=e.origin===n.origin?e.href.slice(e.origin.length):e.href;return a?[u,f||u]:u}catch{return a?[r]:r}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),q.exports=t.default)}(o.__module,o.__module.exports)),o.__module.exports}exports.__require=A;
1
+ "use strict";const r=require("./index173.js");r.__exports._=r.__exports._interop_require_default=_;function _(e){return e&&e.__esModule?e:{default:e}}module.exports=r.__exports;
package/index161.mjs CHANGED
@@ -1,67 +1,8 @@
1
- import { __module as n } from "./index201.mjs";
2
- import { __require as H } from "./index202.mjs";
3
- import { __require as L } from "./index163.mjs";
4
- import { __require as j } from "./index203.mjs";
5
- import { __require as O } from "./index164.mjs";
6
- import { __require as S } from "./index204.mjs";
7
- import { __require as w } from "./index162.mjs";
8
- import { __require as M } from "./index205.mjs";
9
- import { __require as A } from "./index206.mjs";
10
- var p;
11
- function $() {
12
- return p ? n.exports : (p = 1, function(d, t) {
13
- Object.defineProperty(t, "__esModule", {
14
- value: !0
15
- }), Object.defineProperty(t, "resolveHref", {
16
- enumerable: !0,
17
- get: function() {
18
- return v;
19
- }
20
- });
21
- const q = H(), f = L(), g = j(), y = O(), P = S(), U = w(), R = M(), b = A();
22
- function v(s, l, a) {
23
- let i, r = typeof l == "string" ? l : (0, f.formatWithValidation)(l);
24
- const o = r.match(/^[a-zA-Z]{1,}:\/\//), m = o ? r.slice(o[0].length) : r;
25
- if ((m.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
26
- console.error("Invalid href '" + r + "' passed to next/router in page: '" + s.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
27
- const e = (0, y.normalizeRepeatedSlashes)(m);
28
- r = (o ? o[0] : "") + e;
29
- }
30
- if (!(0, U.isLocalURL)(r))
31
- return a ? [
32
- r
33
- ] : r;
34
- try {
35
- i = new URL(r.startsWith("#") ? s.asPath : s.pathname, "http://n");
36
- } catch {
37
- i = new URL("/", "http://n");
38
- }
39
- try {
40
- const e = new URL(r, i);
41
- e.pathname = (0, P.normalizePathTrailingSlash)(e.pathname);
42
- let c = "";
43
- if ((0, R.isDynamicRoute)(e.pathname) && e.searchParams && a) {
44
- const h = (0, q.searchParamsToUrlQuery)(e.searchParams), { result: _, params: z } = (0, b.interpolateAs)(e.pathname, e.pathname, h);
45
- _ && (c = (0, f.formatWithValidation)({
46
- pathname: _,
47
- hash: e.hash,
48
- query: (0, g.omit)(h, z)
49
- }));
50
- }
51
- const u = e.origin === i.origin ? e.href.slice(e.origin.length) : e.href;
52
- return a ? [
53
- u,
54
- c || u
55
- ] : u;
56
- } catch {
57
- return a ? [
58
- r
59
- ] : r;
60
- }
61
- }
62
- (typeof t.default == "function" || typeof t.default == "object" && t.default !== null) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), d.exports = t.default);
63
- }(n, n.exports), n.exports);
1
+ import { __exports as r } from "./index173.mjs";
2
+ r._ = r._interop_require_default = _;
3
+ function _(e) {
4
+ return e && e.__esModule ? e : { default: e };
64
5
  }
65
6
  export {
66
- $ as __require
7
+ r as default
67
8
  };
package/index162.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index207.js"),c=require("./index164.js"),l=require("./index208.js");var s;function _(){return s||(s=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});const i=c.__require(),u=l.__require();function a(n){if(!(0,i.isAbsoluteUrl)(n))return!0;try{const e=(0,i.getLocationOrigin)(),o=new URL(n,e);return o.origin===e&&(0,u.hasBasePath)(o.pathname)}catch{return!1}}}(r.__exports)),r.__exports}exports.__require=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index201.js"),j=require("./index202.js"),z=require("./index164.js"),H=require("./index203.js"),L=require("./index165.js"),M=require("./index204.js"),O=require("./index163.js"),w=require("./index205.js"),T=require("./index206.js");var m;function A(){return m||(m=1,function(q,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return U}});const p=j.__require(),c=z.__require(),g=H.__require(),y=L.__require(),P=M.__require(),b=O.__require(),R=w.__require(),v=T.__require();function U(s,l,a){let n,r=typeof l=="string"?l:(0,c.formatWithValidation)(l);const i=r.match(/^[a-zA-Z]{1,}:\/\//),_=i?r.slice(i[0].length):r;if((_.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+r+"' passed to next/router in page: '"+s.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const e=(0,y.normalizeRepeatedSlashes)(_);r=(i?i[0]:"")+e}if(!(0,b.isLocalURL)(r))return a?[r]:r;try{n=new URL(r.startsWith("#")?s.asPath:s.pathname,"http://n")}catch{n=new URL("/","http://n")}try{const e=new URL(r,n);e.pathname=(0,P.normalizePathTrailingSlash)(e.pathname);let f="";if((0,R.isDynamicRoute)(e.pathname)&&e.searchParams&&a){const h=(0,p.searchParamsToUrlQuery)(e.searchParams),{result:d,params:S}=(0,v.interpolateAs)(e.pathname,e.pathname,h);d&&(f=(0,c.formatWithValidation)({pathname:d,hash:e.hash,query:(0,g.omit)(h,S)}))}const u=e.origin===n.origin?e.href.slice(e.origin.length):e.href;return a?[u,f||u]:u}catch{return a?[r]:r}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),q.exports=t.default)}(o.__module,o.__module.exports)),o.__module.exports}exports.__require=A;
package/index162.mjs CHANGED
@@ -1,29 +1,67 @@
1
- import { __exports as r } from "./index207.mjs";
2
- import { __require as c } from "./index164.mjs";
3
- import { __require as l } from "./index208.mjs";
4
- var n;
5
- function h() {
6
- return n ? r : (n = 1, function(t) {
1
+ import { __module as n } from "./index201.mjs";
2
+ import { __require as H } from "./index202.mjs";
3
+ import { __require as L } from "./index164.mjs";
4
+ import { __require as j } from "./index203.mjs";
5
+ import { __require as O } from "./index165.mjs";
6
+ import { __require as S } from "./index204.mjs";
7
+ import { __require as w } from "./index163.mjs";
8
+ import { __require as M } from "./index205.mjs";
9
+ import { __require as A } from "./index206.mjs";
10
+ var p;
11
+ function $() {
12
+ return p ? n.exports : (p = 1, function(d, t) {
7
13
  Object.defineProperty(t, "__esModule", {
8
14
  value: !0
9
- }), Object.defineProperty(t, "isLocalURL", {
15
+ }), Object.defineProperty(t, "resolveHref", {
10
16
  enumerable: !0,
11
17
  get: function() {
12
- return u;
18
+ return v;
13
19
  }
14
20
  });
15
- const i = c(), s = l();
16
- function u(o) {
17
- if (!(0, i.isAbsoluteUrl)(o)) return !0;
21
+ const q = H(), f = L(), g = j(), y = O(), P = S(), U = w(), R = M(), b = A();
22
+ function v(s, l, a) {
23
+ let i, r = typeof l == "string" ? l : (0, f.formatWithValidation)(l);
24
+ const o = r.match(/^[a-zA-Z]{1,}:\/\//), m = o ? r.slice(o[0].length) : r;
25
+ if ((m.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
26
+ console.error("Invalid href '" + r + "' passed to next/router in page: '" + s.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
27
+ const e = (0, y.normalizeRepeatedSlashes)(m);
28
+ r = (o ? o[0] : "") + e;
29
+ }
30
+ if (!(0, U.isLocalURL)(r))
31
+ return a ? [
32
+ r
33
+ ] : r;
34
+ try {
35
+ i = new URL(r.startsWith("#") ? s.asPath : s.pathname, "http://n");
36
+ } catch {
37
+ i = new URL("/", "http://n");
38
+ }
18
39
  try {
19
- const e = (0, i.getLocationOrigin)(), a = new URL(o, e);
20
- return a.origin === e && (0, s.hasBasePath)(a.pathname);
40
+ const e = new URL(r, i);
41
+ e.pathname = (0, P.normalizePathTrailingSlash)(e.pathname);
42
+ let c = "";
43
+ if ((0, R.isDynamicRoute)(e.pathname) && e.searchParams && a) {
44
+ const h = (0, q.searchParamsToUrlQuery)(e.searchParams), { result: _, params: z } = (0, b.interpolateAs)(e.pathname, e.pathname, h);
45
+ _ && (c = (0, f.formatWithValidation)({
46
+ pathname: _,
47
+ hash: e.hash,
48
+ query: (0, g.omit)(h, z)
49
+ }));
50
+ }
51
+ const u = e.origin === i.origin ? e.href.slice(e.origin.length) : e.href;
52
+ return a ? [
53
+ u,
54
+ c || u
55
+ ] : u;
21
56
  } catch {
22
- return !1;
57
+ return a ? [
58
+ r
59
+ ] : r;
23
60
  }
24
61
  }
25
- }(r), r);
62
+ (typeof t.default == "function" || typeof t.default == "object" && t.default !== null) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), d.exports = t.default);
63
+ }(n, n.exports), n.exports);
26
64
  }
27
65
  export {
28
- h as __require
66
+ $ as __require
29
67
  };
package/index163.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index209.js"),y=require("./index210.js"),g=require("./index202.js");var p;function U(){return p||(p=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});function _(e,t){for(var o in t)Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}_(u,{formatUrl:function(){return h},urlObjectKeys:function(){return l},formatWithValidation:function(){return q}});const d=y.__require()._(g.__require()),m=/https?|ftp|gopher|file/;function h(e){let{auth:t,hostname:o}=e,s=e.protocol||"",n=e.pathname||"",c=e.hash||"",a=e.query||"",r=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?r=t+e.host:o&&(r=t+(~o.indexOf(":")?"["+o+"]":o),e.port&&(r+=":"+e.port)),a&&typeof a=="object"&&(a=String(d.urlQueryToSearchParams(a)));let i=e.search||a&&"?"+a||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||m.test(s))&&r!==!1?(r="//"+(r||""),n&&n[0]!=="/"&&(n="/"+n)):r||(r=""),c&&c[0]!=="#"&&(c="#"+c),i&&i[0]!=="?"&&(i="?"+i),n=n.replace(/[?#]/g,encodeURIComponent),i=i.replace("#","%23"),""+s+r+n+i+c}const l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function q(e){return process.env.NODE_ENV==="development"&&e!==null&&typeof e=="object"&&Object.keys(e).forEach(t=>{l.includes(t)||console.warn("Unknown key passed via urlObject into url.format: "+t)}),h(e)}}(f.__exports)),f.__exports}exports.__require=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index207.js"),c=require("./index165.js"),l=require("./index208.js");var s;function _(){return s||(s=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});const i=c.__require(),u=l.__require();function a(n){if(!(0,i.isAbsoluteUrl)(n))return!0;try{const e=(0,i.getLocationOrigin)(),o=new URL(n,e);return o.origin===e&&(0,u.hasBasePath)(o.pathname)}catch{return!1}}}(r.__exports)),r.__exports}exports.__require=_;
package/index163.mjs CHANGED
@@ -1,57 +1,29 @@
1
- import { __exports as c } from "./index209.mjs";
2
- import { __require as y } from "./index210.mjs";
3
- import { __require as U } from "./index202.mjs";
4
- var l;
5
- function x() {
6
- return l ? c : (l = 1, function(h) {
7
- Object.defineProperty(h, "__esModule", {
1
+ import { __exports as r } from "./index207.mjs";
2
+ import { __require as c } from "./index165.mjs";
3
+ import { __require as l } from "./index208.mjs";
4
+ var n;
5
+ function h() {
6
+ return n ? r : (n = 1, function(t) {
7
+ Object.defineProperty(t, "__esModule", {
8
8
  value: !0
9
- });
10
- function m(e, t) {
11
- for (var o in t) Object.defineProperty(e, o, {
12
- enumerable: !0,
13
- get: t[o]
14
- });
15
- }
16
- m(h, {
17
- formatUrl: function() {
18
- return p;
19
- },
20
- urlObjectKeys: function() {
9
+ }), Object.defineProperty(t, "isLocalURL", {
10
+ enumerable: !0,
11
+ get: function() {
21
12
  return u;
22
- },
23
- formatWithValidation: function() {
24
- return q;
25
13
  }
26
14
  });
27
- const _ = /* @__PURE__ */ y()._(U()), d = /https?|ftp|gopher|file/;
28
- function p(e) {
29
- let { auth: t, hostname: o } = e, a = e.protocol || "", n = e.pathname || "", f = e.hash || "", s = e.query || "", r = !1;
30
- t = t ? encodeURIComponent(t).replace(/%3A/i, ":") + "@" : "", e.host ? r = t + e.host : o && (r = t + (~o.indexOf(":") ? "[" + o + "]" : o), e.port && (r += ":" + e.port)), s && typeof s == "object" && (s = String(_.urlQueryToSearchParams(s)));
31
- let i = e.search || s && "?" + s || "";
32
- return a && !a.endsWith(":") && (a += ":"), e.slashes || (!a || d.test(a)) && r !== !1 ? (r = "//" + (r || ""), n && n[0] !== "/" && (n = "/" + n)) : r || (r = ""), f && f[0] !== "#" && (f = "#" + f), i && i[0] !== "?" && (i = "?" + i), n = n.replace(/[?#]/g, encodeURIComponent), i = i.replace("#", "%23"), "" + a + r + n + i + f;
33
- }
34
- const u = [
35
- "auth",
36
- "hash",
37
- "host",
38
- "hostname",
39
- "href",
40
- "path",
41
- "pathname",
42
- "port",
43
- "protocol",
44
- "query",
45
- "search",
46
- "slashes"
47
- ];
48
- function q(e) {
49
- return process.env.NODE_ENV === "development" && e !== null && typeof e == "object" && Object.keys(e).forEach((t) => {
50
- u.includes(t) || console.warn("Unknown key passed via urlObject into url.format: " + t);
51
- }), p(e);
15
+ const i = c(), s = l();
16
+ function u(o) {
17
+ if (!(0, i.isAbsoluteUrl)(o)) return !0;
18
+ try {
19
+ const e = (0, i.getLocationOrigin)(), a = new URL(o, e);
20
+ return a.origin === e && (0, s.hasBasePath)(a.pathname);
21
+ } catch {
22
+ return !1;
23
+ }
52
24
  }
53
- }(c), c);
25
+ }(r), r);
54
26
  }
55
27
  export {
56
- x as __require
28
+ h as __require
57
29
  };
package/index164.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index211.js");var g;function _(){return g||(g=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});function m(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}m(a,{WEB_VITALS:function(){return p},execOnce:function(){return E},isAbsoluteUrl:function(){return P},getLocationOrigin:function(){return c},getURL:function(){return N},getDisplayName:function(){return s},isResSent:function(){return f},normalizeRepeatedSlashes:function(){return y},loadGetInitialProps:function(){return l},SP:function(){return d},ST:function(){return S},DecodeError:function(){return w},NormalizeError:function(){return O},PageNotFoundError:function(){return v},MissingStaticPage:function(){return I},MiddlewareNotFoundError:function(){return b},stringifyError:function(){return T}});const p=["CLS","FCP","FID","INP","LCP","TTFB"];function E(e){let r=!1,t;return function(){for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return r||(r=!0,t=e(...n)),t}}const h=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,P=e=>h.test(e);function c(){const{protocol:e,hostname:r,port:t}=window.location;return e+"//"+r+(t?":"+t:"")}function N(){const{href:e}=window.location,r=c();return e.substring(r.length)}function s(e){return typeof e=="string"?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function y(e){const r=e.split("?");return r[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(r[1]?"?"+r.slice(1).join("?"):"")}async function l(e,r){if(process.env.NODE_ENV!=="production"){var t;if((t=e.prototype)!=null&&t.getInitialProps){const o='"'+s(e)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(o)}}const i=r.res||r.ctx&&r.ctx.res;if(!e.getInitialProps)return r.ctx&&r.Component?{pageProps:await l(r.Component,r.ctx)}:{};const n=await e.getInitialProps(r);if(i&&f(i))return n;if(!n){const o='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw new Error(o)}return process.env.NODE_ENV!=="production"&&Object.keys(n).length===0&&!r.ctx&&console.warn(""+s(e)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),n}const d=typeof performance<"u",S=d&&["mark","measure","getEntriesByName"].every(e=>typeof performance[e]=="function");class w extends Error{}class O extends Error{}class v extends Error{constructor(r){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+r}}class I extends Error{constructor(r,t){super(),this.message="Failed to load static file for page: "+r+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function T(e){return JSON.stringify({message:e.message,stack:e.stack})}}(u.__exports)),u.__exports}exports.__require=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index209.js"),y=require("./index210.js"),g=require("./index202.js");var p;function U(){return p||(p=1,function(u){Object.defineProperty(u,"__esModule",{value:!0});function _(e,t){for(var o in t)Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}_(u,{formatUrl:function(){return h},urlObjectKeys:function(){return l},formatWithValidation:function(){return q}});const d=y.__require()._(g.__require()),m=/https?|ftp|gopher|file/;function h(e){let{auth:t,hostname:o}=e,s=e.protocol||"",n=e.pathname||"",c=e.hash||"",a=e.query||"",r=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?r=t+e.host:o&&(r=t+(~o.indexOf(":")?"["+o+"]":o),e.port&&(r+=":"+e.port)),a&&typeof a=="object"&&(a=String(d.urlQueryToSearchParams(a)));let i=e.search||a&&"?"+a||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||m.test(s))&&r!==!1?(r="//"+(r||""),n&&n[0]!=="/"&&(n="/"+n)):r||(r=""),c&&c[0]!=="#"&&(c="#"+c),i&&i[0]!=="?"&&(i="?"+i),n=n.replace(/[?#]/g,encodeURIComponent),i=i.replace("#","%23"),""+s+r+n+i+c}const l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function q(e){return process.env.NODE_ENV==="development"&&e!==null&&typeof e=="object"&&Object.keys(e).forEach(t=>{l.includes(t)||console.warn("Unknown key passed via urlObject into url.format: "+t)}),h(e)}}(f.__exports)),f.__exports}exports.__require=U;
package/index164.mjs CHANGED
@@ -1,158 +1,57 @@
1
- import { __exports as a } from "./index211.mjs";
2
- var g;
3
- function j() {
4
- return g ? a : (g = 1, function(u) {
5
- Object.defineProperty(u, "__esModule", {
1
+ import { __exports as c } from "./index209.mjs";
2
+ import { __require as y } from "./index210.mjs";
3
+ import { __require as U } from "./index202.mjs";
4
+ var l;
5
+ function x() {
6
+ return l ? c : (l = 1, function(h) {
7
+ Object.defineProperty(h, "__esModule", {
6
8
  value: !0
7
9
  });
8
- function m(e, r) {
9
- for (var t in r) Object.defineProperty(e, t, {
10
+ function m(e, t) {
11
+ for (var o in t) Object.defineProperty(e, o, {
10
12
  enumerable: !0,
11
- get: r[t]
13
+ get: t[o]
12
14
  });
13
15
  }
14
- m(u, {
15
- WEB_VITALS: function() {
16
+ m(h, {
17
+ formatUrl: function() {
16
18
  return p;
17
19
  },
18
- execOnce: function() {
19
- return E;
20
+ urlObjectKeys: function() {
21
+ return u;
20
22
  },
21
- isAbsoluteUrl: function() {
22
- return N;
23
- },
24
- getLocationOrigin: function() {
25
- return c;
26
- },
27
- getURL: function() {
28
- return P;
29
- },
30
- getDisplayName: function() {
31
- return s;
32
- },
33
- isResSent: function() {
34
- return f;
35
- },
36
- normalizeRepeatedSlashes: function() {
37
- return y;
38
- },
39
- loadGetInitialProps: function() {
40
- return l;
41
- },
42
- SP: function() {
43
- return d;
44
- },
45
- ST: function() {
46
- return w;
47
- },
48
- DecodeError: function() {
49
- return S;
50
- },
51
- NormalizeError: function() {
52
- return I;
53
- },
54
- PageNotFoundError: function() {
55
- return O;
56
- },
57
- MissingStaticPage: function() {
58
- return v;
59
- },
60
- MiddlewareNotFoundError: function() {
61
- return b;
62
- },
63
- stringifyError: function() {
64
- return L;
23
+ formatWithValidation: function() {
24
+ return q;
65
25
  }
66
26
  });
67
- const p = [
68
- "CLS",
69
- "FCP",
70
- "FID",
71
- "INP",
72
- "LCP",
73
- "TTFB"
27
+ const _ = /* @__PURE__ */ y()._(U()), d = /https?|ftp|gopher|file/;
28
+ function p(e) {
29
+ let { auth: t, hostname: o } = e, a = e.protocol || "", n = e.pathname || "", f = e.hash || "", s = e.query || "", r = !1;
30
+ t = t ? encodeURIComponent(t).replace(/%3A/i, ":") + "@" : "", e.host ? r = t + e.host : o && (r = t + (~o.indexOf(":") ? "[" + o + "]" : o), e.port && (r += ":" + e.port)), s && typeof s == "object" && (s = String(_.urlQueryToSearchParams(s)));
31
+ let i = e.search || s && "?" + s || "";
32
+ return a && !a.endsWith(":") && (a += ":"), e.slashes || (!a || d.test(a)) && r !== !1 ? (r = "//" + (r || ""), n && n[0] !== "/" && (n = "/" + n)) : r || (r = ""), f && f[0] !== "#" && (f = "#" + f), i && i[0] !== "?" && (i = "?" + i), n = n.replace(/[?#]/g, encodeURIComponent), i = i.replace("#", "%23"), "" + a + r + n + i + f;
33
+ }
34
+ const u = [
35
+ "auth",
36
+ "hash",
37
+ "host",
38
+ "hostname",
39
+ "href",
40
+ "path",
41
+ "pathname",
42
+ "port",
43
+ "protocol",
44
+ "query",
45
+ "search",
46
+ "slashes"
74
47
  ];
75
- function E(e) {
76
- let r = !1, t;
77
- return function() {
78
- for (var i = arguments.length, n = new Array(i), o = 0; o < i; o++)
79
- n[o] = arguments[o];
80
- return r || (r = !0, t = e(...n)), t;
81
- };
82
- }
83
- const h = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, N = (e) => h.test(e);
84
- function c() {
85
- const { protocol: e, hostname: r, port: t } = window.location;
86
- return e + "//" + r + (t ? ":" + t : "");
87
- }
88
- function P() {
89
- const { href: e } = window.location, r = c();
90
- return e.substring(r.length);
91
- }
92
- function s(e) {
93
- return typeof e == "string" ? e : e.displayName || e.name || "Unknown";
94
- }
95
- function f(e) {
96
- return e.finished || e.headersSent;
97
- }
98
- function y(e) {
99
- const r = e.split("?");
100
- return r[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (r[1] ? "?" + r.slice(1).join("?") : "");
101
- }
102
- async function l(e, r) {
103
- if (process.env.NODE_ENV !== "production") {
104
- var t;
105
- if ((t = e.prototype) != null && t.getInitialProps) {
106
- const o = '"' + s(e) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
107
- throw new Error(o);
108
- }
109
- }
110
- const i = r.res || r.ctx && r.ctx.res;
111
- if (!e.getInitialProps)
112
- return r.ctx && r.Component ? {
113
- pageProps: await l(r.Component, r.ctx)
114
- } : {};
115
- const n = await e.getInitialProps(r);
116
- if (i && f(i))
117
- return n;
118
- if (!n) {
119
- const o = '"' + s(e) + '.getInitialProps()" should resolve to an object. But found "' + n + '" instead.';
120
- throw new Error(o);
121
- }
122
- return process.env.NODE_ENV !== "production" && Object.keys(n).length === 0 && !r.ctx && console.warn("" + s(e) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), n;
123
- }
124
- const d = typeof performance < "u", w = d && [
125
- "mark",
126
- "measure",
127
- "getEntriesByName"
128
- ].every((e) => typeof performance[e] == "function");
129
- class S extends Error {
130
- }
131
- class I extends Error {
132
- }
133
- class O extends Error {
134
- constructor(r) {
135
- super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + r;
136
- }
137
- }
138
- class v extends Error {
139
- constructor(r, t) {
140
- super(), this.message = "Failed to load static file for page: " + r + " " + t;
141
- }
142
- }
143
- class b extends Error {
144
- constructor() {
145
- super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
146
- }
147
- }
148
- function L(e) {
149
- return JSON.stringify({
150
- message: e.message,
151
- stack: e.stack
152
- });
48
+ function q(e) {
49
+ return process.env.NODE_ENV === "development" && e !== null && typeof e == "object" && Object.keys(e).forEach((t) => {
50
+ u.includes(t) || console.warn("Unknown key passed via urlObject into url.format: " + t);
51
+ }), p(e);
153
52
  }
154
- }(a), a);
53
+ }(c), c);
155
54
  }
156
55
  export {
157
- j as __require
56
+ x as __require
158
57
  };
package/index165.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index212.js"),c=require("./index204.js"),f=require("./index213.js");var l;function _(){return l||(l=1,function(d,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return i}});const o=c.__require(),i=function(a){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return process.env.__NEXT_I18N_SUPPORT?(0,o.normalizePathTrailingSlash)(f.__require().addLocale(a,...n)):a};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),d.exports=e.default)}(u.__module,u.__module.exports)),u.__module.exports}exports.__require=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index211.js");var g;function _(){return g||(g=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});function m(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}m(a,{WEB_VITALS:function(){return p},execOnce:function(){return E},isAbsoluteUrl:function(){return P},getLocationOrigin:function(){return c},getURL:function(){return N},getDisplayName:function(){return s},isResSent:function(){return f},normalizeRepeatedSlashes:function(){return y},loadGetInitialProps:function(){return l},SP:function(){return d},ST:function(){return S},DecodeError:function(){return w},NormalizeError:function(){return O},PageNotFoundError:function(){return v},MissingStaticPage:function(){return I},MiddlewareNotFoundError:function(){return b},stringifyError:function(){return T}});const p=["CLS","FCP","FID","INP","LCP","TTFB"];function E(e){let r=!1,t;return function(){for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return r||(r=!0,t=e(...n)),t}}const h=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,P=e=>h.test(e);function c(){const{protocol:e,hostname:r,port:t}=window.location;return e+"//"+r+(t?":"+t:"")}function N(){const{href:e}=window.location,r=c();return e.substring(r.length)}function s(e){return typeof e=="string"?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function y(e){const r=e.split("?");return r[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(r[1]?"?"+r.slice(1).join("?"):"")}async function l(e,r){if(process.env.NODE_ENV!=="production"){var t;if((t=e.prototype)!=null&&t.getInitialProps){const o='"'+s(e)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(o)}}const i=r.res||r.ctx&&r.ctx.res;if(!e.getInitialProps)return r.ctx&&r.Component?{pageProps:await l(r.Component,r.ctx)}:{};const n=await e.getInitialProps(r);if(i&&f(i))return n;if(!n){const o='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw new Error(o)}return process.env.NODE_ENV!=="production"&&Object.keys(n).length===0&&!r.ctx&&console.warn(""+s(e)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),n}const d=typeof performance<"u",S=d&&["mark","measure","getEntriesByName"].every(e=>typeof performance[e]=="function");class w extends Error{}class O extends Error{}class v extends Error{constructor(r){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+r}}class I extends Error{constructor(r,t){super(),this.message="Failed to load static file for page: "+r+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function T(e){return JSON.stringify({message:e.message,stack:e.stack})}}(u.__exports)),u.__exports}exports.__require=_;