@hot-updater/console 0.36.6 → 1.0.0-rc.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 (266) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/AnalyticsCapabilityContext-BCke57-7.js +1 -0
  3. package/.output/public/assets/BundleActivityChart-CnsBe_1J.js +42 -0
  4. package/.output/public/assets/BundleIdDisplay-Dky75zLU.js +1 -0
  5. package/.output/public/assets/alert-C-1KvDW8.js +1 -0
  6. package/.output/public/assets/analytics-Bqz0c-BT.js +1 -0
  7. package/.output/public/assets/analytics-api-CJdrTLLO.js +1 -0
  8. package/.output/public/assets/api-B_Rh-uzC.js +1 -0
  9. package/.output/public/assets/api-keys-BurCFhzH.js +1 -0
  10. package/.output/public/assets/api-keys-api-BEDJdQg3.js +1 -0
  11. package/.output/public/assets/badge-Bf0fZ-Gx.js +1 -0
  12. package/.output/public/assets/chart-no-axes-combined-FaYMGmQS.js +1 -0
  13. package/.output/public/assets/createServerFn-gM2-LFBy.js +3 -0
  14. package/.output/public/assets/dialog-BS60BRr2.js +1 -0
  15. package/.output/public/assets/dist-DspNKfMj.js +1 -0
  16. package/.output/public/assets/download-O-yNBc9H.js +1 -0
  17. package/.output/public/assets/field-Buq148-A.js +1 -0
  18. package/.output/public/assets/index-kFhd2S78.js +10 -0
  19. package/.output/public/assets/installations-BrQ-od41.js +2 -0
  20. package/.output/public/assets/installations-CGlZ3ROz.js +1 -0
  21. package/.output/public/assets/lazyRouteComponent-rPzgA7S-.js +1 -0
  22. package/.output/public/assets/loader-circle-DCYF-wJl.js +1 -0
  23. package/.output/public/assets/preload-helper-TKOBYGYD.js +1 -0
  24. package/.output/public/assets/refresh-cw-n8XYbPPj.js +1 -0
  25. package/.output/public/assets/routes-CrdokJ80.js +1 -0
  26. package/.output/public/assets/routes-DcQnVajO.js +2 -0
  27. package/.output/public/assets/search-DLhbWw3W.js +1 -0
  28. package/.output/public/assets/shield-check-DE_hVuHu.js +1 -0
  29. package/.output/public/assets/signing-HRexfjsH.js +1 -0
  30. package/.output/public/assets/styles-eB4EtvFS.css +2 -0
  31. package/.output/public/assets/table-D8CLieHX.js +1 -0
  32. package/.output/public/assets/textarea-YJLTVAoq.js +1 -0
  33. package/.output/public/assets/useMutation-JsGVjQMY.js +1 -0
  34. package/.output/public/assets/useOpenInteractionType-4cRD5xO0.js +1 -0
  35. package/.output/server/__23tanstack-start-server-fn-resolver-DBP9TQ7K.mjs +146 -0
  36. package/.output/server/_libs/@base-ui/react+[...].mjs +16124 -0
  37. package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1554 -0
  38. package/.output/server/_libs/@tanstack/react-router+[...].mjs +41 -10
  39. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +132 -0
  40. package/.output/server/_libs/d3-array.mjs +231 -0
  41. package/.output/server/_libs/d3-color.mjs +330 -0
  42. package/.output/server/_libs/d3-format.mjs +252 -0
  43. package/.output/server/_libs/d3-interpolate.mjs +207 -0
  44. package/.output/server/_libs/d3-path.mjs +77 -0
  45. package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
  46. package/.output/server/_libs/d3-shape.mjs +818 -0
  47. package/.output/server/_libs/decimal.js-light.mjs +884 -0
  48. package/.output/server/_libs/es-toolkit.mjs +1134 -0
  49. package/.output/server/_libs/eventemitter3.mjs +236 -0
  50. package/.output/server/_libs/immer.mjs +532 -0
  51. package/.output/server/_libs/lucide-react.mjs +141 -13
  52. package/.output/server/_libs/next-themes.mjs +2 -2
  53. package/.output/server/_libs/react-redux+[...].mjs +205 -0
  54. package/.output/server/_libs/recharts+[...].mjs +14117 -0
  55. package/.output/server/_libs/sonner.mjs +2 -2
  56. package/.output/server/_libs/tanstack__query-core.mjs +114 -1
  57. package/.output/server/_libs/tanstack__react-query.mjs +3 -4
  58. package/.output/server/_runtime.mjs +10 -1
  59. package/.output/server/_ssr/AnalyticsCapabilityContext-ui4DX8GO.mjs +15 -0
  60. package/.output/server/_ssr/BundleActivityChart-BiB9ZORH.mjs +288 -0
  61. package/.output/server/_ssr/BundleIdDisplay-Czk6iR6p.mjs +13 -0
  62. package/.output/server/_ssr/alert-Dim3MGY5.mjs +86 -0
  63. package/.output/server/_ssr/analytics-DtMTn8fn.mjs +858 -0
  64. package/.output/server/_ssr/analytics-api-Cg1M5v_H.mjs +71 -0
  65. package/.output/server/_ssr/analytics-input-fRRRn0uA.mjs +96 -0
  66. package/.output/server/_ssr/analytics-rpc-DY5uXvHT.mjs +155 -0
  67. package/.output/server/_ssr/api-BTSv1tZb.mjs +282 -0
  68. package/.output/server/_ssr/api-keys-BnM_o2nS.mjs +300 -0
  69. package/.output/server/_ssr/api-keys-api-CIywsSF5.mjs +60 -0
  70. package/.output/server/_ssr/api-keys-rpc-BSp1wkIV.mjs +136 -0
  71. package/.output/server/_ssr/api-rpc-cG5wd_tO.mjs +1468 -0
  72. package/.output/server/_ssr/auth-BF8mbAgF.mjs +21 -0
  73. package/.output/server/_ssr/auth-rpc-BrJ6obHJ.mjs +24 -0
  74. package/.output/server/_ssr/auth.server-DwKoZoQM.mjs +50 -0
  75. package/.output/server/_ssr/badge-DCxbEeof.mjs +26 -0
  76. package/.output/server/_ssr/bundle-signing-rpc-COoQhW8E.mjs +16 -0
  77. package/.output/server/_ssr/bundle-signing.server-D5u8KkMp.mjs +51 -0
  78. package/.output/server/_ssr/config-Dv8qLDZ0.mjs +13 -0
  79. package/.output/server/_ssr/config.server-DEiLhKmy.mjs +361 -0
  80. package/.output/server/_ssr/{createServerFn-DzU0k62V.mjs → createServerFn-B2hcXoPM.mjs} +1 -1
  81. package/.output/server/_ssr/createServerRpc-DB29C_5p.mjs +12 -0
  82. package/.output/server/_ssr/{sidebar-Cv_H0_Jv.mjs → createSsrRpc-9P0S0lJ3.mjs} +68 -50
  83. package/.output/server/_ssr/databaseRows-CwbNwYSl.mjs +166 -0
  84. package/.output/server/_ssr/deleteBundle-Cu_XOMt0.mjs +66 -0
  85. package/.output/server/_ssr/dialog-CQuRMNZ4.mjs +170 -0
  86. package/.output/server/_ssr/dist-BVSLTpoP.mjs +250 -0
  87. package/.output/server/_ssr/downloadBundle-CNnYxYO2.mjs +24 -0
  88. package/.output/server/_ssr/{empty-plugin-adapters-B4HCzgmM.mjs → empty-plugin-adapters-B5QvGpEl.mjs} +1 -1
  89. package/.output/server/_ssr/field-DRIXKjZG.mjs +74 -0
  90. package/.output/server/_ssr/{getBundleChildren-CVtSiH5t.mjs → getBundleChildren-BcRMFoDF.mjs} +10 -18
  91. package/.output/server/_ssr/installations-B-azgAvX.mjs +19 -0
  92. package/.output/server/_ssr/installations-Ctvzp2JH.mjs +535 -0
  93. package/.output/server/_ssr/router-C-KUBfOi.mjs +513 -0
  94. package/.output/server/_ssr/routes-BM4ht9jb.mjs +2286 -0
  95. package/.output/server/_ssr/routes-Z7TwC6nC.mjs +37 -0
  96. package/.output/server/_ssr/runtime.server-awTLiiXW.mjs +527 -0
  97. package/.output/server/_ssr/server-BjzmvXnO.mjs +7468 -0
  98. package/.output/server/_ssr/signing-k8GxyBDF.mjs +202 -0
  99. package/.output/server/_ssr/ssr.mjs +4 -5740
  100. package/.output/server/_ssr/start-DpViQGnt.mjs +4 -0
  101. package/.output/server/_ssr/table-v1yCvYo7.mjs +53 -0
  102. package/.output/server/_ssr/textarea-DYHnskhb.mjs +14 -0
  103. package/.output/server/_ssr/uuidv7-BbJ-9D_I.mjs +31 -0
  104. package/.output/server/_tanstack-start-manifest_v-CH4StzJu.mjs +108 -0
  105. package/.output/server/index.mjs +249 -46
  106. package/README.md +29 -8
  107. package/lib/index.d.mts +36 -0
  108. package/lib/index.mjs +4 -0
  109. package/lib/vite-internal.mjs +127 -0
  110. package/lib/vite.d.mts +10 -0
  111. package/lib/vite.mjs +5 -0
  112. package/package.json +51 -29
  113. package/public/apple-touch-icon.png +0 -0
  114. package/public/favicon-16x16.png +0 -0
  115. package/public/favicon-32x32.png +0 -0
  116. package/public/favicon.ico +0 -0
  117. package/public/logo.svg +1 -0
  118. package/public/manifest.json +30 -0
  119. package/public/robots.txt +3 -0
  120. package/src/components/AppSidebar.tsx +159 -0
  121. package/src/components/BundleIdDisplay.tsx +18 -0
  122. package/src/components/ChannelBadge.tsx +31 -0
  123. package/src/components/ConsoleAccessPage.tsx +122 -0
  124. package/src/components/EnabledStatusIcon.tsx +54 -0
  125. package/src/components/HashValueDisplay.tsx +85 -0
  126. package/src/components/HotUpdaterLogo.tsx +30 -0
  127. package/src/components/NotFoundPage.tsx +33 -0
  128. package/src/components/PlatformIcon.tsx +39 -0
  129. package/src/components/RolloutPercentageBadge.tsx +28 -0
  130. package/src/components/ThemeProvider.tsx +116 -0
  131. package/src/components/TimestampDisplay.tsx +41 -0
  132. package/src/components/features/analytics/ActivityChart.tsx +150 -0
  133. package/src/components/features/analytics/AnalyticsCapabilityContext.tsx +24 -0
  134. package/src/components/features/analytics/AnalyticsControls.tsx +115 -0
  135. package/src/components/features/analytics/AnalyticsErrorAlert.tsx +21 -0
  136. package/src/components/features/analytics/AnalyticsOverview.tsx +208 -0
  137. package/src/components/features/analytics/BundleDistribution.tsx +133 -0
  138. package/src/components/features/analytics/BundleSelector.tsx +114 -0
  139. package/src/components/features/analytics/InstallationHistoryCard.tsx +248 -0
  140. package/src/components/features/analytics/InstallationMatchesCard.tsx +132 -0
  141. package/src/components/features/analytics/InstallationPageHeader.tsx +138 -0
  142. package/src/components/features/analytics/InstallationPagination.tsx +48 -0
  143. package/src/components/features/analytics/InstallationSearch.tsx +230 -0
  144. package/src/components/features/analytics/UpdateOutcomes.tsx +147 -0
  145. package/src/components/features/api-keys/ApiKeysPage.tsx +377 -0
  146. package/src/components/features/bundles/BundleActivityChart.tsx +193 -0
  147. package/src/components/features/bundles/BundleAnalyticsSummary.tsx +123 -0
  148. package/src/components/features/bundles/BundleChildrenPanel.tsx +201 -0
  149. package/src/components/features/bundles/BundleMetadata.tsx +136 -0
  150. package/src/components/features/bundles/RolloutCohortsDialog.tsx +201 -0
  151. package/src/components/features/channels/ChannelManagementDialog.tsx +228 -0
  152. package/src/components/features/releases/ReleaseEditorSheet.tsx +879 -0
  153. package/src/components/features/releases/ReleaseStateBadge.tsx +20 -0
  154. package/src/components/features/signing/BundleSigningPage.tsx +247 -0
  155. package/src/components/ui/alert-dialog.tsx +185 -0
  156. package/src/components/ui/alert.tsx +76 -0
  157. package/src/components/ui/badge.tsx +49 -0
  158. package/src/components/ui/button.tsx +58 -0
  159. package/src/components/ui/card.tsx +89 -0
  160. package/src/components/ui/chart.tsx +371 -0
  161. package/src/components/ui/combobox.tsx +303 -0
  162. package/src/components/ui/dialog.tsx +156 -0
  163. package/src/components/ui/dropdown-menu.tsx +270 -0
  164. package/src/components/ui/field.tsx +235 -0
  165. package/src/components/ui/input-group.tsx +147 -0
  166. package/src/components/ui/input.tsx +19 -0
  167. package/src/components/ui/label.tsx +25 -0
  168. package/src/components/ui/progress.tsx +84 -0
  169. package/src/components/ui/select.tsx +205 -0
  170. package/src/components/ui/separator.tsx +23 -0
  171. package/src/components/ui/sheet.tsx +132 -0
  172. package/src/components/ui/sidebar.tsx +779 -0
  173. package/src/components/ui/skeleton.tsx +13 -0
  174. package/src/components/ui/slider.tsx +56 -0
  175. package/src/components/ui/sonner.tsx +45 -0
  176. package/src/components/ui/switch.tsx +25 -0
  177. package/src/components/ui/table.tsx +114 -0
  178. package/src/components/ui/textarea.tsx +18 -0
  179. package/src/components/ui/toggle-group.tsx +89 -0
  180. package/src/components/ui/toggle.tsx +43 -0
  181. package/src/components/ui/tooltip.tsx +66 -0
  182. package/src/hooks/use-mobile.ts +30 -0
  183. package/src/index.ts +48 -0
  184. package/src/lib/analytics-api.ts +145 -0
  185. package/src/lib/analytics-error.ts +19 -0
  186. package/src/lib/analytics-input.ts +187 -0
  187. package/src/lib/analytics-overview.ts +170 -0
  188. package/src/lib/analytics-rpc.ts +218 -0
  189. package/src/lib/api-keys-api.ts +69 -0
  190. package/src/lib/api-keys-rpc.ts +87 -0
  191. package/src/lib/api-rpc.ts +478 -0
  192. package/src/lib/api.ts +444 -0
  193. package/src/lib/auth-rpc.ts +16 -0
  194. package/src/lib/bundle-signing-api.ts +14 -0
  195. package/src/lib/bundle-signing-rpc.ts +16 -0
  196. package/src/lib/constants.ts +1 -0
  197. package/src/lib/git.ts +51 -0
  198. package/src/lib/server/auth.server.ts +43 -0
  199. package/src/lib/server/bundle-signing.server.ts +100 -0
  200. package/src/lib/server/config.server.ts +109 -0
  201. package/src/lib/server/console-runtime.server.ts +70 -0
  202. package/src/lib/server/deleteBundle.ts +145 -0
  203. package/src/lib/server/downloadBundle.ts +46 -0
  204. package/src/lib/server/getBundleChildren.ts +130 -0
  205. package/src/lib/server/listReleases.ts +61 -0
  206. package/src/lib/server/releaseActivity.ts +27 -0
  207. package/src/lib/server/releaseReachability.ts +95 -0
  208. package/src/lib/server/runtime.server.ts +172 -0
  209. package/src/lib/utils.ts +9 -0
  210. package/src/logo.svg +1 -0
  211. package/src/routeTree.gen.ts +199 -0
  212. package/src/router.tsx +21 -0
  213. package/src/routes/-installations-search.ts +19 -0
  214. package/src/routes/-releases-search.ts +74 -0
  215. package/src/routes/__root.tsx +174 -0
  216. package/src/routes/analytics.tsx +139 -0
  217. package/src/routes/api/auth/$.ts +19 -0
  218. package/src/routes/api/bundles/$bundleId/download.ts +17 -0
  219. package/src/routes/api-keys.tsx +37 -0
  220. package/src/routes/index.tsx +982 -0
  221. package/src/routes/installations.tsx +194 -0
  222. package/src/routes/signing.tsx +37 -0
  223. package/src/styles.css +152 -0
  224. package/src/virtual-modules.d.ts +21 -0
  225. package/src/vite-env.d.ts +1 -0
  226. package/src/vite-internal.ts +195 -0
  227. package/src/vite.ts +12 -0
  228. package/.output/public/assets/dist-DJX53faP.js +0 -3
  229. package/.output/public/assets/index-Iylis5kY.js +0 -10
  230. package/.output/public/assets/routes-HT21hs0C.js +0 -54
  231. package/.output/public/assets/styles-C0Re4quB.css +0 -2
  232. package/.output/server/__23tanstack-start-server-fn-resolver-CgwgZ0-i.mjs +0 -66
  233. package/.output/server/_libs/@floating-ui/core+[...].mjs +0 -698
  234. package/.output/server/_libs/@floating-ui/dom+[...].mjs +0 -644
  235. package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +0 -839
  236. package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +0 -2138
  237. package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +0 -308
  238. package/.output/server/_libs/@radix-ui/react-select+[...].mjs +0 -1038
  239. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +0 -196
  240. package/.output/server/_libs/@tanstack/form-core+[...].mjs +0 -3228
  241. package/.output/server/_libs/@tanstack/react-form+[...].mjs +0 -430
  242. package/.output/server/_libs/@tanstack/react-table+[...].mjs +0 -2382
  243. package/.output/server/_libs/radix-ui__number.mjs +0 -6
  244. package/.output/server/_libs/radix-ui__primitive.mjs +0 -9
  245. package/.output/server/_libs/radix-ui__react-arrow.mjs +0 -23
  246. package/.output/server/_libs/radix-ui__react-collection.mjs +0 -78
  247. package/.output/server/_libs/radix-ui__react-direction.mjs +0 -13
  248. package/.output/server/_libs/radix-ui__react-label.mjs +0 -22
  249. package/.output/server/_libs/radix-ui__react-separator.mjs +0 -30
  250. package/.output/server/_libs/radix-ui__react-slider.mjs +0 -510
  251. package/.output/server/_libs/radix-ui__react-switch.mjs +0 -157
  252. package/.output/server/_libs/radix-ui__react-tooltip.mjs +0 -493
  253. package/.output/server/_ssr/api-rpc-BIbDUKSz.mjs +0 -292
  254. package/.output/server/_ssr/config.server-BSS366KT.mjs +0 -41
  255. package/.output/server/_ssr/deleteBundle-BgbZTtpW.mjs +0 -141
  256. package/.output/server/_ssr/dist-KboydRVk.mjs +0 -120
  257. package/.output/server/_ssr/router-C3hqEy3k.mjs +0 -307
  258. package/.output/server/_ssr/routes-B0lQvvlC.mjs +0 -3048
  259. package/.output/server/_ssr/start-02sLteYG.mjs +0 -4
  260. package/.output/server/_ssr/storageProfile-FVkjPoGb.mjs +0 -9
  261. package/.output/server/_tanstack-start-manifest_v-Bpx52WOU.mjs +0 -20
  262. package/.output/server/node_modules/tslib/modules/index.js +0 -70
  263. package/.output/server/node_modules/tslib/modules/package.json +0 -3
  264. package/.output/server/node_modules/tslib/package.json +0 -47
  265. package/.output/server/node_modules/tslib/tslib.js +0 -484
  266. package/.output/server/package.json +0 -9
@@ -0,0 +1,1134 @@
1
+ import { t as __commonJSMin } from "../_runtime.mjs";
2
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js
3
+ var require_isUnsafeProperty = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
5
+ function isUnsafeProperty(key) {
6
+ return key === "__proto__";
7
+ }
8
+ exports.isUnsafeProperty = isUnsafeProperty;
9
+ }));
10
+ //#endregion
11
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js
12
+ var require_isDeepKey = /* @__PURE__ */ __commonJSMin(((exports) => {
13
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
+ function isDeepKey(key) {
15
+ switch (typeof key) {
16
+ case "number":
17
+ case "symbol": return false;
18
+ case "string": return key.includes(".") || key.includes("[") || key.includes("]");
19
+ }
20
+ }
21
+ exports.isDeepKey = isDeepKey;
22
+ }));
23
+ //#endregion
24
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/toKey.js
25
+ var require_toKey = /* @__PURE__ */ __commonJSMin(((exports) => {
26
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
27
+ function toKey(value) {
28
+ if (typeof value === "string" || typeof value === "symbol") return value;
29
+ if (Object.is(value?.valueOf?.(), -0)) return "-0";
30
+ return String(value);
31
+ }
32
+ exports.toKey = toKey;
33
+ }));
34
+ //#endregion
35
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/util/toString.js
36
+ var require_toString = /* @__PURE__ */ __commonJSMin(((exports) => {
37
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
38
+ function toString(value) {
39
+ if (value == null) return "";
40
+ if (typeof value === "string") return value;
41
+ if (Array.isArray(value)) return value.map(toString).join(",");
42
+ const result = String(value);
43
+ if (result === "0" && Object.is(Number(value), -0)) return "-0";
44
+ return result;
45
+ }
46
+ exports.toString = toString;
47
+ }));
48
+ //#endregion
49
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/util/toPath.js
50
+ var require_toPath = /* @__PURE__ */ __commonJSMin(((exports) => {
51
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
52
+ var toString = require_toString();
53
+ var toKey = require_toKey();
54
+ function toPath(deepKey) {
55
+ if (Array.isArray(deepKey)) return deepKey.map(toKey.toKey);
56
+ if (typeof deepKey === "symbol") return [deepKey];
57
+ deepKey = toString.toString(deepKey);
58
+ const result = [];
59
+ const length = deepKey.length;
60
+ if (length === 0) return result;
61
+ let index = 0;
62
+ let key = "";
63
+ let quoteChar = "";
64
+ let bracket = false;
65
+ if (deepKey.charCodeAt(0) === 46) {
66
+ result.push("");
67
+ index++;
68
+ }
69
+ while (index < length) {
70
+ const char = deepKey[index];
71
+ if (quoteChar) if (char === "\\" && index + 1 < length) {
72
+ index++;
73
+ key += deepKey[index];
74
+ } else if (char === quoteChar) quoteChar = "";
75
+ else key += char;
76
+ else if (bracket) if (char === "\"" || char === "'") quoteChar = char;
77
+ else if (char === "]") {
78
+ bracket = false;
79
+ result.push(key);
80
+ key = "";
81
+ } else key += char;
82
+ else if (char === "[") {
83
+ bracket = true;
84
+ if (key) {
85
+ result.push(key);
86
+ key = "";
87
+ }
88
+ } else if (char === ".") {
89
+ if (key) {
90
+ result.push(key);
91
+ key = "";
92
+ }
93
+ } else key += char;
94
+ index++;
95
+ }
96
+ if (key) result.push(key);
97
+ return result;
98
+ }
99
+ exports.toPath = toPath;
100
+ }));
101
+ //#endregion
102
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/object/get.js
103
+ var require_get$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
104
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
105
+ var isUnsafeProperty = require_isUnsafeProperty();
106
+ var isDeepKey = require_isDeepKey();
107
+ var toKey = require_toKey();
108
+ var toPath = require_toPath();
109
+ function get(object, path, defaultValue) {
110
+ if (object == null) return defaultValue;
111
+ switch (typeof path) {
112
+ case "string": {
113
+ if (isUnsafeProperty.isUnsafeProperty(path)) return defaultValue;
114
+ const result = object[path];
115
+ if (result === void 0) if (isDeepKey.isDeepKey(path)) return get(object, toPath.toPath(path), defaultValue);
116
+ else return defaultValue;
117
+ return result;
118
+ }
119
+ case "number":
120
+ case "symbol": {
121
+ if (typeof path === "number") path = toKey.toKey(path);
122
+ const result = object[path];
123
+ if (result === void 0) return defaultValue;
124
+ return result;
125
+ }
126
+ default: {
127
+ if (Array.isArray(path)) return getWithPath(object, path, defaultValue);
128
+ if (Object.is(path?.valueOf(), -0)) path = "-0";
129
+ else path = String(path);
130
+ if (isUnsafeProperty.isUnsafeProperty(path)) return defaultValue;
131
+ const result = object[path];
132
+ if (result === void 0) return defaultValue;
133
+ return result;
134
+ }
135
+ }
136
+ }
137
+ function getWithPath(object, path, defaultValue) {
138
+ if (path.length === 0) return defaultValue;
139
+ let current = object;
140
+ for (let index = 0; index < path.length; index++) {
141
+ if (current == null) return defaultValue;
142
+ if (isUnsafeProperty.isUnsafeProperty(path[index])) return defaultValue;
143
+ current = current[path[index]];
144
+ }
145
+ if (current === void 0) return defaultValue;
146
+ return current;
147
+ }
148
+ exports.get = get;
149
+ }));
150
+ //#endregion
151
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/compat/get.js
152
+ var require_get = /* @__PURE__ */ __commonJSMin(((exports, module) => {
153
+ module.exports = require_get$1().get;
154
+ }));
155
+ //#endregion
156
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/array/uniqBy.js
157
+ var require_uniqBy$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
158
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
159
+ function uniqBy(arr, mapper) {
160
+ const map = /* @__PURE__ */ new Map();
161
+ for (let i = 0; i < arr.length; i++) {
162
+ const item = arr[i];
163
+ const key = mapper(item, i, arr);
164
+ if (!map.has(key)) map.set(key, item);
165
+ }
166
+ return Array.from(map.values());
167
+ }
168
+ exports.uniqBy = uniqBy;
169
+ }));
170
+ //#endregion
171
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/function/ary.js
172
+ var require_ary = /* @__PURE__ */ __commonJSMin(((exports) => {
173
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
174
+ function ary(func, n) {
175
+ return function(...args) {
176
+ return func.apply(this, args.slice(0, n));
177
+ };
178
+ }
179
+ exports.ary = ary;
180
+ }));
181
+ //#endregion
182
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/function/identity.js
183
+ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
184
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
185
+ function identity(x) {
186
+ return x;
187
+ }
188
+ exports.identity = identity;
189
+ }));
190
+ //#endregion
191
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/predicate/isLength.js
192
+ var require_isLength = /* @__PURE__ */ __commonJSMin(((exports) => {
193
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
194
+ function isLength(value) {
195
+ return Number.isSafeInteger(value) && value >= 0;
196
+ }
197
+ exports.isLength = isLength;
198
+ }));
199
+ //#endregion
200
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js
201
+ var require_isArrayLike = /* @__PURE__ */ __commonJSMin(((exports) => {
202
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
203
+ var isLength = require_isLength();
204
+ function isArrayLike(value) {
205
+ return value != null && typeof value !== "function" && isLength.isLength(value.length);
206
+ }
207
+ exports.isArrayLike = isArrayLike;
208
+ }));
209
+ //#endregion
210
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js
211
+ var require_isObjectLike = /* @__PURE__ */ __commonJSMin(((exports) => {
212
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
213
+ function isObjectLike(value) {
214
+ return typeof value === "object" && value !== null;
215
+ }
216
+ exports.isObjectLike = isObjectLike;
217
+ }));
218
+ //#endregion
219
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js
220
+ var require_isArrayLikeObject = /* @__PURE__ */ __commonJSMin(((exports) => {
221
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
222
+ var isArrayLike = require_isArrayLike();
223
+ var isObjectLike = require_isObjectLike();
224
+ function isArrayLikeObject(value) {
225
+ return isObjectLike.isObjectLike(value) && isArrayLike.isArrayLike(value);
226
+ }
227
+ exports.isArrayLikeObject = isArrayLikeObject;
228
+ }));
229
+ //#endregion
230
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/object/property.js
231
+ var require_property = /* @__PURE__ */ __commonJSMin(((exports) => {
232
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
233
+ var get = require_get$1();
234
+ function property(path) {
235
+ return function(object) {
236
+ return get.get(object, path);
237
+ };
238
+ }
239
+ exports.property = property;
240
+ }));
241
+ //#endregion
242
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js
243
+ var require_isObject = /* @__PURE__ */ __commonJSMin(((exports) => {
244
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
245
+ function isObject(value) {
246
+ return value !== null && (typeof value === "object" || typeof value === "function");
247
+ }
248
+ exports.isObject = isObject;
249
+ }));
250
+ //#endregion
251
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/predicate/isPrimitive.js
252
+ var require_isPrimitive = /* @__PURE__ */ __commonJSMin(((exports) => {
253
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
254
+ function isPrimitive(value) {
255
+ return value == null || typeof value !== "object" && typeof value !== "function";
256
+ }
257
+ exports.isPrimitive = isPrimitive;
258
+ }));
259
+ //#endregion
260
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.js
261
+ var require_isEqualsSameValueZero = /* @__PURE__ */ __commonJSMin(((exports) => {
262
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
263
+ function isEqualsSameValueZero(value, other) {
264
+ return value === other || Number.isNaN(value) && Number.isNaN(other);
265
+ }
266
+ exports.isEqualsSameValueZero = isEqualsSameValueZero;
267
+ }));
268
+ //#endregion
269
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js
270
+ var require_isMatchWith = /* @__PURE__ */ __commonJSMin(((exports) => {
271
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
272
+ var isObject = require_isObject();
273
+ var isPrimitive = require_isPrimitive();
274
+ var isEqualsSameValueZero = require_isEqualsSameValueZero();
275
+ function isMatchWith(target, source, compare) {
276
+ if (typeof compare !== "function") return isMatchWith(target, source, () => void 0);
277
+ return isMatchWithInternal(target, source, function doesMatch(objValue, srcValue, key, object, source, stack) {
278
+ const isEqual = compare(objValue, srcValue, key, object, source, stack);
279
+ if (isEqual !== void 0) return Boolean(isEqual);
280
+ return isMatchWithInternal(objValue, srcValue, doesMatch, stack);
281
+ }, /* @__PURE__ */ new Map());
282
+ }
283
+ function isMatchWithInternal(target, source, compare, stack) {
284
+ if (source === target) return true;
285
+ switch (typeof source) {
286
+ case "object": return isObjectMatch(target, source, compare, stack);
287
+ case "function":
288
+ if (Object.keys(source).length > 0) return isMatchWithInternal(target, { ...source }, compare, stack);
289
+ return isEqualsSameValueZero.isEqualsSameValueZero(target, source);
290
+ default:
291
+ if (!isObject.isObject(target)) return isEqualsSameValueZero.isEqualsSameValueZero(target, source);
292
+ if (typeof source === "string") return source === "";
293
+ return true;
294
+ }
295
+ }
296
+ function isObjectMatch(target, source, compare, stack) {
297
+ if (source == null) return true;
298
+ if (Array.isArray(source)) return isArrayMatch(target, source, compare, stack);
299
+ if (source instanceof Map) return isMapMatch(target, source, compare, stack);
300
+ if (source instanceof Set) return isSetMatch(target, source, compare, stack);
301
+ const keys = Object.keys(source);
302
+ if (target == null || isPrimitive.isPrimitive(target)) return keys.length === 0;
303
+ if (keys.length === 0) return true;
304
+ if (stack?.has(source)) return stack.get(source) === target;
305
+ stack?.set(source, target);
306
+ try {
307
+ for (let i = 0; i < keys.length; i++) {
308
+ const key = keys[i];
309
+ if (!isPrimitive.isPrimitive(target) && !(key in target)) return false;
310
+ if (source[key] === void 0 && target[key] !== void 0) return false;
311
+ if (source[key] === null && target[key] !== null) return false;
312
+ if (!compare(target[key], source[key], key, target, source, stack)) return false;
313
+ }
314
+ return true;
315
+ } finally {
316
+ stack?.delete(source);
317
+ }
318
+ }
319
+ function isMapMatch(target, source, compare, stack) {
320
+ if (source.size === 0) return true;
321
+ if (!(target instanceof Map)) return false;
322
+ for (const [key, sourceValue] of source.entries()) if (compare(target.get(key), sourceValue, key, target, source, stack) === false) return false;
323
+ return true;
324
+ }
325
+ function isArrayMatch(target, source, compare, stack) {
326
+ if (source.length === 0) return true;
327
+ if (!Array.isArray(target)) return false;
328
+ const countedIndex = /* @__PURE__ */ new Set();
329
+ for (let i = 0; i < source.length; i++) {
330
+ const sourceItem = source[i];
331
+ let found = false;
332
+ for (let j = 0; j < target.length; j++) {
333
+ if (countedIndex.has(j)) continue;
334
+ const targetItem = target[j];
335
+ let matches = false;
336
+ if (compare(targetItem, sourceItem, i, target, source, stack)) matches = true;
337
+ if (matches) {
338
+ countedIndex.add(j);
339
+ found = true;
340
+ break;
341
+ }
342
+ }
343
+ if (!found) return false;
344
+ }
345
+ return true;
346
+ }
347
+ function isSetMatch(target, source, compare, stack) {
348
+ if (source.size === 0) return true;
349
+ if (!(target instanceof Set)) return false;
350
+ return isArrayMatch([...target], [...source], compare, stack);
351
+ }
352
+ exports.isMatchWith = isMatchWith;
353
+ exports.isSetMatch = isSetMatch;
354
+ }));
355
+ //#endregion
356
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isMatch.js
357
+ var require_isMatch = /* @__PURE__ */ __commonJSMin(((exports) => {
358
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
359
+ var isMatchWith = require_isMatchWith();
360
+ function isMatch(target, source) {
361
+ return isMatchWith.isMatchWith(target, source, () => void 0);
362
+ }
363
+ exports.isMatch = isMatch;
364
+ }));
365
+ //#endregion
366
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js
367
+ var require_getSymbols = /* @__PURE__ */ __commonJSMin(((exports) => {
368
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
369
+ function getSymbols(object) {
370
+ return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
371
+ }
372
+ exports.getSymbols = getSymbols;
373
+ }));
374
+ //#endregion
375
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/getTag.js
376
+ var require_getTag = /* @__PURE__ */ __commonJSMin(((exports) => {
377
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
378
+ function getTag(value) {
379
+ if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
380
+ return Object.prototype.toString.call(value);
381
+ }
382
+ exports.getTag = getTag;
383
+ }));
384
+ //#endregion
385
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/tags.js
386
+ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
387
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
388
+ var regexpTag = "[object RegExp]";
389
+ var stringTag = "[object String]";
390
+ var numberTag = "[object Number]";
391
+ var booleanTag = "[object Boolean]";
392
+ var argumentsTag = "[object Arguments]";
393
+ var symbolTag = "[object Symbol]";
394
+ var dateTag = "[object Date]";
395
+ var mapTag = "[object Map]";
396
+ var setTag = "[object Set]";
397
+ var arrayTag = "[object Array]";
398
+ var functionTag = "[object Function]";
399
+ var arrayBufferTag = "[object ArrayBuffer]";
400
+ var objectTag = "[object Object]";
401
+ var errorTag = "[object Error]";
402
+ var dataViewTag = "[object DataView]";
403
+ var uint8ArrayTag = "[object Uint8Array]";
404
+ var uint8ClampedArrayTag = "[object Uint8ClampedArray]";
405
+ var uint16ArrayTag = "[object Uint16Array]";
406
+ var uint32ArrayTag = "[object Uint32Array]";
407
+ var bigUint64ArrayTag = "[object BigUint64Array]";
408
+ var int8ArrayTag = "[object Int8Array]";
409
+ var int16ArrayTag = "[object Int16Array]";
410
+ var int32ArrayTag = "[object Int32Array]";
411
+ var bigInt64ArrayTag = "[object BigInt64Array]";
412
+ var float32ArrayTag = "[object Float32Array]";
413
+ var float64ArrayTag = "[object Float64Array]";
414
+ exports.argumentsTag = argumentsTag;
415
+ exports.arrayBufferTag = arrayBufferTag;
416
+ exports.arrayTag = arrayTag;
417
+ exports.bigInt64ArrayTag = bigInt64ArrayTag;
418
+ exports.bigUint64ArrayTag = bigUint64ArrayTag;
419
+ exports.booleanTag = booleanTag;
420
+ exports.dataViewTag = dataViewTag;
421
+ exports.dateTag = dateTag;
422
+ exports.errorTag = errorTag;
423
+ exports.float32ArrayTag = float32ArrayTag;
424
+ exports.float64ArrayTag = float64ArrayTag;
425
+ exports.functionTag = functionTag;
426
+ exports.int16ArrayTag = int16ArrayTag;
427
+ exports.int32ArrayTag = int32ArrayTag;
428
+ exports.int8ArrayTag = int8ArrayTag;
429
+ exports.mapTag = mapTag;
430
+ exports.numberTag = numberTag;
431
+ exports.objectTag = objectTag;
432
+ exports.regexpTag = regexpTag;
433
+ exports.setTag = setTag;
434
+ exports.stringTag = stringTag;
435
+ exports.symbolTag = symbolTag;
436
+ exports.uint16ArrayTag = uint16ArrayTag;
437
+ exports.uint32ArrayTag = uint32ArrayTag;
438
+ exports.uint8ArrayTag = uint8ArrayTag;
439
+ exports.uint8ClampedArrayTag = uint8ClampedArrayTag;
440
+ }));
441
+ //#endregion
442
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/_internal/globalThis.js
443
+ var require_globalThis = /* @__PURE__ */ __commonJSMin(((exports) => {
444
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
445
+ exports.globalThis = typeof globalThis === "object" && globalThis || typeof window === "object" && window || typeof self === "object" && self || typeof global === "object" && global || (function() {
446
+ return this;
447
+ })() || Function("return this")();
448
+ }));
449
+ //#endregion
450
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/predicate/isBuffer.js
451
+ var require_isBuffer = /* @__PURE__ */ __commonJSMin(((exports) => {
452
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
453
+ var globalThis = require_globalThis();
454
+ function isBuffer(x) {
455
+ return typeof globalThis.globalThis.Buffer !== "undefined" && globalThis.globalThis.Buffer.isBuffer(x);
456
+ }
457
+ exports.isBuffer = isBuffer;
458
+ }));
459
+ //#endregion
460
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/predicate/isTypedArray.js
461
+ var require_isTypedArray = /* @__PURE__ */ __commonJSMin(((exports) => {
462
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
463
+ function isTypedArray(x) {
464
+ return ArrayBuffer.isView(x) && !(x instanceof DataView);
465
+ }
466
+ exports.isTypedArray = isTypedArray;
467
+ }));
468
+ //#endregion
469
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js
470
+ var require_cloneDeepWith$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
471
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
472
+ var getSymbols = require_getSymbols();
473
+ var getTag = require_getTag();
474
+ var tags = require_tags();
475
+ var isBuffer = require_isBuffer();
476
+ var isPrimitive = require_isPrimitive();
477
+ var isTypedArray = require_isTypedArray();
478
+ function cloneDeepWith(obj, cloneValue) {
479
+ return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), cloneValue);
480
+ }
481
+ function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
482
+ const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
483
+ if (cloned !== void 0) return cloned;
484
+ if (isPrimitive.isPrimitive(valueToClone)) return valueToClone;
485
+ if (stack.has(valueToClone)) return stack.get(valueToClone);
486
+ if (Array.isArray(valueToClone)) {
487
+ const result = new Array(valueToClone.length);
488
+ stack.set(valueToClone, result);
489
+ for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
490
+ if (Object.hasOwn(valueToClone, "index")) result.index = valueToClone.index;
491
+ if (Object.hasOwn(valueToClone, "input")) result.input = valueToClone.input;
492
+ return result;
493
+ }
494
+ if (valueToClone instanceof Date) return new Date(valueToClone.getTime());
495
+ if (valueToClone instanceof RegExp) {
496
+ const result = new RegExp(valueToClone.source, valueToClone.flags);
497
+ result.lastIndex = valueToClone.lastIndex;
498
+ return result;
499
+ }
500
+ if (valueToClone instanceof Map) {
501
+ const result = /* @__PURE__ */ new Map();
502
+ stack.set(valueToClone, result);
503
+ for (const [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));
504
+ return result;
505
+ }
506
+ if (valueToClone instanceof Set) {
507
+ const result = /* @__PURE__ */ new Set();
508
+ stack.set(valueToClone, result);
509
+ for (const value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));
510
+ return result;
511
+ }
512
+ if (isBuffer.isBuffer(valueToClone)) return valueToClone.subarray();
513
+ if (isTypedArray.isTypedArray(valueToClone)) {
514
+ const result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);
515
+ stack.set(valueToClone, result);
516
+ for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
517
+ return result;
518
+ }
519
+ if (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0);
520
+ if (valueToClone instanceof DataView) {
521
+ const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);
522
+ stack.set(valueToClone, result);
523
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
524
+ return result;
525
+ }
526
+ if (typeof File !== "undefined" && valueToClone instanceof File) {
527
+ const result = new File([valueToClone], valueToClone.name, { type: valueToClone.type });
528
+ stack.set(valueToClone, result);
529
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
530
+ return result;
531
+ }
532
+ if (typeof Blob !== "undefined" && valueToClone instanceof Blob) {
533
+ const result = new Blob([valueToClone], { type: valueToClone.type });
534
+ stack.set(valueToClone, result);
535
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
536
+ return result;
537
+ }
538
+ if (valueToClone instanceof Error) {
539
+ const result = structuredClone(valueToClone);
540
+ stack.set(valueToClone, result);
541
+ result.message = valueToClone.message;
542
+ result.name = valueToClone.name;
543
+ result.stack = valueToClone.stack;
544
+ result.cause = valueToClone.cause;
545
+ result.constructor = valueToClone.constructor;
546
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
547
+ return result;
548
+ }
549
+ if (valueToClone instanceof Boolean) {
550
+ const result = new Boolean(valueToClone.valueOf());
551
+ stack.set(valueToClone, result);
552
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
553
+ return result;
554
+ }
555
+ if (valueToClone instanceof Number) {
556
+ const result = new Number(valueToClone.valueOf());
557
+ stack.set(valueToClone, result);
558
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
559
+ return result;
560
+ }
561
+ if (valueToClone instanceof String) {
562
+ const result = new String(valueToClone.valueOf());
563
+ stack.set(valueToClone, result);
564
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
565
+ return result;
566
+ }
567
+ if (typeof valueToClone === "object" && isCloneableObject(valueToClone)) {
568
+ const result = Object.create(Object.getPrototypeOf(valueToClone));
569
+ stack.set(valueToClone, result);
570
+ copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
571
+ return result;
572
+ }
573
+ return valueToClone;
574
+ }
575
+ function copyProperties(target, source, objectToClone = target, stack, cloneValue) {
576
+ const keys = [...Object.keys(source), ...getSymbols.getSymbols(source)];
577
+ for (let i = 0; i < keys.length; i++) {
578
+ const key = keys[i];
579
+ const descriptor = Object.getOwnPropertyDescriptor(target, key);
580
+ if (descriptor == null || descriptor.writable) target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);
581
+ }
582
+ }
583
+ function isCloneableObject(object) {
584
+ switch (getTag.getTag(object)) {
585
+ case tags.argumentsTag:
586
+ case tags.arrayTag:
587
+ case tags.arrayBufferTag:
588
+ case tags.dataViewTag:
589
+ case tags.booleanTag:
590
+ case tags.dateTag:
591
+ case tags.float32ArrayTag:
592
+ case tags.float64ArrayTag:
593
+ case tags.int8ArrayTag:
594
+ case tags.int16ArrayTag:
595
+ case tags.int32ArrayTag:
596
+ case tags.mapTag:
597
+ case tags.numberTag:
598
+ case tags.objectTag:
599
+ case tags.regexpTag:
600
+ case tags.setTag:
601
+ case tags.stringTag:
602
+ case tags.symbolTag:
603
+ case tags.uint8ArrayTag:
604
+ case tags.uint8ClampedArrayTag:
605
+ case tags.uint16ArrayTag:
606
+ case tags.uint32ArrayTag: return true;
607
+ default: return false;
608
+ }
609
+ }
610
+ exports.cloneDeepWith = cloneDeepWith;
611
+ exports.cloneDeepWithImpl = cloneDeepWithImpl;
612
+ exports.copyProperties = copyProperties;
613
+ }));
614
+ //#endregion
615
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/object/cloneDeep.js
616
+ var require_cloneDeep$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
617
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
618
+ var cloneDeepWith = require_cloneDeepWith$1();
619
+ function cloneDeep(obj) {
620
+ return cloneDeepWith.cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);
621
+ }
622
+ exports.cloneDeep = cloneDeep;
623
+ }));
624
+ //#endregion
625
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/matches.js
626
+ var require_matches = /* @__PURE__ */ __commonJSMin(((exports) => {
627
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
628
+ var isMatch = require_isMatch();
629
+ var cloneDeep = require_cloneDeep$1();
630
+ function matches(source) {
631
+ source = cloneDeep.cloneDeep(source);
632
+ return (target) => {
633
+ return isMatch.isMatch(target, source);
634
+ };
635
+ }
636
+ exports.matches = matches;
637
+ }));
638
+ //#endregion
639
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js
640
+ var require_cloneDeepWith = /* @__PURE__ */ __commonJSMin(((exports) => {
641
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
642
+ var cloneDeepWith$1 = require_cloneDeepWith$1();
643
+ var getTag = require_getTag();
644
+ var tags = require_tags();
645
+ function cloneDeepWith(obj, customizer) {
646
+ return cloneDeepWith$1.cloneDeepWith(obj, (value, key, object, stack) => {
647
+ const cloned = customizer?.(value, key, object, stack);
648
+ if (cloned !== void 0) return cloned;
649
+ if (typeof obj !== "object") return;
650
+ if (getTag.getTag(obj) === tags.objectTag && typeof obj.constructor !== "function") {
651
+ const result = {};
652
+ stack.set(obj, result);
653
+ cloneDeepWith$1.copyProperties(result, obj, object, stack);
654
+ return result;
655
+ }
656
+ switch (Object.prototype.toString.call(obj)) {
657
+ case tags.numberTag:
658
+ case tags.stringTag:
659
+ case tags.booleanTag: {
660
+ const result = new obj.constructor(obj?.valueOf());
661
+ cloneDeepWith$1.copyProperties(result, obj);
662
+ return result;
663
+ }
664
+ case tags.argumentsTag: {
665
+ const result = {};
666
+ cloneDeepWith$1.copyProperties(result, obj);
667
+ result.length = obj.length;
668
+ result[Symbol.iterator] = obj[Symbol.iterator];
669
+ return result;
670
+ }
671
+ default: return;
672
+ }
673
+ });
674
+ }
675
+ exports.cloneDeepWith = cloneDeepWith;
676
+ }));
677
+ //#endregion
678
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.js
679
+ var require_cloneDeep = /* @__PURE__ */ __commonJSMin(((exports) => {
680
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
681
+ var cloneDeepWith = require_cloneDeepWith();
682
+ function cloneDeep(obj) {
683
+ return cloneDeepWith.cloneDeepWith(obj);
684
+ }
685
+ exports.cloneDeep = cloneDeep;
686
+ }));
687
+ //#endregion
688
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/isIndex.js
689
+ var require_isIndex = /* @__PURE__ */ __commonJSMin(((exports) => {
690
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
691
+ var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
692
+ function isIndex(value, length = Number.MAX_SAFE_INTEGER) {
693
+ switch (typeof value) {
694
+ case "number": return Number.isInteger(value) && value >= 0 && value < length;
695
+ case "symbol": return false;
696
+ case "string": return IS_UNSIGNED_INTEGER.test(value);
697
+ }
698
+ }
699
+ exports.isIndex = isIndex;
700
+ }));
701
+ //#endregion
702
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isArguments.js
703
+ var require_isArguments = /* @__PURE__ */ __commonJSMin(((exports) => {
704
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
705
+ var getTag = require_getTag();
706
+ function isArguments(value) {
707
+ return value !== null && typeof value === "object" && getTag.getTag(value) === "[object Arguments]";
708
+ }
709
+ exports.isArguments = isArguments;
710
+ }));
711
+ //#endregion
712
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/object/has.js
713
+ var require_has = /* @__PURE__ */ __commonJSMin(((exports) => {
714
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
715
+ var isDeepKey = require_isDeepKey();
716
+ var isIndex = require_isIndex();
717
+ var isArguments = require_isArguments();
718
+ var toPath = require_toPath();
719
+ function has(object, path) {
720
+ let resolvedPath;
721
+ if (Array.isArray(path)) resolvedPath = path;
722
+ else if (typeof path === "string" && isDeepKey.isDeepKey(path) && object?.[path] == null) resolvedPath = toPath.toPath(path);
723
+ else resolvedPath = [path];
724
+ if (resolvedPath.length === 0) return false;
725
+ let current = object;
726
+ for (let i = 0; i < resolvedPath.length; i++) {
727
+ const key = resolvedPath[i];
728
+ if (current == null || !Object.hasOwn(current, key)) {
729
+ if (!((Array.isArray(current) || isArguments.isArguments(current)) && isIndex.isIndex(key) && key < current.length)) return false;
730
+ }
731
+ current = current[key];
732
+ }
733
+ return true;
734
+ }
735
+ exports.has = has;
736
+ }));
737
+ //#endregion
738
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js
739
+ var require_matchesProperty = /* @__PURE__ */ __commonJSMin(((exports) => {
740
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
741
+ var isMatch = require_isMatch();
742
+ var toKey = require_toKey();
743
+ var cloneDeep = require_cloneDeep();
744
+ var get = require_get$1();
745
+ var has = require_has();
746
+ function matchesProperty(property, source) {
747
+ switch (typeof property) {
748
+ case "object":
749
+ if (Object.is(property?.valueOf(), -0)) property = "-0";
750
+ break;
751
+ case "number":
752
+ property = toKey.toKey(property);
753
+ break;
754
+ }
755
+ source = cloneDeep.cloneDeep(source);
756
+ return function(target) {
757
+ const result = get.get(target, property);
758
+ if (result === void 0) return has.has(target, property);
759
+ if (source === void 0) return result === void 0;
760
+ return isMatch.isMatch(result, source);
761
+ };
762
+ }
763
+ exports.matchesProperty = matchesProperty;
764
+ }));
765
+ //#endregion
766
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/util/iteratee.js
767
+ var require_iteratee = /* @__PURE__ */ __commonJSMin(((exports) => {
768
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
769
+ var identity = require_identity();
770
+ var property = require_property();
771
+ var matches = require_matches();
772
+ var matchesProperty = require_matchesProperty();
773
+ function iteratee(value) {
774
+ if (value == null) return identity.identity;
775
+ switch (typeof value) {
776
+ case "function": return value;
777
+ case "object":
778
+ if (Array.isArray(value) && value.length === 2) return matchesProperty.matchesProperty(value[0], value[1]);
779
+ return matches.matches(value);
780
+ case "string":
781
+ case "symbol":
782
+ case "number": return property.property(value);
783
+ }
784
+ }
785
+ exports.iteratee = iteratee;
786
+ }));
787
+ //#endregion
788
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/array/uniqBy.js
789
+ var require_uniqBy$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
790
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
791
+ var uniqBy$1 = require_uniqBy$2();
792
+ var ary = require_ary();
793
+ var identity = require_identity();
794
+ var isArrayLikeObject = require_isArrayLikeObject();
795
+ var iteratee = require_iteratee();
796
+ function uniqBy(array, iteratee$1 = identity.identity) {
797
+ if (!isArrayLikeObject.isArrayLikeObject(array)) return [];
798
+ return uniqBy$1.uniqBy(Array.from(array), ary.ary(iteratee.iteratee(iteratee$1), 1));
799
+ }
800
+ exports.uniqBy = uniqBy;
801
+ }));
802
+ //#endregion
803
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/compat/uniqBy.js
804
+ var require_uniqBy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
805
+ module.exports = require_uniqBy$1().uniqBy;
806
+ }));
807
+ //#endregion
808
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/compareValues.js
809
+ var require_compareValues = /* @__PURE__ */ __commonJSMin(((exports) => {
810
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
811
+ function getPriority(a) {
812
+ if (typeof a === "symbol") return 1;
813
+ if (a === null) return 2;
814
+ if (a === void 0) return 3;
815
+ if (a !== a) return 4;
816
+ return 0;
817
+ }
818
+ var compareValues = (a, b, order) => {
819
+ if (a !== b) {
820
+ const aPriority = getPriority(a);
821
+ const bPriority = getPriority(b);
822
+ if (aPriority === bPriority && aPriority === 0) {
823
+ if (a < b) return order === "desc" ? 1 : -1;
824
+ if (a > b) return order === "desc" ? -1 : 1;
825
+ }
826
+ return order === "desc" ? bPriority - aPriority : aPriority - bPriority;
827
+ }
828
+ return 0;
829
+ };
830
+ exports.compareValues = compareValues;
831
+ }));
832
+ //#endregion
833
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js
834
+ var require_isSymbol = /* @__PURE__ */ __commonJSMin(((exports) => {
835
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
836
+ function isSymbol(value) {
837
+ return typeof value === "symbol" || value instanceof Symbol;
838
+ }
839
+ exports.isSymbol = isSymbol;
840
+ }));
841
+ //#endregion
842
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/isKey.js
843
+ var require_isKey = /* @__PURE__ */ __commonJSMin(((exports) => {
844
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
845
+ var isSymbol = require_isSymbol();
846
+ var regexIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
847
+ var regexIsPlainProp = /^\w*$/;
848
+ function isKey(value, object) {
849
+ if (Array.isArray(value)) return false;
850
+ if (typeof value === "number" || typeof value === "boolean" || value == null || isSymbol.isSymbol(value)) return true;
851
+ return typeof value === "string" && (regexIsPlainProp.test(value) || !regexIsDeepProp.test(value)) || object != null && Object.hasOwn(object, value);
852
+ }
853
+ exports.isKey = isKey;
854
+ }));
855
+ //#endregion
856
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/array/orderBy.js
857
+ var require_orderBy = /* @__PURE__ */ __commonJSMin(((exports) => {
858
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
859
+ var compareValues = require_compareValues();
860
+ var isKey = require_isKey();
861
+ var toPath = require_toPath();
862
+ function orderBy(collection, criteria, orders, guard) {
863
+ if (collection == null) return [];
864
+ orders = guard ? void 0 : orders;
865
+ if (!Array.isArray(collection)) collection = Object.values(collection);
866
+ if (!Array.isArray(criteria)) criteria = criteria == null ? [null] : [criteria];
867
+ if (criteria.length === 0) criteria = [null];
868
+ if (!Array.isArray(orders)) orders = orders == null ? [] : [orders];
869
+ orders = orders.map((order) => String(order));
870
+ const getValueByNestedPath = (object, path) => {
871
+ let target = object;
872
+ for (let i = 0; i < path.length && target != null; ++i) target = target[path[i]];
873
+ return target;
874
+ };
875
+ const getValueByCriterion = (criterion, object) => {
876
+ if (object == null || criterion == null) return object;
877
+ if (typeof criterion === "object" && "key" in criterion) {
878
+ if (Object.hasOwn(object, criterion.key)) return object[criterion.key];
879
+ return getValueByNestedPath(object, criterion.path);
880
+ }
881
+ if (typeof criterion === "function") return criterion(object);
882
+ if (Array.isArray(criterion)) return getValueByNestedPath(object, criterion);
883
+ if (typeof object === "object") return object[criterion];
884
+ return object;
885
+ };
886
+ const preparedCriteria = criteria.map((criterion) => {
887
+ if (Array.isArray(criterion) && criterion.length === 1) criterion = criterion[0];
888
+ if (criterion == null || typeof criterion === "function" || Array.isArray(criterion) || isKey.isKey(criterion)) return criterion;
889
+ return {
890
+ key: criterion,
891
+ path: toPath.toPath(criterion)
892
+ };
893
+ });
894
+ return collection.map((item) => ({
895
+ original: item,
896
+ criteria: preparedCriteria.map((criterion) => getValueByCriterion(criterion, item))
897
+ })).slice().sort((a, b) => {
898
+ for (let i = 0; i < preparedCriteria.length; i++) {
899
+ const comparedResult = compareValues.compareValues(a.criteria[i], b.criteria[i], orders[i]);
900
+ if (comparedResult !== 0) return comparedResult;
901
+ }
902
+ return 0;
903
+ }).map((item) => item.original);
904
+ }
905
+ exports.orderBy = orderBy;
906
+ }));
907
+ //#endregion
908
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/array/flatten.js
909
+ var require_flatten = /* @__PURE__ */ __commonJSMin(((exports) => {
910
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
911
+ function flatten(arr, depth = 1) {
912
+ const result = [];
913
+ const flooredDepth = Math.floor(depth);
914
+ const recursive = (arr, currentDepth) => {
915
+ for (let i = 0; i < arr.length; i++) {
916
+ const item = arr[i];
917
+ if (Array.isArray(item) && currentDepth < flooredDepth) recursive(item, currentDepth + 1);
918
+ else result.push(item);
919
+ }
920
+ };
921
+ recursive(arr, 0);
922
+ return result;
923
+ }
924
+ exports.flatten = flatten;
925
+ }));
926
+ //#endregion
927
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js
928
+ var require_isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports) => {
929
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
930
+ var isIndex = require_isIndex();
931
+ var isArrayLike = require_isArrayLike();
932
+ var isObject = require_isObject();
933
+ var isEqualsSameValueZero = require_isEqualsSameValueZero();
934
+ function isIterateeCall(value, index, object) {
935
+ if (!isObject.isObject(object)) return false;
936
+ if (typeof index === "number" && isArrayLike.isArrayLike(object) && isIndex.isIndex(index) && index < object.length || typeof index === "string" && index in object) return isEqualsSameValueZero.isEqualsSameValueZero(object[index], value);
937
+ return false;
938
+ }
939
+ exports.isIterateeCall = isIterateeCall;
940
+ }));
941
+ //#endregion
942
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/array/sortBy.js
943
+ var require_sortBy$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
944
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
945
+ var orderBy = require_orderBy();
946
+ var flatten = require_flatten();
947
+ var isIterateeCall = require_isIterateeCall();
948
+ function sortBy(collection, ...criteria) {
949
+ const length = criteria.length;
950
+ if (length > 1 && isIterateeCall.isIterateeCall(collection, criteria[0], criteria[1])) criteria = [];
951
+ else if (length > 2 && isIterateeCall.isIterateeCall(criteria[0], criteria[1], criteria[2])) criteria = [criteria[0]];
952
+ return orderBy.orderBy(collection, flatten.flatten(criteria), ["asc"]);
953
+ }
954
+ exports.sortBy = sortBy;
955
+ }));
956
+ //#endregion
957
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/compat/sortBy.js
958
+ var require_sortBy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
959
+ module.exports = require_sortBy$1().sortBy;
960
+ }));
961
+ //#endregion
962
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/function/debounce.js
963
+ var require_debounce$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
964
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
965
+ function debounce(func, debounceMs, { signal, edges } = {}) {
966
+ let pendingThis = void 0;
967
+ let pendingArgs = null;
968
+ const leading = edges != null && edges.includes("leading");
969
+ const trailing = edges == null || edges.includes("trailing");
970
+ const invoke = () => {
971
+ if (pendingArgs !== null) {
972
+ func.apply(pendingThis, pendingArgs);
973
+ pendingThis = void 0;
974
+ pendingArgs = null;
975
+ }
976
+ };
977
+ const onTimerEnd = () => {
978
+ if (trailing) invoke();
979
+ cancel();
980
+ };
981
+ let timeoutId = null;
982
+ const schedule = () => {
983
+ if (timeoutId != null) clearTimeout(timeoutId);
984
+ timeoutId = setTimeout(() => {
985
+ timeoutId = null;
986
+ onTimerEnd();
987
+ }, debounceMs);
988
+ };
989
+ const cancelTimer = () => {
990
+ if (timeoutId !== null) {
991
+ clearTimeout(timeoutId);
992
+ timeoutId = null;
993
+ }
994
+ };
995
+ const cancel = () => {
996
+ cancelTimer();
997
+ pendingThis = void 0;
998
+ pendingArgs = null;
999
+ };
1000
+ const flush = () => {
1001
+ invoke();
1002
+ };
1003
+ const debounced = function(...args) {
1004
+ if (signal?.aborted) return;
1005
+ pendingThis = this;
1006
+ pendingArgs = args;
1007
+ const isFirstCall = timeoutId == null;
1008
+ schedule();
1009
+ if (leading && isFirstCall) invoke();
1010
+ };
1011
+ debounced.schedule = schedule;
1012
+ debounced.cancel = cancel;
1013
+ debounced.flush = flush;
1014
+ signal?.addEventListener("abort", cancel, { once: true });
1015
+ return debounced;
1016
+ }
1017
+ exports.debounce = debounce;
1018
+ }));
1019
+ //#endregion
1020
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/function/debounce.js
1021
+ var require_debounce = /* @__PURE__ */ __commonJSMin(((exports) => {
1022
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
1023
+ var debounce$1 = require_debounce$1();
1024
+ function debounce(func, debounceMs = 0, options = {}) {
1025
+ if (typeof options !== "object") options = {};
1026
+ const { leading = false, trailing = true, maxWait } = options;
1027
+ const edges = Array(2);
1028
+ if (leading) edges[0] = "leading";
1029
+ if (trailing) edges[1] = "trailing";
1030
+ let result = void 0;
1031
+ let pendingAt = null;
1032
+ const _debounced = debounce$1.debounce(function(...args) {
1033
+ result = func.apply(this, args);
1034
+ pendingAt = null;
1035
+ }, debounceMs, { edges });
1036
+ const debounced = function(...args) {
1037
+ if (maxWait != null) {
1038
+ if (pendingAt === null) pendingAt = Date.now();
1039
+ if (Date.now() - pendingAt >= maxWait) {
1040
+ result = func.apply(this, args);
1041
+ pendingAt = Date.now();
1042
+ _debounced.cancel();
1043
+ _debounced.schedule();
1044
+ return result;
1045
+ }
1046
+ }
1047
+ _debounced.apply(this, args);
1048
+ return result;
1049
+ };
1050
+ const flush = () => {
1051
+ _debounced.flush();
1052
+ return result;
1053
+ };
1054
+ debounced.cancel = _debounced.cancel;
1055
+ debounced.flush = flush;
1056
+ return debounced;
1057
+ }
1058
+ exports.debounce = debounce;
1059
+ }));
1060
+ //#endregion
1061
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/function/throttle.js
1062
+ var require_throttle$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
1063
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
1064
+ var debounce = require_debounce();
1065
+ function throttle(func, throttleMs = 0, options = {}) {
1066
+ const { leading = true, trailing = true } = options;
1067
+ return debounce.debounce(func, throttleMs, {
1068
+ leading,
1069
+ maxWait: throttleMs,
1070
+ trailing
1071
+ });
1072
+ }
1073
+ exports.throttle = throttle;
1074
+ }));
1075
+ //#endregion
1076
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/compat/throttle.js
1077
+ var require_throttle = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1078
+ module.exports = require_throttle$1().throttle;
1079
+ }));
1080
+ //#endregion
1081
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/util/toNumber.js
1082
+ var require_toNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
1083
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
1084
+ var isSymbol = require_isSymbol();
1085
+ function toNumber(value) {
1086
+ if (isSymbol.isSymbol(value)) return NaN;
1087
+ return Number(value);
1088
+ }
1089
+ exports.toNumber = toNumber;
1090
+ }));
1091
+ //#endregion
1092
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/util/toFinite.js
1093
+ var require_toFinite = /* @__PURE__ */ __commonJSMin(((exports) => {
1094
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
1095
+ var toNumber = require_toNumber();
1096
+ function toFinite(value) {
1097
+ if (!value) return value === 0 ? value : 0;
1098
+ value = toNumber.toNumber(value);
1099
+ if (value === Infinity || value === -Infinity) return (value < 0 ? -1 : 1) * Number.MAX_VALUE;
1100
+ return value === value ? value : 0;
1101
+ }
1102
+ exports.toFinite = toFinite;
1103
+ }));
1104
+ //#endregion
1105
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/dist/compat/math/range.js
1106
+ var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
1107
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
1108
+ var isIterateeCall = require_isIterateeCall();
1109
+ var toFinite = require_toFinite();
1110
+ function range(start, end, step) {
1111
+ if (step && typeof step !== "number" && isIterateeCall.isIterateeCall(start, end, step)) end = step = void 0;
1112
+ start = toFinite.toFinite(start);
1113
+ if (end === void 0) {
1114
+ end = start;
1115
+ start = 0;
1116
+ } else end = toFinite.toFinite(end);
1117
+ step = step === void 0 ? start < end ? 1 : -1 : toFinite.toFinite(step);
1118
+ const length = Math.max(Math.ceil((end - start) / (step || 1)), 0);
1119
+ const result = new Array(length);
1120
+ for (let index = 0; index < length; index++) {
1121
+ result[index] = start;
1122
+ start += step;
1123
+ }
1124
+ return result;
1125
+ }
1126
+ exports.range = range;
1127
+ }));
1128
+ //#endregion
1129
+ //#region ../../node_modules/.pnpm/es-toolkit@1.46.0/node_modules/es-toolkit/compat/range.js
1130
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1131
+ module.exports = require_range$1().range;
1132
+ }));
1133
+ //#endregion
1134
+ export { require_get as a, require_uniqBy as i, require_throttle as n, require_sortBy as r, require_range as t };