PluginProbe
Elementor Website Builder – more than just a page builder / 3.24.8
Elementor Website Builder – more than just a page builder v3.24.8
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | assets/js/admin-notifications.js +6560 -257 4.2.0-dev23.24.8 View file →
@@ -1,7 +1,64 @@
1 +/*! elementor - v3.24.0 - 28-10-2024 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
5 +/***/ "../node_modules/@elementor/query/dist/index.js":
6 +/*!******************************************************!*\
7 + !*** ../node_modules/@elementor/query/dist/index.js ***!
8 + \******************************************************/
9 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10 +
11 +"use strict";
12 +
13 +var __defProp = Object.defineProperty;
14 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15 +var __getOwnPropNames = Object.getOwnPropertyNames;
16 +var __hasOwnProp = Object.prototype.hasOwnProperty;
17 +var __export = (target, all) => {
18 + for (var name in all)
19 + __defProp(target, name, { get: all[name], enumerable: true });
20 +};
21 +var __copyProps = (to, from, except, desc) => {
22 + if (from && typeof from === "object" || typeof from === "function") {
23 + for (let key of __getOwnPropNames(from))
24 + if (!__hasOwnProp.call(to, key) && key !== except)
25 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26 + }
27 + return to;
28 +};
29 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30 +
31 +// src/index.ts
32 +var src_exports = {};
33 +__export(src_exports, {
34 + QueryClient: () => import_react_query2.QueryClient,
35 + QueryClientProvider: () => import_react_query2.QueryClientProvider,
36 + createQueryClient: () => createQueryClient,
37 + useInfiniteQuery: () => import_react_query2.useInfiniteQuery,
38 + useMutation: () => import_react_query2.useMutation,
39 + useQuery: () => import_react_query2.useQuery,
40 + useQueryClient: () => import_react_query2.useQueryClient
41 +});
42 +module.exports = __toCommonJS(src_exports);
43 +var import_react_query = __webpack_require__(/*! @tanstack/react-query */ "../node_modules/@tanstack/react-query/build/modern/index.cjs");
44 +var import_react_query2 = __webpack_require__(/*! @tanstack/react-query */ "../node_modules/@tanstack/react-query/build/modern/index.cjs");
45 +function createQueryClient() {
46 + return new import_react_query.QueryClient({
47 + defaultOptions: {
48 + queries: {
49 + refetchOnWindowFocus: false,
50 + refetchOnReconnect: false
51 + }
52 + }
53 + });
54 +}
55 +// Annotate the CommonJS export names for ESM import in node:
56 +0 && (0);
57 +//# sourceMappingURL=index.js.map
58 +
59 +/***/ }),
60 +
4 61 /***/ "../modules/notifications/assets/js/api/index.js":
5 62 /*!*******************************************************!*\
6 63 !*** ../modules/notifications/assets/js/api/index.js ***!
7 64 \*******************************************************/
@@ -23,11 +80,12 @@
23 80 data: data
24 81 });
25 82 });
26 83 };
27 -var getNotifications = exports.getNotifications = function getNotifications() {
84 +var getNotifications = function getNotifications() {
28 85 return request('notifications_get');
29 86 };
87 +exports.getNotifications = getNotifications;
30 88
31 89 /***/ }),
32 90
33 91 /***/ "../modules/notifications/assets/js/components/bar-button-notification.js":
@@ -49,10 +107,11 @@
49 107 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
50 108 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
51 109 var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
52 110 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
53 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
54 -var BarButtonNotification = exports.BarButtonNotification = function BarButtonNotification(props) {
111 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
112 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
113 +var BarButtonNotification = function BarButtonNotification(props) {
55 114 var defaultIsRead = props.defaultIsRead;
56 115 var _useState = (0, _react.useState)(false),
57 116 _useState2 = (0, _slicedToArray2.default)(_useState, 2),
58 117 isOpen = _useState2[0],
@@ -89,8 +148,9 @@
89 148 setIsOpen: setIsOpen,
90 149 setIsRead: setIsRead
91 150 }));
92 151 };
152 +exports.BarButtonNotification = BarButtonNotification;
93 153 BarButtonNotification.propTypes = {
94 154 defaultIsRead: PropTypes.bool,
95 155 children: PropTypes.any.isRequired
96 156 };
@@ -112,13 +172,13 @@
112 172 value: true
113 173 }));
114 174 exports.WhatsNewDrawerContent = void 0;
115 175 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
116 -var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
176 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
117 177 var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
118 178 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
119 179 var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
120 -var WhatsNewDrawerContent = exports.WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
180 +var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
121 181 var setIsOpen = _ref.setIsOpen;
122 182 var _useQuery = (0, _query.useQuery)({
123 183 queryKey: ['e-notifications'],
124 184 queryFn: _api.getNotifications
@@ -143,8 +203,9 @@
143 203 setIsOpen: setIsOpen
144 204 });
145 205 });
146 206 };
207 +exports.WhatsNewDrawerContent = WhatsNewDrawerContent;
147 208 WhatsNewDrawerContent.propTypes = {
148 209 setIsOpen: PropTypes.func.isRequired
149 210 };
150 211
@@ -167,9 +228,9 @@
167 228 exports.WhatsNewItemChips = void 0;
168 229 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
169 230 var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
170 231 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
171 -var WhatsNewItemChips = exports.WhatsNewItemChips = function WhatsNewItemChips(_ref) {
232 +var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
172 233 var chipPlan = _ref.chipPlan,
173 234 chipTags = _ref.chipTags,
174 235 itemIndex = _ref.itemIndex;
175 236 var chips = [];
@@ -204,8 +265,9 @@
204 265 key: "chip-".concat(itemIndex).concat(chipIndex)
205 266 }, chip));
206 267 }));
207 268 };
269 +exports.WhatsNewItemChips = WhatsNewItemChips;
208 270 WhatsNewItemChips.propTypes = {
209 271 chipPlan: PropTypes.string,
210 272 chipTags: PropTypes.array,
211 273 itemIndex: PropTypes.number.isRequired
@@ -212,64 +274,8 @@
212 274 };
213 275
214 276 /***/ }),
215 277
216 -/***/ "../modules/notifications/assets/js/components/whats-new-item-media.js":
217 -/*!*****************************************************************************!*\
218 - !*** ../modules/notifications/assets/js/components/whats-new-item-media.js ***!
219 - \*****************************************************************************/
220 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
221 -
222 -"use strict";
223 -
224 -
225 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
226 -Object.defineProperty(exports, "__esModule", ({
227 - value: true
228 -}));
229 -exports.WhatsNewItemMedia = void 0;
230 -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
231 -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
232 -var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
233 -/* eslint-disable react/prop-types */
234 -
235 -var WhatsNewItemMedia = exports.WhatsNewItemMedia = function WhatsNewItemMedia(_ref) {
236 - var item = _ref.item;
237 - if (item.youtubeEmbedId) {
238 - var videoId = item.youtubeEmbedId.split('?')[0];
239 - var src = "https://www.youtube.com/embed/".concat(videoId).concat(item.youtubeAutoplay ? '?autoplay=1&mute=1' : '');
240 - var allow = "encrypted-media; picture-in-picture".concat(item.youtubeAutoplay ? '; autoplay' : '');
241 - return /*#__PURE__*/_react.default.createElement(_ui.Box, {
242 - sx: {
243 - pb: 2
244 - }
245 - }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
246 - component: "iframe",
247 - src: src,
248 - title: item.title,
249 - allow: allow,
250 - allowFullScreen: true,
251 - sx: {
252 - aspectRatio: '16/9',
253 - width: '100%',
254 - display: 'block',
255 - border: 'none'
256 - }
257 - }));
258 - }
259 - var mediaSrc = item.gifSrc || item.imageSrc;
260 - if (!mediaSrc) {
261 - return null;
262 - }
263 - return /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
264 - imageSrc: mediaSrc,
265 - link: item.link,
266 - title: item.title
267 - });
268 -};
269 -
270 -/***/ }),
271 -
272 278 /***/ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js":
273 279 /*!*********************************************************************************!*\
274 280 !*** ../modules/notifications/assets/js/components/whats-new-item-thumbnail.js ***!
275 281 \*********************************************************************************/
@@ -286,9 +292,9 @@
286 292 exports.WhatsNewItemThumbnail = void 0;
287 293 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
288 294 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
289 295 var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
290 -var WhatsNewItemThumbnail = exports.WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
296 +var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
291 297 var imageSrc = _ref.imageSrc,
292 298 title = _ref.title,
293 299 link = _ref.link;
294 300 return /*#__PURE__*/_react.default.createElement(_ui.Box, {
@@ -304,8 +310,9 @@
304 310 maxWidth: '100%'
305 311 }
306 312 })));
307 313 };
314 +exports.WhatsNewItemThumbnail = WhatsNewItemThumbnail;
308 315 WhatsNewItemThumbnail.propTypes = {
309 316 imageSrc: PropTypes.string.isRequired,
310 317 title: PropTypes.string.isRequired,
311 318 link: PropTypes.string
@@ -329,9 +336,9 @@
329 336 }));
330 337 exports.WhatsNewItemTopicLine = void 0;
331 338 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
332 339 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
333 -var WhatsNewItemTopicLine = exports.WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
340 +var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
334 341 var topic = _ref.topic,
335 342 date = _ref.date;
336 343 return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
337 344 direction: "row",
@@ -345,8 +352,9 @@
345 352 pb: 1
346 353 }
347 354 }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
348 355 };
356 +exports.WhatsNewItemTopicLine = WhatsNewItemTopicLine;
349 357 WhatsNewItemTopicLine.propTypes = {
350 358 topic: PropTypes.string,
351 359 date: PropTypes.string
352 360 };
@@ -371,11 +379,11 @@
371 379 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
372 380 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
373 381 var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
374 382 var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
375 -var _whatsNewItemMedia = __webpack_require__(/*! ./whats-new-item-media */ "../modules/notifications/assets/js/components/whats-new-item-media.js");
383 +var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
376 384 var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
377 -var WhatsNewItem = exports.WhatsNewItem = function WhatsNewItem(_ref) {
385 +var WhatsNewItem = function WhatsNewItem(_ref) {
378 386 var item = _ref.item,
379 387 itemIndex = _ref.itemIndex,
380 388 itemsLength = _ref.itemsLength,
381 389 setIsOpen = _ref.setIsOpen;
@@ -395,10 +403,12 @@
395 403 variant: "subtitle1",
396 404 sx: {
397 405 pb: 2
398 406 }
399 - }, item.title)), /*#__PURE__*/_react.default.createElement(_whatsNewItemMedia.WhatsNewItemMedia, {
400 - item: item
407 + }, item.title)), item.imageSrc && /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
408 + imageSrc: item.imageSrc,
409 + link: item.link,
410 + title: item.title
401 411 }), /*#__PURE__*/_react.default.createElement(_whatsNewItemChips.WhatsNewItemChips, {
402 412 chipPlan: item.chipPlan,
403 413 chipTags: item.chipTags,
404 414 itemIndex: itemIndex
@@ -430,8 +440,9 @@
430 440 my: 1
431 441 }
432 442 }));
433 443 };
444 +exports.WhatsNewItem = WhatsNewItem;
434 445 WhatsNewItem.propTypes = {
435 446 item: PropTypes.object.isRequired,
436 447 itemIndex: PropTypes.number.isRequired,
437 448 itemsLength: PropTypes.number.isRequired,
@@ -458,9 +469,9 @@
458 469 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
459 470 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
460 471 var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
461 472 var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
462 -var WhatsNewTopBar = exports.WhatsNewTopBar = function WhatsNewTopBar(props) {
473 +var WhatsNewTopBar = function WhatsNewTopBar(props) {
463 474 var setIsOpen = props.setIsOpen;
464 475 return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
465 476 elevation: 0,
466 477 position: "sticky",
@@ -481,8 +492,9 @@
481 492 return setIsOpen(false);
482 493 }
483 494 }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
484 495 };
496 +exports.WhatsNewTopBar = WhatsNewTopBar;
485 497 WhatsNewTopBar.propTypes = {
486 498 setIsOpen: PropTypes.func.isRequired
487 499 };
488 500
@@ -504,12 +516,13 @@
504 516 }));
505 517 exports.WhatsNew = void 0;
506 518 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
507 519 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
508 -var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
520 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
509 521 var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
510 522 var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
511 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
523 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
524 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
512 525 var queryClient = new _query.QueryClient({
513 526 defaultOptions: {
514 527 queries: {
515 528 refetchOnWindowFocus: false,
@@ -517,9 +530,10 @@
517 530 staleTime: 1000 * 60 * 30 // 30 minutes
518 531 }
519 532 }
520 533 });
521 -var WhatsNew = exports.WhatsNew = function WhatsNew(props) {
534 +
535 +var WhatsNew = function WhatsNew(props) {
522 536 var _window$elementor, _window$elementor$get;
523 537 var isOpen = props.isOpen,
524 538 setIsOpen = props.setIsOpen,
525 539 setIsRead = props.setIsRead,
@@ -535,9 +549,9 @@
535 549 client: queryClient
536 550 }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
537 551 rtl: elementorCommon.config.isRTL
538 552 }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
539 - colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 || (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, 'ui_theme')) || 'auto'
553 + colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 ? void 0 : (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, 'ui_theme')) || 'auto'
540 554 }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
541 555 anchor: anchorPosition,
542 556 open: isOpen,
543 557 onClose: function onClose() {
@@ -564,8 +578,9 @@
564 578 }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, {
565 579 setIsOpen: setIsOpen
566 580 }))))))));
567 581 };
582 +exports.WhatsNew = WhatsNew;
568 583 WhatsNew.propTypes = {
569 584 isOpen: PropTypes.bool.isRequired,
570 585 setIsOpen: PropTypes.func.isRequired,
571 586 setIsRead: PropTypes.func.isRequired,
@@ -590,9 +605,9 @@
590 605 }));
591 606 exports.WrapperWithLink = void 0;
592 607 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
593 608 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
594 -var WrapperWithLink = exports.WrapperWithLink = function WrapperWithLink(props) {
609 +var WrapperWithLink = function WrapperWithLink(props) {
595 610 var link = props.link,
596 611 children = props.children;
597 612 if (!link) {
598 613 return children;
@@ -608,8 +623,9 @@
608 623 }
609 624 }
610 625 }, children);
611 626 };
627 +exports.WrapperWithLink = WrapperWithLink;
612 628 WrapperWithLink.propTypes = {
613 629 link: PropTypes.string,
614 630 children: PropTypes.any.isRequired
615 631 };
@@ -633,10 +649,11 @@
633 649 exports.XIcon = void 0;
634 650 var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
635 651 var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
636 652 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
637 -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
638 -var XIcon = exports.XIcon = (0, _react.forwardRef)(function (props, ref) {
653 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
654 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
655 +var XIcon = (0, _react.forwardRef)(function (props, ref) {
639 656 return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
640 657 viewBox: "0 0 24 24"
641 658 }, props, {
642 659 ref: ref
@@ -649,177 +666,12 @@
649 666 clipRule: "evenodd",
650 667 d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
651 668 }));
652 669 });
670 +exports.XIcon = XIcon;
653 671
654 672 /***/ }),
655 673
656 -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
657 -/*!******************************************************************!*\
658 - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
659 - \******************************************************************/
660 -/***/ ((module) => {
661 -
662 -function _arrayLikeToArray(r, a) {
663 - (null == a || a > r.length) && (a = r.length);
664 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
665 - return n;
666 -}
667 -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
668 -
669 -/***/ }),
670 -
671 -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
672 -/*!****************************************************************!*\
673 - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
674 - \****************************************************************/
675 -/***/ ((module) => {
676 -
677 -function _arrayWithHoles(r) {
678 - if (Array.isArray(r)) return r;
679 -}
680 -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
681 -
682 -/***/ }),
683 -
684 -/***/ "../node_modules/@babel/runtime/helpers/extends.js":
685 -/*!*********************************************************!*\
686 - !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
687 - \*********************************************************/
688 -/***/ ((module) => {
689 -
690 -function _extends() {
691 - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
692 - for (var e = 1; e < arguments.length; e++) {
693 - var t = arguments[e];
694 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
695 - }
696 - return n;
697 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
698 -}
699 -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
700 -
701 -/***/ }),
702 -
703 -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
704 -/*!***********************************************************************!*\
705 - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
706 - \***********************************************************************/
707 -/***/ ((module) => {
708 -
709 -function _interopRequireDefault(e) {
710 - return e && e.__esModule ? e : {
711 - "default": e
712 - };
713 -}
714 -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
715 -
716 -/***/ }),
717 -
718 -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
719 -/*!**********************************************************************!*\
720 - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
721 - \**********************************************************************/
722 -/***/ ((module) => {
723 -
724 -function _iterableToArrayLimit(r, l) {
725 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
726 - if (null != t) {
727 - var e,
728 - n,
729 - i,
730 - u,
731 - a = [],
732 - f = !0,
733 - o = !1;
734 - try {
735 - if (i = (t = t.call(r)).next, 0 === l) {
736 - if (Object(t) !== t) return;
737 - f = !1;
738 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
739 - } catch (r) {
740 - o = !0, n = r;
741 - } finally {
742 - try {
743 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
744 - } finally {
745 - if (o) throw n;
746 - }
747 - }
748 - return a;
749 - }
750 -}
751 -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
752 -
753 -/***/ }),
754 -
755 -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
756 -/*!*****************************************************************!*\
757 - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
758 - \*****************************************************************/
759 -/***/ ((module) => {
760 -
761 -function _nonIterableRest() {
762 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
763 -}
764 -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
765 -
766 -/***/ }),
767 -
768 -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
769 -/*!***************************************************************!*\
770 - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
771 - \***************************************************************/
772 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
773 -
774 -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
775 -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
776 -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
777 -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
778 -function _slicedToArray(r, e) {
779 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
780 -}
781 -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
782 -
783 -/***/ }),
784 -
785 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
786 -/*!********************************************************!*\
787 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
788 - \********************************************************/
789 -/***/ ((module) => {
790 -
791 -function _typeof(o) {
792 - "@babel/helpers - typeof";
793 -
794 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
795 - return typeof o;
796 - } : function (o) {
797 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
798 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
799 -}
800 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
801 -
802 -/***/ }),
803 -
804 -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
805 -/*!****************************************************************************!*\
806 - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
807 - \****************************************************************************/
808 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
809 -
810 -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
811 -function _unsupportedIterableToArray(r, a) {
812 - if (r) {
813 - if ("string" == typeof r) return arrayLikeToArray(r, a);
814 - var t = {}.toString.call(r).slice(8, -1);
815 - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
816 - }
817 -}
818 -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
819 -
820 -/***/ }),
821 -
822 674 /***/ "../node_modules/object-assign/index.js":
823 675 /*!**********************************************!*\
824 676 !*** ../node_modules/object-assign/index.js ***!
825 677 \**********************************************/
@@ -1674,10 +1526,9 @@
1674 1526 // By explicitly using `prop-types` you are opting into new development behavior.
1675 1527 // http://fb.me/prop-types-in-prod
1676 1528 var throwOnDirectAccess = true;
1677 1529 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1678 -} else // removed by dead control flow
1679 -{}
1530 +} else {}
1680 1531
1681 1532
1682 1533 /***/ }),
1683 1534
@@ -1915,10 +1766,9 @@
1915 1766
1916 1767 "use strict";
1917 1768
1918 1769
1919 -if (false) // removed by dead control flow
1920 -{} else {
1770 +if (false) {} else {
1921 1771 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1922 1772 }
1923 1773
1924 1774
@@ -1923,16 +1773,1376 @@
1923 1773
1924 1774
1925 1775 /***/ }),
1926 1776
1927 -/***/ "@elementor/query":
1928 -/*!************************************!*\
1929 - !*** external "elementorV2.query" ***!
1930 - \************************************/
1777 +/***/ "../node_modules/react/cjs/react-jsx-runtime.development.js":
1778 +/*!******************************************************************!*\
1779 + !*** ../node_modules/react/cjs/react-jsx-runtime.development.js ***!
1780 + \******************************************************************/
1781 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1782 +
1783 +"use strict";
1784 +/**
1785 + * @license React
1786 + * react-jsx-runtime.development.js
1787 + *
1788 + * Copyright (c) Facebook, Inc. and its affiliates.
1789 + *
1790 + * This source code is licensed under the MIT license found in the
1791 + * LICENSE file in the root directory of this source tree.
1792 + */
1793 +
1794 +
1795 +
1796 +if (true) {
1797 + (function() {
1798 +'use strict';
1799 +
1800 +var React = __webpack_require__(/*! react */ "react");
1801 +
1802 +// ATTENTION
1803 +// When adding new symbols to this file,
1804 +// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1805 +// The Symbol used to tag the ReactElement-like types.
1806 +var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1807 +var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1808 +var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1809 +var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1810 +var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1811 +var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1812 +var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1813 +var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1814 +var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1815 +var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1816 +var REACT_MEMO_TYPE = Symbol.for('react.memo');
1817 +var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1818 +var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1819 +var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
1820 +var FAUX_ITERATOR_SYMBOL = '@@iterator';
1821 +function getIteratorFn(maybeIterable) {
1822 + if (maybeIterable === null || typeof maybeIterable !== 'object') {
1823 + return null;
1824 + }
1825 +
1826 + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
1827 +
1828 + if (typeof maybeIterator === 'function') {
1829 + return maybeIterator;
1830 + }
1831 +
1832 + return null;
1833 +}
1834 +
1835 +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1836 +
1837 +function error(format) {
1838 + {
1839 + {
1840 + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1841 + args[_key2 - 1] = arguments[_key2];
1842 + }
1843 +
1844 + printWarning('error', format, args);
1845 + }
1846 + }
1847 +}
1848 +
1849 +function printWarning(level, format, args) {
1850 + // When changing this logic, you might want to also
1851 + // update consoleWithStackDev.www.js as well.
1852 + {
1853 + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1854 + var stack = ReactDebugCurrentFrame.getStackAddendum();
1855 +
1856 + if (stack !== '') {
1857 + format += '%s';
1858 + args = args.concat([stack]);
1859 + } // eslint-disable-next-line react-internal/safe-string-coercion
1860 +
1861 +
1862 + var argsWithFormat = args.map(function (item) {
1863 + return String(item);
1864 + }); // Careful: RN currently depends on this prefix
1865 +
1866 + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
1867 + // breaks IE9: https://github.com/facebook/react/issues/13610
1868 + // eslint-disable-next-line react-internal/no-production-logging
1869 +
1870 + Function.prototype.apply.call(console[level], console, argsWithFormat);
1871 + }
1872 +}
1873 +
1874 +// -----------------------------------------------------------------------------
1875 +
1876 +var enableScopeAPI = false; // Experimental Create Event Handle API.
1877 +var enableCacheElement = false;
1878 +var enableTransitionTracing = false; // No known bugs, but needs performance testing
1879 +
1880 +var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1881 +// stuff. Intended to enable React core members to more easily debug scheduling
1882 +// issues in DEV builds.
1883 +
1884 +var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1885 +
1886 +var REACT_MODULE_REFERENCE;
1887 +
1888 +{
1889 + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1890 +}
1891 +
1892 +function isValidElementType(type) {
1893 + if (typeof type === 'string' || typeof type === 'function') {
1894 + return true;
1895 + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1896 +
1897 +
1898 + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
1899 + return true;
1900 + }
1901 +
1902 + if (typeof type === 'object' && type !== null) {
1903 + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1904 + // types supported by any Flight configuration anywhere since
1905 + // we don't know which Flight build this will end up being used
1906 + // with.
1907 + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1908 + return true;
1909 + }
1910 + }
1911 +
1912 + return false;
1913 +}
1914 +
1915 +function getWrappedName(outerType, innerType, wrapperName) {
1916 + var displayName = outerType.displayName;
1917 +
1918 + if (displayName) {
1919 + return displayName;
1920 + }
1921 +
1922 + var functionName = innerType.displayName || innerType.name || '';
1923 + return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
1924 +} // Keep in sync with react-reconciler/getComponentNameFromFiber
1925 +
1926 +
1927 +function getContextName(type) {
1928 + return type.displayName || 'Context';
1929 +} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
1930 +
1931 +
1932 +function getComponentNameFromType(type) {
1933 + if (type == null) {
1934 + // Host root, text node or just invalid type.
1935 + return null;
1936 + }
1937 +
1938 + {
1939 + if (typeof type.tag === 'number') {
1940 + error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
1941 + }
1942 + }
1943 +
1944 + if (typeof type === 'function') {
1945 + return type.displayName || type.name || null;
1946 + }
1947 +
1948 + if (typeof type === 'string') {
1949 + return type;
1950 + }
1951 +
1952 + switch (type) {
1953 + case REACT_FRAGMENT_TYPE:
1954 + return 'Fragment';
1955 +
1956 + case REACT_PORTAL_TYPE:
1957 + return 'Portal';
1958 +
1959 + case REACT_PROFILER_TYPE:
1960 + return 'Profiler';
1961 +
1962 + case REACT_STRICT_MODE_TYPE:
1963 + return 'StrictMode';
1964 +
1965 + case REACT_SUSPENSE_TYPE:
1966 + return 'Suspense';
1967 +
1968 + case REACT_SUSPENSE_LIST_TYPE:
1969 + return 'SuspenseList';
1970 +
1971 + }
1972 +
1973 + if (typeof type === 'object') {
1974 + switch (type.$$typeof) {
1975 + case REACT_CONTEXT_TYPE:
1976 + var context = type;
1977 + return getContextName(context) + '.Consumer';
1978 +
1979 + case REACT_PROVIDER_TYPE:
1980 + var provider = type;
1981 + return getContextName(provider._context) + '.Provider';
1982 +
1983 + case REACT_FORWARD_REF_TYPE:
1984 + return getWrappedName(type, type.render, 'ForwardRef');
1985 +
1986 + case REACT_MEMO_TYPE:
1987 + var outerName = type.displayName || null;
1988 +
1989 + if (outerName !== null) {
1990 + return outerName;
1991 + }
1992 +
1993 + return getComponentNameFromType(type.type) || 'Memo';
1994 +
1995 + case REACT_LAZY_TYPE:
1996 + {
1997 + var lazyComponent = type;
1998 + var payload = lazyComponent._payload;
1999 + var init = lazyComponent._init;
2000 +
2001 + try {
2002 + return getComponentNameFromType(init(payload));
2003 + } catch (x) {
2004 + return null;
2005 + }
2006 + }
2007 +
2008 + // eslint-disable-next-line no-fallthrough
2009 + }
2010 + }
2011 +
2012 + return null;
2013 +}
2014 +
2015 +var assign = Object.assign;
2016 +
2017 +// Helpers to patch console.logs to avoid logging during side-effect free
2018 +// replaying on render function. This currently only patches the object
2019 +// lazily which won't cover if the log function was extracted eagerly.
2020 +// We could also eagerly patch the method.
2021 +var disabledDepth = 0;
2022 +var prevLog;
2023 +var prevInfo;
2024 +var prevWarn;
2025 +var prevError;
2026 +var prevGroup;
2027 +var prevGroupCollapsed;
2028 +var prevGroupEnd;
2029 +
2030 +function disabledLog() {}
2031 +
2032 +disabledLog.__reactDisabledLog = true;
2033 +function disableLogs() {
2034 + {
2035 + if (disabledDepth === 0) {
2036 + /* eslint-disable react-internal/no-production-logging */
2037 + prevLog = console.log;
2038 + prevInfo = console.info;
2039 + prevWarn = console.warn;
2040 + prevError = console.error;
2041 + prevGroup = console.group;
2042 + prevGroupCollapsed = console.groupCollapsed;
2043 + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
2044 +
2045 + var props = {
2046 + configurable: true,
2047 + enumerable: true,
2048 + value: disabledLog,
2049 + writable: true
2050 + }; // $FlowFixMe Flow thinks console is immutable.
2051 +
2052 + Object.defineProperties(console, {
2053 + info: props,
2054 + log: props,
2055 + warn: props,
2056 + error: props,
2057 + group: props,
2058 + groupCollapsed: props,
2059 + groupEnd: props
2060 + });
2061 + /* eslint-enable react-internal/no-production-logging */
2062 + }
2063 +
2064 + disabledDepth++;
2065 + }
2066 +}
2067 +function reenableLogs() {
2068 + {
2069 + disabledDepth--;
2070 +
2071 + if (disabledDepth === 0) {
2072 + /* eslint-disable react-internal/no-production-logging */
2073 + var props = {
2074 + configurable: true,
2075 + enumerable: true,
2076 + writable: true
2077 + }; // $FlowFixMe Flow thinks console is immutable.
2078 +
2079 + Object.defineProperties(console, {
2080 + log: assign({}, props, {
2081 + value: prevLog
2082 + }),
2083 + info: assign({}, props, {
2084 + value: prevInfo
2085 + }),
2086 + warn: assign({}, props, {
2087 + value: prevWarn
2088 + }),
2089 + error: assign({}, props, {
2090 + value: prevError
2091 + }),
2092 + group: assign({}, props, {
2093 + value: prevGroup
2094 + }),
2095 + groupCollapsed: assign({}, props, {
2096 + value: prevGroupCollapsed
2097 + }),
2098 + groupEnd: assign({}, props, {
2099 + value: prevGroupEnd
2100 + })
2101 + });
2102 + /* eslint-enable react-internal/no-production-logging */
2103 + }
2104 +
2105 + if (disabledDepth < 0) {
2106 + error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2107 + }
2108 + }
2109 +}
2110 +
2111 +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2112 +var prefix;
2113 +function describeBuiltInComponentFrame(name, source, ownerFn) {
2114 + {
2115 + if (prefix === undefined) {
2116 + // Extract the VM specific prefix used by each line.
2117 + try {
2118 + throw Error();
2119 + } catch (x) {
2120 + var match = x.stack.trim().match(/\n( *(at )?)/);
2121 + prefix = match && match[1] || '';
2122 + }
2123 + } // We use the prefix to ensure our stacks line up with native stack frames.
2124 +
2125 +
2126 + return '\n' + prefix + name;
2127 + }
2128 +}
2129 +var reentry = false;
2130 +var componentFrameCache;
2131 +
2132 +{
2133 + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2134 + componentFrameCache = new PossiblyWeakMap();
2135 +}
2136 +
2137 +function describeNativeComponentFrame(fn, construct) {
2138 + // If something asked for a stack inside a fake render, it should get ignored.
2139 + if ( !fn || reentry) {
2140 + return '';
2141 + }
2142 +
2143 + {
2144 + var frame = componentFrameCache.get(fn);
2145 +
2146 + if (frame !== undefined) {
2147 + return frame;
2148 + }
2149 + }
2150 +
2151 + var control;
2152 + reentry = true;
2153 + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
2154 +
2155 + Error.prepareStackTrace = undefined;
2156 + var previousDispatcher;
2157 +
2158 + {
2159 + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
2160 + // for warnings.
2161 +
2162 + ReactCurrentDispatcher.current = null;
2163 + disableLogs();
2164 + }
2165 +
2166 + try {
2167 + // This should throw.
2168 + if (construct) {
2169 + // Something should be setting the props in the constructor.
2170 + var Fake = function () {
2171 + throw Error();
2172 + }; // $FlowFixMe
2173 +
2174 +
2175 + Object.defineProperty(Fake.prototype, 'props', {
2176 + set: function () {
2177 + // We use a throwing setter instead of frozen or non-writable props
2178 + // because that won't throw in a non-strict mode function.
2179 + throw Error();
2180 + }
2181 + });
2182 +
2183 + if (typeof Reflect === 'object' && Reflect.construct) {
2184 + // We construct a different control for this case to include any extra
2185 + // frames added by the construct call.
2186 + try {
2187 + Reflect.construct(Fake, []);
2188 + } catch (x) {
2189 + control = x;
2190 + }
2191 +
2192 + Reflect.construct(fn, [], Fake);
2193 + } else {
2194 + try {
2195 + Fake.call();
2196 + } catch (x) {
2197 + control = x;
2198 + }
2199 +
2200 + fn.call(Fake.prototype);
2201 + }
2202 + } else {
2203 + try {
2204 + throw Error();
2205 + } catch (x) {
2206 + control = x;
2207 + }
2208 +
2209 + fn();
2210 + }
2211 + } catch (sample) {
2212 + // This is inlined manually because closure doesn't do it for us.
2213 + if (sample && control && typeof sample.stack === 'string') {
2214 + // This extracts the first frame from the sample that isn't also in the control.
2215 + // Skipping one frame that we assume is the frame that calls the two.
2216 + var sampleLines = sample.stack.split('\n');
2217 + var controlLines = control.stack.split('\n');
2218 + var s = sampleLines.length - 1;
2219 + var c = controlLines.length - 1;
2220 +
2221 + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2222 + // We expect at least one stack frame to be shared.
2223 + // Typically this will be the root most one. However, stack frames may be
2224 + // cut off due to maximum stack limits. In this case, one maybe cut off
2225 + // earlier than the other. We assume that the sample is longer or the same
2226 + // and there for cut off earlier. So we should find the root most frame in
2227 + // the sample somewhere in the control.
2228 + c--;
2229 + }
2230 +
2231 + for (; s >= 1 && c >= 0; s--, c--) {
2232 + // Next we find the first one that isn't the same which should be the
2233 + // frame that called our sample function and the control.
2234 + if (sampleLines[s] !== controlLines[c]) {
2235 + // In V8, the first line is describing the message but other VMs don't.
2236 + // If we're about to return the first line, and the control is also on the same
2237 + // line, that's a pretty good indicator that our sample threw at same line as
2238 + // the control. I.e. before we entered the sample frame. So we ignore this result.
2239 + // This can happen if you passed a class to function component, or non-function.
2240 + if (s !== 1 || c !== 1) {
2241 + do {
2242 + s--;
2243 + c--; // We may still have similar intermediate frames from the construct call.
2244 + // The next one that isn't the same should be our match though.
2245 +
2246 + if (c < 0 || sampleLines[s] !== controlLines[c]) {
2247 + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
2248 + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
2249 + // but we have a user-provided "displayName"
2250 + // splice it in to make the stack more readable.
2251 +
2252 +
2253 + if (fn.displayName && _frame.includes('<anonymous>')) {
2254 + _frame = _frame.replace('<anonymous>', fn.displayName);
2255 + }
2256 +
2257 + {
2258 + if (typeof fn === 'function') {
2259 + componentFrameCache.set(fn, _frame);
2260 + }
2261 + } // Return the line we found.
2262 +
2263 +
2264 + return _frame;
2265 + }
2266 + } while (s >= 1 && c >= 0);
2267 + }
2268 +
2269 + break;
2270 + }
2271 + }
2272 + }
2273 + } finally {
2274 + reentry = false;
2275 +
2276 + {
2277 + ReactCurrentDispatcher.current = previousDispatcher;
2278 + reenableLogs();
2279 + }
2280 +
2281 + Error.prepareStackTrace = previousPrepareStackTrace;
2282 + } // Fallback to just using the name if we couldn't make it throw.
2283 +
2284 +
2285 + var name = fn ? fn.displayName || fn.name : '';
2286 + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2287 +
2288 + {
2289 + if (typeof fn === 'function') {
2290 + componentFrameCache.set(fn, syntheticFrame);
2291 + }
2292 + }
2293 +
2294 + return syntheticFrame;
2295 +}
2296 +function describeFunctionComponentFrame(fn, source, ownerFn) {
2297 + {
2298 + return describeNativeComponentFrame(fn, false);
2299 + }
2300 +}
2301 +
2302 +function shouldConstruct(Component) {
2303 + var prototype = Component.prototype;
2304 + return !!(prototype && prototype.isReactComponent);
2305 +}
2306 +
2307 +function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2308 +
2309 + if (type == null) {
2310 + return '';
2311 + }
2312 +
2313 + if (typeof type === 'function') {
2314 + {
2315 + return describeNativeComponentFrame(type, shouldConstruct(type));
2316 + }
2317 + }
2318 +
2319 + if (typeof type === 'string') {
2320 + return describeBuiltInComponentFrame(type);
2321 + }
2322 +
2323 + switch (type) {
2324 + case REACT_SUSPENSE_TYPE:
2325 + return describeBuiltInComponentFrame('Suspense');
2326 +
2327 + case REACT_SUSPENSE_LIST_TYPE:
2328 + return describeBuiltInComponentFrame('SuspenseList');
2329 + }
2330 +
2331 + if (typeof type === 'object') {
2332 + switch (type.$$typeof) {
2333 + case REACT_FORWARD_REF_TYPE:
2334 + return describeFunctionComponentFrame(type.render);
2335 +
2336 + case REACT_MEMO_TYPE:
2337 + // Memo may contain any component type so we recursively resolve it.
2338 + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2339 +
2340 + case REACT_LAZY_TYPE:
2341 + {
2342 + var lazyComponent = type;
2343 + var payload = lazyComponent._payload;
2344 + var init = lazyComponent._init;
2345 +
2346 + try {
2347 + // Lazy may contain any component type so we recursively resolve it.
2348 + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2349 + } catch (x) {}
2350 + }
2351 + }
2352 + }
2353 +
2354 + return '';
2355 +}
2356 +
2357 +var hasOwnProperty = Object.prototype.hasOwnProperty;
2358 +
2359 +var loggedTypeFailures = {};
2360 +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2361 +
2362 +function setCurrentlyValidatingElement(element) {
2363 + {
2364 + if (element) {
2365 + var owner = element._owner;
2366 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2367 + ReactDebugCurrentFrame.setExtraStackFrame(stack);
2368 + } else {
2369 + ReactDebugCurrentFrame.setExtraStackFrame(null);
2370 + }
2371 + }
2372 +}
2373 +
2374 +function checkPropTypes(typeSpecs, values, location, componentName, element) {
2375 + {
2376 + // $FlowFixMe This is okay but Flow doesn't know it.
2377 + var has = Function.call.bind(hasOwnProperty);
2378 +
2379 + for (var typeSpecName in typeSpecs) {
2380 + if (has(typeSpecs, typeSpecName)) {
2381 + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2382 + // fail the render phase where it didn't fail before. So we log it.
2383 + // After these have been cleaned up, we'll let them throw.
2384 +
2385 + try {
2386 + // This is intentionally an invariant that gets caught. It's the same
2387 + // behavior as without this statement except with a better message.
2388 + if (typeof typeSpecs[typeSpecName] !== 'function') {
2389 + // eslint-disable-next-line react-internal/prod-error-codes
2390 + var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2391 + err.name = 'Invariant Violation';
2392 + throw err;
2393 + }
2394 +
2395 + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2396 + } catch (ex) {
2397 + error$1 = ex;
2398 + }
2399 +
2400 + if (error$1 && !(error$1 instanceof Error)) {
2401 + setCurrentlyValidatingElement(element);
2402 +
2403 + error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2404 +
2405 + setCurrentlyValidatingElement(null);
2406 + }
2407 +
2408 + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2409 + // Only monitor this failure once because there tends to be a lot of the
2410 + // same error.
2411 + loggedTypeFailures[error$1.message] = true;
2412 + setCurrentlyValidatingElement(element);
2413 +
2414 + error('Failed %s type: %s', location, error$1.message);
2415 +
2416 + setCurrentlyValidatingElement(null);
2417 + }
2418 + }
2419 + }
2420 + }
2421 +}
2422 +
2423 +var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
2424 +
2425 +function isArray(a) {
2426 + return isArrayImpl(a);
2427 +}
2428 +
2429 +/*
2430 + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
2431 + * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
2432 + *
2433 + * The functions in this module will throw an easier-to-understand,
2434 + * easier-to-debug exception with a clear errors message message explaining the
2435 + * problem. (Instead of a confusing exception thrown inside the implementation
2436 + * of the `value` object).
2437 + */
2438 +// $FlowFixMe only called in DEV, so void return is not possible.
2439 +function typeName(value) {
2440 + {
2441 + // toStringTag is needed for namespaced types like Temporal.Instant
2442 + var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
2443 + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
2444 + return type;
2445 + }
2446 +} // $FlowFixMe only called in DEV, so void return is not possible.
2447 +
2448 +
2449 +function willCoercionThrow(value) {
2450 + {
2451 + try {
2452 + testStringCoercion(value);
2453 + return false;
2454 + } catch (e) {
2455 + return true;
2456 + }
2457 + }
2458 +}
2459 +
2460 +function testStringCoercion(value) {
2461 + // If you ended up here by following an exception call stack, here's what's
2462 + // happened: you supplied an object or symbol value to React (as a prop, key,
2463 + // DOM attribute, CSS property, string ref, etc.) and when React tried to
2464 + // coerce it to a string using `'' + value`, an exception was thrown.
2465 + //
2466 + // The most common types that will cause this exception are `Symbol` instances
2467 + // and Temporal objects like `Temporal.Instant`. But any object that has a
2468 + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
2469 + // exception. (Library authors do this to prevent users from using built-in
2470 + // numeric operators like `+` or comparison operators like `>=` because custom
2471 + // methods are needed to perform accurate arithmetic or comparison.)
2472 + //
2473 + // To fix the problem, coerce this object or symbol value to a string before
2474 + // passing it to React. The most reliable way is usually `String(value)`.
2475 + //
2476 + // To find which value is throwing, check the browser or debugger console.
2477 + // Before this exception was thrown, there should be `console.error` output
2478 + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
2479 + // problem and how that type was used: key, atrribute, input value prop, etc.
2480 + // In most cases, this console output also shows the component and its
2481 + // ancestor components where the exception happened.
2482 + //
2483 + // eslint-disable-next-line react-internal/safe-string-coercion
2484 + return '' + value;
2485 +}
2486 +function checkKeyStringCoercion(value) {
2487 + {
2488 + if (willCoercionThrow(value)) {
2489 + error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
2490 +
2491 + return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
2492 + }
2493 + }
2494 +}
2495 +
2496 +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2497 +var RESERVED_PROPS = {
2498 + key: true,
2499 + ref: true,
2500 + __self: true,
2501 + __source: true
2502 +};
2503 +var specialPropKeyWarningShown;
2504 +var specialPropRefWarningShown;
2505 +var didWarnAboutStringRefs;
2506 +
2507 +{
2508 + didWarnAboutStringRefs = {};
2509 +}
2510 +
2511 +function hasValidRef(config) {
2512 + {
2513 + if (hasOwnProperty.call(config, 'ref')) {
2514 + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
2515 +
2516 + if (getter && getter.isReactWarning) {
2517 + return false;
2518 + }
2519 + }
2520 + }
2521 +
2522 + return config.ref !== undefined;
2523 +}
2524 +
2525 +function hasValidKey(config) {
2526 + {
2527 + if (hasOwnProperty.call(config, 'key')) {
2528 + var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
2529 +
2530 + if (getter && getter.isReactWarning) {
2531 + return false;
2532 + }
2533 + }
2534 + }
2535 +
2536 + return config.key !== undefined;
2537 +}
2538 +
2539 +function warnIfStringRefCannotBeAutoConverted(config, self) {
2540 + {
2541 + if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2542 + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2543 +
2544 + if (!didWarnAboutStringRefs[componentName]) {
2545 + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2546 +
2547 + didWarnAboutStringRefs[componentName] = true;
2548 + }
2549 + }
2550 + }
2551 +}
2552 +
2553 +function defineKeyPropWarningGetter(props, displayName) {
2554 + {
2555 + var warnAboutAccessingKey = function () {
2556 + if (!specialPropKeyWarningShown) {
2557 + specialPropKeyWarningShown = true;
2558 +
2559 + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
2560 + }
2561 + };
2562 +
2563 + warnAboutAccessingKey.isReactWarning = true;
2564 + Object.defineProperty(props, 'key', {
2565 + get: warnAboutAccessingKey,
2566 + configurable: true
2567 + });
2568 + }
2569 +}
2570 +
2571 +function defineRefPropWarningGetter(props, displayName) {
2572 + {
2573 + var warnAboutAccessingRef = function () {
2574 + if (!specialPropRefWarningShown) {
2575 + specialPropRefWarningShown = true;
2576 +
2577 + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
2578 + }
2579 + };
2580 +
2581 + warnAboutAccessingRef.isReactWarning = true;
2582 + Object.defineProperty(props, 'ref', {
2583 + get: warnAboutAccessingRef,
2584 + configurable: true
2585 + });
2586 + }
2587 +}
2588 +/**
2589 + * Factory method to create a new React element. This no longer adheres to
2590 + * the class pattern, so do not use new to call it. Also, instanceof check
2591 + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2592 + * if something is a React Element.
2593 + *
2594 + * @param {*} type
2595 + * @param {*} props
2596 + * @param {*} key
2597 + * @param {string|object} ref
2598 + * @param {*} owner
2599 + * @param {*} self A *temporary* helper to detect places where `this` is
2600 + * different from the `owner` when React.createElement is called, so that we
2601 + * can warn. We want to get rid of owner and replace string `ref`s with arrow
2602 + * functions, and as long as `this` and owner are the same, there will be no
2603 + * change in behavior.
2604 + * @param {*} source An annotation object (added by a transpiler or otherwise)
2605 + * indicating filename, line number, and/or other information.
2606 + * @internal
2607 + */
2608 +
2609 +
2610 +var ReactElement = function (type, key, ref, self, source, owner, props) {
2611 + var element = {
2612 + // This tag allows us to uniquely identify this as a React Element
2613 + $$typeof: REACT_ELEMENT_TYPE,
2614 + // Built-in properties that belong on the element
2615 + type: type,
2616 + key: key,
2617 + ref: ref,
2618 + props: props,
2619 + // Record the component responsible for creating this element.
2620 + _owner: owner
2621 + };
2622 +
2623 + {
2624 + // The validation flag is currently mutative. We put it on
2625 + // an external backing store so that we can freeze the whole object.
2626 + // This can be replaced with a WeakMap once they are implemented in
2627 + // commonly used development environments.
2628 + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2629 + // the validation flag non-enumerable (where possible, which should
2630 + // include every environment we run tests in), so the test framework
2631 + // ignores it.
2632 +
2633 + Object.defineProperty(element._store, 'validated', {
2634 + configurable: false,
2635 + enumerable: false,
2636 + writable: true,
2637 + value: false
2638 + }); // self and source are DEV only properties.
2639 +
2640 + Object.defineProperty(element, '_self', {
2641 + configurable: false,
2642 + enumerable: false,
2643 + writable: false,
2644 + value: self
2645 + }); // Two elements created in two different places should be considered
2646 + // equal for testing purposes and therefore we hide it from enumeration.
2647 +
2648 + Object.defineProperty(element, '_source', {
2649 + configurable: false,
2650 + enumerable: false,
2651 + writable: false,
2652 + value: source
2653 + });
2654 +
2655 + if (Object.freeze) {
2656 + Object.freeze(element.props);
2657 + Object.freeze(element);
2658 + }
2659 + }
2660 +
2661 + return element;
2662 +};
2663 +/**
2664 + * https://github.com/reactjs/rfcs/pull/107
2665 + * @param {*} type
2666 + * @param {object} props
2667 + * @param {string} key
2668 + */
2669 +
2670 +function jsxDEV(type, config, maybeKey, source, self) {
2671 + {
2672 + var propName; // Reserved names are extracted
2673 +
2674 + var props = {};
2675 + var key = null;
2676 + var ref = null; // Currently, key can be spread in as a prop. This causes a potential
2677 + // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
2678 + // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
2679 + // but as an intermediary step, we will use jsxDEV for everything except
2680 + // <div {...props} key="Hi" />, because we aren't currently able to tell if
2681 + // key is explicitly declared to be undefined or not.
2682 +
2683 + if (maybeKey !== undefined) {
2684 + {
2685 + checkKeyStringCoercion(maybeKey);
2686 + }
2687 +
2688 + key = '' + maybeKey;
2689 + }
2690 +
2691 + if (hasValidKey(config)) {
2692 + {
2693 + checkKeyStringCoercion(config.key);
2694 + }
2695 +
2696 + key = '' + config.key;
2697 + }
2698 +
2699 + if (hasValidRef(config)) {
2700 + ref = config.ref;
2701 + warnIfStringRefCannotBeAutoConverted(config, self);
2702 + } // Remaining properties are added to a new props object
2703 +
2704 +
2705 + for (propName in config) {
2706 + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2707 + props[propName] = config[propName];
2708 + }
2709 + } // Resolve default props
2710 +
2711 +
2712 + if (type && type.defaultProps) {
2713 + var defaultProps = type.defaultProps;
2714 +
2715 + for (propName in defaultProps) {
2716 + if (props[propName] === undefined) {
2717 + props[propName] = defaultProps[propName];
2718 + }
2719 + }
2720 + }
2721 +
2722 + if (key || ref) {
2723 + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2724 +
2725 + if (key) {
2726 + defineKeyPropWarningGetter(props, displayName);
2727 + }
2728 +
2729 + if (ref) {
2730 + defineRefPropWarningGetter(props, displayName);
2731 + }
2732 + }
2733 +
2734 + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2735 + }
2736 +}
2737 +
2738 +var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2739 +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2740 +
2741 +function setCurrentlyValidatingElement$1(element) {
2742 + {
2743 + if (element) {
2744 + var owner = element._owner;
2745 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2746 + ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2747 + } else {
2748 + ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2749 + }
2750 + }
2751 +}
2752 +
2753 +var propTypesMisspellWarningShown;
2754 +
2755 +{
2756 + propTypesMisspellWarningShown = false;
2757 +}
2758 +/**
2759 + * Verifies the object is a ReactElement.
2760 + * See https://reactjs.org/docs/react-api.html#isvalidelement
2761 + * @param {?object} object
2762 + * @return {boolean} True if `object` is a ReactElement.
2763 + * @final
2764 + */
2765 +
2766 +
2767 +function isValidElement(object) {
2768 + {
2769 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2770 + }
2771 +}
2772 +
2773 +function getDeclarationErrorAddendum() {
2774 + {
2775 + if (ReactCurrentOwner$1.current) {
2776 + var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2777 +
2778 + if (name) {
2779 + return '\n\nCheck the render method of `' + name + '`.';
2780 + }
2781 + }
2782 +
2783 + return '';
2784 + }
2785 +}
2786 +
2787 +function getSourceInfoErrorAddendum(source) {
2788 + {
2789 + if (source !== undefined) {
2790 + var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2791 + var lineNumber = source.lineNumber;
2792 + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2793 + }
2794 +
2795 + return '';
2796 + }
2797 +}
2798 +/**
2799 + * Warn if there's no key explicitly set on dynamic arrays of children or
2800 + * object keys are not valid. This allows us to keep track of children between
2801 + * updates.
2802 + */
2803 +
2804 +
2805 +var ownerHasKeyUseWarning = {};
2806 +
2807 +function getCurrentComponentErrorInfo(parentType) {
2808 + {
2809 + var info = getDeclarationErrorAddendum();
2810 +
2811 + if (!info) {
2812 + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2813 +
2814 + if (parentName) {
2815 + info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2816 + }
2817 + }
2818 +
2819 + return info;
2820 + }
2821 +}
2822 +/**
2823 + * Warn if the element doesn't have an explicit key assigned to it.
2824 + * This element is in an array. The array could grow and shrink or be
2825 + * reordered. All children that haven't already been validated are required to
2826 + * have a "key" property assigned to it. Error statuses are cached so a warning
2827 + * will only be shown once.
2828 + *
2829 + * @internal
2830 + * @param {ReactElement} element Element that requires a key.
2831 + * @param {*} parentType element's parent's type.
2832 + */
2833 +
2834 +
2835 +function validateExplicitKey(element, parentType) {
2836 + {
2837 + if (!element._store || element._store.validated || element.key != null) {
2838 + return;
2839 + }
2840 +
2841 + element._store.validated = true;
2842 + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2843 +
2844 + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2845 + return;
2846 + }
2847 +
2848 + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2849 + // property, it may be the creator of the child that's responsible for
2850 + // assigning it a key.
2851 +
2852 + var childOwner = '';
2853 +
2854 + if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2855 + // Give the component that originally created this child.
2856 + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2857 + }
2858 +
2859 + setCurrentlyValidatingElement$1(element);
2860 +
2861 + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2862 +
2863 + setCurrentlyValidatingElement$1(null);
2864 + }
2865 +}
2866 +/**
2867 + * Ensure that every element either is passed in a static location, in an
2868 + * array with an explicit keys property defined, or in an object literal
2869 + * with valid key property.
2870 + *
2871 + * @internal
2872 + * @param {ReactNode} node Statically passed child of any type.
2873 + * @param {*} parentType node's parent's type.
2874 + */
2875 +
2876 +
2877 +function validateChildKeys(node, parentType) {
2878 + {
2879 + if (typeof node !== 'object') {
2880 + return;
2881 + }
2882 +
2883 + if (isArray(node)) {
2884 + for (var i = 0; i < node.length; i++) {
2885 + var child = node[i];
2886 +
2887 + if (isValidElement(child)) {
2888 + validateExplicitKey(child, parentType);
2889 + }
2890 + }
2891 + } else if (isValidElement(node)) {
2892 + // This element was passed in a valid location.
2893 + if (node._store) {
2894 + node._store.validated = true;
2895 + }
2896 + } else if (node) {
2897 + var iteratorFn = getIteratorFn(node);
2898 +
2899 + if (typeof iteratorFn === 'function') {
2900 + // Entry iterators used to provide implicit keys,
2901 + // but now we print a separate warning for them later.
2902 + if (iteratorFn !== node.entries) {
2903 + var iterator = iteratorFn.call(node);
2904 + var step;
2905 +
2906 + while (!(step = iterator.next()).done) {
2907 + if (isValidElement(step.value)) {
2908 + validateExplicitKey(step.value, parentType);
2909 + }
2910 + }
2911 + }
2912 + }
2913 + }
2914 + }
2915 +}
2916 +/**
2917 + * Given an element, validate that its props follow the propTypes definition,
2918 + * provided by the type.
2919 + *
2920 + * @param {ReactElement} element
2921 + */
2922 +
2923 +
2924 +function validatePropTypes(element) {
2925 + {
2926 + var type = element.type;
2927 +
2928 + if (type === null || type === undefined || typeof type === 'string') {
2929 + return;
2930 + }
2931 +
2932 + var propTypes;
2933 +
2934 + if (typeof type === 'function') {
2935 + propTypes = type.propTypes;
2936 + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2937 + // Inner props are checked in the reconciler.
2938 + type.$$typeof === REACT_MEMO_TYPE)) {
2939 + propTypes = type.propTypes;
2940 + } else {
2941 + return;
2942 + }
2943 +
2944 + if (propTypes) {
2945 + // Intentionally inside to avoid triggering lazy initializers:
2946 + var name = getComponentNameFromType(type);
2947 + checkPropTypes(propTypes, element.props, 'prop', name, element);
2948 + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2949 + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2950 +
2951 + var _name = getComponentNameFromType(type);
2952 +
2953 + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2954 + }
2955 +
2956 + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2957 + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2958 + }
2959 + }
2960 +}
2961 +/**
2962 + * Given a fragment, validate that it can only be provided with fragment props
2963 + * @param {ReactElement} fragment
2964 + */
2965 +
2966 +
2967 +function validateFragmentProps(fragment) {
2968 + {
2969 + var keys = Object.keys(fragment.props);
2970 +
2971 + for (var i = 0; i < keys.length; i++) {
2972 + var key = keys[i];
2973 +
2974 + if (key !== 'children' && key !== 'key') {
2975 + setCurrentlyValidatingElement$1(fragment);
2976 +
2977 + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2978 +
2979 + setCurrentlyValidatingElement$1(null);
2980 + break;
2981 + }
2982 + }
2983 +
2984 + if (fragment.ref !== null) {
2985 + setCurrentlyValidatingElement$1(fragment);
2986 +
2987 + error('Invalid attribute `ref` supplied to `React.Fragment`.');
2988 +
2989 + setCurrentlyValidatingElement$1(null);
2990 + }
2991 + }
2992 +}
2993 +
2994 +var didWarnAboutKeySpread = {};
2995 +function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
2996 + {
2997 + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2998 + // succeed and there will likely be errors in render.
2999 +
3000 + if (!validType) {
3001 + var info = '';
3002 +
3003 + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
3004 + info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
3005 + }
3006 +
3007 + var sourceInfo = getSourceInfoErrorAddendum(source);
3008 +
3009 + if (sourceInfo) {
3010 + info += sourceInfo;
3011 + } else {
3012 + info += getDeclarationErrorAddendum();
3013 + }
3014 +
3015 + var typeString;
3016 +
3017 + if (type === null) {
3018 + typeString = 'null';
3019 + } else if (isArray(type)) {
3020 + typeString = 'array';
3021 + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
3022 + typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
3023 + info = ' Did you accidentally export a JSX literal instead of a component?';
3024 + } else {
3025 + typeString = typeof type;
3026 + }
3027 +
3028 + error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
3029 + }
3030 +
3031 + var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
3032 + // TODO: Drop this when these are no longer allowed as the type argument.
3033 +
3034 + if (element == null) {
3035 + return element;
3036 + } // Skip key warning if the type isn't valid since our key validation logic
3037 + // doesn't expect a non-string/function type and can throw confusing errors.
3038 + // We don't want exception behavior to differ between dev and prod.
3039 + // (Rendering will throw with a helpful message and as soon as the type is
3040 + // fixed, the key warnings will appear.)
3041 +
3042 +
3043 + if (validType) {
3044 + var children = props.children;
3045 +
3046 + if (children !== undefined) {
3047 + if (isStaticChildren) {
3048 + if (isArray(children)) {
3049 + for (var i = 0; i < children.length; i++) {
3050 + validateChildKeys(children[i], type);
3051 + }
3052 +
3053 + if (Object.freeze) {
3054 + Object.freeze(children);
3055 + }
3056 + } else {
3057 + error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
3058 + }
3059 + } else {
3060 + validateChildKeys(children, type);
3061 + }
3062 + }
3063 + }
3064 +
3065 + {
3066 + if (hasOwnProperty.call(props, 'key')) {
3067 + var componentName = getComponentNameFromType(type);
3068 + var keys = Object.keys(props).filter(function (k) {
3069 + return k !== 'key';
3070 + });
3071 + var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
3072 +
3073 + if (!didWarnAboutKeySpread[componentName + beforeExample]) {
3074 + var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
3075 +
3076 + error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
3077 +
3078 + didWarnAboutKeySpread[componentName + beforeExample] = true;
3079 + }
3080 + }
3081 + }
3082 +
3083 + if (type === REACT_FRAGMENT_TYPE) {
3084 + validateFragmentProps(element);
3085 + } else {
3086 + validatePropTypes(element);
3087 + }
3088 +
3089 + return element;
3090 + }
3091 +} // These two functions exist to still get child warnings in dev
3092 +// even with the prod transform. This means that jsxDEV is purely
3093 +// opt-in behavior for better messages but that we won't stop
3094 +// giving you warnings if you use production apis.
3095 +
3096 +function jsxWithValidationStatic(type, props, key) {
3097 + {
3098 + return jsxWithValidation(type, props, key, true);
3099 + }
3100 +}
3101 +function jsxWithValidationDynamic(type, props, key) {
3102 + {
3103 + return jsxWithValidation(type, props, key, false);
3104 + }
3105 +}
3106 +
3107 +var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
3108 +// for now we can ship identical prod functions
3109 +
3110 +var jsxs = jsxWithValidationStatic ;
3111 +
3112 +exports.Fragment = REACT_FRAGMENT_TYPE;
3113 +exports.jsx = jsx;
3114 +exports.jsxs = jsxs;
3115 + })();
3116 +}
3117 +
3118 +
3119 +/***/ }),
3120 +
3121 +/***/ "../node_modules/react/jsx-runtime.js":
3122 +/*!********************************************!*\
3123 + !*** ../node_modules/react/jsx-runtime.js ***!
3124 + \********************************************/
3125 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3126 +
3127 +"use strict";
3128 +
3129 +
3130 +if (false) {} else {
3131 + module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "../node_modules/react/cjs/react-jsx-runtime.development.js");
3132 +}
3133 +
3134 +
3135 +/***/ }),
3136 +
3137 +/***/ "react":
3138 +/*!************************!*\
3139 + !*** external "React" ***!
3140 + \************************/
1931 3141 /***/ ((module) => {
1932 3142
1933 3143 "use strict";
1934 -module.exports = elementorV2.query;
3144 +module.exports = React;
1935 3145
1936 3146 /***/ }),
1937 3147
1938 3148 /***/ "@elementor/ui":
@@ -1956,17 +3166,5110 @@
1956 3166 module.exports = wp.i18n;
1957 3167
1958 3168 /***/ }),
1959 3169
1960 -/***/ "react":
1961 -/*!************************!*\
1962 - !*** external "React" ***!
1963 - \************************/
3170 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
3171 +/*!******************************************************************!*\
3172 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
3173 + \******************************************************************/
1964 3174 /***/ ((module) => {
1965 3175
3176 +function _arrayLikeToArray(arr, len) {
3177 + if (len == null || len > arr.length) len = arr.length;
3178 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
3179 + return arr2;
3180 +}
3181 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3182 +
3183 +/***/ }),
3184 +
3185 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
3186 +/*!****************************************************************!*\
3187 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
3188 + \****************************************************************/
3189 +/***/ ((module) => {
3190 +
3191 +function _arrayWithHoles(arr) {
3192 + if (Array.isArray(arr)) return arr;
3193 +}
3194 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
3195 +
3196 +/***/ }),
3197 +
3198 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
3199 +/*!*********************************************************!*\
3200 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
3201 + \*********************************************************/
3202 +/***/ ((module) => {
3203 +
3204 +function _extends() {
3205 + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
3206 + for (var i = 1; i < arguments.length; i++) {
3207 + var source = arguments[i];
3208 + for (var key in source) {
3209 + if (Object.prototype.hasOwnProperty.call(source, key)) {
3210 + target[key] = source[key];
3211 + }
3212 + }
3213 + }
3214 + return target;
3215 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
3216 + return _extends.apply(this, arguments);
3217 +}
3218 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
3219 +
3220 +/***/ }),
3221 +
3222 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
3223 +/*!***********************************************************************!*\
3224 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
3225 + \***********************************************************************/
3226 +/***/ ((module) => {
3227 +
3228 +function _interopRequireDefault(obj) {
3229 + return obj && obj.__esModule ? obj : {
3230 + "default": obj
3231 + };
3232 +}
3233 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
3234 +
3235 +/***/ }),
3236 +
3237 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
3238 +/*!**********************************************************************!*\
3239 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
3240 + \**********************************************************************/
3241 +/***/ ((module) => {
3242 +
3243 +function _iterableToArrayLimit(r, l) {
3244 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3245 + if (null != t) {
3246 + var e,
3247 + n,
3248 + i,
3249 + u,
3250 + a = [],
3251 + f = !0,
3252 + o = !1;
3253 + try {
3254 + if (i = (t = t.call(r)).next, 0 === l) {
3255 + if (Object(t) !== t) return;
3256 + f = !1;
3257 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
3258 + } catch (r) {
3259 + o = !0, n = r;
3260 + } finally {
3261 + try {
3262 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
3263 + } finally {
3264 + if (o) throw n;
3265 + }
3266 + }
3267 + return a;
3268 + }
3269 +}
3270 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
3271 +
3272 +/***/ }),
3273 +
3274 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
3275 +/*!*****************************************************************!*\
3276 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
3277 + \*****************************************************************/
3278 +/***/ ((module) => {
3279 +
3280 +function _nonIterableRest() {
3281 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3282 +}
3283 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
3284 +
3285 +/***/ }),
3286 +
3287 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
3288 +/*!***************************************************************!*\
3289 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
3290 + \***************************************************************/
3291 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3292 +
3293 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
3294 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
3295 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
3296 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
3297 +function _slicedToArray(arr, i) {
3298 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3299 +}
3300 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3301 +
3302 +/***/ }),
3303 +
3304 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3305 +/*!********************************************************!*\
3306 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3307 + \********************************************************/
3308 +/***/ ((module) => {
3309 +
3310 +function _typeof(o) {
3311 + "@babel/helpers - typeof";
3312 +
3313 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3314 + return typeof o;
3315 + } : function (o) {
3316 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3317 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
3318 +}
3319 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3320 +
3321 +/***/ }),
3322 +
3323 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3324 +/*!****************************************************************************!*\
3325 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3326 + \****************************************************************************/
3327 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3328 +
3329 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3330 +function _unsupportedIterableToArray(o, minLen) {
3331 + if (!o) return;
3332 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
3333 + var n = Object.prototype.toString.call(o).slice(8, -1);
3334 + if (n === "Object" && o.constructor) n = o.constructor.name;
3335 + if (n === "Map" || n === "Set") return Array.from(o);
3336 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
3337 +}
3338 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3339 +
3340 +/***/ }),
3341 +
3342 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
3343 +/*!**************************************************************************!*\
3344 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
3345 + \**************************************************************************/
3346 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3347 +
1966 3348 "use strict";
1967 -module.exports = React;
1968 3349
3350 +var __defProp = Object.defineProperty;
3351 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3352 +var __getOwnPropNames = Object.getOwnPropertyNames;
3353 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3354 +var __export = (target, all) => {
3355 + for (var name in all)
3356 + __defProp(target, name, { get: all[name], enumerable: true });
3357 +};
3358 +var __copyProps = (to, from, except, desc) => {
3359 + if (from && typeof from === "object" || typeof from === "function") {
3360 + for (let key of __getOwnPropNames(from))
3361 + if (!__hasOwnProp.call(to, key) && key !== except)
3362 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3363 + }
3364 + return to;
3365 +};
3366 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3367 +
3368 +// src/focusManager.ts
3369 +var focusManager_exports = {};
3370 +__export(focusManager_exports, {
3371 + FocusManager: () => FocusManager,
3372 + focusManager: () => focusManager
3373 +});
3374 +module.exports = __toCommonJS(focusManager_exports);
3375 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3376 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3377 +var FocusManager = class extends import_subscribable.Subscribable {
3378 + #focused;
3379 + #cleanup;
3380 + #setup;
3381 + constructor() {
3382 + super();
3383 + this.#setup = (onFocus) => {
3384 + if (!import_utils.isServer && window.addEventListener) {
3385 + const listener = () => onFocus();
3386 + window.addEventListener("visibilitychange", listener, false);
3387 + return () => {
3388 + window.removeEventListener("visibilitychange", listener);
3389 + };
3390 + }
3391 + return;
3392 + };
3393 + }
3394 + onSubscribe() {
3395 + if (!this.#cleanup) {
3396 + this.setEventListener(this.#setup);
3397 + }
3398 + }
3399 + onUnsubscribe() {
3400 + if (!this.hasListeners()) {
3401 + this.#cleanup?.();
3402 + this.#cleanup = void 0;
3403 + }
3404 + }
3405 + setEventListener(setup) {
3406 + this.#setup = setup;
3407 + this.#cleanup?.();
3408 + this.#cleanup = setup((focused) => {
3409 + if (typeof focused === "boolean") {
3410 + this.setFocused(focused);
3411 + } else {
3412 + this.onFocus();
3413 + }
3414 + });
3415 + }
3416 + setFocused(focused) {
3417 + const changed = this.#focused !== focused;
3418 + if (changed) {
3419 + this.#focused = focused;
3420 + this.onFocus();
3421 + }
3422 + }
3423 + onFocus() {
3424 + const isFocused = this.isFocused();
3425 + this.listeners.forEach((listener) => {
3426 + listener(isFocused);
3427 + });
3428 + }
3429 + isFocused() {
3430 + if (typeof this.#focused === "boolean") {
3431 + return this.#focused;
3432 + }
3433 + return globalThis.document?.visibilityState !== "hidden";
3434 + }
3435 +};
3436 +var focusManager = new FocusManager();
3437 +// Annotate the CommonJS export names for ESM import in node:
3438 +0 && (0);
3439 +//# sourceMappingURL=focusManager.cjs.map
3440 +
3441 +/***/ }),
3442 +
3443 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
3444 +/*!***********************************************************************!*\
3445 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
3446 + \***********************************************************************/
3447 +/***/ ((module) => {
3448 +
3449 +"use strict";
3450 +
3451 +var __defProp = Object.defineProperty;
3452 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3453 +var __getOwnPropNames = Object.getOwnPropertyNames;
3454 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3455 +var __export = (target, all) => {
3456 + for (var name in all)
3457 + __defProp(target, name, { get: all[name], enumerable: true });
3458 +};
3459 +var __copyProps = (to, from, except, desc) => {
3460 + if (from && typeof from === "object" || typeof from === "function") {
3461 + for (let key of __getOwnPropNames(from))
3462 + if (!__hasOwnProp.call(to, key) && key !== except)
3463 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3464 + }
3465 + return to;
3466 +};
3467 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3468 +
3469 +// src/hydration.ts
3470 +var hydration_exports = {};
3471 +__export(hydration_exports, {
3472 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
3473 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
3474 + dehydrate: () => dehydrate,
3475 + hydrate: () => hydrate
3476 +});
3477 +module.exports = __toCommonJS(hydration_exports);
3478 +function defaultTransformerFn(data) {
3479 + return data;
3480 +}
3481 +function dehydrateMutation(mutation) {
3482 + return {
3483 + mutationKey: mutation.options.mutationKey,
3484 + state: mutation.state,
3485 + ...mutation.options.scope && { scope: mutation.options.scope },
3486 + ...mutation.meta && { meta: mutation.meta }
3487 + };
3488 +}
3489 +function dehydrateQuery(query, serializeData) {
3490 + return {
3491 + state: {
3492 + ...query.state,
3493 + ...query.state.data !== void 0 && {
3494 + data: serializeData(query.state.data)
3495 + }
3496 + },
3497 + queryKey: query.queryKey,
3498 + queryHash: query.queryHash,
3499 + ...query.state.status === "pending" && {
3500 + promise: query.promise?.then(serializeData).catch((error) => {
3501 + if (true) {
3502 + console.error(
3503 + `A query that was dehydrated as pending ended up rejecting. [${query.queryHash}]: ${error}; The error will be redacted in production builds`
3504 + );
3505 + }
3506 + return Promise.reject(new Error("redacted"));
3507 + })
3508 + },
3509 + ...query.meta && { meta: query.meta }
3510 + };
3511 +}
3512 +function defaultShouldDehydrateMutation(mutation) {
3513 + return mutation.state.isPaused;
3514 +}
3515 +function defaultShouldDehydrateQuery(query) {
3516 + return query.state.status === "success";
3517 +}
3518 +function dehydrate(client, options = {}) {
3519 + const filterMutation = options.shouldDehydrateMutation ?? client.getDefaultOptions().dehydrate?.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
3520 + const mutations = client.getMutationCache().getAll().flatMap(
3521 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
3522 + );
3523 + const filterQuery = options.shouldDehydrateQuery ?? client.getDefaultOptions().dehydrate?.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
3524 + const serializeData = options.serializeData ?? client.getDefaultOptions().dehydrate?.serializeData ?? defaultTransformerFn;
3525 + const queries = client.getQueryCache().getAll().flatMap(
3526 + (query) => filterQuery(query) ? [dehydrateQuery(query, serializeData)] : []
3527 + );
3528 + return { mutations, queries };
3529 +}
3530 +function hydrate(client, dehydratedState, options) {
3531 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
3532 + return;
3533 + }
3534 + const mutationCache = client.getMutationCache();
3535 + const queryCache = client.getQueryCache();
3536 + const deserializeData = options?.defaultOptions?.deserializeData ?? client.getDefaultOptions().hydrate?.deserializeData ?? defaultTransformerFn;
3537 + const mutations = dehydratedState.mutations || [];
3538 + const queries = dehydratedState.queries || [];
3539 + mutations.forEach(({ state, ...mutationOptions }) => {
3540 + mutationCache.build(
3541 + client,
3542 + {
3543 + ...client.getDefaultOptions().hydrate?.mutations,
3544 + ...options?.defaultOptions?.mutations,
3545 + ...mutationOptions
3546 + },
3547 + state
3548 + );
3549 + });
3550 + queries.forEach(({ queryKey, state, queryHash, meta, promise }) => {
3551 + let query = queryCache.get(queryHash);
3552 + const data = state.data === void 0 ? state.data : deserializeData(state.data);
3553 + if (query) {
3554 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
3555 + const { fetchStatus: _ignored, ...serializedState } = state;
3556 + query.setState({
3557 + ...serializedState,
3558 + data
3559 + });
3560 + }
3561 + } else {
3562 + query = queryCache.build(
3563 + client,
3564 + {
3565 + ...client.getDefaultOptions().hydrate?.queries,
3566 + ...options?.defaultOptions?.queries,
3567 + queryKey,
3568 + queryHash,
3569 + meta
3570 + },
3571 + // Reset fetch status to idle to avoid
3572 + // query being stuck in fetching state upon hydration
3573 + {
3574 + ...state,
3575 + data,
3576 + fetchStatus: "idle"
3577 + }
3578 + );
3579 + }
3580 + if (promise) {
3581 + const initialPromise = Promise.resolve(promise).then(deserializeData);
3582 + void query.fetch(void 0, { initialPromise });
3583 + }
3584 + });
3585 +}
3586 +// Annotate the CommonJS export names for ESM import in node:
3587 +0 && (0);
3588 +//# sourceMappingURL=hydration.cjs.map
3589 +
3590 +/***/ }),
3591 +
3592 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
3593 +/*!*******************************************************************!*\
3594 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
3595 + \*******************************************************************/
3596 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3597 +
3598 +"use strict";
3599 +
3600 +var __defProp = Object.defineProperty;
3601 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3602 +var __getOwnPropNames = Object.getOwnPropertyNames;
3603 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3604 +var __export = (target, all) => {
3605 + for (var name in all)
3606 + __defProp(target, name, { get: all[name], enumerable: true });
3607 +};
3608 +var __copyProps = (to, from, except, desc) => {
3609 + if (from && typeof from === "object" || typeof from === "function") {
3610 + for (let key of __getOwnPropNames(from))
3611 + if (!__hasOwnProp.call(to, key) && key !== except)
3612 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3613 + }
3614 + return to;
3615 +};
3616 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
3617 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3618 +
3619 +// src/index.ts
3620 +var src_exports = {};
3621 +__export(src_exports, {
3622 + CancelledError: () => import_retryer.CancelledError,
3623 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
3624 + MutationCache: () => import_mutationCache.MutationCache,
3625 + MutationObserver: () => import_mutationObserver.MutationObserver,
3626 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
3627 + Query: () => import_query.Query,
3628 + QueryCache: () => import_queryCache.QueryCache,
3629 + QueryClient: () => import_queryClient.QueryClient,
3630 + QueryObserver: () => import_queryObserver.QueryObserver,
3631 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
3632 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
3633 + dehydrate: () => import_hydration.dehydrate,
3634 + focusManager: () => import_focusManager.focusManager,
3635 + hashKey: () => import_utils.hashKey,
3636 + hydrate: () => import_hydration.hydrate,
3637 + isCancelledError: () => import_retryer2.isCancelledError,
3638 + isServer: () => import_utils.isServer,
3639 + keepPreviousData: () => import_utils.keepPreviousData,
3640 + matchMutation: () => import_utils.matchMutation,
3641 + matchQuery: () => import_utils.matchQuery,
3642 + notifyManager: () => import_notifyManager.notifyManager,
3643 + onlineManager: () => import_onlineManager.onlineManager,
3644 + replaceEqualDeep: () => import_utils.replaceEqualDeep,
3645 + skipToken: () => import_utils.skipToken
3646 +});
3647 +module.exports = __toCommonJS(src_exports);
3648 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3649 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
3650 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
3651 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3652 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
3653 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
3654 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
3655 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
3656 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3657 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
3658 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
3659 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3660 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3661 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
3662 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
3663 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
3664 +// Annotate the CommonJS export names for ESM import in node:
3665 +0 && (0);
3666 +//# sourceMappingURL=index.cjs.map
3667 +
3668 +/***/ }),
3669 +
3670 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
3671 +/*!***********************************************************************************!*\
3672 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
3673 + \***********************************************************************************/
3674 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3675 +
3676 +"use strict";
3677 +
3678 +var __defProp = Object.defineProperty;
3679 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3680 +var __getOwnPropNames = Object.getOwnPropertyNames;
3681 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3682 +var __export = (target, all) => {
3683 + for (var name in all)
3684 + __defProp(target, name, { get: all[name], enumerable: true });
3685 +};
3686 +var __copyProps = (to, from, except, desc) => {
3687 + if (from && typeof from === "object" || typeof from === "function") {
3688 + for (let key of __getOwnPropNames(from))
3689 + if (!__hasOwnProp.call(to, key) && key !== except)
3690 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3691 + }
3692 + return to;
3693 +};
3694 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3695 +
3696 +// src/infiniteQueryBehavior.ts
3697 +var infiniteQueryBehavior_exports = {};
3698 +__export(infiniteQueryBehavior_exports, {
3699 + hasNextPage: () => hasNextPage,
3700 + hasPreviousPage: () => hasPreviousPage,
3701 + infiniteQueryBehavior: () => infiniteQueryBehavior
3702 +});
3703 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
3704 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3705 +function infiniteQueryBehavior(pages) {
3706 + return {
3707 + onFetch: (context, query) => {
3708 + const fetchFn = async () => {
3709 + const options = context.options;
3710 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
3711 + const oldPages = context.state.data?.pages || [];
3712 + const oldPageParams = context.state.data?.pageParams || [];
3713 + const empty = { pages: [], pageParams: [] };
3714 + let cancelled = false;
3715 + const addSignalProperty = (object) => {
3716 + Object.defineProperty(object, "signal", {
3717 + enumerable: true,
3718 + get: () => {
3719 + if (context.signal.aborted) {
3720 + cancelled = true;
3721 + } else {
3722 + context.signal.addEventListener("abort", () => {
3723 + cancelled = true;
3724 + });
3725 + }
3726 + return context.signal;
3727 + }
3728 + });
3729 + };
3730 + const queryFn = (0, import_utils.ensureQueryFn)(context.options, context.fetchOptions);
3731 + const fetchPage = async (data, param, previous) => {
3732 + if (cancelled) {
3733 + return Promise.reject();
3734 + }
3735 + if (param == null && data.pages.length) {
3736 + return Promise.resolve(data);
3737 + }
3738 + const queryFnContext = {
3739 + queryKey: context.queryKey,
3740 + pageParam: param,
3741 + direction: previous ? "backward" : "forward",
3742 + meta: context.options.meta
3743 + };
3744 + addSignalProperty(queryFnContext);
3745 + const page = await queryFn(
3746 + queryFnContext
3747 + );
3748 + const { maxPages } = context.options;
3749 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
3750 + return {
3751 + pages: addTo(data.pages, page, maxPages),
3752 + pageParams: addTo(data.pageParams, param, maxPages)
3753 + };
3754 + };
3755 + let result;
3756 + if (direction && oldPages.length) {
3757 + const previous = direction === "backward";
3758 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
3759 + const oldData = {
3760 + pages: oldPages,
3761 + pageParams: oldPageParams
3762 + };
3763 + const param = pageParamFn(options, oldData);
3764 + result = await fetchPage(oldData, param, previous);
3765 + } else {
3766 + result = await fetchPage(
3767 + empty,
3768 + oldPageParams[0] ?? options.initialPageParam
3769 + );
3770 + const remainingPages = pages ?? oldPages.length;
3771 + for (let i = 1; i < remainingPages; i++) {
3772 + const param = getNextPageParam(options, result);
3773 + result = await fetchPage(result, param);
3774 + }
3775 + }
3776 + return result;
3777 + };
3778 + if (context.options.persister) {
3779 + context.fetchFn = () => {
3780 + return context.options.persister?.(
3781 + fetchFn,
3782 + {
3783 + queryKey: context.queryKey,
3784 + meta: context.options.meta,
3785 + signal: context.signal
3786 + },
3787 + query
3788 + );
3789 + };
3790 + } else {
3791 + context.fetchFn = fetchFn;
3792 + }
3793 + }
3794 + };
3795 +}
3796 +function getNextPageParam(options, { pages, pageParams }) {
3797 + const lastIndex = pages.length - 1;
3798 + return options.getNextPageParam(
3799 + pages[lastIndex],
3800 + pages,
3801 + pageParams[lastIndex],
3802 + pageParams
3803 + );
3804 +}
3805 +function getPreviousPageParam(options, { pages, pageParams }) {
3806 + return options.getPreviousPageParam?.(
3807 + pages[0],
3808 + pages,
3809 + pageParams[0],
3810 + pageParams
3811 + );
3812 +}
3813 +function hasNextPage(options, data) {
3814 + if (!data)
3815 + return false;
3816 + return getNextPageParam(options, data) != null;
3817 +}
3818 +function hasPreviousPage(options, data) {
3819 + if (!data || !options.getPreviousPageParam)
3820 + return false;
3821 + return getPreviousPageParam(options, data) != null;
3822 +}
3823 +// Annotate the CommonJS export names for ESM import in node:
3824 +0 && (0);
3825 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
3826 +
3827 +/***/ }),
3828 +
3829 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
3830 +/*!***********************************************************************************!*\
3831 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
3832 + \***********************************************************************************/
3833 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3834 +
3835 +"use strict";
3836 +
3837 +var __defProp = Object.defineProperty;
3838 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3839 +var __getOwnPropNames = Object.getOwnPropertyNames;
3840 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3841 +var __export = (target, all) => {
3842 + for (var name in all)
3843 + __defProp(target, name, { get: all[name], enumerable: true });
3844 +};
3845 +var __copyProps = (to, from, except, desc) => {
3846 + if (from && typeof from === "object" || typeof from === "function") {
3847 + for (let key of __getOwnPropNames(from))
3848 + if (!__hasOwnProp.call(to, key) && key !== except)
3849 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3850 + }
3851 + return to;
3852 +};
3853 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3854 +
3855 +// src/infiniteQueryObserver.ts
3856 +var infiniteQueryObserver_exports = {};
3857 +__export(infiniteQueryObserver_exports, {
3858 + InfiniteQueryObserver: () => InfiniteQueryObserver
3859 +});
3860 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
3861 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3862 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
3863 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
3864 + constructor(client, options) {
3865 + super(client, options);
3866 + }
3867 + bindMethods() {
3868 + super.bindMethods();
3869 + this.fetchNextPage = this.fetchNextPage.bind(this);
3870 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
3871 + }
3872 + setOptions(options, notifyOptions) {
3873 + super.setOptions(
3874 + {
3875 + ...options,
3876 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
3877 + },
3878 + notifyOptions
3879 + );
3880 + }
3881 + getOptimisticResult(options) {
3882 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
3883 + return super.getOptimisticResult(options);
3884 + }
3885 + fetchNextPage(options) {
3886 + return this.fetch({
3887 + ...options,
3888 + meta: {
3889 + fetchMore: { direction: "forward" }
3890 + }
3891 + });
3892 + }
3893 + fetchPreviousPage(options) {
3894 + return this.fetch({
3895 + ...options,
3896 + meta: {
3897 + fetchMore: { direction: "backward" }
3898 + }
3899 + });
3900 + }
3901 + createResult(query, options) {
3902 + const { state } = query;
3903 + const parentResult = super.createResult(query, options);
3904 + const { isFetching, isRefetching, isError, isRefetchError } = parentResult;
3905 + const fetchDirection = state.fetchMeta?.fetchMore?.direction;
3906 + const isFetchNextPageError = isError && fetchDirection === "forward";
3907 + const isFetchingNextPage = isFetching && fetchDirection === "forward";
3908 + const isFetchPreviousPageError = isError && fetchDirection === "backward";
3909 + const isFetchingPreviousPage = isFetching && fetchDirection === "backward";
3910 + const result = {
3911 + ...parentResult,
3912 + fetchNextPage: this.fetchNextPage,
3913 + fetchPreviousPage: this.fetchPreviousPage,
3914 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
3915 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
3916 + isFetchNextPageError,
3917 + isFetchingNextPage,
3918 + isFetchPreviousPageError,
3919 + isFetchingPreviousPage,
3920 + isRefetchError: isRefetchError && !isFetchNextPageError && !isFetchPreviousPageError,
3921 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
3922 + };
3923 + return result;
3924 + }
3925 +};
3926 +// Annotate the CommonJS export names for ESM import in node:
3927 +0 && (0);
3928 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
3929 +
3930 +/***/ }),
3931 +
3932 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
3933 +/*!**********************************************************************!*\
3934 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
3935 + \**********************************************************************/
3936 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3937 +
3938 +"use strict";
3939 +
3940 +var __defProp = Object.defineProperty;
3941 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3942 +var __getOwnPropNames = Object.getOwnPropertyNames;
3943 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3944 +var __export = (target, all) => {
3945 + for (var name in all)
3946 + __defProp(target, name, { get: all[name], enumerable: true });
3947 +};
3948 +var __copyProps = (to, from, except, desc) => {
3949 + if (from && typeof from === "object" || typeof from === "function") {
3950 + for (let key of __getOwnPropNames(from))
3951 + if (!__hasOwnProp.call(to, key) && key !== except)
3952 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3953 + }
3954 + return to;
3955 +};
3956 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3957 +
3958 +// src/mutation.ts
3959 +var mutation_exports = {};
3960 +__export(mutation_exports, {
3961 + Mutation: () => Mutation,
3962 + getDefaultState: () => getDefaultState
3963 +});
3964 +module.exports = __toCommonJS(mutation_exports);
3965 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3966 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
3967 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3968 +var Mutation = class extends import_removable.Removable {
3969 + #observers;
3970 + #mutationCache;
3971 + #retryer;
3972 + constructor(config) {
3973 + super();
3974 + this.mutationId = config.mutationId;
3975 + this.#mutationCache = config.mutationCache;
3976 + this.#observers = [];
3977 + this.state = config.state || getDefaultState();
3978 + this.setOptions(config.options);
3979 + this.scheduleGc();
3980 + }
3981 + setOptions(options) {
3982 + this.options = options;
3983 + this.updateGcTime(this.options.gcTime);
3984 + }
3985 + get meta() {
3986 + return this.options.meta;
3987 + }
3988 + addObserver(observer) {
3989 + if (!this.#observers.includes(observer)) {
3990 + this.#observers.push(observer);
3991 + this.clearGcTimeout();
3992 + this.#mutationCache.notify({
3993 + type: "observerAdded",
3994 + mutation: this,
3995 + observer
3996 + });
3997 + }
3998 + }
3999 + removeObserver(observer) {
4000 + this.#observers = this.#observers.filter((x) => x !== observer);
4001 + this.scheduleGc();
4002 + this.#mutationCache.notify({
4003 + type: "observerRemoved",
4004 + mutation: this,
4005 + observer
4006 + });
4007 + }
4008 + optionalRemove() {
4009 + if (!this.#observers.length) {
4010 + if (this.state.status === "pending") {
4011 + this.scheduleGc();
4012 + } else {
4013 + this.#mutationCache.remove(this);
4014 + }
4015 + }
4016 + }
4017 + continue() {
4018 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
4019 + this.execute(this.state.variables);
4020 + }
4021 + async execute(variables) {
4022 + this.#retryer = (0, import_retryer.createRetryer)({
4023 + fn: () => {
4024 + if (!this.options.mutationFn) {
4025 + return Promise.reject(new Error("No mutationFn found"));
4026 + }
4027 + return this.options.mutationFn(variables);
4028 + },
4029 + onFail: (failureCount, error) => {
4030 + this.#dispatch({ type: "failed", failureCount, error });
4031 + },
4032 + onPause: () => {
4033 + this.#dispatch({ type: "pause" });
4034 + },
4035 + onContinue: () => {
4036 + this.#dispatch({ type: "continue" });
4037 + },
4038 + retry: this.options.retry ?? 0,
4039 + retryDelay: this.options.retryDelay,
4040 + networkMode: this.options.networkMode,
4041 + canRun: () => this.#mutationCache.canRun(this)
4042 + });
4043 + const restored = this.state.status === "pending";
4044 + const isPaused = !this.#retryer.canStart();
4045 + try {
4046 + if (!restored) {
4047 + this.#dispatch({ type: "pending", variables, isPaused });
4048 + await this.#mutationCache.config.onMutate?.(
4049 + variables,
4050 + this
4051 + );
4052 + const context = await this.options.onMutate?.(variables);
4053 + if (context !== this.state.context) {
4054 + this.#dispatch({
4055 + type: "pending",
4056 + context,
4057 + variables,
4058 + isPaused
4059 + });
4060 + }
4061 + }
4062 + const data = await this.#retryer.start();
4063 + await this.#mutationCache.config.onSuccess?.(
4064 + data,
4065 + variables,
4066 + this.state.context,
4067 + this
4068 + );
4069 + await this.options.onSuccess?.(data, variables, this.state.context);
4070 + await this.#mutationCache.config.onSettled?.(
4071 + data,
4072 + null,
4073 + this.state.variables,
4074 + this.state.context,
4075 + this
4076 + );
4077 + await this.options.onSettled?.(data, null, variables, this.state.context);
4078 + this.#dispatch({ type: "success", data });
4079 + return data;
4080 + } catch (error) {
4081 + try {
4082 + await this.#mutationCache.config.onError?.(
4083 + error,
4084 + variables,
4085 + this.state.context,
4086 + this
4087 + );
4088 + await this.options.onError?.(
4089 + error,
4090 + variables,
4091 + this.state.context
4092 + );
4093 + await this.#mutationCache.config.onSettled?.(
4094 + void 0,
4095 + error,
4096 + this.state.variables,
4097 + this.state.context,
4098 + this
4099 + );
4100 + await this.options.onSettled?.(
4101 + void 0,
4102 + error,
4103 + variables,
4104 + this.state.context
4105 + );
4106 + throw error;
4107 + } finally {
4108 + this.#dispatch({ type: "error", error });
4109 + }
4110 + } finally {
4111 + this.#mutationCache.runNext(this);
4112 + }
4113 + }
4114 + #dispatch(action) {
4115 + const reducer = (state) => {
4116 + switch (action.type) {
4117 + case "failed":
4118 + return {
4119 + ...state,
4120 + failureCount: action.failureCount,
4121 + failureReason: action.error
4122 + };
4123 + case "pause":
4124 + return {
4125 + ...state,
4126 + isPaused: true
4127 + };
4128 + case "continue":
4129 + return {
4130 + ...state,
4131 + isPaused: false
4132 + };
4133 + case "pending":
4134 + return {
4135 + ...state,
4136 + context: action.context,
4137 + data: void 0,
4138 + failureCount: 0,
4139 + failureReason: null,
4140 + error: null,
4141 + isPaused: action.isPaused,
4142 + status: "pending",
4143 + variables: action.variables,
4144 + submittedAt: Date.now()
4145 + };
4146 + case "success":
4147 + return {
4148 + ...state,
4149 + data: action.data,
4150 + failureCount: 0,
4151 + failureReason: null,
4152 + error: null,
4153 + status: "success",
4154 + isPaused: false
4155 + };
4156 + case "error":
4157 + return {
4158 + ...state,
4159 + data: void 0,
4160 + error: action.error,
4161 + failureCount: state.failureCount + 1,
4162 + failureReason: action.error,
4163 + isPaused: false,
4164 + status: "error"
4165 + };
4166 + }
4167 + };
4168 + this.state = reducer(this.state);
4169 + import_notifyManager.notifyManager.batch(() => {
4170 + this.#observers.forEach((observer) => {
4171 + observer.onMutationUpdate(action);
4172 + });
4173 + this.#mutationCache.notify({
4174 + mutation: this,
4175 + type: "updated",
4176 + action
4177 + });
4178 + });
4179 + }
4180 +};
4181 +function getDefaultState() {
4182 + return {
4183 + context: void 0,
4184 + data: void 0,
4185 + error: null,
4186 + failureCount: 0,
4187 + failureReason: null,
4188 + isPaused: false,
4189 + status: "idle",
4190 + variables: void 0,
4191 + submittedAt: 0
4192 + };
4193 +}
4194 +// Annotate the CommonJS export names for ESM import in node:
4195 +0 && (0);
4196 +//# sourceMappingURL=mutation.cjs.map
4197 +
4198 +/***/ }),
4199 +
4200 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
4201 +/*!***************************************************************************!*\
4202 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
4203 + \***************************************************************************/
4204 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4205 +
4206 +"use strict";
4207 +
4208 +var __defProp = Object.defineProperty;
4209 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4210 +var __getOwnPropNames = Object.getOwnPropertyNames;
4211 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4212 +var __export = (target, all) => {
4213 + for (var name in all)
4214 + __defProp(target, name, { get: all[name], enumerable: true });
4215 +};
4216 +var __copyProps = (to, from, except, desc) => {
4217 + if (from && typeof from === "object" || typeof from === "function") {
4218 + for (let key of __getOwnPropNames(from))
4219 + if (!__hasOwnProp.call(to, key) && key !== except)
4220 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4221 + }
4222 + return to;
4223 +};
4224 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4225 +
4226 +// src/mutationCache.ts
4227 +var mutationCache_exports = {};
4228 +__export(mutationCache_exports, {
4229 + MutationCache: () => MutationCache
4230 +});
4231 +module.exports = __toCommonJS(mutationCache_exports);
4232 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4233 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4234 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4235 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4236 +var MutationCache = class extends import_subscribable.Subscribable {
4237 + constructor(config = {}) {
4238 + super();
4239 + this.config = config;
4240 + this.#mutations = /* @__PURE__ */ new Map();
4241 + this.#mutationId = Date.now();
4242 + }
4243 + #mutations;
4244 + #mutationId;
4245 + build(client, options, state) {
4246 + const mutation = new import_mutation.Mutation({
4247 + mutationCache: this,
4248 + mutationId: ++this.#mutationId,
4249 + options: client.defaultMutationOptions(options),
4250 + state
4251 + });
4252 + this.add(mutation);
4253 + return mutation;
4254 + }
4255 + add(mutation) {
4256 + const scope = scopeFor(mutation);
4257 + const mutations = this.#mutations.get(scope) ?? [];
4258 + mutations.push(mutation);
4259 + this.#mutations.set(scope, mutations);
4260 + this.notify({ type: "added", mutation });
4261 + }
4262 + remove(mutation) {
4263 + const scope = scopeFor(mutation);
4264 + if (this.#mutations.has(scope)) {
4265 + const mutations = this.#mutations.get(scope)?.filter((x) => x !== mutation);
4266 + if (mutations) {
4267 + if (mutations.length === 0) {
4268 + this.#mutations.delete(scope);
4269 + } else {
4270 + this.#mutations.set(scope, mutations);
4271 + }
4272 + }
4273 + }
4274 + this.notify({ type: "removed", mutation });
4275 + }
4276 + canRun(mutation) {
4277 + const firstPendingMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m.state.status === "pending");
4278 + return !firstPendingMutation || firstPendingMutation === mutation;
4279 + }
4280 + runNext(mutation) {
4281 + const foundMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m !== mutation && m.state.isPaused);
4282 + return foundMutation?.continue() ?? Promise.resolve();
4283 + }
4284 + clear() {
4285 + import_notifyManager.notifyManager.batch(() => {
4286 + this.getAll().forEach((mutation) => {
4287 + this.remove(mutation);
4288 + });
4289 + });
4290 + }
4291 + getAll() {
4292 + return [...this.#mutations.values()].flat();
4293 + }
4294 + find(filters) {
4295 + const defaultedFilters = { exact: true, ...filters };
4296 + return this.getAll().find(
4297 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
4298 + );
4299 + }
4300 + findAll(filters = {}) {
4301 + return this.getAll().filter((mutation) => (0, import_utils.matchMutation)(filters, mutation));
4302 + }
4303 + notify(event) {
4304 + import_notifyManager.notifyManager.batch(() => {
4305 + this.listeners.forEach((listener) => {
4306 + listener(event);
4307 + });
4308 + });
4309 + }
4310 + resumePausedMutations() {
4311 + const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
4312 + return import_notifyManager.notifyManager.batch(
4313 + () => Promise.all(
4314 + pausedMutations.map((mutation) => mutation.continue().catch(import_utils.noop))
4315 + )
4316 + );
4317 + }
4318 +};
4319 +function scopeFor(mutation) {
4320 + return mutation.options.scope?.id ?? String(mutation.mutationId);
4321 +}
4322 +// Annotate the CommonJS export names for ESM import in node:
4323 +0 && (0);
4324 +//# sourceMappingURL=mutationCache.cjs.map
4325 +
4326 +/***/ }),
4327 +
4328 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
4329 +/*!******************************************************************************!*\
4330 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
4331 + \******************************************************************************/
4332 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4333 +
4334 +"use strict";
4335 +
4336 +var __defProp = Object.defineProperty;
4337 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4338 +var __getOwnPropNames = Object.getOwnPropertyNames;
4339 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4340 +var __export = (target, all) => {
4341 + for (var name in all)
4342 + __defProp(target, name, { get: all[name], enumerable: true });
4343 +};
4344 +var __copyProps = (to, from, except, desc) => {
4345 + if (from && typeof from === "object" || typeof from === "function") {
4346 + for (let key of __getOwnPropNames(from))
4347 + if (!__hasOwnProp.call(to, key) && key !== except)
4348 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4349 + }
4350 + return to;
4351 +};
4352 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4353 +
4354 +// src/mutationObserver.ts
4355 +var mutationObserver_exports = {};
4356 +__export(mutationObserver_exports, {
4357 + MutationObserver: () => MutationObserver
4358 +});
4359 +module.exports = __toCommonJS(mutationObserver_exports);
4360 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4361 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4362 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4363 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4364 +var MutationObserver = class extends import_subscribable.Subscribable {
4365 + #client;
4366 + #currentResult = void 0;
4367 + #currentMutation;
4368 + #mutateOptions;
4369 + constructor(client, options) {
4370 + super();
4371 + this.#client = client;
4372 + this.setOptions(options);
4373 + this.bindMethods();
4374 + this.#updateResult();
4375 + }
4376 + bindMethods() {
4377 + this.mutate = this.mutate.bind(this);
4378 + this.reset = this.reset.bind(this);
4379 + }
4380 + setOptions(options) {
4381 + const prevOptions = this.options;
4382 + this.options = this.#client.defaultMutationOptions(options);
4383 + if (!(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
4384 + this.#client.getMutationCache().notify({
4385 + type: "observerOptionsUpdated",
4386 + mutation: this.#currentMutation,
4387 + observer: this
4388 + });
4389 + }
4390 + if (prevOptions?.mutationKey && this.options.mutationKey && (0, import_utils.hashKey)(prevOptions.mutationKey) !== (0, import_utils.hashKey)(this.options.mutationKey)) {
4391 + this.reset();
4392 + } else if (this.#currentMutation?.state.status === "pending") {
4393 + this.#currentMutation.setOptions(this.options);
4394 + }
4395 + }
4396 + onUnsubscribe() {
4397 + if (!this.hasListeners()) {
4398 + this.#currentMutation?.removeObserver(this);
4399 + }
4400 + }
4401 + onMutationUpdate(action) {
4402 + this.#updateResult();
4403 + this.#notify(action);
4404 + }
4405 + getCurrentResult() {
4406 + return this.#currentResult;
4407 + }
4408 + reset() {
4409 + this.#currentMutation?.removeObserver(this);
4410 + this.#currentMutation = void 0;
4411 + this.#updateResult();
4412 + this.#notify();
4413 + }
4414 + mutate(variables, options) {
4415 + this.#mutateOptions = options;
4416 + this.#currentMutation?.removeObserver(this);
4417 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
4418 + this.#currentMutation.addObserver(this);
4419 + return this.#currentMutation.execute(variables);
4420 + }
4421 + #updateResult() {
4422 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
4423 + this.#currentResult = {
4424 + ...state,
4425 + isPending: state.status === "pending",
4426 + isSuccess: state.status === "success",
4427 + isError: state.status === "error",
4428 + isIdle: state.status === "idle",
4429 + mutate: this.mutate,
4430 + reset: this.reset
4431 + };
4432 + }
4433 + #notify(action) {
4434 + import_notifyManager.notifyManager.batch(() => {
4435 + if (this.#mutateOptions && this.hasListeners()) {
4436 + const variables = this.#currentResult.variables;
4437 + const context = this.#currentResult.context;
4438 + if (action?.type === "success") {
4439 + this.#mutateOptions.onSuccess?.(action.data, variables, context);
4440 + this.#mutateOptions.onSettled?.(action.data, null, variables, context);
4441 + } else if (action?.type === "error") {
4442 + this.#mutateOptions.onError?.(action.error, variables, context);
4443 + this.#mutateOptions.onSettled?.(
4444 + void 0,
4445 + action.error,
4446 + variables,
4447 + context
4448 + );
4449 + }
4450 + }
4451 + this.listeners.forEach((listener) => {
4452 + listener(this.#currentResult);
4453 + });
4454 + });
4455 + }
4456 +};
4457 +// Annotate the CommonJS export names for ESM import in node:
4458 +0 && (0);
4459 +//# sourceMappingURL=mutationObserver.cjs.map
4460 +
4461 +/***/ }),
4462 +
4463 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
4464 +/*!***************************************************************************!*\
4465 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
4466 + \***************************************************************************/
4467 +/***/ ((module) => {
4468 +
4469 +"use strict";
4470 +
4471 +var __defProp = Object.defineProperty;
4472 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4473 +var __getOwnPropNames = Object.getOwnPropertyNames;
4474 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4475 +var __export = (target, all) => {
4476 + for (var name in all)
4477 + __defProp(target, name, { get: all[name], enumerable: true });
4478 +};
4479 +var __copyProps = (to, from, except, desc) => {
4480 + if (from && typeof from === "object" || typeof from === "function") {
4481 + for (let key of __getOwnPropNames(from))
4482 + if (!__hasOwnProp.call(to, key) && key !== except)
4483 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4484 + }
4485 + return to;
4486 +};
4487 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4488 +
4489 +// src/notifyManager.ts
4490 +var notifyManager_exports = {};
4491 +__export(notifyManager_exports, {
4492 + createNotifyManager: () => createNotifyManager,
4493 + notifyManager: () => notifyManager
4494 +});
4495 +module.exports = __toCommonJS(notifyManager_exports);
4496 +function createNotifyManager() {
4497 + let queue = [];
4498 + let transactions = 0;
4499 + let notifyFn = (callback) => {
4500 + callback();
4501 + };
4502 + let batchNotifyFn = (callback) => {
4503 + callback();
4504 + };
4505 + let scheduleFn = (cb) => setTimeout(cb, 0);
4506 + const setScheduler = (fn) => {
4507 + scheduleFn = fn;
4508 + };
4509 + const batch = (callback) => {
4510 + let result;
4511 + transactions++;
4512 + try {
4513 + result = callback();
4514 + } finally {
4515 + transactions--;
4516 + if (!transactions) {
4517 + flush();
4518 + }
4519 + }
4520 + return result;
4521 + };
4522 + const schedule = (callback) => {
4523 + if (transactions) {
4524 + queue.push(callback);
4525 + } else {
4526 + scheduleFn(() => {
4527 + notifyFn(callback);
4528 + });
4529 + }
4530 + };
4531 + const batchCalls = (callback) => {
4532 + return (...args) => {
4533 + schedule(() => {
4534 + callback(...args);
4535 + });
4536 + };
4537 + };
4538 + const flush = () => {
4539 + const originalQueue = queue;
4540 + queue = [];
4541 + if (originalQueue.length) {
4542 + scheduleFn(() => {
4543 + batchNotifyFn(() => {
4544 + originalQueue.forEach((callback) => {
4545 + notifyFn(callback);
4546 + });
4547 + });
4548 + });
4549 + }
4550 + };
4551 + const setNotifyFunction = (fn) => {
4552 + notifyFn = fn;
4553 + };
4554 + const setBatchNotifyFunction = (fn) => {
4555 + batchNotifyFn = fn;
4556 + };
4557 + return {
4558 + batch,
4559 + batchCalls,
4560 + schedule,
4561 + setNotifyFunction,
4562 + setBatchNotifyFunction,
4563 + setScheduler
4564 + };
4565 +}
4566 +var notifyManager = createNotifyManager();
4567 +// Annotate the CommonJS export names for ESM import in node:
4568 +0 && (0);
4569 +//# sourceMappingURL=notifyManager.cjs.map
4570 +
4571 +/***/ }),
4572 +
4573 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
4574 +/*!***************************************************************************!*\
4575 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
4576 + \***************************************************************************/
4577 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4578 +
4579 +"use strict";
4580 +
4581 +var __defProp = Object.defineProperty;
4582 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4583 +var __getOwnPropNames = Object.getOwnPropertyNames;
4584 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4585 +var __export = (target, all) => {
4586 + for (var name in all)
4587 + __defProp(target, name, { get: all[name], enumerable: true });
4588 +};
4589 +var __copyProps = (to, from, except, desc) => {
4590 + if (from && typeof from === "object" || typeof from === "function") {
4591 + for (let key of __getOwnPropNames(from))
4592 + if (!__hasOwnProp.call(to, key) && key !== except)
4593 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4594 + }
4595 + return to;
4596 +};
4597 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4598 +
4599 +// src/onlineManager.ts
4600 +var onlineManager_exports = {};
4601 +__export(onlineManager_exports, {
4602 + OnlineManager: () => OnlineManager,
4603 + onlineManager: () => onlineManager
4604 +});
4605 +module.exports = __toCommonJS(onlineManager_exports);
4606 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4607 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4608 +var OnlineManager = class extends import_subscribable.Subscribable {
4609 + #online = true;
4610 + #cleanup;
4611 + #setup;
4612 + constructor() {
4613 + super();
4614 + this.#setup = (onOnline) => {
4615 + if (!import_utils.isServer && window.addEventListener) {
4616 + const onlineListener = () => onOnline(true);
4617 + const offlineListener = () => onOnline(false);
4618 + window.addEventListener("online", onlineListener, false);
4619 + window.addEventListener("offline", offlineListener, false);
4620 + return () => {
4621 + window.removeEventListener("online", onlineListener);
4622 + window.removeEventListener("offline", offlineListener);
4623 + };
4624 + }
4625 + return;
4626 + };
4627 + }
4628 + onSubscribe() {
4629 + if (!this.#cleanup) {
4630 + this.setEventListener(this.#setup);
4631 + }
4632 + }
4633 + onUnsubscribe() {
4634 + if (!this.hasListeners()) {
4635 + this.#cleanup?.();
4636 + this.#cleanup = void 0;
4637 + }
4638 + }
4639 + setEventListener(setup) {
4640 + this.#setup = setup;
4641 + this.#cleanup?.();
4642 + this.#cleanup = setup(this.setOnline.bind(this));
4643 + }
4644 + setOnline(online) {
4645 + const changed = this.#online !== online;
4646 + if (changed) {
4647 + this.#online = online;
4648 + this.listeners.forEach((listener) => {
4649 + listener(online);
4650 + });
4651 + }
4652 + }
4653 + isOnline() {
4654 + return this.#online;
4655 + }
4656 +};
4657 +var onlineManager = new OnlineManager();
4658 +// Annotate the CommonJS export names for ESM import in node:
4659 +0 && (0);
4660 +//# sourceMappingURL=onlineManager.cjs.map
4661 +
4662 +/***/ }),
4663 +
4664 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
4665 +/*!*****************************************************************************!*\
4666 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
4667 + \*****************************************************************************/
4668 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4669 +
4670 +"use strict";
4671 +
4672 +var __defProp = Object.defineProperty;
4673 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4674 +var __getOwnPropNames = Object.getOwnPropertyNames;
4675 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4676 +var __export = (target, all) => {
4677 + for (var name in all)
4678 + __defProp(target, name, { get: all[name], enumerable: true });
4679 +};
4680 +var __copyProps = (to, from, except, desc) => {
4681 + if (from && typeof from === "object" || typeof from === "function") {
4682 + for (let key of __getOwnPropNames(from))
4683 + if (!__hasOwnProp.call(to, key) && key !== except)
4684 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4685 + }
4686 + return to;
4687 +};
4688 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4689 +
4690 +// src/queriesObserver.ts
4691 +var queriesObserver_exports = {};
4692 +__export(queriesObserver_exports, {
4693 + QueriesObserver: () => QueriesObserver
4694 +});
4695 +module.exports = __toCommonJS(queriesObserver_exports);
4696 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4697 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4698 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4699 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4700 +function difference(array1, array2) {
4701 + return array1.filter((x) => !array2.includes(x));
4702 +}
4703 +function replaceAt(array, index, value) {
4704 + const copy = array.slice(0);
4705 + copy[index] = value;
4706 + return copy;
4707 +}
4708 +var QueriesObserver = class extends import_subscribable.Subscribable {
4709 + #client;
4710 + #result;
4711 + #queries;
4712 + #observers;
4713 + #combinedResult;
4714 + #lastCombine;
4715 + #lastResult;
4716 + constructor(client, queries, _options) {
4717 + super();
4718 + this.#client = client;
4719 + this.#queries = [];
4720 + this.#observers = [];
4721 + this.#result = [];
4722 + this.setQueries(queries);
4723 + }
4724 + onSubscribe() {
4725 + if (this.listeners.size === 1) {
4726 + this.#observers.forEach((observer) => {
4727 + observer.subscribe((result) => {
4728 + this.#onUpdate(observer, result);
4729 + });
4730 + });
4731 + }
4732 + }
4733 + onUnsubscribe() {
4734 + if (!this.listeners.size) {
4735 + this.destroy();
4736 + }
4737 + }
4738 + destroy() {
4739 + this.listeners = /* @__PURE__ */ new Set();
4740 + this.#observers.forEach((observer) => {
4741 + observer.destroy();
4742 + });
4743 + }
4744 + setQueries(queries, _options, notifyOptions) {
4745 + this.#queries = queries;
4746 + import_notifyManager.notifyManager.batch(() => {
4747 + const prevObservers = this.#observers;
4748 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
4749 + newObserverMatches.forEach(
4750 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
4751 + );
4752 + const newObservers = newObserverMatches.map((match) => match.observer);
4753 + const newResult = newObservers.map(
4754 + (observer) => observer.getCurrentResult()
4755 + );
4756 + const hasIndexChange = newObservers.some(
4757 + (observer, index) => observer !== prevObservers[index]
4758 + );
4759 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
4760 + return;
4761 + }
4762 + this.#observers = newObservers;
4763 + this.#result = newResult;
4764 + if (!this.hasListeners()) {
4765 + return;
4766 + }
4767 + difference(prevObservers, newObservers).forEach((observer) => {
4768 + observer.destroy();
4769 + });
4770 + difference(newObservers, prevObservers).forEach((observer) => {
4771 + observer.subscribe((result) => {
4772 + this.#onUpdate(observer, result);
4773 + });
4774 + });
4775 + this.#notify();
4776 + });
4777 + }
4778 + getCurrentResult() {
4779 + return this.#result;
4780 + }
4781 + getQueries() {
4782 + return this.#observers.map((observer) => observer.getCurrentQuery());
4783 + }
4784 + getObservers() {
4785 + return this.#observers;
4786 + }
4787 + getOptimisticResult(queries, combine) {
4788 + const matches = this.#findMatchingObservers(queries);
4789 + const result = matches.map(
4790 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
4791 + );
4792 + return [
4793 + result,
4794 + (r) => {
4795 + return this.#combineResult(r ?? result, combine);
4796 + },
4797 + () => {
4798 + return matches.map((match, index) => {
4799 + const observerResult = result[index];
4800 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult, (accessedProp) => {
4801 + matches.forEach((m) => {
4802 + m.observer.trackProp(accessedProp);
4803 + });
4804 + }) : observerResult;
4805 + });
4806 + }
4807 + ];
4808 + }
4809 + #combineResult(input, combine) {
4810 + if (combine) {
4811 + if (!this.#combinedResult || this.#result !== this.#lastResult || combine !== this.#lastCombine) {
4812 + this.#lastCombine = combine;
4813 + this.#lastResult = this.#result;
4814 + this.#combinedResult = (0, import_utils.replaceEqualDeep)(
4815 + this.#combinedResult,
4816 + combine(input)
4817 + );
4818 + }
4819 + return this.#combinedResult;
4820 + }
4821 + return input;
4822 + }
4823 + #findMatchingObservers(queries) {
4824 + const prevObservers = this.#observers;
4825 + const prevObserversMap = new Map(
4826 + prevObservers.map((observer) => [observer.options.queryHash, observer])
4827 + );
4828 + const defaultedQueryOptions = queries.map(
4829 + (options) => this.#client.defaultQueryOptions(options)
4830 + );
4831 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
4832 + const match = prevObserversMap.get(defaultedOptions.queryHash);
4833 + if (match != null) {
4834 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
4835 + }
4836 + return [];
4837 + });
4838 + const matchedQueryHashes = new Set(
4839 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
4840 + );
4841 + const unmatchedQueries = defaultedQueryOptions.filter(
4842 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
4843 + );
4844 + const getObserver = (options) => {
4845 + const defaultedOptions = this.#client.defaultQueryOptions(options);
4846 + const currentObserver = this.#observers.find(
4847 + (o) => o.options.queryHash === defaultedOptions.queryHash
4848 + );
4849 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
4850 + };
4851 + const newOrReusedObservers = unmatchedQueries.map((options) => {
4852 + return {
4853 + defaultedQueryOptions: options,
4854 + observer: getObserver(options)
4855 + };
4856 + });
4857 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
4858 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
4859 + }
4860 + #onUpdate(observer, result) {
4861 + const index = this.#observers.indexOf(observer);
4862 + if (index !== -1) {
4863 + this.#result = replaceAt(this.#result, index, result);
4864 + this.#notify();
4865 + }
4866 + }
4867 + #notify() {
4868 + import_notifyManager.notifyManager.batch(() => {
4869 + this.listeners.forEach((listener) => {
4870 + listener(this.#result);
4871 + });
4872 + });
4873 + }
4874 +};
4875 +// Annotate the CommonJS export names for ESM import in node:
4876 +0 && (0);
4877 +//# sourceMappingURL=queriesObserver.cjs.map
4878 +
4879 +/***/ }),
4880 +
4881 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
4882 +/*!*******************************************************************!*\
4883 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
4884 + \*******************************************************************/
4885 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4886 +
4887 +"use strict";
4888 +
4889 +var __defProp = Object.defineProperty;
4890 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4891 +var __getOwnPropNames = Object.getOwnPropertyNames;
4892 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4893 +var __export = (target, all) => {
4894 + for (var name in all)
4895 + __defProp(target, name, { get: all[name], enumerable: true });
4896 +};
4897 +var __copyProps = (to, from, except, desc) => {
4898 + if (from && typeof from === "object" || typeof from === "function") {
4899 + for (let key of __getOwnPropNames(from))
4900 + if (!__hasOwnProp.call(to, key) && key !== except)
4901 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4902 + }
4903 + return to;
4904 +};
4905 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4906 +
4907 +// src/query.ts
4908 +var query_exports = {};
4909 +__export(query_exports, {
4910 + Query: () => Query,
4911 + fetchState: () => fetchState
4912 +});
4913 +module.exports = __toCommonJS(query_exports);
4914 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4915 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4916 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4917 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
4918 +var Query = class extends import_removable.Removable {
4919 + #initialState;
4920 + #revertState;
4921 + #cache;
4922 + #retryer;
4923 + #defaultOptions;
4924 + #abortSignalConsumed;
4925 + constructor(config) {
4926 + super();
4927 + this.#abortSignalConsumed = false;
4928 + this.#defaultOptions = config.defaultOptions;
4929 + this.setOptions(config.options);
4930 + this.observers = [];
4931 + this.#cache = config.cache;
4932 + this.queryKey = config.queryKey;
4933 + this.queryHash = config.queryHash;
4934 + this.#initialState = config.state || getDefaultState(this.options);
4935 + this.state = this.#initialState;
4936 + this.scheduleGc();
4937 + }
4938 + get meta() {
4939 + return this.options.meta;
4940 + }
4941 + get promise() {
4942 + return this.#retryer?.promise;
4943 + }
4944 + setOptions(options) {
4945 + this.options = { ...this.#defaultOptions, ...options };
4946 + this.updateGcTime(this.options.gcTime);
4947 + }
4948 + optionalRemove() {
4949 + if (!this.observers.length && this.state.fetchStatus === "idle") {
4950 + this.#cache.remove(this);
4951 + }
4952 + }
4953 + setData(newData, options) {
4954 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
4955 + this.#dispatch({
4956 + data,
4957 + type: "success",
4958 + dataUpdatedAt: options?.updatedAt,
4959 + manual: options?.manual
4960 + });
4961 + return data;
4962 + }
4963 + setState(state, setStateOptions) {
4964 + this.#dispatch({ type: "setState", state, setStateOptions });
4965 + }
4966 + cancel(options) {
4967 + const promise = this.#retryer?.promise;
4968 + this.#retryer?.cancel(options);
4969 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
4970 + }
4971 + destroy() {
4972 + super.destroy();
4973 + this.cancel({ silent: true });
4974 + }
4975 + reset() {
4976 + this.destroy();
4977 + this.setState(this.#initialState);
4978 + }
4979 + isActive() {
4980 + return this.observers.some(
4981 + (observer) => (0, import_utils.resolveEnabled)(observer.options.enabled, this) !== false
4982 + );
4983 + }
4984 + isDisabled() {
4985 + return this.getObserversCount() > 0 && !this.isActive();
4986 + }
4987 + isStale() {
4988 + if (this.state.isInvalidated) {
4989 + return true;
4990 + }
4991 + if (this.getObserversCount() > 0) {
4992 + return this.observers.some(
4993 + (observer) => observer.getCurrentResult().isStale
4994 + );
4995 + }
4996 + return this.state.data === void 0;
4997 + }
4998 + isStaleByTime(staleTime = 0) {
4999 + return this.state.isInvalidated || this.state.data === void 0 || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
5000 + }
5001 + onFocus() {
5002 + const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());
5003 + observer?.refetch({ cancelRefetch: false });
5004 + this.#retryer?.continue();
5005 + }
5006 + onOnline() {
5007 + const observer = this.observers.find((x) => x.shouldFetchOnReconnect());
5008 + observer?.refetch({ cancelRefetch: false });
5009 + this.#retryer?.continue();
5010 + }
5011 + addObserver(observer) {
5012 + if (!this.observers.includes(observer)) {
5013 + this.observers.push(observer);
5014 + this.clearGcTimeout();
5015 + this.#cache.notify({ type: "observerAdded", query: this, observer });
5016 + }
5017 + }
5018 + removeObserver(observer) {
5019 + if (this.observers.includes(observer)) {
5020 + this.observers = this.observers.filter((x) => x !== observer);
5021 + if (!this.observers.length) {
5022 + if (this.#retryer) {
5023 + if (this.#abortSignalConsumed) {
5024 + this.#retryer.cancel({ revert: true });
5025 + } else {
5026 + this.#retryer.cancelRetry();
5027 + }
5028 + }
5029 + this.scheduleGc();
5030 + }
5031 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
5032 + }
5033 + }
5034 + getObserversCount() {
5035 + return this.observers.length;
5036 + }
5037 + invalidate() {
5038 + if (!this.state.isInvalidated) {
5039 + this.#dispatch({ type: "invalidate" });
5040 + }
5041 + }
5042 + fetch(options, fetchOptions) {
5043 + if (this.state.fetchStatus !== "idle") {
5044 + if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) {
5045 + this.cancel({ silent: true });
5046 + } else if (this.#retryer) {
5047 + this.#retryer.continueRetry();
5048 + return this.#retryer.promise;
5049 + }
5050 + }
5051 + if (options) {
5052 + this.setOptions(options);
5053 + }
5054 + if (!this.options.queryFn) {
5055 + const observer = this.observers.find((x) => x.options.queryFn);
5056 + if (observer) {
5057 + this.setOptions(observer.options);
5058 + }
5059 + }
5060 + if (true) {
5061 + if (!Array.isArray(this.options.queryKey)) {
5062 + console.error(
5063 + `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`
5064 + );
5065 + }
5066 + }
5067 + const abortController = new AbortController();
5068 + const addSignalProperty = (object) => {
5069 + Object.defineProperty(object, "signal", {
5070 + enumerable: true,
5071 + get: () => {
5072 + this.#abortSignalConsumed = true;
5073 + return abortController.signal;
5074 + }
5075 + });
5076 + };
5077 + const fetchFn = () => {
5078 + const queryFn = (0, import_utils.ensureQueryFn)(this.options, fetchOptions);
5079 + const queryFnContext = {
5080 + queryKey: this.queryKey,
5081 + meta: this.meta
5082 + };
5083 + addSignalProperty(queryFnContext);
5084 + this.#abortSignalConsumed = false;
5085 + if (this.options.persister) {
5086 + return this.options.persister(
5087 + queryFn,
5088 + queryFnContext,
5089 + this
5090 + );
5091 + }
5092 + return queryFn(queryFnContext);
5093 + };
5094 + const context = {
5095 + fetchOptions,
5096 + options: this.options,
5097 + queryKey: this.queryKey,
5098 + state: this.state,
5099 + fetchFn
5100 + };
5101 + addSignalProperty(context);
5102 + this.options.behavior?.onFetch(
5103 + context,
5104 + this
5105 + );
5106 + this.#revertState = this.state;
5107 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
5108 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
5109 + }
5110 + const onError = (error) => {
5111 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
5112 + this.#dispatch({
5113 + type: "error",
5114 + error
5115 + });
5116 + }
5117 + if (!(0, import_retryer.isCancelledError)(error)) {
5118 + this.#cache.config.onError?.(
5119 + error,
5120 + this
5121 + );
5122 + this.#cache.config.onSettled?.(
5123 + this.state.data,
5124 + error,
5125 + this
5126 + );
5127 + }
5128 + if (!this.isFetchingOptimistic) {
5129 + this.scheduleGc();
5130 + }
5131 + this.isFetchingOptimistic = false;
5132 + };
5133 + this.#retryer = (0, import_retryer.createRetryer)({
5134 + initialPromise: fetchOptions?.initialPromise,
5135 + fn: context.fetchFn,
5136 + abort: abortController.abort.bind(abortController),
5137 + onSuccess: (data) => {
5138 + if (data === void 0) {
5139 + if (true) {
5140 + console.error(
5141 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
5142 + );
5143 + }
5144 + onError(new Error(`${this.queryHash} data is undefined`));
5145 + return;
5146 + }
5147 + this.setData(data);
5148 + this.#cache.config.onSuccess?.(data, this);
5149 + this.#cache.config.onSettled?.(
5150 + data,
5151 + this.state.error,
5152 + this
5153 + );
5154 + if (!this.isFetchingOptimistic) {
5155 + this.scheduleGc();
5156 + }
5157 + this.isFetchingOptimistic = false;
5158 + },
5159 + onError,
5160 + onFail: (failureCount, error) => {
5161 + this.#dispatch({ type: "failed", failureCount, error });
5162 + },
5163 + onPause: () => {
5164 + this.#dispatch({ type: "pause" });
5165 + },
5166 + onContinue: () => {
5167 + this.#dispatch({ type: "continue" });
5168 + },
5169 + retry: context.options.retry,
5170 + retryDelay: context.options.retryDelay,
5171 + networkMode: context.options.networkMode,
5172 + canRun: () => true
5173 + });
5174 + return this.#retryer.start();
5175 + }
5176 + #dispatch(action) {
5177 + const reducer = (state) => {
5178 + switch (action.type) {
5179 + case "failed":
5180 + return {
5181 + ...state,
5182 + fetchFailureCount: action.failureCount,
5183 + fetchFailureReason: action.error
5184 + };
5185 + case "pause":
5186 + return {
5187 + ...state,
5188 + fetchStatus: "paused"
5189 + };
5190 + case "continue":
5191 + return {
5192 + ...state,
5193 + fetchStatus: "fetching"
5194 + };
5195 + case "fetch":
5196 + return {
5197 + ...state,
5198 + ...fetchState(state.data, this.options),
5199 + fetchMeta: action.meta ?? null
5200 + };
5201 + case "success":
5202 + return {
5203 + ...state,
5204 + data: action.data,
5205 + dataUpdateCount: state.dataUpdateCount + 1,
5206 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
5207 + error: null,
5208 + isInvalidated: false,
5209 + status: "success",
5210 + ...!action.manual && {
5211 + fetchStatus: "idle",
5212 + fetchFailureCount: 0,
5213 + fetchFailureReason: null
5214 + }
5215 + };
5216 + case "error":
5217 + const error = action.error;
5218 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
5219 + return { ...this.#revertState, fetchStatus: "idle" };
5220 + }
5221 + return {
5222 + ...state,
5223 + error,
5224 + errorUpdateCount: state.errorUpdateCount + 1,
5225 + errorUpdatedAt: Date.now(),
5226 + fetchFailureCount: state.fetchFailureCount + 1,
5227 + fetchFailureReason: error,
5228 + fetchStatus: "idle",
5229 + status: "error"
5230 + };
5231 + case "invalidate":
5232 + return {
5233 + ...state,
5234 + isInvalidated: true
5235 + };
5236 + case "setState":
5237 + return {
5238 + ...state,
5239 + ...action.state
5240 + };
5241 + }
5242 + };
5243 + this.state = reducer(this.state);
5244 + import_notifyManager.notifyManager.batch(() => {
5245 + this.observers.forEach((observer) => {
5246 + observer.onQueryUpdate();
5247 + });
5248 + this.#cache.notify({ query: this, type: "updated", action });
5249 + });
5250 + }
5251 +};
5252 +function fetchState(data, options) {
5253 + return {
5254 + fetchFailureCount: 0,
5255 + fetchFailureReason: null,
5256 + fetchStatus: (0, import_retryer.canFetch)(options.networkMode) ? "fetching" : "paused",
5257 + ...data === void 0 && {
5258 + error: null,
5259 + status: "pending"
5260 + }
5261 + };
5262 +}
5263 +function getDefaultState(options) {
5264 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
5265 + const hasData = data !== void 0;
5266 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
5267 + return {
5268 + data,
5269 + dataUpdateCount: 0,
5270 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
5271 + error: null,
5272 + errorUpdateCount: 0,
5273 + errorUpdatedAt: 0,
5274 + fetchFailureCount: 0,
5275 + fetchFailureReason: null,
5276 + fetchMeta: null,
5277 + isInvalidated: false,
5278 + status: hasData ? "success" : "pending",
5279 + fetchStatus: "idle"
5280 + };
5281 +}
5282 +// Annotate the CommonJS export names for ESM import in node:
5283 +0 && (0);
5284 +//# sourceMappingURL=query.cjs.map
5285 +
5286 +/***/ }),
5287 +
5288 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
5289 +/*!************************************************************************!*\
5290 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
5291 + \************************************************************************/
5292 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5293 +
5294 +"use strict";
5295 +
5296 +var __defProp = Object.defineProperty;
5297 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5298 +var __getOwnPropNames = Object.getOwnPropertyNames;
5299 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5300 +var __export = (target, all) => {
5301 + for (var name in all)
5302 + __defProp(target, name, { get: all[name], enumerable: true });
5303 +};
5304 +var __copyProps = (to, from, except, desc) => {
5305 + if (from && typeof from === "object" || typeof from === "function") {
5306 + for (let key of __getOwnPropNames(from))
5307 + if (!__hasOwnProp.call(to, key) && key !== except)
5308 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5309 + }
5310 + return to;
5311 +};
5312 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5313 +
5314 +// src/queryCache.ts
5315 +var queryCache_exports = {};
5316 +__export(queryCache_exports, {
5317 + QueryCache: () => QueryCache
5318 +});
5319 +module.exports = __toCommonJS(queryCache_exports);
5320 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5321 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5322 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5323 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5324 +var QueryCache = class extends import_subscribable.Subscribable {
5325 + constructor(config = {}) {
5326 + super();
5327 + this.config = config;
5328 + this.#queries = /* @__PURE__ */ new Map();
5329 + }
5330 + #queries;
5331 + build(client, options, state) {
5332 + const queryKey = options.queryKey;
5333 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
5334 + let query = this.get(queryHash);
5335 + if (!query) {
5336 + query = new import_query.Query({
5337 + cache: this,
5338 + queryKey,
5339 + queryHash,
5340 + options: client.defaultQueryOptions(options),
5341 + state,
5342 + defaultOptions: client.getQueryDefaults(queryKey)
5343 + });
5344 + this.add(query);
5345 + }
5346 + return query;
5347 + }
5348 + add(query) {
5349 + if (!this.#queries.has(query.queryHash)) {
5350 + this.#queries.set(query.queryHash, query);
5351 + this.notify({
5352 + type: "added",
5353 + query
5354 + });
5355 + }
5356 + }
5357 + remove(query) {
5358 + const queryInMap = this.#queries.get(query.queryHash);
5359 + if (queryInMap) {
5360 + query.destroy();
5361 + if (queryInMap === query) {
5362 + this.#queries.delete(query.queryHash);
5363 + }
5364 + this.notify({ type: "removed", query });
5365 + }
5366 + }
5367 + clear() {
5368 + import_notifyManager.notifyManager.batch(() => {
5369 + this.getAll().forEach((query) => {
5370 + this.remove(query);
5371 + });
5372 + });
5373 + }
5374 + get(queryHash) {
5375 + return this.#queries.get(queryHash);
5376 + }
5377 + getAll() {
5378 + return [...this.#queries.values()];
5379 + }
5380 + find(filters) {
5381 + const defaultedFilters = { exact: true, ...filters };
5382 + return this.getAll().find(
5383 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
5384 + );
5385 + }
5386 + findAll(filters = {}) {
5387 + const queries = this.getAll();
5388 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
5389 + }
5390 + notify(event) {
5391 + import_notifyManager.notifyManager.batch(() => {
5392 + this.listeners.forEach((listener) => {
5393 + listener(event);
5394 + });
5395 + });
5396 + }
5397 + onFocus() {
5398 + import_notifyManager.notifyManager.batch(() => {
5399 + this.getAll().forEach((query) => {
5400 + query.onFocus();
5401 + });
5402 + });
5403 + }
5404 + onOnline() {
5405 + import_notifyManager.notifyManager.batch(() => {
5406 + this.getAll().forEach((query) => {
5407 + query.onOnline();
5408 + });
5409 + });
5410 + }
5411 +};
5412 +// Annotate the CommonJS export names for ESM import in node:
5413 +0 && (0);
5414 +//# sourceMappingURL=queryCache.cjs.map
5415 +
5416 +/***/ }),
5417 +
5418 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
5419 +/*!*************************************************************************!*\
5420 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
5421 + \*************************************************************************/
5422 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5423 +
5424 +"use strict";
5425 +
5426 +var __defProp = Object.defineProperty;
5427 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5428 +var __getOwnPropNames = Object.getOwnPropertyNames;
5429 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5430 +var __export = (target, all) => {
5431 + for (var name in all)
5432 + __defProp(target, name, { get: all[name], enumerable: true });
5433 +};
5434 +var __copyProps = (to, from, except, desc) => {
5435 + if (from && typeof from === "object" || typeof from === "function") {
5436 + for (let key of __getOwnPropNames(from))
5437 + if (!__hasOwnProp.call(to, key) && key !== except)
5438 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5439 + }
5440 + return to;
5441 +};
5442 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5443 +
5444 +// src/queryClient.ts
5445 +var queryClient_exports = {};
5446 +__export(queryClient_exports, {
5447 + QueryClient: () => QueryClient
5448 +});
5449 +module.exports = __toCommonJS(queryClient_exports);
5450 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5451 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
5452 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
5453 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5454 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
5455 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5456 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
5457 +var QueryClient = class {
5458 + #queryCache;
5459 + #mutationCache;
5460 + #defaultOptions;
5461 + #queryDefaults;
5462 + #mutationDefaults;
5463 + #mountCount;
5464 + #unsubscribeFocus;
5465 + #unsubscribeOnline;
5466 + constructor(config = {}) {
5467 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
5468 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
5469 + this.#defaultOptions = config.defaultOptions || {};
5470 + this.#queryDefaults = /* @__PURE__ */ new Map();
5471 + this.#mutationDefaults = /* @__PURE__ */ new Map();
5472 + this.#mountCount = 0;
5473 + }
5474 + mount() {
5475 + this.#mountCount++;
5476 + if (this.#mountCount !== 1)
5477 + return;
5478 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(async (focused) => {
5479 + if (focused) {
5480 + await this.resumePausedMutations();
5481 + this.#queryCache.onFocus();
5482 + }
5483 + });
5484 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(async (online) => {
5485 + if (online) {
5486 + await this.resumePausedMutations();
5487 + this.#queryCache.onOnline();
5488 + }
5489 + });
5490 + }
5491 + unmount() {
5492 + this.#mountCount--;
5493 + if (this.#mountCount !== 0)
5494 + return;
5495 + this.#unsubscribeFocus?.();
5496 + this.#unsubscribeFocus = void 0;
5497 + this.#unsubscribeOnline?.();
5498 + this.#unsubscribeOnline = void 0;
5499 + }
5500 + isFetching(filters) {
5501 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
5502 + }
5503 + isMutating(filters) {
5504 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
5505 + }
5506 + getQueryData(queryKey) {
5507 + const options = this.defaultQueryOptions({ queryKey });
5508 + return this.#queryCache.get(options.queryHash)?.state.data;
5509 + }
5510 + ensureQueryData(options) {
5511 + const cachedData = this.getQueryData(options.queryKey);
5512 + if (cachedData === void 0)
5513 + return this.fetchQuery(options);
5514 + else {
5515 + const defaultedOptions = this.defaultQueryOptions(options);
5516 + const query = this.#queryCache.build(this, defaultedOptions);
5517 + if (options.revalidateIfStale && query.isStaleByTime((0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query))) {
5518 + void this.prefetchQuery(defaultedOptions);
5519 + }
5520 + return Promise.resolve(cachedData);
5521 + }
5522 + }
5523 + getQueriesData(filters) {
5524 + return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {
5525 + const data = state.data;
5526 + return [queryKey, data];
5527 + });
5528 + }
5529 + setQueryData(queryKey, updater, options) {
5530 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
5531 + const query = this.#queryCache.get(
5532 + defaultedOptions.queryHash
5533 + );
5534 + const prevData = query?.state.data;
5535 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
5536 + if (data === void 0) {
5537 + return void 0;
5538 + }
5539 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
5540 + }
5541 + setQueriesData(filters, updater, options) {
5542 + return import_notifyManager.notifyManager.batch(
5543 + () => this.#queryCache.findAll(filters).map(({ queryKey }) => [
5544 + queryKey,
5545 + this.setQueryData(queryKey, updater, options)
5546 + ])
5547 + );
5548 + }
5549 + getQueryState(queryKey) {
5550 + const options = this.defaultQueryOptions({ queryKey });
5551 + return this.#queryCache.get(options.queryHash)?.state;
5552 + }
5553 + removeQueries(filters) {
5554 + const queryCache = this.#queryCache;
5555 + import_notifyManager.notifyManager.batch(() => {
5556 + queryCache.findAll(filters).forEach((query) => {
5557 + queryCache.remove(query);
5558 + });
5559 + });
5560 + }
5561 + resetQueries(filters, options) {
5562 + const queryCache = this.#queryCache;
5563 + const refetchFilters = {
5564 + type: "active",
5565 + ...filters
5566 + };
5567 + return import_notifyManager.notifyManager.batch(() => {
5568 + queryCache.findAll(filters).forEach((query) => {
5569 + query.reset();
5570 + });
5571 + return this.refetchQueries(refetchFilters, options);
5572 + });
5573 + }
5574 + cancelQueries(filters = {}, cancelOptions = {}) {
5575 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
5576 + const promises = import_notifyManager.notifyManager.batch(
5577 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
5578 + );
5579 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
5580 + }
5581 + invalidateQueries(filters = {}, options = {}) {
5582 + return import_notifyManager.notifyManager.batch(() => {
5583 + this.#queryCache.findAll(filters).forEach((query) => {
5584 + query.invalidate();
5585 + });
5586 + if (filters.refetchType === "none") {
5587 + return Promise.resolve();
5588 + }
5589 + const refetchFilters = {
5590 + ...filters,
5591 + type: filters.refetchType ?? filters.type ?? "active"
5592 + };
5593 + return this.refetchQueries(refetchFilters, options);
5594 + });
5595 + }
5596 + refetchQueries(filters = {}, options) {
5597 + const fetchOptions = {
5598 + ...options,
5599 + cancelRefetch: options?.cancelRefetch ?? true
5600 + };
5601 + const promises = import_notifyManager.notifyManager.batch(
5602 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
5603 + let promise = query.fetch(void 0, fetchOptions);
5604 + if (!fetchOptions.throwOnError) {
5605 + promise = promise.catch(import_utils.noop);
5606 + }
5607 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
5608 + })
5609 + );
5610 + return Promise.all(promises).then(import_utils.noop);
5611 + }
5612 + fetchQuery(options) {
5613 + const defaultedOptions = this.defaultQueryOptions(options);
5614 + if (defaultedOptions.retry === void 0) {
5615 + defaultedOptions.retry = false;
5616 + }
5617 + const query = this.#queryCache.build(this, defaultedOptions);
5618 + return query.isStaleByTime(
5619 + (0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query)
5620 + ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
5621 + }
5622 + prefetchQuery(options) {
5623 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
5624 + }
5625 + fetchInfiniteQuery(options) {
5626 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
5627 + return this.fetchQuery(options);
5628 + }
5629 + prefetchInfiniteQuery(options) {
5630 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
5631 + }
5632 + resumePausedMutations() {
5633 + if (import_onlineManager.onlineManager.isOnline()) {
5634 + return this.#mutationCache.resumePausedMutations();
5635 + }
5636 + return Promise.resolve();
5637 + }
5638 + getQueryCache() {
5639 + return this.#queryCache;
5640 + }
5641 + getMutationCache() {
5642 + return this.#mutationCache;
5643 + }
5644 + getDefaultOptions() {
5645 + return this.#defaultOptions;
5646 + }
5647 + setDefaultOptions(options) {
5648 + this.#defaultOptions = options;
5649 + }
5650 + setQueryDefaults(queryKey, options) {
5651 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
5652 + queryKey,
5653 + defaultOptions: options
5654 + });
5655 + }
5656 + getQueryDefaults(queryKey) {
5657 + const defaults = [...this.#queryDefaults.values()];
5658 + let result = {};
5659 + defaults.forEach((queryDefault) => {
5660 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
5661 + result = { ...result, ...queryDefault.defaultOptions };
5662 + }
5663 + });
5664 + return result;
5665 + }
5666 + setMutationDefaults(mutationKey, options) {
5667 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
5668 + mutationKey,
5669 + defaultOptions: options
5670 + });
5671 + }
5672 + getMutationDefaults(mutationKey) {
5673 + const defaults = [...this.#mutationDefaults.values()];
5674 + let result = {};
5675 + defaults.forEach((queryDefault) => {
5676 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
5677 + result = { ...result, ...queryDefault.defaultOptions };
5678 + }
5679 + });
5680 + return result;
5681 + }
5682 + defaultQueryOptions(options) {
5683 + if (options._defaulted) {
5684 + return options;
5685 + }
5686 + const defaultedOptions = {
5687 + ...this.#defaultOptions.queries,
5688 + ...this.getQueryDefaults(options.queryKey),
5689 + ...options,
5690 + _defaulted: true
5691 + };
5692 + if (!defaultedOptions.queryHash) {
5693 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
5694 + defaultedOptions.queryKey,
5695 + defaultedOptions
5696 + );
5697 + }
5698 + if (defaultedOptions.refetchOnReconnect === void 0) {
5699 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
5700 + }
5701 + if (defaultedOptions.throwOnError === void 0) {
5702 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
5703 + }
5704 + if (!defaultedOptions.networkMode && defaultedOptions.persister) {
5705 + defaultedOptions.networkMode = "offlineFirst";
5706 + }
5707 + if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === import_utils.skipToken) {
5708 + defaultedOptions.enabled = false;
5709 + }
5710 + return defaultedOptions;
5711 + }
5712 + defaultMutationOptions(options) {
5713 + if (options?._defaulted) {
5714 + return options;
5715 + }
5716 + return {
5717 + ...this.#defaultOptions.mutations,
5718 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
5719 + ...options,
5720 + _defaulted: true
5721 + };
5722 + }
5723 + clear() {
5724 + this.#queryCache.clear();
5725 + this.#mutationCache.clear();
5726 + }
5727 +};
5728 +// Annotate the CommonJS export names for ESM import in node:
5729 +0 && (0);
5730 +//# sourceMappingURL=queryClient.cjs.map
5731 +
5732 +/***/ }),
5733 +
5734 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
5735 +/*!***************************************************************************!*\
5736 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
5737 + \***************************************************************************/
5738 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5739 +
5740 +"use strict";
5741 +
5742 +var __defProp = Object.defineProperty;
5743 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5744 +var __getOwnPropNames = Object.getOwnPropertyNames;
5745 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5746 +var __export = (target, all) => {
5747 + for (var name in all)
5748 + __defProp(target, name, { get: all[name], enumerable: true });
5749 +};
5750 +var __copyProps = (to, from, except, desc) => {
5751 + if (from && typeof from === "object" || typeof from === "function") {
5752 + for (let key of __getOwnPropNames(from))
5753 + if (!__hasOwnProp.call(to, key) && key !== except)
5754 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5755 + }
5756 + return to;
5757 +};
5758 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5759 +
5760 +// src/queryObserver.ts
5761 +var queryObserver_exports = {};
5762 +__export(queryObserver_exports, {
5763 + QueryObserver: () => QueryObserver
5764 +});
5765 +module.exports = __toCommonJS(queryObserver_exports);
5766 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5767 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5768 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5769 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5770 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5771 +var QueryObserver = class extends import_subscribable.Subscribable {
5772 + constructor(client, options) {
5773 + super();
5774 + this.options = options;
5775 + this.#client = client;
5776 + this.#selectError = null;
5777 + this.bindMethods();
5778 + this.setOptions(options);
5779 + }
5780 + #client;
5781 + #currentQuery = void 0;
5782 + #currentQueryInitialState = void 0;
5783 + #currentResult = void 0;
5784 + #currentResultState;
5785 + #currentResultOptions;
5786 + #selectError;
5787 + #selectFn;
5788 + #selectResult;
5789 + // This property keeps track of the last query with defined data.
5790 + // It will be used to pass the previous data and query to the placeholder function between renders.
5791 + #lastQueryWithDefinedData;
5792 + #staleTimeoutId;
5793 + #refetchIntervalId;
5794 + #currentRefetchInterval;
5795 + #trackedProps = /* @__PURE__ */ new Set();
5796 + bindMethods() {
5797 + this.refetch = this.refetch.bind(this);
5798 + }
5799 + onSubscribe() {
5800 + if (this.listeners.size === 1) {
5801 + this.#currentQuery.addObserver(this);
5802 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
5803 + this.#executeFetch();
5804 + } else {
5805 + this.updateResult();
5806 + }
5807 + this.#updateTimers();
5808 + }
5809 + }
5810 + onUnsubscribe() {
5811 + if (!this.hasListeners()) {
5812 + this.destroy();
5813 + }
5814 + }
5815 + shouldFetchOnReconnect() {
5816 + return shouldFetchOn(
5817 + this.#currentQuery,
5818 + this.options,
5819 + this.options.refetchOnReconnect
5820 + );
5821 + }
5822 + shouldFetchOnWindowFocus() {
5823 + return shouldFetchOn(
5824 + this.#currentQuery,
5825 + this.options,
5826 + this.options.refetchOnWindowFocus
5827 + );
5828 + }
5829 + destroy() {
5830 + this.listeners = /* @__PURE__ */ new Set();
5831 + this.#clearStaleTimeout();
5832 + this.#clearRefetchInterval();
5833 + this.#currentQuery.removeObserver(this);
5834 + }
5835 + setOptions(options, notifyOptions) {
5836 + const prevOptions = this.options;
5837 + const prevQuery = this.#currentQuery;
5838 + this.options = this.#client.defaultQueryOptions(options);
5839 + if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== "boolean") {
5840 + throw new Error(
5841 + "Expected enabled to be a boolean or a callback that returns a boolean"
5842 + );
5843 + }
5844 + this.#updateQuery();
5845 + this.#currentQuery.setOptions(this.options);
5846 + if (prevOptions._defaulted && !(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
5847 + this.#client.getQueryCache().notify({
5848 + type: "observerOptionsUpdated",
5849 + query: this.#currentQuery,
5850 + observer: this
5851 + });
5852 + }
5853 + const mounted = this.hasListeners();
5854 + if (mounted && shouldFetchOptionally(
5855 + this.#currentQuery,
5856 + prevQuery,
5857 + this.options,
5858 + prevOptions
5859 + )) {
5860 + this.#executeFetch();
5861 + }
5862 + this.updateResult(notifyOptions);
5863 + if (mounted && (this.#currentQuery !== prevQuery || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== (0, import_utils.resolveEnabled)(prevOptions.enabled, this.#currentQuery) || (0, import_utils.resolveStaleTime)(this.options.staleTime, this.#currentQuery) !== (0, import_utils.resolveStaleTime)(prevOptions.staleTime, this.#currentQuery))) {
5864 + this.#updateStaleTimeout();
5865 + }
5866 + const nextRefetchInterval = this.#computeRefetchInterval();
5867 + if (mounted && (this.#currentQuery !== prevQuery || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) !== (0, import_utils.resolveEnabled)(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) {
5868 + this.#updateRefetchInterval(nextRefetchInterval);
5869 + }
5870 + }
5871 + getOptimisticResult(options) {
5872 + const query = this.#client.getQueryCache().build(this.#client, options);
5873 + const result = this.createResult(query, options);
5874 + if (shouldAssignObserverCurrentProperties(this, result)) {
5875 + this.#currentResult = result;
5876 + this.#currentResultOptions = this.options;
5877 + this.#currentResultState = this.#currentQuery.state;
5878 + }
5879 + return result;
5880 + }
5881 + getCurrentResult() {
5882 + return this.#currentResult;
5883 + }
5884 + trackResult(result, onPropTracked) {
5885 + const trackedResult = {};
5886 + Object.keys(result).forEach((key) => {
5887 + Object.defineProperty(trackedResult, key, {
5888 + configurable: false,
5889 + enumerable: true,
5890 + get: () => {
5891 + this.trackProp(key);
5892 + onPropTracked?.(key);
5893 + return result[key];
5894 + }
5895 + });
5896 + });
5897 + return trackedResult;
5898 + }
5899 + trackProp(key) {
5900 + this.#trackedProps.add(key);
5901 + }
5902 + getCurrentQuery() {
5903 + return this.#currentQuery;
5904 + }
5905 + refetch({ ...options } = {}) {
5906 + return this.fetch({
5907 + ...options
5908 + });
5909 + }
5910 + fetchOptimistic(options) {
5911 + const defaultedOptions = this.#client.defaultQueryOptions(options);
5912 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
5913 + query.isFetchingOptimistic = true;
5914 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
5915 + }
5916 + fetch(fetchOptions) {
5917 + return this.#executeFetch({
5918 + ...fetchOptions,
5919 + cancelRefetch: fetchOptions.cancelRefetch ?? true
5920 + }).then(() => {
5921 + this.updateResult();
5922 + return this.#currentResult;
5923 + });
5924 + }
5925 + #executeFetch(fetchOptions) {
5926 + this.#updateQuery();
5927 + let promise = this.#currentQuery.fetch(
5928 + this.options,
5929 + fetchOptions
5930 + );
5931 + if (!fetchOptions?.throwOnError) {
5932 + promise = promise.catch(import_utils.noop);
5933 + }
5934 + return promise;
5935 + }
5936 + #updateStaleTimeout() {
5937 + this.#clearStaleTimeout();
5938 + const staleTime = (0, import_utils.resolveStaleTime)(
5939 + this.options.staleTime,
5940 + this.#currentQuery
5941 + );
5942 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(staleTime)) {
5943 + return;
5944 + }
5945 + const time = (0, import_utils.timeUntilStale)(this.#currentResult.dataUpdatedAt, staleTime);
5946 + const timeout = time + 1;
5947 + this.#staleTimeoutId = setTimeout(() => {
5948 + if (!this.#currentResult.isStale) {
5949 + this.updateResult();
5950 + }
5951 + }, timeout);
5952 + }
5953 + #computeRefetchInterval() {
5954 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
5955 + }
5956 + #updateRefetchInterval(nextInterval) {
5957 + this.#clearRefetchInterval();
5958 + this.#currentRefetchInterval = nextInterval;
5959 + if (import_utils.isServer || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
5960 + return;
5961 + }
5962 + this.#refetchIntervalId = setInterval(() => {
5963 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
5964 + this.#executeFetch();
5965 + }
5966 + }, this.#currentRefetchInterval);
5967 + }
5968 + #updateTimers() {
5969 + this.#updateStaleTimeout();
5970 + this.#updateRefetchInterval(this.#computeRefetchInterval());
5971 + }
5972 + #clearStaleTimeout() {
5973 + if (this.#staleTimeoutId) {
5974 + clearTimeout(this.#staleTimeoutId);
5975 + this.#staleTimeoutId = void 0;
5976 + }
5977 + }
5978 + #clearRefetchInterval() {
5979 + if (this.#refetchIntervalId) {
5980 + clearInterval(this.#refetchIntervalId);
5981 + this.#refetchIntervalId = void 0;
5982 + }
5983 + }
5984 + createResult(query, options) {
5985 + const prevQuery = this.#currentQuery;
5986 + const prevOptions = this.options;
5987 + const prevResult = this.#currentResult;
5988 + const prevResultState = this.#currentResultState;
5989 + const prevResultOptions = this.#currentResultOptions;
5990 + const queryChange = query !== prevQuery;
5991 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
5992 + const { state } = query;
5993 + let newState = { ...state };
5994 + let isPlaceholderData = false;
5995 + let data;
5996 + if (options._optimisticResults) {
5997 + const mounted = this.hasListeners();
5998 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
5999 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
6000 + if (fetchOnMount || fetchOptionally) {
6001 + newState = {
6002 + ...newState,
6003 + ...(0, import_query.fetchState)(state.data, query.options)
6004 + };
6005 + }
6006 + if (options._optimisticResults === "isRestoring") {
6007 + newState.fetchStatus = "idle";
6008 + }
6009 + }
6010 + let { error, errorUpdatedAt, status } = newState;
6011 + if (options.select && newState.data !== void 0) {
6012 + if (prevResult && newState.data === prevResultState?.data && options.select === this.#selectFn) {
6013 + data = this.#selectResult;
6014 + } else {
6015 + try {
6016 + this.#selectFn = options.select;
6017 + data = options.select(newState.data);
6018 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
6019 + this.#selectResult = data;
6020 + this.#selectError = null;
6021 + } catch (selectError) {
6022 + this.#selectError = selectError;
6023 + }
6024 + }
6025 + } else {
6026 + data = newState.data;
6027 + }
6028 + if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
6029 + let placeholderData;
6030 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
6031 + placeholderData = prevResult.data;
6032 + } else {
6033 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
6034 + this.#lastQueryWithDefinedData?.state.data,
6035 + this.#lastQueryWithDefinedData
6036 + ) : options.placeholderData;
6037 + if (options.select && placeholderData !== void 0) {
6038 + try {
6039 + placeholderData = options.select(placeholderData);
6040 + this.#selectError = null;
6041 + } catch (selectError) {
6042 + this.#selectError = selectError;
6043 + }
6044 + }
6045 + }
6046 + if (placeholderData !== void 0) {
6047 + status = "success";
6048 + data = (0, import_utils.replaceData)(
6049 + prevResult?.data,
6050 + placeholderData,
6051 + options
6052 + );
6053 + isPlaceholderData = true;
6054 + }
6055 + }
6056 + if (this.#selectError) {
6057 + error = this.#selectError;
6058 + data = this.#selectResult;
6059 + errorUpdatedAt = Date.now();
6060 + status = "error";
6061 + }
6062 + const isFetching = newState.fetchStatus === "fetching";
6063 + const isPending = status === "pending";
6064 + const isError = status === "error";
6065 + const isLoading = isPending && isFetching;
6066 + const hasData = data !== void 0;
6067 + const result = {
6068 + status,
6069 + fetchStatus: newState.fetchStatus,
6070 + isPending,
6071 + isSuccess: status === "success",
6072 + isError,
6073 + isInitialLoading: isLoading,
6074 + isLoading,
6075 + data,
6076 + dataUpdatedAt: newState.dataUpdatedAt,
6077 + error,
6078 + errorUpdatedAt,
6079 + failureCount: newState.fetchFailureCount,
6080 + failureReason: newState.fetchFailureReason,
6081 + errorUpdateCount: newState.errorUpdateCount,
6082 + isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
6083 + isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
6084 + isFetching,
6085 + isRefetching: isFetching && !isPending,
6086 + isLoadingError: isError && !hasData,
6087 + isPaused: newState.fetchStatus === "paused",
6088 + isPlaceholderData,
6089 + isRefetchError: isError && hasData,
6090 + isStale: isStale(query, options),
6091 + refetch: this.refetch
6092 + };
6093 + return result;
6094 + }
6095 + updateResult(notifyOptions) {
6096 + const prevResult = this.#currentResult;
6097 + const nextResult = this.createResult(this.#currentQuery, this.options);
6098 + this.#currentResultState = this.#currentQuery.state;
6099 + this.#currentResultOptions = this.options;
6100 + if (this.#currentResultState.data !== void 0) {
6101 + this.#lastQueryWithDefinedData = this.#currentQuery;
6102 + }
6103 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
6104 + return;
6105 + }
6106 + this.#currentResult = nextResult;
6107 + const defaultNotifyOptions = {};
6108 + const shouldNotifyListeners = () => {
6109 + if (!prevResult) {
6110 + return true;
6111 + }
6112 + const { notifyOnChangeProps } = this.options;
6113 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
6114 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
6115 + return true;
6116 + }
6117 + const includedProps = new Set(
6118 + notifyOnChangePropsValue ?? this.#trackedProps
6119 + );
6120 + if (this.options.throwOnError) {
6121 + includedProps.add("error");
6122 + }
6123 + return Object.keys(this.#currentResult).some((key) => {
6124 + const typedKey = key;
6125 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
6126 + return changed && includedProps.has(typedKey);
6127 + });
6128 + };
6129 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
6130 + defaultNotifyOptions.listeners = true;
6131 + }
6132 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
6133 + }
6134 + #updateQuery() {
6135 + const query = this.#client.getQueryCache().build(this.#client, this.options);
6136 + if (query === this.#currentQuery) {
6137 + return;
6138 + }
6139 + const prevQuery = this.#currentQuery;
6140 + this.#currentQuery = query;
6141 + this.#currentQueryInitialState = query.state;
6142 + if (this.hasListeners()) {
6143 + prevQuery?.removeObserver(this);
6144 + query.addObserver(this);
6145 + }
6146 + }
6147 + onQueryUpdate() {
6148 + this.updateResult();
6149 + if (this.hasListeners()) {
6150 + this.#updateTimers();
6151 + }
6152 + }
6153 + #notify(notifyOptions) {
6154 + import_notifyManager.notifyManager.batch(() => {
6155 + if (notifyOptions.listeners) {
6156 + this.listeners.forEach((listener) => {
6157 + listener(this.#currentResult);
6158 + });
6159 + }
6160 + this.#client.getQueryCache().notify({
6161 + query: this.#currentQuery,
6162 + type: "observerResultsUpdated"
6163 + });
6164 + });
6165 + }
6166 +};
6167 +function shouldLoadOnMount(query, options) {
6168 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
6169 +}
6170 +function shouldFetchOnMount(query, options) {
6171 + return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
6172 +}
6173 +function shouldFetchOn(query, options, field) {
6174 + if ((0, import_utils.resolveEnabled)(options.enabled, query) !== false) {
6175 + const value = typeof field === "function" ? field(query) : field;
6176 + return value === "always" || value !== false && isStale(query, options);
6177 + }
6178 + return false;
6179 +}
6180 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
6181 + return (query !== prevQuery || (0, import_utils.resolveEnabled)(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
6182 +}
6183 +function isStale(query, options) {
6184 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.isStaleByTime((0, import_utils.resolveStaleTime)(options.staleTime, query));
6185 +}
6186 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
6187 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
6188 + return true;
6189 + }
6190 + return false;
6191 +}
6192 +// Annotate the CommonJS export names for ESM import in node:
6193 +0 && (0);
6194 +//# sourceMappingURL=queryObserver.cjs.map
6195 +
6196 +/***/ }),
6197 +
6198 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
6199 +/*!***********************************************************************!*\
6200 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
6201 + \***********************************************************************/
6202 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6203 +
6204 +"use strict";
6205 +
6206 +var __defProp = Object.defineProperty;
6207 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6208 +var __getOwnPropNames = Object.getOwnPropertyNames;
6209 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6210 +var __export = (target, all) => {
6211 + for (var name in all)
6212 + __defProp(target, name, { get: all[name], enumerable: true });
6213 +};
6214 +var __copyProps = (to, from, except, desc) => {
6215 + if (from && typeof from === "object" || typeof from === "function") {
6216 + for (let key of __getOwnPropNames(from))
6217 + if (!__hasOwnProp.call(to, key) && key !== except)
6218 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6219 + }
6220 + return to;
6221 +};
6222 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6223 +
6224 +// src/removable.ts
6225 +var removable_exports = {};
6226 +__export(removable_exports, {
6227 + Removable: () => Removable
6228 +});
6229 +module.exports = __toCommonJS(removable_exports);
6230 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6231 +var Removable = class {
6232 + #gcTimeout;
6233 + destroy() {
6234 + this.clearGcTimeout();
6235 + }
6236 + scheduleGc() {
6237 + this.clearGcTimeout();
6238 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
6239 + this.#gcTimeout = setTimeout(() => {
6240 + this.optionalRemove();
6241 + }, this.gcTime);
6242 + }
6243 + }
6244 + updateGcTime(newGcTime) {
6245 + this.gcTime = Math.max(
6246 + this.gcTime || 0,
6247 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
6248 + );
6249 + }
6250 + clearGcTimeout() {
6251 + if (this.#gcTimeout) {
6252 + clearTimeout(this.#gcTimeout);
6253 + this.#gcTimeout = void 0;
6254 + }
6255 + }
6256 +};
6257 +// Annotate the CommonJS export names for ESM import in node:
6258 +0 && (0);
6259 +//# sourceMappingURL=removable.cjs.map
6260 +
6261 +/***/ }),
6262 +
6263 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
6264 +/*!*********************************************************************!*\
6265 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
6266 + \*********************************************************************/
6267 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6268 +
6269 +"use strict";
6270 +
6271 +var __defProp = Object.defineProperty;
6272 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6273 +var __getOwnPropNames = Object.getOwnPropertyNames;
6274 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6275 +var __export = (target, all) => {
6276 + for (var name in all)
6277 + __defProp(target, name, { get: all[name], enumerable: true });
6278 +};
6279 +var __copyProps = (to, from, except, desc) => {
6280 + if (from && typeof from === "object" || typeof from === "function") {
6281 + for (let key of __getOwnPropNames(from))
6282 + if (!__hasOwnProp.call(to, key) && key !== except)
6283 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6284 + }
6285 + return to;
6286 +};
6287 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6288 +
6289 +// src/retryer.ts
6290 +var retryer_exports = {};
6291 +__export(retryer_exports, {
6292 + CancelledError: () => CancelledError,
6293 + canFetch: () => canFetch,
6294 + createRetryer: () => createRetryer,
6295 + isCancelledError: () => isCancelledError
6296 +});
6297 +module.exports = __toCommonJS(retryer_exports);
6298 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
6299 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
6300 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6301 +function defaultRetryDelay(failureCount) {
6302 + return Math.min(1e3 * 2 ** failureCount, 3e4);
6303 +}
6304 +function canFetch(networkMode) {
6305 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
6306 +}
6307 +var CancelledError = class {
6308 + constructor(options) {
6309 + this.revert = options?.revert;
6310 + this.silent = options?.silent;
6311 + }
6312 +};
6313 +function isCancelledError(value) {
6314 + return value instanceof CancelledError;
6315 +}
6316 +function createRetryer(config) {
6317 + let isRetryCancelled = false;
6318 + let failureCount = 0;
6319 + let isResolved = false;
6320 + let continueFn;
6321 + let promiseResolve;
6322 + let promiseReject;
6323 + const promise = new Promise((outerResolve, outerReject) => {
6324 + promiseResolve = outerResolve;
6325 + promiseReject = outerReject;
6326 + });
6327 + const cancel = (cancelOptions) => {
6328 + if (!isResolved) {
6329 + reject(new CancelledError(cancelOptions));
6330 + config.abort?.();
6331 + }
6332 + };
6333 + const cancelRetry = () => {
6334 + isRetryCancelled = true;
6335 + };
6336 + const continueRetry = () => {
6337 + isRetryCancelled = false;
6338 + };
6339 + const canContinue = () => import_focusManager.focusManager.isFocused() && (config.networkMode === "always" || import_onlineManager.onlineManager.isOnline()) && config.canRun();
6340 + const canStart = () => canFetch(config.networkMode) && config.canRun();
6341 + const resolve = (value) => {
6342 + if (!isResolved) {
6343 + isResolved = true;
6344 + config.onSuccess?.(value);
6345 + continueFn?.();
6346 + promiseResolve(value);
6347 + }
6348 + };
6349 + const reject = (value) => {
6350 + if (!isResolved) {
6351 + isResolved = true;
6352 + config.onError?.(value);
6353 + continueFn?.();
6354 + promiseReject(value);
6355 + }
6356 + };
6357 + const pause = () => {
6358 + return new Promise((continueResolve) => {
6359 + continueFn = (value) => {
6360 + if (isResolved || canContinue()) {
6361 + continueResolve(value);
6362 + }
6363 + };
6364 + config.onPause?.();
6365 + }).then(() => {
6366 + continueFn = void 0;
6367 + if (!isResolved) {
6368 + config.onContinue?.();
6369 + }
6370 + });
6371 + };
6372 + const run = () => {
6373 + if (isResolved) {
6374 + return;
6375 + }
6376 + let promiseOrValue;
6377 + const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
6378 + try {
6379 + promiseOrValue = initialPromise ?? config.fn();
6380 + } catch (error) {
6381 + promiseOrValue = Promise.reject(error);
6382 + }
6383 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
6384 + if (isResolved) {
6385 + return;
6386 + }
6387 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
6388 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
6389 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
6390 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
6391 + if (isRetryCancelled || !shouldRetry) {
6392 + reject(error);
6393 + return;
6394 + }
6395 + failureCount++;
6396 + config.onFail?.(failureCount, error);
6397 + (0, import_utils.sleep)(delay).then(() => {
6398 + return canContinue() ? void 0 : pause();
6399 + }).then(() => {
6400 + if (isRetryCancelled) {
6401 + reject(error);
6402 + } else {
6403 + run();
6404 + }
6405 + });
6406 + });
6407 + };
6408 + return {
6409 + promise,
6410 + cancel,
6411 + continue: () => {
6412 + continueFn?.();
6413 + return promise;
6414 + },
6415 + cancelRetry,
6416 + continueRetry,
6417 + canStart,
6418 + start: () => {
6419 + if (canStart()) {
6420 + run();
6421 + } else {
6422 + pause().then(run);
6423 + }
6424 + return promise;
6425 + }
6426 + };
6427 +}
6428 +// Annotate the CommonJS export names for ESM import in node:
6429 +0 && (0);
6430 +//# sourceMappingURL=retryer.cjs.map
6431 +
6432 +/***/ }),
6433 +
6434 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
6435 +/*!**************************************************************************!*\
6436 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
6437 + \**************************************************************************/
6438 +/***/ ((module) => {
6439 +
6440 +"use strict";
6441 +
6442 +var __defProp = Object.defineProperty;
6443 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6444 +var __getOwnPropNames = Object.getOwnPropertyNames;
6445 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6446 +var __export = (target, all) => {
6447 + for (var name in all)
6448 + __defProp(target, name, { get: all[name], enumerable: true });
6449 +};
6450 +var __copyProps = (to, from, except, desc) => {
6451 + if (from && typeof from === "object" || typeof from === "function") {
6452 + for (let key of __getOwnPropNames(from))
6453 + if (!__hasOwnProp.call(to, key) && key !== except)
6454 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6455 + }
6456 + return to;
6457 +};
6458 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6459 +
6460 +// src/subscribable.ts
6461 +var subscribable_exports = {};
6462 +__export(subscribable_exports, {
6463 + Subscribable: () => Subscribable
6464 +});
6465 +module.exports = __toCommonJS(subscribable_exports);
6466 +var Subscribable = class {
6467 + constructor() {
6468 + this.listeners = /* @__PURE__ */ new Set();
6469 + this.subscribe = this.subscribe.bind(this);
6470 + }
6471 + subscribe(listener) {
6472 + this.listeners.add(listener);
6473 + this.onSubscribe();
6474 + return () => {
6475 + this.listeners.delete(listener);
6476 + this.onUnsubscribe();
6477 + };
6478 + }
6479 + hasListeners() {
6480 + return this.listeners.size > 0;
6481 + }
6482 + onSubscribe() {
6483 + }
6484 + onUnsubscribe() {
6485 + }
6486 +};
6487 +// Annotate the CommonJS export names for ESM import in node:
6488 +0 && (0);
6489 +//# sourceMappingURL=subscribable.cjs.map
6490 +
6491 +/***/ }),
6492 +
6493 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
6494 +/*!*******************************************************************!*\
6495 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
6496 + \*******************************************************************/
6497 +/***/ ((module) => {
6498 +
6499 +"use strict";
6500 +
6501 +var __defProp = Object.defineProperty;
6502 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6503 +var __getOwnPropNames = Object.getOwnPropertyNames;
6504 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6505 +var __copyProps = (to, from, except, desc) => {
6506 + if (from && typeof from === "object" || typeof from === "function") {
6507 + for (let key of __getOwnPropNames(from))
6508 + if (!__hasOwnProp.call(to, key) && key !== except)
6509 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6510 + }
6511 + return to;
6512 +};
6513 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6514 +
6515 +// src/types.ts
6516 +var types_exports = {};
6517 +module.exports = __toCommonJS(types_exports);
6518 +//# sourceMappingURL=types.cjs.map
6519 +
6520 +/***/ }),
6521 +
6522 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
6523 +/*!*******************************************************************!*\
6524 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
6525 + \*******************************************************************/
6526 +/***/ ((module) => {
6527 +
6528 +"use strict";
6529 +
6530 +var __defProp = Object.defineProperty;
6531 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6532 +var __getOwnPropNames = Object.getOwnPropertyNames;
6533 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6534 +var __export = (target, all) => {
6535 + for (var name in all)
6536 + __defProp(target, name, { get: all[name], enumerable: true });
6537 +};
6538 +var __copyProps = (to, from, except, desc) => {
6539 + if (from && typeof from === "object" || typeof from === "function") {
6540 + for (let key of __getOwnPropNames(from))
6541 + if (!__hasOwnProp.call(to, key) && key !== except)
6542 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6543 + }
6544 + return to;
6545 +};
6546 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6547 +
6548 +// src/utils.ts
6549 +var utils_exports = {};
6550 +__export(utils_exports, {
6551 + addToEnd: () => addToEnd,
6552 + addToStart: () => addToStart,
6553 + ensureQueryFn: () => ensureQueryFn,
6554 + functionalUpdate: () => functionalUpdate,
6555 + hashKey: () => hashKey,
6556 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
6557 + isPlainArray: () => isPlainArray,
6558 + isPlainObject: () => isPlainObject,
6559 + isServer: () => isServer,
6560 + isValidTimeout: () => isValidTimeout,
6561 + keepPreviousData: () => keepPreviousData,
6562 + matchMutation: () => matchMutation,
6563 + matchQuery: () => matchQuery,
6564 + noop: () => noop,
6565 + partialMatchKey: () => partialMatchKey,
6566 + replaceData: () => replaceData,
6567 + replaceEqualDeep: () => replaceEqualDeep,
6568 + resolveEnabled: () => resolveEnabled,
6569 + resolveStaleTime: () => resolveStaleTime,
6570 + shallowEqualObjects: () => shallowEqualObjects,
6571 + skipToken: () => skipToken,
6572 + sleep: () => sleep,
6573 + timeUntilStale: () => timeUntilStale
6574 +});
6575 +module.exports = __toCommonJS(utils_exports);
6576 +var isServer = typeof window === "undefined" || "Deno" in globalThis;
6577 +function noop() {
6578 + return void 0;
6579 +}
6580 +function functionalUpdate(updater, input) {
6581 + return typeof updater === "function" ? updater(input) : updater;
6582 +}
6583 +function isValidTimeout(value) {
6584 + return typeof value === "number" && value >= 0 && value !== Infinity;
6585 +}
6586 +function timeUntilStale(updatedAt, staleTime) {
6587 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
6588 +}
6589 +function resolveStaleTime(staleTime, query) {
6590 + return typeof staleTime === "function" ? staleTime(query) : staleTime;
6591 +}
6592 +function resolveEnabled(enabled, query) {
6593 + return typeof enabled === "function" ? enabled(query) : enabled;
6594 +}
6595 +function matchQuery(filters, query) {
6596 + const {
6597 + type = "all",
6598 + exact,
6599 + fetchStatus,
6600 + predicate,
6601 + queryKey,
6602 + stale
6603 + } = filters;
6604 + if (queryKey) {
6605 + if (exact) {
6606 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
6607 + return false;
6608 + }
6609 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
6610 + return false;
6611 + }
6612 + }
6613 + if (type !== "all") {
6614 + const isActive = query.isActive();
6615 + if (type === "active" && !isActive) {
6616 + return false;
6617 + }
6618 + if (type === "inactive" && isActive) {
6619 + return false;
6620 + }
6621 + }
6622 + if (typeof stale === "boolean" && query.isStale() !== stale) {
6623 + return false;
6624 + }
6625 + if (fetchStatus && fetchStatus !== query.state.fetchStatus) {
6626 + return false;
6627 + }
6628 + if (predicate && !predicate(query)) {
6629 + return false;
6630 + }
6631 + return true;
6632 +}
6633 +function matchMutation(filters, mutation) {
6634 + const { exact, status, predicate, mutationKey } = filters;
6635 + if (mutationKey) {
6636 + if (!mutation.options.mutationKey) {
6637 + return false;
6638 + }
6639 + if (exact) {
6640 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
6641 + return false;
6642 + }
6643 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
6644 + return false;
6645 + }
6646 + }
6647 + if (status && mutation.state.status !== status) {
6648 + return false;
6649 + }
6650 + if (predicate && !predicate(mutation)) {
6651 + return false;
6652 + }
6653 + return true;
6654 +}
6655 +function hashQueryKeyByOptions(queryKey, options) {
6656 + const hashFn = options?.queryKeyHashFn || hashKey;
6657 + return hashFn(queryKey);
6658 +}
6659 +function hashKey(queryKey) {
6660 + return JSON.stringify(
6661 + queryKey,
6662 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
6663 + result[key] = val[key];
6664 + return result;
6665 + }, {}) : val
6666 + );
6667 +}
6668 +function partialMatchKey(a, b) {
6669 + if (a === b) {
6670 + return true;
6671 + }
6672 + if (typeof a !== typeof b) {
6673 + return false;
6674 + }
6675 + if (a && b && typeof a === "object" && typeof b === "object") {
6676 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
6677 + }
6678 + return false;
6679 +}
6680 +function replaceEqualDeep(a, b) {
6681 + if (a === b) {
6682 + return a;
6683 + }
6684 + const array = isPlainArray(a) && isPlainArray(b);
6685 + if (array || isPlainObject(a) && isPlainObject(b)) {
6686 + const aItems = array ? a : Object.keys(a);
6687 + const aSize = aItems.length;
6688 + const bItems = array ? b : Object.keys(b);
6689 + const bSize = bItems.length;
6690 + const copy = array ? [] : {};
6691 + let equalItems = 0;
6692 + for (let i = 0; i < bSize; i++) {
6693 + const key = array ? i : bItems[i];
6694 + if ((!array && aItems.includes(key) || array) && a[key] === void 0 && b[key] === void 0) {
6695 + copy[key] = void 0;
6696 + equalItems++;
6697 + } else {
6698 + copy[key] = replaceEqualDeep(a[key], b[key]);
6699 + if (copy[key] === a[key] && a[key] !== void 0) {
6700 + equalItems++;
6701 + }
6702 + }
6703 + }
6704 + return aSize === bSize && equalItems === aSize ? a : copy;
6705 + }
6706 + return b;
6707 +}
6708 +function shallowEqualObjects(a, b) {
6709 + if (!b || Object.keys(a).length !== Object.keys(b).length) {
6710 + return false;
6711 + }
6712 + for (const key in a) {
6713 + if (a[key] !== b[key]) {
6714 + return false;
6715 + }
6716 + }
6717 + return true;
6718 +}
6719 +function isPlainArray(value) {
6720 + return Array.isArray(value) && value.length === Object.keys(value).length;
6721 +}
6722 +function isPlainObject(o) {
6723 + if (!hasObjectPrototype(o)) {
6724 + return false;
6725 + }
6726 + const ctor = o.constructor;
6727 + if (ctor === void 0) {
6728 + return true;
6729 + }
6730 + const prot = ctor.prototype;
6731 + if (!hasObjectPrototype(prot)) {
6732 + return false;
6733 + }
6734 + if (!prot.hasOwnProperty("isPrototypeOf")) {
6735 + return false;
6736 + }
6737 + if (Object.getPrototypeOf(o) !== Object.prototype) {
6738 + return false;
6739 + }
6740 + return true;
6741 +}
6742 +function hasObjectPrototype(o) {
6743 + return Object.prototype.toString.call(o) === "[object Object]";
6744 +}
6745 +function sleep(ms) {
6746 + return new Promise((resolve) => {
6747 + setTimeout(resolve, ms);
6748 + });
6749 +}
6750 +function replaceData(prevData, data, options) {
6751 + if (typeof options.structuralSharing === "function") {
6752 + return options.structuralSharing(prevData, data);
6753 + } else if (options.structuralSharing !== false) {
6754 + return replaceEqualDeep(prevData, data);
6755 + }
6756 + return data;
6757 +}
6758 +function keepPreviousData(previousData) {
6759 + return previousData;
6760 +}
6761 +function addToEnd(items, item, max = 0) {
6762 + const newItems = [...items, item];
6763 + return max && newItems.length > max ? newItems.slice(1) : newItems;
6764 +}
6765 +function addToStart(items, item, max = 0) {
6766 + const newItems = [item, ...items];
6767 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
6768 +}
6769 +var skipToken = Symbol();
6770 +var ensureQueryFn = (options, fetchOptions) => {
6771 + if (true) {
6772 + if (options.queryFn === skipToken) {
6773 + console.error(
6774 + `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`
6775 + );
6776 + }
6777 + }
6778 + if (!options.queryFn && fetchOptions?.initialPromise) {
6779 + return () => fetchOptions.initialPromise;
6780 + }
6781 + if (!options.queryFn || options.queryFn === skipToken) {
6782 + return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));
6783 + }
6784 + return options.queryFn;
6785 +};
6786 +// Annotate the CommonJS export names for ESM import in node:
6787 +0 && (0);
6788 +//# sourceMappingURL=utils.cjs.map
6789 +
6790 +/***/ }),
6791 +
6792 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
6793 +/*!********************************************************************************!*\
6794 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
6795 + \********************************************************************************/
6796 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6797 +
6798 +"use strict";
6799 +
6800 +"use client";
6801 +var __create = Object.create;
6802 +var __defProp = Object.defineProperty;
6803 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6804 +var __getOwnPropNames = Object.getOwnPropertyNames;
6805 +var __getProtoOf = Object.getPrototypeOf;
6806 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6807 +var __export = (target, all) => {
6808 + for (var name in all)
6809 + __defProp(target, name, { get: all[name], enumerable: true });
6810 +};
6811 +var __copyProps = (to, from, except, desc) => {
6812 + if (from && typeof from === "object" || typeof from === "function") {
6813 + for (let key of __getOwnPropNames(from))
6814 + if (!__hasOwnProp.call(to, key) && key !== except)
6815 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6816 + }
6817 + return to;
6818 +};
6819 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6820 + // If the importer is in node compatibility mode or this is not an ESM
6821 + // file that has been converted to a CommonJS file using a Babel-
6822 + // compatible transform (i.e. "__esModule" has not been set), then set
6823 + // "default" to the CommonJS "module.exports" for node compatibility.
6824 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6825 + mod
6826 +));
6827 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6828 +
6829 +// src/HydrationBoundary.tsx
6830 +var HydrationBoundary_exports = {};
6831 +__export(HydrationBoundary_exports, {
6832 + HydrationBoundary: () => HydrationBoundary
6833 +});
6834 +module.exports = __toCommonJS(HydrationBoundary_exports);
6835 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6836 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
6837 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
6838 +var HydrationBoundary = ({
6839 + children,
6840 + options = {},
6841 + state,
6842 + queryClient
6843 +}) => {
6844 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
6845 + const [hydrationQueue, setHydrationQueue] = React.useState();
6846 + const optionsRef = React.useRef(options);
6847 + optionsRef.current = options;
6848 + React.useMemo(() => {
6849 + if (state) {
6850 + if (typeof state !== "object") {
6851 + return;
6852 + }
6853 + const queryCache = client.getQueryCache();
6854 + const queries = state.queries || [];
6855 + const newQueries = [];
6856 + const existingQueries = [];
6857 + for (const dehydratedQuery of queries) {
6858 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
6859 + if (!existingQuery) {
6860 + newQueries.push(dehydratedQuery);
6861 + } else {
6862 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
6863 + const queryAlreadyQueued = hydrationQueue?.find(
6864 + (query) => query.queryHash === dehydratedQuery.queryHash
6865 + );
6866 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
6867 + existingQueries.push(dehydratedQuery);
6868 + }
6869 + }
6870 + }
6871 + if (newQueries.length > 0) {
6872 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
6873 + }
6874 + if (existingQueries.length > 0) {
6875 + setHydrationQueue(
6876 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
6877 + );
6878 + }
6879 + }
6880 + }, [client, hydrationQueue, state]);
6881 + React.useEffect(() => {
6882 + if (hydrationQueue) {
6883 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
6884 + setHydrationQueue(void 0);
6885 + }
6886 + }, [client, hydrationQueue]);
6887 + return children;
6888 +};
6889 +// Annotate the CommonJS export names for ESM import in node:
6890 +0 && (0);
6891 +//# sourceMappingURL=HydrationBoundary.cjs.map
6892 +
6893 +/***/ }),
6894 +
6895 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
6896 +/*!**********************************************************************************!*\
6897 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
6898 + \**********************************************************************************/
6899 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6900 +
6901 +"use strict";
6902 +
6903 +"use client";
6904 +var __create = Object.create;
6905 +var __defProp = Object.defineProperty;
6906 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6907 +var __getOwnPropNames = Object.getOwnPropertyNames;
6908 +var __getProtoOf = Object.getPrototypeOf;
6909 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6910 +var __export = (target, all) => {
6911 + for (var name in all)
6912 + __defProp(target, name, { get: all[name], enumerable: true });
6913 +};
6914 +var __copyProps = (to, from, except, desc) => {
6915 + if (from && typeof from === "object" || typeof from === "function") {
6916 + for (let key of __getOwnPropNames(from))
6917 + if (!__hasOwnProp.call(to, key) && key !== except)
6918 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6919 + }
6920 + return to;
6921 +};
6922 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6923 + // If the importer is in node compatibility mode or this is not an ESM
6924 + // file that has been converted to a CommonJS file using a Babel-
6925 + // compatible transform (i.e. "__esModule" has not been set), then set
6926 + // "default" to the CommonJS "module.exports" for node compatibility.
6927 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
6928 + mod
6929 +));
6930 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6931 +
6932 +// src/QueryClientProvider.tsx
6933 +var QueryClientProvider_exports = {};
6934 +__export(QueryClientProvider_exports, {
6935 + QueryClientContext: () => QueryClientContext,
6936 + QueryClientProvider: () => QueryClientProvider,
6937 + useQueryClient: () => useQueryClient
6938 +});
6939 +module.exports = __toCommonJS(QueryClientProvider_exports);
6940 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
6941 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
6942 +var QueryClientContext = React.createContext(
6943 + void 0
6944 +);
6945 +var useQueryClient = (queryClient) => {
6946 + const client = React.useContext(QueryClientContext);
6947 + if (queryClient) {
6948 + return queryClient;
6949 + }
6950 + if (!client) {
6951 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
6952 + }
6953 + return client;
6954 +};
6955 +var QueryClientProvider = ({
6956 + client,
6957 + children
6958 +}) => {
6959 + React.useEffect(() => {
6960 + client.mount();
6961 + return () => {
6962 + client.unmount();
6963 + };
6964 + }, [client]);
6965 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
6966 +};
6967 +// Annotate the CommonJS export names for ESM import in node:
6968 +0 && (0);
6969 +//# sourceMappingURL=QueryClientProvider.cjs.map
6970 +
6971 +/***/ }),
6972 +
6973 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
6974 +/*!**************************************************************************************!*\
6975 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
6976 + \**************************************************************************************/
6977 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6978 +
6979 +"use strict";
6980 +
6981 +"use client";
6982 +var __create = Object.create;
6983 +var __defProp = Object.defineProperty;
6984 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6985 +var __getOwnPropNames = Object.getOwnPropertyNames;
6986 +var __getProtoOf = Object.getPrototypeOf;
6987 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6988 +var __export = (target, all) => {
6989 + for (var name in all)
6990 + __defProp(target, name, { get: all[name], enumerable: true });
6991 +};
6992 +var __copyProps = (to, from, except, desc) => {
6993 + if (from && typeof from === "object" || typeof from === "function") {
6994 + for (let key of __getOwnPropNames(from))
6995 + if (!__hasOwnProp.call(to, key) && key !== except)
6996 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6997 + }
6998 + return to;
6999 +};
7000 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7001 + // If the importer is in node compatibility mode or this is not an ESM
7002 + // file that has been converted to a CommonJS file using a Babel-
7003 + // compatible transform (i.e. "__esModule" has not been set), then set
7004 + // "default" to the CommonJS "module.exports" for node compatibility.
7005 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7006 + mod
7007 +));
7008 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7009 +
7010 +// src/QueryErrorResetBoundary.tsx
7011 +var QueryErrorResetBoundary_exports = {};
7012 +__export(QueryErrorResetBoundary_exports, {
7013 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
7014 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
7015 +});
7016 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
7017 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7018 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7019 +function createValue() {
7020 + let isReset = false;
7021 + return {
7022 + clearReset: () => {
7023 + isReset = false;
7024 + },
7025 + reset: () => {
7026 + isReset = true;
7027 + },
7028 + isReset: () => {
7029 + return isReset;
7030 + }
7031 + };
7032 +}
7033 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
7034 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
7035 +var QueryErrorResetBoundary = ({
7036 + children
7037 +}) => {
7038 + const [value] = React.useState(() => createValue());
7039 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children });
7040 +};
7041 +// Annotate the CommonJS export names for ESM import in node:
7042 +0 && (0);
7043 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
7044 +
7045 +/***/ }),
7046 +
7047 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
7048 +/*!*********************************************************************************!*\
7049 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
7050 + \*********************************************************************************/
7051 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7052 +
7053 +"use strict";
7054 +
7055 +"use client";
7056 +var __create = Object.create;
7057 +var __defProp = Object.defineProperty;
7058 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7059 +var __getOwnPropNames = Object.getOwnPropertyNames;
7060 +var __getProtoOf = Object.getPrototypeOf;
7061 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7062 +var __export = (target, all) => {
7063 + for (var name in all)
7064 + __defProp(target, name, { get: all[name], enumerable: true });
7065 +};
7066 +var __copyProps = (to, from, except, desc) => {
7067 + if (from && typeof from === "object" || typeof from === "function") {
7068 + for (let key of __getOwnPropNames(from))
7069 + if (!__hasOwnProp.call(to, key) && key !== except)
7070 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7071 + }
7072 + return to;
7073 +};
7074 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7075 + // If the importer is in node compatibility mode or this is not an ESM
7076 + // file that has been converted to a CommonJS file using a Babel-
7077 + // compatible transform (i.e. "__esModule" has not been set), then set
7078 + // "default" to the CommonJS "module.exports" for node compatibility.
7079 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7080 + mod
7081 +));
7082 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7083 +
7084 +// src/errorBoundaryUtils.ts
7085 +var errorBoundaryUtils_exports = {};
7086 +__export(errorBoundaryUtils_exports, {
7087 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
7088 + getHasError: () => getHasError,
7089 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
7090 +});
7091 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
7092 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7093 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7094 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
7095 + if (options.suspense || options.throwOnError) {
7096 + if (!errorResetBoundary.isReset()) {
7097 + options.retryOnMount = false;
7098 + }
7099 + }
7100 +};
7101 +var useClearResetErrorBoundary = (errorResetBoundary) => {
7102 + React.useEffect(() => {
7103 + errorResetBoundary.clearReset();
7104 + }, [errorResetBoundary]);
7105 +};
7106 +var getHasError = ({
7107 + result,
7108 + errorResetBoundary,
7109 + throwOnError,
7110 + query
7111 +}) => {
7112 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
7113 +};
7114 +// Annotate the CommonJS export names for ESM import in node:
7115 +0 && (0);
7116 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
7117 +
7118 +/***/ }),
7119 +
7120 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
7121 +/*!********************************************************************!*\
7122 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
7123 + \********************************************************************/
7124 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7125 +
7126 +"use strict";
7127 +
7128 +var __defProp = Object.defineProperty;
7129 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7130 +var __getOwnPropNames = Object.getOwnPropertyNames;
7131 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7132 +var __export = (target, all) => {
7133 + for (var name in all)
7134 + __defProp(target, name, { get: all[name], enumerable: true });
7135 +};
7136 +var __copyProps = (to, from, except, desc) => {
7137 + if (from && typeof from === "object" || typeof from === "function") {
7138 + for (let key of __getOwnPropNames(from))
7139 + if (!__hasOwnProp.call(to, key) && key !== except)
7140 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7141 + }
7142 + return to;
7143 +};
7144 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
7145 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7146 +
7147 +// src/index.ts
7148 +var src_exports = {};
7149 +__export(src_exports, {
7150 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
7151 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
7152 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
7153 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
7154 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
7155 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
7156 + queryOptions: () => import_queryOptions.queryOptions,
7157 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
7158 + useIsFetching: () => import_useIsFetching.useIsFetching,
7159 + useIsMutating: () => import_useMutationState.useIsMutating,
7160 + useIsRestoring: () => import_isRestoring.useIsRestoring,
7161 + useMutation: () => import_useMutation.useMutation,
7162 + useMutationState: () => import_useMutationState.useMutationState,
7163 + usePrefetchInfiniteQuery: () => import_prefetch.usePrefetchInfiniteQuery,
7164 + usePrefetchQuery: () => import_prefetch.usePrefetchQuery,
7165 + useQueries: () => import_useQueries.useQueries,
7166 + useQuery: () => import_useQuery.useQuery,
7167 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
7168 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
7169 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
7170 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
7171 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
7172 +});
7173 +module.exports = __toCommonJS(src_exports);
7174 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
7175 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
7176 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
7177 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
7178 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
7179 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
7180 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
7181 +var import_prefetch = __webpack_require__(/*! ./prefetch.cjs */ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs");
7182 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
7183 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
7184 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7185 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
7186 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7187 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
7188 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
7189 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
7190 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
7191 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7192 +// Annotate the CommonJS export names for ESM import in node:
7193 +0 && (0);
7194 +//# sourceMappingURL=index.cjs.map
7195 +
7196 +/***/ }),
7197 +
7198 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
7199 +/*!***********************************************************************************!*\
7200 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
7201 + \***********************************************************************************/
7202 +/***/ ((module) => {
7203 +
7204 +"use strict";
7205 +
7206 +var __defProp = Object.defineProperty;
7207 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7208 +var __getOwnPropNames = Object.getOwnPropertyNames;
7209 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7210 +var __export = (target, all) => {
7211 + for (var name in all)
7212 + __defProp(target, name, { get: all[name], enumerable: true });
7213 +};
7214 +var __copyProps = (to, from, except, desc) => {
7215 + if (from && typeof from === "object" || typeof from === "function") {
7216 + for (let key of __getOwnPropNames(from))
7217 + if (!__hasOwnProp.call(to, key) && key !== except)
7218 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7219 + }
7220 + return to;
7221 +};
7222 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7223 +
7224 +// src/infiniteQueryOptions.ts
7225 +var infiniteQueryOptions_exports = {};
7226 +__export(infiniteQueryOptions_exports, {
7227 + infiniteQueryOptions: () => infiniteQueryOptions
7228 +});
7229 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
7230 +function infiniteQueryOptions(options) {
7231 + return options;
7232 +}
7233 +// Annotate the CommonJS export names for ESM import in node:
7234 +0 && (0);
7235 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
7236 +
7237 +/***/ }),
7238 +
7239 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
7240 +/*!**************************************************************************!*\
7241 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
7242 + \**************************************************************************/
7243 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7244 +
7245 +"use strict";
7246 +
7247 +"use client";
7248 +var __create = Object.create;
7249 +var __defProp = Object.defineProperty;
7250 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7251 +var __getOwnPropNames = Object.getOwnPropertyNames;
7252 +var __getProtoOf = Object.getPrototypeOf;
7253 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7254 +var __export = (target, all) => {
7255 + for (var name in all)
7256 + __defProp(target, name, { get: all[name], enumerable: true });
7257 +};
7258 +var __copyProps = (to, from, except, desc) => {
7259 + if (from && typeof from === "object" || typeof from === "function") {
7260 + for (let key of __getOwnPropNames(from))
7261 + if (!__hasOwnProp.call(to, key) && key !== except)
7262 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7263 + }
7264 + return to;
7265 +};
7266 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7267 + // If the importer is in node compatibility mode or this is not an ESM
7268 + // file that has been converted to a CommonJS file using a Babel-
7269 + // compatible transform (i.e. "__esModule" has not been set), then set
7270 + // "default" to the CommonJS "module.exports" for node compatibility.
7271 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7272 + mod
7273 +));
7274 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7275 +
7276 +// src/isRestoring.ts
7277 +var isRestoring_exports = {};
7278 +__export(isRestoring_exports, {
7279 + IsRestoringProvider: () => IsRestoringProvider,
7280 + useIsRestoring: () => useIsRestoring
7281 +});
7282 +module.exports = __toCommonJS(isRestoring_exports);
7283 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7284 +var IsRestoringContext = React.createContext(false);
7285 +var useIsRestoring = () => React.useContext(IsRestoringContext);
7286 +var IsRestoringProvider = IsRestoringContext.Provider;
7287 +// Annotate the CommonJS export names for ESM import in node:
7288 +0 && (0);
7289 +//# sourceMappingURL=isRestoring.cjs.map
7290 +
7291 +/***/ }),
7292 +
7293 +/***/ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs":
7294 +/*!***********************************************************************!*\
7295 + !*** ../node_modules/@tanstack/react-query/build/modern/prefetch.cjs ***!
7296 + \***********************************************************************/
7297 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7298 +
7299 +"use strict";
7300 +
7301 +var __defProp = Object.defineProperty;
7302 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7303 +var __getOwnPropNames = Object.getOwnPropertyNames;
7304 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7305 +var __export = (target, all) => {
7306 + for (var name in all)
7307 + __defProp(target, name, { get: all[name], enumerable: true });
7308 +};
7309 +var __copyProps = (to, from, except, desc) => {
7310 + if (from && typeof from === "object" || typeof from === "function") {
7311 + for (let key of __getOwnPropNames(from))
7312 + if (!__hasOwnProp.call(to, key) && key !== except)
7313 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7314 + }
7315 + return to;
7316 +};
7317 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7318 +
7319 +// src/prefetch.ts
7320 +var prefetch_exports = {};
7321 +__export(prefetch_exports, {
7322 + usePrefetchInfiniteQuery: () => usePrefetchInfiniteQuery,
7323 + usePrefetchQuery: () => usePrefetchQuery
7324 +});
7325 +module.exports = __toCommonJS(prefetch_exports);
7326 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7327 +function usePrefetchQuery(options) {
7328 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7329 + if (!queryClient.getQueryState(options.queryKey)) {
7330 + queryClient.prefetchQuery(options);
7331 + }
7332 +}
7333 +function usePrefetchInfiniteQuery(options) {
7334 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7335 + if (!queryClient.getQueryState(options.queryKey)) {
7336 + queryClient.prefetchInfiniteQuery(options);
7337 + }
7338 +}
7339 +// Annotate the CommonJS export names for ESM import in node:
7340 +0 && (0);
7341 +//# sourceMappingURL=prefetch.cjs.map
7342 +
7343 +/***/ }),
7344 +
7345 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
7346 +/*!***************************************************************************!*\
7347 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
7348 + \***************************************************************************/
7349 +/***/ ((module) => {
7350 +
7351 +"use strict";
7352 +
7353 +var __defProp = Object.defineProperty;
7354 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7355 +var __getOwnPropNames = Object.getOwnPropertyNames;
7356 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7357 +var __export = (target, all) => {
7358 + for (var name in all)
7359 + __defProp(target, name, { get: all[name], enumerable: true });
7360 +};
7361 +var __copyProps = (to, from, except, desc) => {
7362 + if (from && typeof from === "object" || typeof from === "function") {
7363 + for (let key of __getOwnPropNames(from))
7364 + if (!__hasOwnProp.call(to, key) && key !== except)
7365 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7366 + }
7367 + return to;
7368 +};
7369 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7370 +
7371 +// src/queryOptions.ts
7372 +var queryOptions_exports = {};
7373 +__export(queryOptions_exports, {
7374 + queryOptions: () => queryOptions
7375 +});
7376 +module.exports = __toCommonJS(queryOptions_exports);
7377 +function queryOptions(options) {
7378 + return options;
7379 +}
7380 +// Annotate the CommonJS export names for ESM import in node:
7381 +0 && (0);
7382 +//# sourceMappingURL=queryOptions.cjs.map
7383 +
7384 +/***/ }),
7385 +
7386 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
7387 +/*!***********************************************************************!*\
7388 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
7389 + \***********************************************************************/
7390 +/***/ ((module) => {
7391 +
7392 +"use strict";
7393 +
7394 +var __defProp = Object.defineProperty;
7395 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7396 +var __getOwnPropNames = Object.getOwnPropertyNames;
7397 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7398 +var __export = (target, all) => {
7399 + for (var name in all)
7400 + __defProp(target, name, { get: all[name], enumerable: true });
7401 +};
7402 +var __copyProps = (to, from, except, desc) => {
7403 + if (from && typeof from === "object" || typeof from === "function") {
7404 + for (let key of __getOwnPropNames(from))
7405 + if (!__hasOwnProp.call(to, key) && key !== except)
7406 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7407 + }
7408 + return to;
7409 +};
7410 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7411 +
7412 +// src/suspense.ts
7413 +var suspense_exports = {};
7414 +__export(suspense_exports, {
7415 + defaultThrowOnError: () => defaultThrowOnError,
7416 + ensureStaleTime: () => ensureStaleTime,
7417 + fetchOptimistic: () => fetchOptimistic,
7418 + shouldSuspend: () => shouldSuspend,
7419 + willFetch: () => willFetch
7420 +});
7421 +module.exports = __toCommonJS(suspense_exports);
7422 +var defaultThrowOnError = (_error, query) => query.state.data === void 0;
7423 +var ensureStaleTime = (defaultedOptions) => {
7424 + if (defaultedOptions.suspense) {
7425 + if (typeof defaultedOptions.staleTime !== "number") {
7426 + defaultedOptions.staleTime = 1e3;
7427 + }
7428 + }
7429 +};
7430 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
7431 +var shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;
7432 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
7433 + errorResetBoundary.clearReset();
7434 +});
7435 +// Annotate the CommonJS export names for ESM import in node:
7436 +0 && (0);
7437 +//# sourceMappingURL=suspense.cjs.map
7438 +
7439 +/***/ }),
7440 +
7441 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
7442 +/*!********************************************************************!*\
7443 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
7444 + \********************************************************************/
7445 +/***/ ((module) => {
7446 +
7447 +"use strict";
7448 +
7449 +var __defProp = Object.defineProperty;
7450 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7451 +var __getOwnPropNames = Object.getOwnPropertyNames;
7452 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7453 +var __copyProps = (to, from, except, desc) => {
7454 + if (from && typeof from === "object" || typeof from === "function") {
7455 + for (let key of __getOwnPropNames(from))
7456 + if (!__hasOwnProp.call(to, key) && key !== except)
7457 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7458 + }
7459 + return to;
7460 +};
7461 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7462 +
7463 +// src/types.ts
7464 +var types_exports = {};
7465 +module.exports = __toCommonJS(types_exports);
7466 +//# sourceMappingURL=types.cjs.map
7467 +
7468 +/***/ }),
7469 +
7470 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
7471 +/*!***************************************************************************!*\
7472 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
7473 + \***************************************************************************/
7474 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7475 +
7476 +"use strict";
7477 +
7478 +"use client";
7479 +var __create = Object.create;
7480 +var __defProp = Object.defineProperty;
7481 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7482 +var __getOwnPropNames = Object.getOwnPropertyNames;
7483 +var __getProtoOf = Object.getPrototypeOf;
7484 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7485 +var __export = (target, all) => {
7486 + for (var name in all)
7487 + __defProp(target, name, { get: all[name], enumerable: true });
7488 +};
7489 +var __copyProps = (to, from, except, desc) => {
7490 + if (from && typeof from === "object" || typeof from === "function") {
7491 + for (let key of __getOwnPropNames(from))
7492 + if (!__hasOwnProp.call(to, key) && key !== except)
7493 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7494 + }
7495 + return to;
7496 +};
7497 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7498 + // If the importer is in node compatibility mode or this is not an ESM
7499 + // file that has been converted to a CommonJS file using a Babel-
7500 + // compatible transform (i.e. "__esModule" has not been set), then set
7501 + // "default" to the CommonJS "module.exports" for node compatibility.
7502 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7503 + mod
7504 +));
7505 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7506 +
7507 +// src/useBaseQuery.ts
7508 +var useBaseQuery_exports = {};
7509 +__export(useBaseQuery_exports, {
7510 + useBaseQuery: () => useBaseQuery
7511 +});
7512 +module.exports = __toCommonJS(useBaseQuery_exports);
7513 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7514 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7515 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7516 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7517 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7518 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
7519 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
7520 +function useBaseQuery(options, Observer, queryClient) {
7521 + if (true) {
7522 + if (typeof options !== "object" || Array.isArray(options)) {
7523 + throw new Error(
7524 + 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
7525 + );
7526 + }
7527 + }
7528 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7529 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
7530 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
7531 + const defaultedOptions = client.defaultQueryOptions(options);
7532 + client.getDefaultOptions().queries?._experimental_beforeQuery?.(
7533 + defaultedOptions
7534 + );
7535 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
7536 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
7537 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
7538 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
7539 + const [observer] = React.useState(
7540 + () => new Observer(
7541 + client,
7542 + defaultedOptions
7543 + )
7544 + );
7545 + const result = observer.getOptimisticResult(defaultedOptions);
7546 + React.useSyncExternalStore(
7547 + React.useCallback(
7548 + (onStoreChange) => {
7549 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
7550 + observer.updateResult();
7551 + return unsubscribe;
7552 + },
7553 + [observer, isRestoring]
7554 + ),
7555 + () => observer.getCurrentResult(),
7556 + () => observer.getCurrentResult()
7557 + );
7558 + React.useEffect(() => {
7559 + observer.setOptions(defaultedOptions, { listeners: false });
7560 + }, [defaultedOptions, observer]);
7561 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result)) {
7562 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
7563 + }
7564 + if ((0, import_errorBoundaryUtils.getHasError)({
7565 + result,
7566 + errorResetBoundary,
7567 + throwOnError: defaultedOptions.throwOnError,
7568 + query: client.getQueryCache().get(defaultedOptions.queryHash)
7569 + })) {
7570 + throw result.error;
7571 + }
7572 + ;
7573 + client.getDefaultOptions().queries?._experimental_afterQuery?.(
7574 + defaultedOptions,
7575 + result
7576 + );
7577 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
7578 +}
7579 +// Annotate the CommonJS export names for ESM import in node:
7580 +0 && (0);
7581 +//# sourceMappingURL=useBaseQuery.cjs.map
7582 +
7583 +/***/ }),
7584 +
7585 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
7586 +/*!*******************************************************************************!*\
7587 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
7588 + \*******************************************************************************/
7589 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7590 +
7591 +"use strict";
7592 +
7593 +"use client";
7594 +var __defProp = Object.defineProperty;
7595 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7596 +var __getOwnPropNames = Object.getOwnPropertyNames;
7597 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7598 +var __export = (target, all) => {
7599 + for (var name in all)
7600 + __defProp(target, name, { get: all[name], enumerable: true });
7601 +};
7602 +var __copyProps = (to, from, except, desc) => {
7603 + if (from && typeof from === "object" || typeof from === "function") {
7604 + for (let key of __getOwnPropNames(from))
7605 + if (!__hasOwnProp.call(to, key) && key !== except)
7606 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7607 + }
7608 + return to;
7609 +};
7610 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7611 +
7612 +// src/useInfiniteQuery.ts
7613 +var useInfiniteQuery_exports = {};
7614 +__export(useInfiniteQuery_exports, {
7615 + useInfiniteQuery: () => useInfiniteQuery
7616 +});
7617 +module.exports = __toCommonJS(useInfiniteQuery_exports);
7618 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7619 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
7620 +function useInfiniteQuery(options, queryClient) {
7621 + return (0, import_useBaseQuery.useBaseQuery)(
7622 + options,
7623 + import_query_core.InfiniteQueryObserver,
7624 + queryClient
7625 + );
7626 +}
7627 +// Annotate the CommonJS export names for ESM import in node:
7628 +0 && (0);
7629 +//# sourceMappingURL=useInfiniteQuery.cjs.map
7630 +
7631 +/***/ }),
7632 +
7633 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
7634 +/*!****************************************************************************!*\
7635 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
7636 + \****************************************************************************/
7637 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7638 +
7639 +"use strict";
7640 +
7641 +"use client";
7642 +var __create = Object.create;
7643 +var __defProp = Object.defineProperty;
7644 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7645 +var __getOwnPropNames = Object.getOwnPropertyNames;
7646 +var __getProtoOf = Object.getPrototypeOf;
7647 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7648 +var __export = (target, all) => {
7649 + for (var name in all)
7650 + __defProp(target, name, { get: all[name], enumerable: true });
7651 +};
7652 +var __copyProps = (to, from, except, desc) => {
7653 + if (from && typeof from === "object" || typeof from === "function") {
7654 + for (let key of __getOwnPropNames(from))
7655 + if (!__hasOwnProp.call(to, key) && key !== except)
7656 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7657 + }
7658 + return to;
7659 +};
7660 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7661 + // If the importer is in node compatibility mode or this is not an ESM
7662 + // file that has been converted to a CommonJS file using a Babel-
7663 + // compatible transform (i.e. "__esModule" has not been set), then set
7664 + // "default" to the CommonJS "module.exports" for node compatibility.
7665 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7666 + mod
7667 +));
7668 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7669 +
7670 +// src/useIsFetching.ts
7671 +var useIsFetching_exports = {};
7672 +__export(useIsFetching_exports, {
7673 + useIsFetching: () => useIsFetching
7674 +});
7675 +module.exports = __toCommonJS(useIsFetching_exports);
7676 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7677 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7678 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7679 +function useIsFetching(filters, queryClient) {
7680 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7681 + const queryCache = client.getQueryCache();
7682 + return React.useSyncExternalStore(
7683 + React.useCallback(
7684 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7685 + [queryCache]
7686 + ),
7687 + () => client.isFetching(filters),
7688 + () => client.isFetching(filters)
7689 + );
7690 +}
7691 +// Annotate the CommonJS export names for ESM import in node:
7692 +0 && (0);
7693 +//# sourceMappingURL=useIsFetching.cjs.map
7694 +
7695 +/***/ }),
7696 +
7697 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
7698 +/*!**************************************************************************!*\
7699 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
7700 + \**************************************************************************/
7701 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7702 +
7703 +"use strict";
7704 +
7705 +"use client";
7706 +var __create = Object.create;
7707 +var __defProp = Object.defineProperty;
7708 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7709 +var __getOwnPropNames = Object.getOwnPropertyNames;
7710 +var __getProtoOf = Object.getPrototypeOf;
7711 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7712 +var __export = (target, all) => {
7713 + for (var name in all)
7714 + __defProp(target, name, { get: all[name], enumerable: true });
7715 +};
7716 +var __copyProps = (to, from, except, desc) => {
7717 + if (from && typeof from === "object" || typeof from === "function") {
7718 + for (let key of __getOwnPropNames(from))
7719 + if (!__hasOwnProp.call(to, key) && key !== except)
7720 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7721 + }
7722 + return to;
7723 +};
7724 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7725 + // If the importer is in node compatibility mode or this is not an ESM
7726 + // file that has been converted to a CommonJS file using a Babel-
7727 + // compatible transform (i.e. "__esModule" has not been set), then set
7728 + // "default" to the CommonJS "module.exports" for node compatibility.
7729 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7730 + mod
7731 +));
7732 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7733 +
7734 +// src/useMutation.ts
7735 +var useMutation_exports = {};
7736 +__export(useMutation_exports, {
7737 + useMutation: () => useMutation
7738 +});
7739 +module.exports = __toCommonJS(useMutation_exports);
7740 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7741 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7742 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7743 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7744 +function useMutation(options, queryClient) {
7745 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7746 + const [observer] = React.useState(
7747 + () => new import_query_core.MutationObserver(
7748 + client,
7749 + options
7750 + )
7751 + );
7752 + React.useEffect(() => {
7753 + observer.setOptions(options);
7754 + }, [observer, options]);
7755 + const result = React.useSyncExternalStore(
7756 + React.useCallback(
7757 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7758 + [observer]
7759 + ),
7760 + () => observer.getCurrentResult(),
7761 + () => observer.getCurrentResult()
7762 + );
7763 + const mutate = React.useCallback(
7764 + (variables, mutateOptions) => {
7765 + observer.mutate(variables, mutateOptions).catch(import_utils.noop);
7766 + },
7767 + [observer]
7768 + );
7769 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
7770 + throw result.error;
7771 + }
7772 + return { ...result, mutate, mutateAsync: result.mutate };
7773 +}
7774 +// Annotate the CommonJS export names for ESM import in node:
7775 +0 && (0);
7776 +//# sourceMappingURL=useMutation.cjs.map
7777 +
7778 +/***/ }),
7779 +
7780 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
7781 +/*!*******************************************************************************!*\
7782 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
7783 + \*******************************************************************************/
7784 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7785 +
7786 +"use strict";
7787 +
7788 +"use client";
7789 +var __create = Object.create;
7790 +var __defProp = Object.defineProperty;
7791 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7792 +var __getOwnPropNames = Object.getOwnPropertyNames;
7793 +var __getProtoOf = Object.getPrototypeOf;
7794 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7795 +var __export = (target, all) => {
7796 + for (var name in all)
7797 + __defProp(target, name, { get: all[name], enumerable: true });
7798 +};
7799 +var __copyProps = (to, from, except, desc) => {
7800 + if (from && typeof from === "object" || typeof from === "function") {
7801 + for (let key of __getOwnPropNames(from))
7802 + if (!__hasOwnProp.call(to, key) && key !== except)
7803 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7804 + }
7805 + return to;
7806 +};
7807 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7808 + // If the importer is in node compatibility mode or this is not an ESM
7809 + // file that has been converted to a CommonJS file using a Babel-
7810 + // compatible transform (i.e. "__esModule" has not been set), then set
7811 + // "default" to the CommonJS "module.exports" for node compatibility.
7812 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7813 + mod
7814 +));
7815 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7816 +
7817 +// src/useMutationState.ts
7818 +var useMutationState_exports = {};
7819 +__export(useMutationState_exports, {
7820 + useIsMutating: () => useIsMutating,
7821 + useMutationState: () => useMutationState
7822 +});
7823 +module.exports = __toCommonJS(useMutationState_exports);
7824 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7825 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7826 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7827 +function useIsMutating(filters, queryClient) {
7828 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7829 + return useMutationState(
7830 + { filters: { ...filters, status: "pending" } },
7831 + client
7832 + ).length;
7833 +}
7834 +function getResult(mutationCache, options) {
7835 + return mutationCache.findAll(options.filters).map(
7836 + (mutation) => options.select ? options.select(mutation) : mutation.state
7837 + );
7838 +}
7839 +function useMutationState(options = {}, queryClient) {
7840 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
7841 + const optionsRef = React.useRef(options);
7842 + const result = React.useRef(null);
7843 + if (!result.current) {
7844 + result.current = getResult(mutationCache, options);
7845 + }
7846 + React.useEffect(() => {
7847 + optionsRef.current = options;
7848 + });
7849 + return React.useSyncExternalStore(
7850 + React.useCallback(
7851 + (onStoreChange) => mutationCache.subscribe(() => {
7852 + const nextResult = (0, import_query_core.replaceEqualDeep)(
7853 + result.current,
7854 + getResult(mutationCache, optionsRef.current)
7855 + );
7856 + if (result.current !== nextResult) {
7857 + result.current = nextResult;
7858 + import_query_core.notifyManager.schedule(onStoreChange);
7859 + }
7860 + }),
7861 + [mutationCache]
7862 + ),
7863 + () => result.current,
7864 + () => result.current
7865 + );
7866 +}
7867 +// Annotate the CommonJS export names for ESM import in node:
7868 +0 && (0);
7869 +//# sourceMappingURL=useMutationState.cjs.map
7870 +
7871 +/***/ }),
7872 +
7873 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
7874 +/*!*************************************************************************!*\
7875 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
7876 + \*************************************************************************/
7877 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7878 +
7879 +"use strict";
7880 +
7881 +"use client";
7882 +var __create = Object.create;
7883 +var __defProp = Object.defineProperty;
7884 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7885 +var __getOwnPropNames = Object.getOwnPropertyNames;
7886 +var __getProtoOf = Object.getPrototypeOf;
7887 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7888 +var __export = (target, all) => {
7889 + for (var name in all)
7890 + __defProp(target, name, { get: all[name], enumerable: true });
7891 +};
7892 +var __copyProps = (to, from, except, desc) => {
7893 + if (from && typeof from === "object" || typeof from === "function") {
7894 + for (let key of __getOwnPropNames(from))
7895 + if (!__hasOwnProp.call(to, key) && key !== except)
7896 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7897 + }
7898 + return to;
7899 +};
7900 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7901 + // If the importer is in node compatibility mode or this is not an ESM
7902 + // file that has been converted to a CommonJS file using a Babel-
7903 + // compatible transform (i.e. "__esModule" has not been set), then set
7904 + // "default" to the CommonJS "module.exports" for node compatibility.
7905 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7906 + mod
7907 +));
7908 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7909 +
7910 +// src/useQueries.ts
7911 +var useQueries_exports = {};
7912 +__export(useQueries_exports, {
7913 + useQueries: () => useQueries
7914 +});
7915 +module.exports = __toCommonJS(useQueries_exports);
7916 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7917 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7918 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7919 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7920 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7921 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
7922 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
7923 +function useQueries({
7924 + queries,
7925 + ...options
7926 +}, queryClient) {
7927 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7928 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
7929 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
7930 + const defaultedQueries = React.useMemo(
7931 + () => queries.map((opts) => {
7932 + const defaultedOptions = client.defaultQueryOptions(
7933 + opts
7934 + );
7935 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
7936 + return defaultedOptions;
7937 + }),
7938 + [queries, client, isRestoring]
7939 + );
7940 + defaultedQueries.forEach((query) => {
7941 + (0, import_suspense.ensureStaleTime)(query);
7942 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
7943 + });
7944 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
7945 + const [observer] = React.useState(
7946 + () => new import_query_core.QueriesObserver(
7947 + client,
7948 + defaultedQueries,
7949 + options
7950 + )
7951 + );
7952 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(
7953 + defaultedQueries,
7954 + options.combine
7955 + );
7956 + React.useSyncExternalStore(
7957 + React.useCallback(
7958 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7959 + [observer, isRestoring]
7960 + ),
7961 + () => observer.getCurrentResult(),
7962 + () => observer.getCurrentResult()
7963 + );
7964 + React.useEffect(() => {
7965 + observer.setQueries(
7966 + defaultedQueries,
7967 + options,
7968 + {
7969 + listeners: false
7970 + }
7971 + );
7972 + }, [defaultedQueries, options, observer]);
7973 + const shouldAtLeastOneSuspend = optimisticResult.some(
7974 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result)
7975 + );
7976 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
7977 + const opts = defaultedQueries[index];
7978 + if (opts) {
7979 + const queryObserver = new import_query_core.QueryObserver(client, opts);
7980 + if ((0, import_suspense.shouldSuspend)(opts, result)) {
7981 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
7982 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
7983 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
7984 + }
7985 + }
7986 + return [];
7987 + }) : [];
7988 + if (suspensePromises.length > 0) {
7989 + throw Promise.all(suspensePromises);
7990 + }
7991 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
7992 + (result, index) => {
7993 + const query = defaultedQueries[index];
7994 + return query && (0, import_errorBoundaryUtils.getHasError)({
7995 + result,
7996 + errorResetBoundary,
7997 + throwOnError: query.throwOnError,
7998 + query: client.getQueryCache().get(query.queryHash)
7999 + });
8000 + }
8001 + );
8002 + if (firstSingleResultWhichShouldThrow?.error) {
8003 + throw firstSingleResultWhichShouldThrow.error;
8004 + }
8005 + return getCombinedResult(trackResult());
8006 +}
8007 +// Annotate the CommonJS export names for ESM import in node:
8008 +0 && (0);
8009 +//# sourceMappingURL=useQueries.cjs.map
8010 +
8011 +/***/ }),
8012 +
8013 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
8014 +/*!***********************************************************************!*\
8015 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
8016 + \***********************************************************************/
8017 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8018 +
8019 +"use strict";
8020 +
8021 +"use client";
8022 +var __defProp = Object.defineProperty;
8023 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8024 +var __getOwnPropNames = Object.getOwnPropertyNames;
8025 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8026 +var __export = (target, all) => {
8027 + for (var name in all)
8028 + __defProp(target, name, { get: all[name], enumerable: true });
8029 +};
8030 +var __copyProps = (to, from, except, desc) => {
8031 + if (from && typeof from === "object" || typeof from === "function") {
8032 + for (let key of __getOwnPropNames(from))
8033 + if (!__hasOwnProp.call(to, key) && key !== except)
8034 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8035 + }
8036 + return to;
8037 +};
8038 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8039 +
8040 +// src/useQuery.ts
8041 +var useQuery_exports = {};
8042 +__export(useQuery_exports, {
8043 + useQuery: () => useQuery
8044 +});
8045 +module.exports = __toCommonJS(useQuery_exports);
8046 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8047 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8048 +function useQuery(options, queryClient) {
8049 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
8050 +}
8051 +// Annotate the CommonJS export names for ESM import in node:
8052 +0 && (0);
8053 +//# sourceMappingURL=useQuery.cjs.map
8054 +
8055 +/***/ }),
8056 +
8057 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
8058 +/*!***************************************************************************************!*\
8059 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
8060 + \***************************************************************************************/
8061 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8062 +
8063 +"use strict";
8064 +
8065 +"use client";
8066 +var __defProp = Object.defineProperty;
8067 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8068 +var __getOwnPropNames = Object.getOwnPropertyNames;
8069 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8070 +var __export = (target, all) => {
8071 + for (var name in all)
8072 + __defProp(target, name, { get: all[name], enumerable: true });
8073 +};
8074 +var __copyProps = (to, from, except, desc) => {
8075 + if (from && typeof from === "object" || typeof from === "function") {
8076 + for (let key of __getOwnPropNames(from))
8077 + if (!__hasOwnProp.call(to, key) && key !== except)
8078 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8079 + }
8080 + return to;
8081 +};
8082 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8083 +
8084 +// src/useSuspenseInfiniteQuery.ts
8085 +var useSuspenseInfiniteQuery_exports = {};
8086 +__export(useSuspenseInfiniteQuery_exports, {
8087 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
8088 +});
8089 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
8090 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8091 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8092 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8093 +function useSuspenseInfiniteQuery(options, queryClient) {
8094 + return (0, import_useBaseQuery.useBaseQuery)(
8095 + {
8096 + ...options,
8097 + enabled: true,
8098 + suspense: true,
8099 + throwOnError: import_suspense.defaultThrowOnError
8100 + },
8101 + import_query_core.InfiniteQueryObserver,
8102 + queryClient
8103 + );
8104 +}
8105 +// Annotate the CommonJS export names for ESM import in node:
8106 +0 && (0);
8107 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
8108 +
8109 +/***/ }),
8110 +
8111 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
8112 +/*!*********************************************************************************!*\
8113 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
8114 + \*********************************************************************************/
8115 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8116 +
8117 +"use strict";
8118 +
8119 +"use client";
8120 +var __defProp = Object.defineProperty;
8121 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8122 +var __getOwnPropNames = Object.getOwnPropertyNames;
8123 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8124 +var __export = (target, all) => {
8125 + for (var name in all)
8126 + __defProp(target, name, { get: all[name], enumerable: true });
8127 +};
8128 +var __copyProps = (to, from, except, desc) => {
8129 + if (from && typeof from === "object" || typeof from === "function") {
8130 + for (let key of __getOwnPropNames(from))
8131 + if (!__hasOwnProp.call(to, key) && key !== except)
8132 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8133 + }
8134 + return to;
8135 +};
8136 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8137 +
8138 +// src/useSuspenseQueries.ts
8139 +var useSuspenseQueries_exports = {};
8140 +__export(useSuspenseQueries_exports, {
8141 + useSuspenseQueries: () => useSuspenseQueries
8142 +});
8143 +module.exports = __toCommonJS(useSuspenseQueries_exports);
8144 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
8145 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8146 +function useSuspenseQueries(options, queryClient) {
8147 + return (0, import_useQueries.useQueries)(
8148 + {
8149 + ...options,
8150 + queries: options.queries.map((query) => ({
8151 + ...query,
8152 + suspense: true,
8153 + throwOnError: import_suspense.defaultThrowOnError,
8154 + enabled: true,
8155 + placeholderData: void 0
8156 + }))
8157 + },
8158 + queryClient
8159 + );
8160 +}
8161 +// Annotate the CommonJS export names for ESM import in node:
8162 +0 && (0);
8163 +//# sourceMappingURL=useSuspenseQueries.cjs.map
8164 +
8165 +/***/ }),
8166 +
8167 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
8168 +/*!*******************************************************************************!*\
8169 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
8170 + \*******************************************************************************/
8171 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8172 +
8173 +"use strict";
8174 +
8175 +"use client";
8176 +var __defProp = Object.defineProperty;
8177 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8178 +var __getOwnPropNames = Object.getOwnPropertyNames;
8179 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8180 +var __export = (target, all) => {
8181 + for (var name in all)
8182 + __defProp(target, name, { get: all[name], enumerable: true });
8183 +};
8184 +var __copyProps = (to, from, except, desc) => {
8185 + if (from && typeof from === "object" || typeof from === "function") {
8186 + for (let key of __getOwnPropNames(from))
8187 + if (!__hasOwnProp.call(to, key) && key !== except)
8188 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8189 + }
8190 + return to;
8191 +};
8192 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8193 +
8194 +// src/useSuspenseQuery.ts
8195 +var useSuspenseQuery_exports = {};
8196 +__export(useSuspenseQuery_exports, {
8197 + useSuspenseQuery: () => useSuspenseQuery
8198 +});
8199 +module.exports = __toCommonJS(useSuspenseQuery_exports);
8200 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8201 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8202 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8203 +function useSuspenseQuery(options, queryClient) {
8204 + if (true) {
8205 + if (options.queryFn === import_query_core.skipToken) {
8206 + console.error("skipToken is not allowed for useSuspenseQuery");
8207 + }
8208 + }
8209 + return (0, import_useBaseQuery.useBaseQuery)(
8210 + {
8211 + ...options,
8212 + enabled: true,
8213 + suspense: true,
8214 + throwOnError: import_suspense.defaultThrowOnError,
8215 + placeholderData: void 0
8216 + },
8217 + import_query_core.QueryObserver,
8218 + queryClient
8219 + );
8220 +}
8221 +// Annotate the CommonJS export names for ESM import in node:
8222 +0 && (0);
8223 +//# sourceMappingURL=useSuspenseQuery.cjs.map
8224 +
8225 +/***/ }),
8226 +
8227 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
8228 +/*!********************************************************************!*\
8229 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
8230 + \********************************************************************/
8231 +/***/ ((module) => {
8232 +
8233 +"use strict";
8234 +
8235 +var __defProp = Object.defineProperty;
8236 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8237 +var __getOwnPropNames = Object.getOwnPropertyNames;
8238 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8239 +var __export = (target, all) => {
8240 + for (var name in all)
8241 + __defProp(target, name, { get: all[name], enumerable: true });
8242 +};
8243 +var __copyProps = (to, from, except, desc) => {
8244 + if (from && typeof from === "object" || typeof from === "function") {
8245 + for (let key of __getOwnPropNames(from))
8246 + if (!__hasOwnProp.call(to, key) && key !== except)
8247 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8248 + }
8249 + return to;
8250 +};
8251 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8252 +
8253 +// src/utils.ts
8254 +var utils_exports = {};
8255 +__export(utils_exports, {
8256 + noop: () => noop,
8257 + shouldThrowError: () => shouldThrowError
8258 +});
8259 +module.exports = __toCommonJS(utils_exports);
8260 +function shouldThrowError(throwError, params) {
8261 + if (typeof throwError === "function") {
8262 + return throwError(...params);
8263 + }
8264 + return !!throwError;
8265 +}
8266 +function noop() {
8267 +}
8268 +// Annotate the CommonJS export names for ESM import in node:
8269 +0 && (0);
8270 +//# sourceMappingURL=utils.cjs.map
8271 +
1969 8272 /***/ })
1970 8273
1971 8274 /******/ });
1972 8275 /************************************************************************/
@@ -1995,9 +8298,9 @@
1995 8298 /******/ }
1996 8299 /******/
1997 8300 /************************************************************************/
1998 8301 var __webpack_exports__ = {};
1999 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
8302 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
2000 8303 (() => {
2001 8304 "use strict";
2002 8305 /*!***************************************************!*\
2003 8306 !*** ../modules/notifications/assets/js/admin.js ***!