PluginProbe
Elementor Website Builder – more than just a page builder / 3.26.2
Elementor Website Builder – more than just a page builder v3.26.2
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/editor-notifications.js +8471 -1521 4.3.0-beta23.26.2 View file →
@@ -1,1578 +1,8528 @@
1 -(function(_wordpress_i18n, react, react_dom, _elementor_ui, _elementor_query, _elementor_icons, _elementor_editor_app_bar, _elementor_icons_SpeakerphoneIcon) {
1 +/*! elementor - v3.26.0 - 19-12-2024 */
2 +/******/ (() => { // webpackBootstrap
3 +/******/ var __webpack_modules__ = ({
2 4
3 -//#region \0rolldown/runtime.js
4 - var __create = Object.create;
5 - var __defProp = Object.defineProperty;
6 - var __name = (target, value) => __defProp(target, "name", {
7 - value,
8 - configurable: true
9 - });
10 - var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 - var __getOwnPropNames = Object.getOwnPropertyNames;
12 - var __getProtoOf = Object.getPrototypeOf;
13 - var __hasOwnProp = Object.prototype.hasOwnProperty;
14 - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15 - var __copyProps = (to, from, except, desc) => {
16 - if (from && typeof from === "object" || typeof from === "function") {
17 - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18 - key = keys[i];
19 - if (!__hasOwnProp.call(to, key) && key !== except) {
20 - __defProp(to, key, {
21 - get: ((k) => from[k]).bind(null, key),
22 - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23 - });
24 - }
25 - }
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 +
61 +/***/ "../assets/dev/js/utils/react.js":
62 +/*!***************************************!*\
63 + !*** ../assets/dev/js/utils/react.js ***!
64 + \***************************************/
65 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
66 +
67 +"use strict";
68 +
69 +
70 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
71 +Object.defineProperty(exports, "__esModule", ({
72 + value: true
73 +}));
74 +exports["default"] = void 0;
75 +var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
76 +var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom"));
77 +var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
78 +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
79 +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
80 +/**
81 + * Support conditional rendering of a React App to the DOM, based on the React version.
82 + * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
83 + *
84 + * @param { React.ReactElement } app The app to render.
85 + * @param { HTMLElement } domElement The DOM element to render the app into.
86 + *
87 + * @return {{ unmount: () => void }} The unmount function.
88 + */
89 +function render(app, domElement) {
90 + var unmountFunction;
91 + try {
92 + var root = (0, _client.createRoot)(domElement);
93 + root.render(app);
94 + unmountFunction = function unmountFunction() {
95 + root.unmount();
96 + };
97 + } catch (e) {
98 + // eslint-disable-next-line react/no-deprecated
99 + ReactDOM.render(app, domElement);
100 + unmountFunction = function unmountFunction() {
101 + // eslint-disable-next-line react/no-deprecated
102 + ReactDOM.unmountComponentAtNode(domElement);
103 + };
104 + }
105 + return {
106 + unmount: unmountFunction
107 + };
108 +}
109 +var _default = exports["default"] = {
110 + render: render
111 +};
112 +
113 +/***/ }),
114 +
115 +/***/ "../modules/notifications/assets/js/api/index.js":
116 +/*!*******************************************************!*\
117 + !*** ../modules/notifications/assets/js/api/index.js ***!
118 + \*******************************************************/
119 +/***/ ((__unused_webpack_module, exports) => {
120 +
121 +"use strict";
122 +
123 +
124 +Object.defineProperty(exports, "__esModule", ({
125 + value: true
126 +}));
127 +exports.getNotifications = void 0;
128 +var request = function request(endpoint) {
129 + var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
130 + return new Promise(function (resolve, reject) {
131 + elementorCommon.ajax.addRequest(endpoint, {
132 + success: resolve,
133 + error: reject,
134 + data: data
135 + });
136 + });
137 +};
138 +var getNotifications = exports.getNotifications = function getNotifications() {
139 + return request('notifications_get');
140 +};
141 +
142 +/***/ }),
143 +
144 +/***/ "../modules/notifications/assets/js/components/editor-drawer.js":
145 +/*!**********************************************************************!*\
146 + !*** ../modules/notifications/assets/js/components/editor-drawer.js ***!
147 + \**********************************************************************/
148 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
149 +
150 +"use strict";
151 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
152 +
153 +
154 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
155 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
156 +Object.defineProperty(exports, "__esModule", ({
157 + value: true
158 +}));
159 +exports.EditorDrawer = void 0;
160 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
161 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
162 +var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
163 +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
164 +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
165 +var EditorDrawer = exports.EditorDrawer = function EditorDrawer(_ref) {
166 + var _ref$anchorPosition = _ref.anchorPosition,
167 + anchorPosition = _ref$anchorPosition === void 0 ? 'left' : _ref$anchorPosition;
168 + var _useState = (0, _react.useState)(true),
169 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
170 + isOpen = _useState2[0],
171 + setIsOpen = _useState2[1];
172 + (0, _react.useEffect)(function () {
173 + elementor.on('elementor/editor/panel/whats-new/clicked', function () {
174 + return setIsOpen(true);
175 + });
176 + }, []);
177 + return /*#__PURE__*/_react.default.createElement(_whatsNew.WhatsNew, {
178 + isOpen: isOpen,
179 + setIsOpen: setIsOpen,
180 + setIsRead: function setIsRead() {
181 + return document.body.classList.remove('e-has-notification');
182 + },
183 + anchorPosition: anchorPosition
184 + });
185 +};
186 +EditorDrawer.propTypes = {
187 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
188 +};
189 +
190 +/***/ }),
191 +
192 +/***/ "../modules/notifications/assets/js/components/editor-on-button-clicked.js":
193 +/*!*********************************************************************************!*\
194 + !*** ../modules/notifications/assets/js/components/editor-on-button-clicked.js ***!
195 + \*********************************************************************************/
196 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
197 +
198 +"use strict";
199 +
200 +
201 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
202 +Object.defineProperty(exports, "__esModule", ({
203 + value: true
204 +}));
205 +exports.editorOnButtonClicked = void 0;
206 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
207 +var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
208 +var _editorDrawer = __webpack_require__(/*! ./editor-drawer */ "../modules/notifications/assets/js/components/editor-drawer.js");
209 +var isRendered = false;
210 +var editorOnButtonClicked = exports.editorOnButtonClicked = function editorOnButtonClicked() {
211 + var anchorPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'left';
212 + if (!isRendered) {
213 + isRendered = true;
214 + var container = document.createElement('div');
215 + document.body.append(container);
216 + _react2.default.render(/*#__PURE__*/_react.default.createElement(_editorDrawer.EditorDrawer, {
217 + anchorPosition: anchorPosition
218 + }), container);
219 + return;
220 + }
221 + elementor.trigger('elementor/editor/panel/whats-new/clicked');
222 +};
223 +
224 +/***/ }),
225 +
226 +/***/ "../modules/notifications/assets/js/components/editor-v1.js":
227 +/*!******************************************************************!*\
228 + !*** ../modules/notifications/assets/js/components/editor-v1.js ***!
229 + \******************************************************************/
230 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
231 +
232 +"use strict";
233 +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
234 +
235 +
236 +Object.defineProperty(exports, "__esModule", ({
237 + value: true
238 +}));
239 +exports.editorV1 = void 0;
240 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
241 +var editorV1 = exports.editorV1 = function editorV1() {
242 + elementor.on('panel:init', function () {
243 + if (elementorNotifications.is_unread) {
244 + document.body.classList.add('e-has-notification');
245 + }
246 + elementor.getPanelView().getPages('menu').view.addItem({
247 + name: 'notification-center',
248 + icon: 'eicon-speakerphone',
249 + title: __('What\'s New', 'elementor'),
250 + callback: _editorOnButtonClicked.editorOnButtonClicked
251 + }, 'navigate_from_page', 'view-page');
252 + });
253 +};
254 +
255 +/***/ }),
256 +
257 +/***/ "../modules/notifications/assets/js/components/editor-v2.js":
258 +/*!******************************************************************!*\
259 + !*** ../modules/notifications/assets/js/components/editor-v2.js ***!
260 + \******************************************************************/
261 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
262 +
263 +"use strict";
264 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
265 +
266 +
267 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
268 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
269 +Object.defineProperty(exports, "__esModule", ({
270 + value: true
271 +}));
272 +exports.editorV2 = void 0;
273 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
274 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
275 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
276 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
277 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
278 +var _SpeakerphoneIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SpeakerphoneIcon */ "@elementor/icons/SpeakerphoneIcon"));
279 +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
280 +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
281 +var IconWithBadge = function IconWithBadge(_ref) {
282 + var invisible = _ref.invisible;
283 + return /*#__PURE__*/_react.default.createElement(_ui.Badge, {
284 + color: "primary",
285 + variant: "dot",
286 + invisible: invisible
287 + }, /*#__PURE__*/_react.default.createElement(_SpeakerphoneIcon.default, null));
288 +};
289 +IconWithBadge.propTypes = {
290 + invisible: PropTypes.bool
291 +};
292 +var editorV2 = exports.editorV2 = function editorV2() {
293 + var utilitiesMenu = window.elementorV2.editorAppBar.utilitiesMenu;
294 + utilitiesMenu.registerLink({
295 + id: 'app-bar-menu-item-whats-new',
296 + priority: 10,
297 + useProps: function useProps() {
298 + var _useState = (0, _react.useState)(!elementorNotifications.is_unread),
299 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
300 + isRead = _useState2[0],
301 + setIsRead = _useState2[1];
302 + return {
303 + title: (0, _i18n.__)("What's New", 'elementor'),
304 + icon: function icon() {
305 + return /*#__PURE__*/_react.default.createElement(IconWithBadge, {
306 + invisible: isRead
307 + });
308 + },
309 + onClick: function onClick() {
310 + elementor.editorEvents.dispatchEvent(elementor.editorEvents.config.names.topBar.whatsNew, {
311 + location: elementor.editorEvents.config.locations.topBar,
312 + secondaryLocation: elementor.editorEvents.config.secondaryLocations['whats-new'],
313 + trigger: elementor.editorEvents.config.triggers.click,
314 + element: elementor.editorEvents.config.elements.buttonIcon
315 + });
316 + setIsRead(true);
317 + elementorNotifications.is_unread = false;
318 + (0, _editorOnButtonClicked.editorOnButtonClicked)('right');
319 + }
320 + };
321 + }
322 + });
323 +};
324 +
325 +/***/ }),
326 +
327 +/***/ "../modules/notifications/assets/js/components/whats-new-drawer-content.js":
328 +/*!*********************************************************************************!*\
329 + !*** ../modules/notifications/assets/js/components/whats-new-drawer-content.js ***!
330 + \*********************************************************************************/
331 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
332 +
333 +"use strict";
334 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
335 +
336 +
337 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
338 +Object.defineProperty(exports, "__esModule", ({
339 + value: true
340 +}));
341 +exports.WhatsNewDrawerContent = void 0;
342 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
343 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
344 +var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
345 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
346 +var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
347 +var WhatsNewDrawerContent = exports.WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
348 + var setIsOpen = _ref.setIsOpen;
349 + var _useQuery = (0, _query.useQuery)({
350 + queryKey: ['e-notifications'],
351 + queryFn: _api.getNotifications
352 + }),
353 + isPending = _useQuery.isPending,
354 + error = _useQuery.error,
355 + items = _useQuery.data;
356 + if (isPending) {
357 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.LinearProgress, {
358 + color: "secondary"
359 + }));
360 + }
361 + if (error) {
362 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, "An error has occurred: ", error);
363 + }
364 + return items.map(function (item, itemIndex) {
365 + return /*#__PURE__*/_react.default.createElement(_whatsNewItem.WhatsNewItem, {
366 + key: itemIndex,
367 + item: item,
368 + itemIndex: itemIndex,
369 + itemsLength: items.length,
370 + setIsOpen: setIsOpen
371 + });
372 + });
373 +};
374 +WhatsNewDrawerContent.propTypes = {
375 + setIsOpen: PropTypes.func.isRequired
376 +};
377 +
378 +/***/ }),
379 +
380 +/***/ "../modules/notifications/assets/js/components/whats-new-item-chips.js":
381 +/*!*****************************************************************************!*\
382 + !*** ../modules/notifications/assets/js/components/whats-new-item-chips.js ***!
383 + \*****************************************************************************/
384 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
385 +
386 +"use strict";
387 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
388 +
389 +
390 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
391 +Object.defineProperty(exports, "__esModule", ({
392 + value: true
393 +}));
394 +exports.WhatsNewItemChips = void 0;
395 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
396 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
397 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
398 +var WhatsNewItemChips = exports.WhatsNewItemChips = function WhatsNewItemChips(_ref) {
399 + var chipPlan = _ref.chipPlan,
400 + chipTags = _ref.chipTags,
401 + itemIndex = _ref.itemIndex;
402 + var chips = [];
403 + if (chipPlan) {
404 + chips.push({
405 + color: 'promotion',
406 + size: 'small',
407 + label: chipPlan
408 + });
409 + }
410 + if (chipTags) {
411 + chipTags.forEach(function (chipTag) {
412 + chips.push({
413 + variant: 'outlined',
414 + size: 'small',
415 + label: chipTag
416 + });
417 + });
418 + }
419 + if (!chips.length) {
420 + return null;
421 + }
422 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
423 + direction: "row",
424 + flexWrap: "wrap",
425 + gap: 1,
426 + sx: {
427 + pb: 1
428 + }
429 + }, chips.map(function (chip, chipIndex) {
430 + return /*#__PURE__*/_react.default.createElement(_ui.Chip, (0, _extends2.default)({
431 + key: "chip-".concat(itemIndex).concat(chipIndex)
432 + }, chip));
433 + }));
434 +};
435 +WhatsNewItemChips.propTypes = {
436 + chipPlan: PropTypes.string,
437 + chipTags: PropTypes.array,
438 + itemIndex: PropTypes.number.isRequired
439 +};
440 +
441 +/***/ }),
442 +
443 +/***/ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js":
444 +/*!*********************************************************************************!*\
445 + !*** ../modules/notifications/assets/js/components/whats-new-item-thumbnail.js ***!
446 + \*********************************************************************************/
447 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
448 +
449 +"use strict";
450 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
451 +
452 +
453 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
454 +Object.defineProperty(exports, "__esModule", ({
455 + value: true
456 +}));
457 +exports.WhatsNewItemThumbnail = void 0;
458 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
459 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
460 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
461 +var WhatsNewItemThumbnail = exports.WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
462 + var imageSrc = _ref.imageSrc,
463 + title = _ref.title,
464 + link = _ref.link;
465 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
466 + sx: {
467 + pb: 2
468 + }
469 + }, /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
470 + link: link
471 + }, /*#__PURE__*/_react.default.createElement("img", {
472 + src: imageSrc,
473 + alt: title,
474 + style: {
475 + maxWidth: '100%'
476 + }
477 + })));
478 +};
479 +WhatsNewItemThumbnail.propTypes = {
480 + imageSrc: PropTypes.string.isRequired,
481 + title: PropTypes.string.isRequired,
482 + link: PropTypes.string
483 +};
484 +
485 +/***/ }),
486 +
487 +/***/ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js":
488 +/*!**********************************************************************************!*\
489 + !*** ../modules/notifications/assets/js/components/whats-new-item-topic-line.js ***!
490 + \**********************************************************************************/
491 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
492 +
493 +"use strict";
494 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
495 +
496 +
497 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
498 +Object.defineProperty(exports, "__esModule", ({
499 + value: true
500 +}));
501 +exports.WhatsNewItemTopicLine = void 0;
502 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
503 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
504 +var WhatsNewItemTopicLine = exports.WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
505 + var topic = _ref.topic,
506 + date = _ref.date;
507 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
508 + direction: "row",
509 + divider: /*#__PURE__*/_react.default.createElement(_ui.Divider, {
510 + orientation: "vertical",
511 + flexItem: true
512 + }),
513 + spacing: 1,
514 + color: "text.tertiary",
515 + sx: {
516 + pb: 1
517 + }
518 + }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
519 +};
520 +WhatsNewItemTopicLine.propTypes = {
521 + topic: PropTypes.string,
522 + date: PropTypes.string
523 +};
524 +
525 +/***/ }),
526 +
527 +/***/ "../modules/notifications/assets/js/components/whats-new-item.js":
528 +/*!***********************************************************************!*\
529 + !*** ../modules/notifications/assets/js/components/whats-new-item.js ***!
530 + \***********************************************************************/
531 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
532 +
533 +"use strict";
534 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
535 +
536 +
537 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
538 +Object.defineProperty(exports, "__esModule", ({
539 + value: true
540 +}));
541 +exports.WhatsNewItem = void 0;
542 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
543 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
544 +var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
545 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
546 +var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
547 +var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
548 +var WhatsNewItem = exports.WhatsNewItem = function WhatsNewItem(_ref) {
549 + var item = _ref.item,
550 + itemIndex = _ref.itemIndex,
551 + itemsLength = _ref.itemsLength,
552 + setIsOpen = _ref.setIsOpen;
553 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
554 + key: itemIndex,
555 + display: "flex",
556 + flexDirection: "column",
557 + sx: {
558 + pt: 2
559 + }
560 + }, (item.topic || item.date) && /*#__PURE__*/_react.default.createElement(_whatsNewItemTopicLine.WhatsNewItemTopicLine, {
561 + topic: item.topic,
562 + date: item.date
563 + }), /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
564 + link: item.link
565 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
566 + variant: "subtitle1",
567 + sx: {
568 + pb: 2
569 + }
570 + }, item.title)), item.imageSrc && /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
571 + imageSrc: item.imageSrc,
572 + link: item.link,
573 + title: item.title
574 + }), /*#__PURE__*/_react.default.createElement(_whatsNewItemChips.WhatsNewItemChips, {
575 + chipPlan: item.chipPlan,
576 + chipTags: item.chipTags,
577 + itemIndex: itemIndex
578 + }), item.description && /*#__PURE__*/_react.default.createElement(_ui.Typography, {
579 + variant: "body2",
580 + color: "text.secondary",
581 + sx: {
582 + pb: 2
583 + }
584 + }, item.description, item.readMoreText && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ' ', /*#__PURE__*/_react.default.createElement(_ui.Link, {
585 + href: item.link,
586 + color: "info.main",
587 + target: "_blank"
588 + }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/_react.default.createElement(_ui.Box, {
589 + sx: {
590 + pb: 2
591 + }
592 + }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
593 + href: item.ctaLink,
594 + target: item.ctaLink.startsWith('#') ? '_self' : '_blank',
595 + variant: "contained",
596 + size: "small",
597 + color: "promotion",
598 + onClick: item.ctaLink.startsWith('#') ? function () {
599 + return setIsOpen(false);
600 + } : function () {}
601 + }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
602 + sx: {
603 + my: 1
604 + }
605 + }));
606 +};
607 +WhatsNewItem.propTypes = {
608 + item: PropTypes.object.isRequired,
609 + itemIndex: PropTypes.number.isRequired,
610 + itemsLength: PropTypes.number.isRequired,
611 + setIsOpen: PropTypes.func.isRequired
612 +};
613 +
614 +/***/ }),
615 +
616 +/***/ "../modules/notifications/assets/js/components/whats-new-top-bar.js":
617 +/*!**************************************************************************!*\
618 + !*** ../modules/notifications/assets/js/components/whats-new-top-bar.js ***!
619 + \**************************************************************************/
620 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
621 +
622 +"use strict";
623 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
624 +
625 +
626 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
627 +Object.defineProperty(exports, "__esModule", ({
628 + value: true
629 +}));
630 +exports.WhatsNewTopBar = void 0;
631 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
632 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
633 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
634 +var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
635 +var WhatsNewTopBar = exports.WhatsNewTopBar = function WhatsNewTopBar(props) {
636 + var setIsOpen = props.setIsOpen;
637 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
638 + elevation: 0,
639 + position: "sticky",
640 + sx: {
641 + backgroundColor: 'background.default'
642 + }
643 + }, /*#__PURE__*/_react.default.createElement(_ui.Toolbar, {
644 + variant: "dense"
645 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
646 + variant: "overline",
647 + sx: {
648 + flexGrow: 1
649 + }
650 + }, (0, _i18n.__)('What\'s New', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
651 + "aria-label": 'close',
652 + size: "small",
653 + onClick: function onClick() {
654 + return setIsOpen(false);
655 + }
656 + }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
657 +};
658 +WhatsNewTopBar.propTypes = {
659 + setIsOpen: PropTypes.func.isRequired
660 +};
661 +
662 +/***/ }),
663 +
664 +/***/ "../modules/notifications/assets/js/components/whats-new.js":
665 +/*!******************************************************************!*\
666 + !*** ../modules/notifications/assets/js/components/whats-new.js ***!
667 + \******************************************************************/
668 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
669 +
670 +"use strict";
671 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
672 +
673 +
674 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
675 +Object.defineProperty(exports, "__esModule", ({
676 + value: true
677 +}));
678 +exports.WhatsNew = void 0;
679 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
680 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
681 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
682 +var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
683 +var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
684 +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
685 +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
686 +var queryClient = new _query.QueryClient({
687 + defaultOptions: {
688 + queries: {
689 + refetchOnWindowFocus: false,
690 + retry: false,
691 + staleTime: 1000 * 60 * 30 // 30 minutes
692 + }
693 + }
694 +});
695 +var WhatsNew = exports.WhatsNew = function WhatsNew(props) {
696 + var _window$elementor, _window$elementor$get;
697 + var isOpen = props.isOpen,
698 + setIsOpen = props.setIsOpen,
699 + setIsRead = props.setIsRead,
700 + _props$anchorPosition = props.anchorPosition,
701 + anchorPosition = _props$anchorPosition === void 0 ? 'right' : _props$anchorPosition;
702 + (0, _react.useEffect)(function () {
703 + if (!isOpen) {
704 + return;
705 + }
706 + setIsRead(true);
707 + }, [isOpen, setIsRead]);
708 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_query.QueryClientProvider, {
709 + client: queryClient
710 + }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
711 + rtl: elementorCommon.config.isRTL
712 + }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
713 + 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'
714 + }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
715 + anchor: anchorPosition,
716 + open: isOpen,
717 + onClose: function onClose() {
718 + return setIsOpen(false);
719 + },
720 + ModalProps: {
721 + style: {
722 + // Above the WordPress Admin Top Bar.
723 + zIndex: 999999
724 + }
725 + }
726 + }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
727 + sx: {
728 + width: 320,
729 + backgroundColor: 'background.default'
730 + },
731 + role: "presentation"
732 + }, /*#__PURE__*/_react.default.createElement(_whatsNewTopBar.WhatsNewTopBar, {
733 + setIsOpen: setIsOpen
734 + }), /*#__PURE__*/_react.default.createElement(_ui.Box, {
735 + sx: {
736 + padding: '16px'
737 + }
738 + }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, {
739 + setIsOpen: setIsOpen
740 + }))))))));
741 +};
742 +WhatsNew.propTypes = {
743 + isOpen: PropTypes.bool.isRequired,
744 + setIsOpen: PropTypes.func.isRequired,
745 + setIsRead: PropTypes.func.isRequired,
746 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
747 +};
748 +
749 +/***/ }),
750 +
751 +/***/ "../modules/notifications/assets/js/components/wrapper-with-link.js":
752 +/*!**************************************************************************!*\
753 + !*** ../modules/notifications/assets/js/components/wrapper-with-link.js ***!
754 + \**************************************************************************/
755 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
756 +
757 +"use strict";
758 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
759 +
760 +
761 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
762 +Object.defineProperty(exports, "__esModule", ({
763 + value: true
764 +}));
765 +exports.WrapperWithLink = void 0;
766 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
767 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
768 +var WrapperWithLink = exports.WrapperWithLink = function WrapperWithLink(props) {
769 + var link = props.link,
770 + children = props.children;
771 + if (!link) {
772 + return children;
773 + }
774 + return /*#__PURE__*/_react.default.createElement(_ui.Link, {
775 + href: link,
776 + target: "_blank",
777 + underline: "none",
778 + color: "inherit",
779 + sx: {
780 + '&:hover': {
781 + color: 'inherit'
782 + }
783 + }
784 + }, children);
785 +};
786 +WrapperWithLink.propTypes = {
787 + link: PropTypes.string,
788 + children: PropTypes.any.isRequired
789 +};
790 +
791 +/***/ }),
792 +
793 +/***/ "../modules/notifications/assets/js/icons/x-icon.js":
794 +/*!**********************************************************!*\
795 + !*** ../modules/notifications/assets/js/icons/x-icon.js ***!
796 + \**********************************************************/
797 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
798 +
799 +"use strict";
800 +
801 +
802 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
803 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
804 +Object.defineProperty(exports, "__esModule", ({
805 + value: true
806 +}));
807 +exports.XIcon = void 0;
808 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
809 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
810 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
811 +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
812 +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
813 +var XIcon = exports.XIcon = (0, _react.forwardRef)(function (props, ref) {
814 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
815 + viewBox: "0 0 24 24"
816 + }, props, {
817 + ref: ref
818 + }), /*#__PURE__*/_react.default.createElement("path", {
819 + fillRule: "evenodd",
820 + clipRule: "evenodd",
821 + d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
822 + }), /*#__PURE__*/_react.default.createElement("path", {
823 + fillRule: "evenodd",
824 + clipRule: "evenodd",
825 + 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"
826 + }));
827 +});
828 +
829 +/***/ }),
830 +
831 +/***/ "../node_modules/object-assign/index.js":
832 +/*!**********************************************!*\
833 + !*** ../node_modules/object-assign/index.js ***!
834 + \**********************************************/
835 +/***/ ((module) => {
836 +
837 +"use strict";
838 +/*
839 +object-assign
840 +(c) Sindre Sorhus
841 +@license MIT
842 +*/
843 +
844 +
845 +/* eslint-disable no-unused-vars */
846 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
847 +var hasOwnProperty = Object.prototype.hasOwnProperty;
848 +var propIsEnumerable = Object.prototype.propertyIsEnumerable;
849 +
850 +function toObject(val) {
851 + if (val === null || val === undefined) {
852 + throw new TypeError('Object.assign cannot be called with null or undefined');
853 + }
854 +
855 + return Object(val);
856 +}
857 +
858 +function shouldUseNative() {
859 + try {
860 + if (!Object.assign) {
861 + return false;
26 862 }
27 - return to;
28 - };
29 - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30 - value: mod,
31 - enumerable: true
32 - }) : target, mod));
33 863
34 -//#endregion
35 -react = __toESM(react);
36 -react_dom = __toESM(react_dom);
37 -_elementor_editor_app_bar = __toESM(_elementor_editor_app_bar);
38 -_elementor_icons_SpeakerphoneIcon = __toESM(_elementor_icons_SpeakerphoneIcon);
864 + // Detect buggy property enumeration order in older V8 versions.
39 865
40 -//#region node_modules/react-dom/client.js
41 - var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
42 - var m = (globalThis.ReactDOM);
43 - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
44 - exports.createRoot = function(c, o) {
45 - i.usingClientEntryPoint = true;
46 - try {
47 - return m.createRoot(c, o);
48 - } finally {
49 - i.usingClientEntryPoint = false;
50 - }
51 - };
52 - }));
866 + // https://bugs.chromium.org/p/v8/issues/detail?id=4118
867 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
868 + test1[5] = 'de';
869 + if (Object.getOwnPropertyNames(test1)[0] === '5') {
870 + return false;
871 + }
53 872
54 -//#endregion
55 -//#region assets/dev/js/utils/react.js
56 - var import_client = require_client();
57 - /**
58 - * Support conditional rendering of a React App to the DOM, based on the React version.
59 - * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
60 - *
61 - * @param {Promise.resolve(React).ReactElement} app The app to render.
62 - * @param {HTMLElement} domElement The DOM element to render the app into.
63 - *
64 - * @return {{ unmount: () => void }} The unmount function.
65 - */
66 - function render(app, domElement) {
67 - var unmountFunction;
68 - try {
69 - var root = (0, import_client.createRoot)(domElement);
70 - root.render(app);
71 - unmountFunction = function unmountFunction() {
72 - root.unmount();
73 - };
74 - } catch (e) {
75 - react_dom.render(app, domElement);
76 - unmountFunction = function unmountFunction() {
77 - react_dom.unmountComponentAtNode(domElement);
78 - };
873 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
874 + var test2 = {};
875 + for (var i = 0; i < 10; i++) {
876 + test2['_' + String.fromCharCode(i)] = i;
79 877 }
80 - return { unmount: unmountFunction };
878 + var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
879 + return test2[n];
880 + });
881 + if (order2.join('') !== '0123456789') {
882 + return false;
883 + }
884 +
885 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
886 + var test3 = {};
887 + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
888 + test3[letter] = letter;
889 + });
890 + if (Object.keys(Object.assign({}, test3)).join('') !==
891 + 'abcdefghijklmnopqrst') {
892 + return false;
893 + }
894 +
895 + return true;
896 + } catch (err) {
897 + // We don't expect any of the above to throw, but better to be safe.
898 + return false;
81 899 }
82 - var react_default = { render };
900 +}
83 901
84 -//#endregion
85 -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
86 -/** @license React v16.13.1
87 - * react-is.development.js
88 - *
89 - * Copyright (c) Facebook, Inc. and its affiliates.
90 - *
91 - * This source code is licensed under the MIT license found in the
92 - * LICENSE file in the root directory of this source tree.
93 - */
94 - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
95 - (function() {
96 - "use strict";
97 - var hasSymbol = typeof Symbol === "function" && Symbol.for;
98 - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
99 - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
100 - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
101 - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
102 - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
103 - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
104 - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
105 - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
106 - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
107 - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
108 - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
109 - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
110 - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
111 - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
112 - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
113 - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
114 - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
115 - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
116 - function isValidElementType(type) {
117 - return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
902 +module.exports = shouldUseNative() ? Object.assign : function (target, source) {
903 + var from;
904 + var to = toObject(target);
905 + var symbols;
906 +
907 + for (var s = 1; s < arguments.length; s++) {
908 + from = Object(arguments[s]);
909 +
910 + for (var key in from) {
911 + if (hasOwnProperty.call(from, key)) {
912 + to[key] = from[key];
118 913 }
119 - function typeOf(object) {
120 - if (typeof object === "object" && object !== null) {
121 - var $$typeof = object.$$typeof;
122 - switch ($$typeof) {
123 - case REACT_ELEMENT_TYPE:
124 - var type = object.type;
125 - switch (type) {
126 - case REACT_ASYNC_MODE_TYPE:
127 - case REACT_CONCURRENT_MODE_TYPE:
128 - case REACT_FRAGMENT_TYPE:
129 - case REACT_PROFILER_TYPE:
130 - case REACT_STRICT_MODE_TYPE:
131 - case REACT_SUSPENSE_TYPE: return type;
132 - default:
133 - var $$typeofType = type && type.$$typeof;
134 - switch ($$typeofType) {
135 - case REACT_CONTEXT_TYPE:
136 - case REACT_FORWARD_REF_TYPE:
137 - case REACT_LAZY_TYPE:
138 - case REACT_MEMO_TYPE:
139 - case REACT_PROVIDER_TYPE: return $$typeofType;
140 - default: return $$typeof;
141 - }
142 - }
143 - case REACT_PORTAL_TYPE: return $$typeof;
144 - }
914 + }
915 +
916 + if (getOwnPropertySymbols) {
917 + symbols = getOwnPropertySymbols(from);
918 + for (var i = 0; i < symbols.length; i++) {
919 + if (propIsEnumerable.call(from, symbols[i])) {
920 + to[symbols[i]] = from[symbols[i]];
145 921 }
146 922 }
147 - var AsyncMode = REACT_ASYNC_MODE_TYPE;
148 - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
149 - var ContextConsumer = REACT_CONTEXT_TYPE;
150 - var ContextProvider = REACT_PROVIDER_TYPE;
151 - var Element = REACT_ELEMENT_TYPE;
152 - var ForwardRef = REACT_FORWARD_REF_TYPE;
153 - var Fragment = REACT_FRAGMENT_TYPE;
154 - var Lazy = REACT_LAZY_TYPE;
155 - var Memo = REACT_MEMO_TYPE;
156 - var Portal = REACT_PORTAL_TYPE;
157 - var Profiler = REACT_PROFILER_TYPE;
158 - var StrictMode = REACT_STRICT_MODE_TYPE;
159 - var Suspense = REACT_SUSPENSE_TYPE;
160 - var hasWarnedAboutDeprecatedIsAsyncMode = false;
161 - function isAsyncMode(object) {
162 - if (!hasWarnedAboutDeprecatedIsAsyncMode) {
163 - hasWarnedAboutDeprecatedIsAsyncMode = true;
164 - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
165 - }
166 - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
167 - }
168 - function isConcurrentMode(object) {
169 - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
170 - }
171 - function isContextConsumer(object) {
172 - return typeOf(object) === REACT_CONTEXT_TYPE;
173 - }
174 - function isContextProvider(object) {
175 - return typeOf(object) === REACT_PROVIDER_TYPE;
176 - }
177 - function isElement(object) {
178 - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
179 - }
180 - function isForwardRef(object) {
181 - return typeOf(object) === REACT_FORWARD_REF_TYPE;
182 - }
183 - function isFragment(object) {
184 - return typeOf(object) === REACT_FRAGMENT_TYPE;
185 - }
186 - function isLazy(object) {
187 - return typeOf(object) === REACT_LAZY_TYPE;
188 - }
189 - function isMemo(object) {
190 - return typeOf(object) === REACT_MEMO_TYPE;
191 - }
192 - function isPortal(object) {
193 - return typeOf(object) === REACT_PORTAL_TYPE;
194 - }
195 - function isProfiler(object) {
196 - return typeOf(object) === REACT_PROFILER_TYPE;
197 - }
198 - function isStrictMode(object) {
199 - return typeOf(object) === REACT_STRICT_MODE_TYPE;
200 - }
201 - function isSuspense(object) {
202 - return typeOf(object) === REACT_SUSPENSE_TYPE;
203 - }
204 - exports.AsyncMode = AsyncMode;
205 - exports.ConcurrentMode = ConcurrentMode;
206 - exports.ContextConsumer = ContextConsumer;
207 - exports.ContextProvider = ContextProvider;
208 - exports.Element = Element;
209 - exports.ForwardRef = ForwardRef;
210 - exports.Fragment = Fragment;
211 - exports.Lazy = Lazy;
212 - exports.Memo = Memo;
213 - exports.Portal = Portal;
214 - exports.Profiler = Profiler;
215 - exports.StrictMode = StrictMode;
216 - exports.Suspense = Suspense;
217 - exports.isAsyncMode = isAsyncMode;
218 - exports.isConcurrentMode = isConcurrentMode;
219 - exports.isContextConsumer = isContextConsumer;
220 - exports.isContextProvider = isContextProvider;
221 - exports.isElement = isElement;
222 - exports.isForwardRef = isForwardRef;
223 - exports.isFragment = isFragment;
224 - exports.isLazy = isLazy;
225 - exports.isMemo = isMemo;
226 - exports.isPortal = isPortal;
227 - exports.isProfiler = isProfiler;
228 - exports.isStrictMode = isStrictMode;
229 - exports.isSuspense = isSuspense;
230 - exports.isValidElementType = isValidElementType;
231 - exports.typeOf = typeOf;
232 - })();
233 - }));
923 + }
924 + }
234 925
235 -//#endregion
236 -//#region node_modules/prop-types/node_modules/react-is/index.js
237 - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
238 - module.exports = require_react_is_development();
239 - }));
926 + return to;
927 +};
240 928
241 -//#endregion
242 -//#region node_modules/object-assign/index.js
929 +
930 +/***/ }),
931 +
932 +/***/ "../node_modules/prop-types/checkPropTypes.js":
933 +/*!****************************************************!*\
934 + !*** ../node_modules/prop-types/checkPropTypes.js ***!
935 + \****************************************************/
936 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
937 +
938 +"use strict";
939 +/**
940 + * Copyright (c) 2013-present, Facebook, Inc.
941 + *
942 + * This source code is licensed under the MIT license found in the
943 + * LICENSE file in the root directory of this source tree.
944 + */
945 +
946 +
947 +
948 +var printWarning = function() {};
949 +
950 +if (true) {
951 + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
952 + var loggedTypeFailures = {};
953 + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
954 +
955 + printWarning = function(text) {
956 + var message = 'Warning: ' + text;
957 + if (typeof console !== 'undefined') {
958 + console.error(message);
959 + }
960 + try {
961 + // --- Welcome to debugging React ---
962 + // This error was thrown as a convenience so that you can use this stack
963 + // to find the callsite that caused this warning to fire.
964 + throw new Error(message);
965 + } catch (x) { /**/ }
966 + };
967 +}
968 +
969 +/**
970 + * Assert that the values match with the type specs.
971 + * Error messages are memorized and will only be shown once.
972 + *
973 + * @param {object} typeSpecs Map of name to a ReactPropType
974 + * @param {object} values Runtime values that need to be type-checked
975 + * @param {string} location e.g. "prop", "context", "child context"
976 + * @param {string} componentName Name of the component for error messages.
977 + * @param {?Function} getStack Returns the component stack.
978 + * @private
979 + */
980 +function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
981 + if (true) {
982 + for (var typeSpecName in typeSpecs) {
983 + if (has(typeSpecs, typeSpecName)) {
984 + var error;
985 + // Prop type validation may throw. In case they do, we don't want to
986 + // fail the render phase where it didn't fail before. So we log it.
987 + // After these have been cleaned up, we'll let them throw.
988 + try {
989 + // This is intentionally an invariant that gets caught. It's the same
990 + // behavior as without this statement except with a better message.
991 + if (typeof typeSpecs[typeSpecName] !== 'function') {
992 + var err = Error(
993 + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
994 + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
995 + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
996 + );
997 + err.name = 'Invariant Violation';
998 + throw err;
999 + }
1000 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1001 + } catch (ex) {
1002 + error = ex;
1003 + }
1004 + if (error && !(error instanceof Error)) {
1005 + printWarning(
1006 + (componentName || 'React class') + ': type specification of ' +
1007 + location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1008 + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1009 + 'You may have forgotten to pass an argument to the type checker ' +
1010 + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1011 + 'shape all require an argument).'
1012 + );
1013 + }
1014 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1015 + // Only monitor this failure once because there tends to be a lot of the
1016 + // same error.
1017 + loggedTypeFailures[error.message] = true;
1018 +
1019 + var stack = getStack ? getStack() : '';
1020 +
1021 + printWarning(
1022 + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1023 + );
1024 + }
1025 + }
1026 + }
1027 + }
1028 +}
1029 +
1030 +/**
1031 + * Resets warning cache when testing.
1032 + *
1033 + * @private
1034 + */
1035 +checkPropTypes.resetWarningCache = function() {
1036 + if (true) {
1037 + loggedTypeFailures = {};
1038 + }
1039 +}
1040 +
1041 +module.exports = checkPropTypes;
1042 +
1043 +
1044 +/***/ }),
1045 +
1046 +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
1047 +/*!*************************************************************!*\
1048 + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
1049 + \*************************************************************/
1050 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1051 +
1052 +"use strict";
1053 +/**
1054 + * Copyright (c) 2013-present, Facebook, Inc.
1055 + *
1056 + * This source code is licensed under the MIT license found in the
1057 + * LICENSE file in the root directory of this source tree.
1058 + */
1059 +
1060 +
1061 +
1062 +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1063 +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
1064 +
1065 +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1066 +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1067 +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
1068 +
1069 +var printWarning = function() {};
1070 +
1071 +if (true) {
1072 + printWarning = function(text) {
1073 + var message = 'Warning: ' + text;
1074 + if (typeof console !== 'undefined') {
1075 + console.error(message);
1076 + }
1077 + try {
1078 + // --- Welcome to debugging React ---
1079 + // This error was thrown as a convenience so that you can use this stack
1080 + // to find the callsite that caused this warning to fire.
1081 + throw new Error(message);
1082 + } catch (x) {}
1083 + };
1084 +}
1085 +
1086 +function emptyFunctionThatReturnsNull() {
1087 + return null;
1088 +}
1089 +
1090 +module.exports = function(isValidElement, throwOnDirectAccess) {
1091 + /* global Symbol */
1092 + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1093 + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1094 +
1095 + /**
1096 + * Returns the iterator method function contained on the iterable object.
1097 + *
1098 + * Be sure to invoke the function with the iterable as context:
1099 + *
1100 + * var iteratorFn = getIteratorFn(myIterable);
1101 + * if (iteratorFn) {
1102 + * var iterator = iteratorFn.call(myIterable);
1103 + * ...
1104 + * }
1105 + *
1106 + * @param {?object} maybeIterable
1107 + * @return {?function}
1108 + */
1109 + function getIteratorFn(maybeIterable) {
1110 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1111 + if (typeof iteratorFn === 'function') {
1112 + return iteratorFn;
1113 + }
1114 + }
1115 +
1116 + /**
1117 + * Collection of methods that allow declaration and validation of props that are
1118 + * supplied to React components. Example usage:
1119 + *
1120 + * var Props = require('ReactPropTypes');
1121 + * var MyArticle = React.createClass({
1122 + * propTypes: {
1123 + * // An optional string prop named "description".
1124 + * description: Props.string,
1125 + *
1126 + * // A required enum prop named "category".
1127 + * category: Props.oneOf(['News','Photos']).isRequired,
1128 + *
1129 + * // A prop named "dialog" that requires an instance of Dialog.
1130 + * dialog: Props.instanceOf(Dialog).isRequired
1131 + * },
1132 + * render: function() { ... }
1133 + * });
1134 + *
1135 + * A more formal specification of how these methods are used:
1136 + *
1137 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1138 + * decl := ReactPropTypes.{type}(.isRequired)?
1139 + *
1140 + * Each and every declaration produces a function with the same signature. This
1141 + * allows the creation of custom validation functions. For example:
1142 + *
1143 + * var MyLink = React.createClass({
1144 + * propTypes: {
1145 + * // An optional string or URI prop named "href".
1146 + * href: function(props, propName, componentName) {
1147 + * var propValue = props[propName];
1148 + * if (propValue != null && typeof propValue !== 'string' &&
1149 + * !(propValue instanceof URI)) {
1150 + * return new Error(
1151 + * 'Expected a string or an URI for ' + propName + ' in ' +
1152 + * componentName
1153 + * );
1154 + * }
1155 + * }
1156 + * },
1157 + * render: function() {...}
1158 + * });
1159 + *
1160 + * @internal
1161 + */
1162 +
1163 + var ANONYMOUS = '<<anonymous>>';
1164 +
1165 + // Important!
1166 + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1167 + var ReactPropTypes = {
1168 + array: createPrimitiveTypeChecker('array'),
1169 + bigint: createPrimitiveTypeChecker('bigint'),
1170 + bool: createPrimitiveTypeChecker('boolean'),
1171 + func: createPrimitiveTypeChecker('function'),
1172 + number: createPrimitiveTypeChecker('number'),
1173 + object: createPrimitiveTypeChecker('object'),
1174 + string: createPrimitiveTypeChecker('string'),
1175 + symbol: createPrimitiveTypeChecker('symbol'),
1176 +
1177 + any: createAnyTypeChecker(),
1178 + arrayOf: createArrayOfTypeChecker,
1179 + element: createElementTypeChecker(),
1180 + elementType: createElementTypeTypeChecker(),
1181 + instanceOf: createInstanceTypeChecker,
1182 + node: createNodeChecker(),
1183 + objectOf: createObjectOfTypeChecker,
1184 + oneOf: createEnumTypeChecker,
1185 + oneOfType: createUnionTypeChecker,
1186 + shape: createShapeTypeChecker,
1187 + exact: createStrictShapeTypeChecker,
1188 + };
1189 +
1190 + /**
1191 + * inlined Object.is polyfill to avoid requiring consumers ship their own
1192 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1193 + */
1194 + /*eslint-disable no-self-compare*/
1195 + function is(x, y) {
1196 + // SameValue algorithm
1197 + if (x === y) {
1198 + // Steps 1-5, 7-10
1199 + // Steps 6.b-6.e: +0 != -0
1200 + return x !== 0 || 1 / x === 1 / y;
1201 + } else {
1202 + // Step 6.a: NaN == NaN
1203 + return x !== x && y !== y;
1204 + }
1205 + }
1206 + /*eslint-enable no-self-compare*/
1207 +
1208 + /**
1209 + * We use an Error-like object for backward compatibility as people may call
1210 + * PropTypes directly and inspect their output. However, we don't use real
1211 + * Errors anymore. We don't inspect their stack anyway, and creating them
1212 + * is prohibitively expensive if they are created too often, such as what
1213 + * happens in oneOfType() for any type before the one that matched.
1214 + */
1215 + function PropTypeError(message, data) {
1216 + this.message = message;
1217 + this.data = data && typeof data === 'object' ? data: {};
1218 + this.stack = '';
1219 + }
1220 + // Make `instanceof Error` still work for returned errors.
1221 + PropTypeError.prototype = Error.prototype;
1222 +
1223 + function createChainableTypeChecker(validate) {
1224 + if (true) {
1225 + var manualPropTypeCallCache = {};
1226 + var manualPropTypeWarningCount = 0;
1227 + }
1228 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1229 + componentName = componentName || ANONYMOUS;
1230 + propFullName = propFullName || propName;
1231 +
1232 + if (secret !== ReactPropTypesSecret) {
1233 + if (throwOnDirectAccess) {
1234 + // New behavior only for users of `prop-types` package
1235 + var err = new Error(
1236 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1237 + 'Use `PropTypes.checkPropTypes()` to call them. ' +
1238 + 'Read more at http://fb.me/use-check-prop-types'
1239 + );
1240 + err.name = 'Invariant Violation';
1241 + throw err;
1242 + } else if ( true && typeof console !== 'undefined') {
1243 + // Old behavior for people using React.PropTypes
1244 + var cacheKey = componentName + ':' + propName;
1245 + if (
1246 + !manualPropTypeCallCache[cacheKey] &&
1247 + // Avoid spamming the console because they are often not actionable except for lib authors
1248 + manualPropTypeWarningCount < 3
1249 + ) {
1250 + printWarning(
1251 + 'You are manually calling a React.PropTypes validation ' +
1252 + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1253 + 'and will throw in the standalone `prop-types` package. ' +
1254 + 'You may be seeing this warning due to a third-party PropTypes ' +
1255 + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1256 + );
1257 + manualPropTypeCallCache[cacheKey] = true;
1258 + manualPropTypeWarningCount++;
1259 + }
1260 + }
1261 + }
1262 + if (props[propName] == null) {
1263 + if (isRequired) {
1264 + if (props[propName] === null) {
1265 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1266 + }
1267 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1268 + }
1269 + return null;
1270 + } else {
1271 + return validate(props, propName, componentName, location, propFullName);
1272 + }
1273 + }
1274 +
1275 + var chainedCheckType = checkType.bind(null, false);
1276 + chainedCheckType.isRequired = checkType.bind(null, true);
1277 +
1278 + return chainedCheckType;
1279 + }
1280 +
1281 + function createPrimitiveTypeChecker(expectedType) {
1282 + function validate(props, propName, componentName, location, propFullName, secret) {
1283 + var propValue = props[propName];
1284 + var propType = getPropType(propValue);
1285 + if (propType !== expectedType) {
1286 + // `propValue` being instance of, say, date/regexp, pass the 'object'
1287 + // check, but we can offer a more precise error message here rather than
1288 + // 'of type `object`'.
1289 + var preciseType = getPreciseType(propValue);
1290 +
1291 + return new PropTypeError(
1292 + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1293 + {expectedType: expectedType}
1294 + );
1295 + }
1296 + return null;
1297 + }
1298 + return createChainableTypeChecker(validate);
1299 + }
1300 +
1301 + function createAnyTypeChecker() {
1302 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1303 + }
1304 +
1305 + function createArrayOfTypeChecker(typeChecker) {
1306 + function validate(props, propName, componentName, location, propFullName) {
1307 + if (typeof typeChecker !== 'function') {
1308 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1309 + }
1310 + var propValue = props[propName];
1311 + if (!Array.isArray(propValue)) {
1312 + var propType = getPropType(propValue);
1313 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1314 + }
1315 + for (var i = 0; i < propValue.length; i++) {
1316 + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1317 + if (error instanceof Error) {
1318 + return error;
1319 + }
1320 + }
1321 + return null;
1322 + }
1323 + return createChainableTypeChecker(validate);
1324 + }
1325 +
1326 + function createElementTypeChecker() {
1327 + function validate(props, propName, componentName, location, propFullName) {
1328 + var propValue = props[propName];
1329 + if (!isValidElement(propValue)) {
1330 + var propType = getPropType(propValue);
1331 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1332 + }
1333 + return null;
1334 + }
1335 + return createChainableTypeChecker(validate);
1336 + }
1337 +
1338 + function createElementTypeTypeChecker() {
1339 + function validate(props, propName, componentName, location, propFullName) {
1340 + var propValue = props[propName];
1341 + if (!ReactIs.isValidElementType(propValue)) {
1342 + var propType = getPropType(propValue);
1343 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1344 + }
1345 + return null;
1346 + }
1347 + return createChainableTypeChecker(validate);
1348 + }
1349 +
1350 + function createInstanceTypeChecker(expectedClass) {
1351 + function validate(props, propName, componentName, location, propFullName) {
1352 + if (!(props[propName] instanceof expectedClass)) {
1353 + var expectedClassName = expectedClass.name || ANONYMOUS;
1354 + var actualClassName = getClassName(props[propName]);
1355 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1356 + }
1357 + return null;
1358 + }
1359 + return createChainableTypeChecker(validate);
1360 + }
1361 +
1362 + function createEnumTypeChecker(expectedValues) {
1363 + if (!Array.isArray(expectedValues)) {
1364 + if (true) {
1365 + if (arguments.length > 1) {
1366 + printWarning(
1367 + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1368 + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1369 + );
1370 + } else {
1371 + printWarning('Invalid argument supplied to oneOf, expected an array.');
1372 + }
1373 + }
1374 + return emptyFunctionThatReturnsNull;
1375 + }
1376 +
1377 + function validate(props, propName, componentName, location, propFullName) {
1378 + var propValue = props[propName];
1379 + for (var i = 0; i < expectedValues.length; i++) {
1380 + if (is(propValue, expectedValues[i])) {
1381 + return null;
1382 + }
1383 + }
1384 +
1385 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1386 + var type = getPreciseType(value);
1387 + if (type === 'symbol') {
1388 + return String(value);
1389 + }
1390 + return value;
1391 + });
1392 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1393 + }
1394 + return createChainableTypeChecker(validate);
1395 + }
1396 +
1397 + function createObjectOfTypeChecker(typeChecker) {
1398 + function validate(props, propName, componentName, location, propFullName) {
1399 + if (typeof typeChecker !== 'function') {
1400 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1401 + }
1402 + var propValue = props[propName];
1403 + var propType = getPropType(propValue);
1404 + if (propType !== 'object') {
1405 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1406 + }
1407 + for (var key in propValue) {
1408 + if (has(propValue, key)) {
1409 + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1410 + if (error instanceof Error) {
1411 + return error;
1412 + }
1413 + }
1414 + }
1415 + return null;
1416 + }
1417 + return createChainableTypeChecker(validate);
1418 + }
1419 +
1420 + function createUnionTypeChecker(arrayOfTypeCheckers) {
1421 + if (!Array.isArray(arrayOfTypeCheckers)) {
1422 + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1423 + return emptyFunctionThatReturnsNull;
1424 + }
1425 +
1426 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1427 + var checker = arrayOfTypeCheckers[i];
1428 + if (typeof checker !== 'function') {
1429 + printWarning(
1430 + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1431 + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1432 + );
1433 + return emptyFunctionThatReturnsNull;
1434 + }
1435 + }
1436 +
1437 + function validate(props, propName, componentName, location, propFullName) {
1438 + var expectedTypes = [];
1439 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1440 + var checker = arrayOfTypeCheckers[i];
1441 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1442 + if (checkerResult == null) {
1443 + return null;
1444 + }
1445 + if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1446 + expectedTypes.push(checkerResult.data.expectedType);
1447 + }
1448 + }
1449 + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1450 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1451 + }
1452 + return createChainableTypeChecker(validate);
1453 + }
1454 +
1455 + function createNodeChecker() {
1456 + function validate(props, propName, componentName, location, propFullName) {
1457 + if (!isNode(props[propName])) {
1458 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1459 + }
1460 + return null;
1461 + }
1462 + return createChainableTypeChecker(validate);
1463 + }
1464 +
1465 + function invalidValidatorError(componentName, location, propFullName, key, type) {
1466 + return new PropTypeError(
1467 + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1468 + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1469 + );
1470 + }
1471 +
1472 + function createShapeTypeChecker(shapeTypes) {
1473 + function validate(props, propName, componentName, location, propFullName) {
1474 + var propValue = props[propName];
1475 + var propType = getPropType(propValue);
1476 + if (propType !== 'object') {
1477 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1478 + }
1479 + for (var key in shapeTypes) {
1480 + var checker = shapeTypes[key];
1481 + if (typeof checker !== 'function') {
1482 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1483 + }
1484 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1485 + if (error) {
1486 + return error;
1487 + }
1488 + }
1489 + return null;
1490 + }
1491 + return createChainableTypeChecker(validate);
1492 + }
1493 +
1494 + function createStrictShapeTypeChecker(shapeTypes) {
1495 + function validate(props, propName, componentName, location, propFullName) {
1496 + var propValue = props[propName];
1497 + var propType = getPropType(propValue);
1498 + if (propType !== 'object') {
1499 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1500 + }
1501 + // We need to check all keys in case some are required but missing from props.
1502 + var allKeys = assign({}, props[propName], shapeTypes);
1503 + for (var key in allKeys) {
1504 + var checker = shapeTypes[key];
1505 + if (has(shapeTypes, key) && typeof checker !== 'function') {
1506 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1507 + }
1508 + if (!checker) {
1509 + return new PropTypeError(
1510 + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1511 + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1512 + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1513 + );
1514 + }
1515 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1516 + if (error) {
1517 + return error;
1518 + }
1519 + }
1520 + return null;
1521 + }
1522 +
1523 + return createChainableTypeChecker(validate);
1524 + }
1525 +
1526 + function isNode(propValue) {
1527 + switch (typeof propValue) {
1528 + case 'number':
1529 + case 'string':
1530 + case 'undefined':
1531 + return true;
1532 + case 'boolean':
1533 + return !propValue;
1534 + case 'object':
1535 + if (Array.isArray(propValue)) {
1536 + return propValue.every(isNode);
1537 + }
1538 + if (propValue === null || isValidElement(propValue)) {
1539 + return true;
1540 + }
1541 +
1542 + var iteratorFn = getIteratorFn(propValue);
1543 + if (iteratorFn) {
1544 + var iterator = iteratorFn.call(propValue);
1545 + var step;
1546 + if (iteratorFn !== propValue.entries) {
1547 + while (!(step = iterator.next()).done) {
1548 + if (!isNode(step.value)) {
1549 + return false;
1550 + }
1551 + }
1552 + } else {
1553 + // Iterator will provide entry [k,v] tuples rather than values.
1554 + while (!(step = iterator.next()).done) {
1555 + var entry = step.value;
1556 + if (entry) {
1557 + if (!isNode(entry[1])) {
1558 + return false;
1559 + }
1560 + }
1561 + }
1562 + }
1563 + } else {
1564 + return false;
1565 + }
1566 +
1567 + return true;
1568 + default:
1569 + return false;
1570 + }
1571 + }
1572 +
1573 + function isSymbol(propType, propValue) {
1574 + // Native Symbol.
1575 + if (propType === 'symbol') {
1576 + return true;
1577 + }
1578 +
1579 + // falsy value can't be a Symbol
1580 + if (!propValue) {
1581 + return false;
1582 + }
1583 +
1584 + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1585 + if (propValue['@@toStringTag'] === 'Symbol') {
1586 + return true;
1587 + }
1588 +
1589 + // Fallback for non-spec compliant Symbols which are polyfilled.
1590 + if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1591 + return true;
1592 + }
1593 +
1594 + return false;
1595 + }
1596 +
1597 + // Equivalent of `typeof` but with special handling for array and regexp.
1598 + function getPropType(propValue) {
1599 + var propType = typeof propValue;
1600 + if (Array.isArray(propValue)) {
1601 + return 'array';
1602 + }
1603 + if (propValue instanceof RegExp) {
1604 + // Old webkits (at least until Android 4.0) return 'function' rather than
1605 + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1606 + // passes PropTypes.object.
1607 + return 'object';
1608 + }
1609 + if (isSymbol(propType, propValue)) {
1610 + return 'symbol';
1611 + }
1612 + return propType;
1613 + }
1614 +
1615 + // This handles more types than `getPropType`. Only used for error messages.
1616 + // See `createPrimitiveTypeChecker`.
1617 + function getPreciseType(propValue) {
1618 + if (typeof propValue === 'undefined' || propValue === null) {
1619 + return '' + propValue;
1620 + }
1621 + var propType = getPropType(propValue);
1622 + if (propType === 'object') {
1623 + if (propValue instanceof Date) {
1624 + return 'date';
1625 + } else if (propValue instanceof RegExp) {
1626 + return 'regexp';
1627 + }
1628 + }
1629 + return propType;
1630 + }
1631 +
1632 + // Returns a string that is postfixed to a warning about an invalid type.
1633 + // For example, "undefined" or "of type array"
1634 + function getPostfixForTypeWarning(value) {
1635 + var type = getPreciseType(value);
1636 + switch (type) {
1637 + case 'array':
1638 + case 'object':
1639 + return 'an ' + type;
1640 + case 'boolean':
1641 + case 'date':
1642 + case 'regexp':
1643 + return 'a ' + type;
1644 + default:
1645 + return type;
1646 + }
1647 + }
1648 +
1649 + // Returns class name of the object, if any.
1650 + function getClassName(propValue) {
1651 + if (!propValue.constructor || !propValue.constructor.name) {
1652 + return ANONYMOUS;
1653 + }
1654 + return propValue.constructor.name;
1655 + }
1656 +
1657 + ReactPropTypes.checkPropTypes = checkPropTypes;
1658 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1659 + ReactPropTypes.PropTypes = ReactPropTypes;
1660 +
1661 + return ReactPropTypes;
1662 +};
1663 +
1664 +
1665 +/***/ }),
1666 +
1667 +/***/ "../node_modules/prop-types/index.js":
1668 +/*!*******************************************!*\
1669 + !*** ../node_modules/prop-types/index.js ***!
1670 + \*******************************************/
1671 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1672 +
1673 +/**
1674 + * Copyright (c) 2013-present, Facebook, Inc.
1675 + *
1676 + * This source code is licensed under the MIT license found in the
1677 + * LICENSE file in the root directory of this source tree.
1678 + */
1679 +
1680 +if (true) {
1681 + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1682 +
1683 + // By explicitly using `prop-types` you are opting into new development behavior.
1684 + // http://fb.me/prop-types-in-prod
1685 + var throwOnDirectAccess = true;
1686 + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1687 +} else {}
1688 +
1689 +
1690 +/***/ }),
1691 +
1692 +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1693 +/*!**************************************************************!*\
1694 + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1695 + \**************************************************************/
1696 +/***/ ((module) => {
1697 +
1698 +"use strict";
1699 +/**
1700 + * Copyright (c) 2013-present, Facebook, Inc.
1701 + *
1702 + * This source code is licensed under the MIT license found in the
1703 + * LICENSE file in the root directory of this source tree.
1704 + */
1705 +
1706 +
1707 +
1708 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1709 +
1710 +module.exports = ReactPropTypesSecret;
1711 +
1712 +
1713 +/***/ }),
1714 +
1715 +/***/ "../node_modules/prop-types/lib/has.js":
1716 +/*!*********************************************!*\
1717 + !*** ../node_modules/prop-types/lib/has.js ***!
1718 + \*********************************************/
1719 +/***/ ((module) => {
1720 +
1721 +module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1722 +
1723 +
1724 +/***/ }),
1725 +
1726 +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1727 +/*!************************************************************************************!*\
1728 + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1729 + \************************************************************************************/
1730 +/***/ ((__unused_webpack_module, exports) => {
1731 +
1732 +"use strict";
1733 +/** @license React v16.13.1
1734 + * react-is.development.js
1735 + *
1736 + * Copyright (c) Facebook, Inc. and its affiliates.
1737 + *
1738 + * This source code is licensed under the MIT license found in the
1739 + * LICENSE file in the root directory of this source tree.
1740 + */
1741 +
1742 +
1743 +
1744 +
1745 +
1746 +if (true) {
1747 + (function() {
1748 +'use strict';
1749 +
1750 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1751 +// nor polyfill, then a plain number is used for performance.
1752 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1753 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1754 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1755 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1756 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1757 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1758 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1759 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1760 +// (unstable) APIs that have been removed. Can we remove the symbols?
1761 +
1762 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1763 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1764 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1765 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1766 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1767 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1768 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1769 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1770 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1771 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1772 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1773 +
1774 +function isValidElementType(type) {
1775 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1776 + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1777 +}
1778 +
1779 +function typeOf(object) {
1780 + if (typeof object === 'object' && object !== null) {
1781 + var $$typeof = object.$$typeof;
1782 +
1783 + switch ($$typeof) {
1784 + case REACT_ELEMENT_TYPE:
1785 + var type = object.type;
1786 +
1787 + switch (type) {
1788 + case REACT_ASYNC_MODE_TYPE:
1789 + case REACT_CONCURRENT_MODE_TYPE:
1790 + case REACT_FRAGMENT_TYPE:
1791 + case REACT_PROFILER_TYPE:
1792 + case REACT_STRICT_MODE_TYPE:
1793 + case REACT_SUSPENSE_TYPE:
1794 + return type;
1795 +
1796 + default:
1797 + var $$typeofType = type && type.$$typeof;
1798 +
1799 + switch ($$typeofType) {
1800 + case REACT_CONTEXT_TYPE:
1801 + case REACT_FORWARD_REF_TYPE:
1802 + case REACT_LAZY_TYPE:
1803 + case REACT_MEMO_TYPE:
1804 + case REACT_PROVIDER_TYPE:
1805 + return $$typeofType;
1806 +
1807 + default:
1808 + return $$typeof;
1809 + }
1810 +
1811 + }
1812 +
1813 + case REACT_PORTAL_TYPE:
1814 + return $$typeof;
1815 + }
1816 + }
1817 +
1818 + return undefined;
1819 +} // AsyncMode is deprecated along with isAsyncMode
1820 +
1821 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
1822 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1823 +var ContextConsumer = REACT_CONTEXT_TYPE;
1824 +var ContextProvider = REACT_PROVIDER_TYPE;
1825 +var Element = REACT_ELEMENT_TYPE;
1826 +var ForwardRef = REACT_FORWARD_REF_TYPE;
1827 +var Fragment = REACT_FRAGMENT_TYPE;
1828 +var Lazy = REACT_LAZY_TYPE;
1829 +var Memo = REACT_MEMO_TYPE;
1830 +var Portal = REACT_PORTAL_TYPE;
1831 +var Profiler = REACT_PROFILER_TYPE;
1832 +var StrictMode = REACT_STRICT_MODE_TYPE;
1833 +var Suspense = REACT_SUSPENSE_TYPE;
1834 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1835 +
1836 +function isAsyncMode(object) {
1837 + {
1838 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1839 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1840 +
1841 + console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1842 + }
1843 + }
1844 +
1845 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1846 +}
1847 +function isConcurrentMode(object) {
1848 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1849 +}
1850 +function isContextConsumer(object) {
1851 + return typeOf(object) === REACT_CONTEXT_TYPE;
1852 +}
1853 +function isContextProvider(object) {
1854 + return typeOf(object) === REACT_PROVIDER_TYPE;
1855 +}
1856 +function isElement(object) {
1857 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1858 +}
1859 +function isForwardRef(object) {
1860 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
1861 +}
1862 +function isFragment(object) {
1863 + return typeOf(object) === REACT_FRAGMENT_TYPE;
1864 +}
1865 +function isLazy(object) {
1866 + return typeOf(object) === REACT_LAZY_TYPE;
1867 +}
1868 +function isMemo(object) {
1869 + return typeOf(object) === REACT_MEMO_TYPE;
1870 +}
1871 +function isPortal(object) {
1872 + return typeOf(object) === REACT_PORTAL_TYPE;
1873 +}
1874 +function isProfiler(object) {
1875 + return typeOf(object) === REACT_PROFILER_TYPE;
1876 +}
1877 +function isStrictMode(object) {
1878 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
1879 +}
1880 +function isSuspense(object) {
1881 + return typeOf(object) === REACT_SUSPENSE_TYPE;
1882 +}
1883 +
1884 +exports.AsyncMode = AsyncMode;
1885 +exports.ConcurrentMode = ConcurrentMode;
1886 +exports.ContextConsumer = ContextConsumer;
1887 +exports.ContextProvider = ContextProvider;
1888 +exports.Element = Element;
1889 +exports.ForwardRef = ForwardRef;
1890 +exports.Fragment = Fragment;
1891 +exports.Lazy = Lazy;
1892 +exports.Memo = Memo;
1893 +exports.Portal = Portal;
1894 +exports.Profiler = Profiler;
1895 +exports.StrictMode = StrictMode;
1896 +exports.Suspense = Suspense;
1897 +exports.isAsyncMode = isAsyncMode;
1898 +exports.isConcurrentMode = isConcurrentMode;
1899 +exports.isContextConsumer = isContextConsumer;
1900 +exports.isContextProvider = isContextProvider;
1901 +exports.isElement = isElement;
1902 +exports.isForwardRef = isForwardRef;
1903 +exports.isFragment = isFragment;
1904 +exports.isLazy = isLazy;
1905 +exports.isMemo = isMemo;
1906 +exports.isPortal = isPortal;
1907 +exports.isProfiler = isProfiler;
1908 +exports.isStrictMode = isStrictMode;
1909 +exports.isSuspense = isSuspense;
1910 +exports.isValidElementType = isValidElementType;
1911 +exports.typeOf = typeOf;
1912 + })();
1913 +}
1914 +
1915 +
1916 +/***/ }),
1917 +
1918 +/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1919 +/*!*****************************************************************!*\
1920 + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1921 + \*****************************************************************/
1922 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1923 +
1924 +"use strict";
1925 +
1926 +
1927 +if (false) {} else {
1928 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1929 +}
1930 +
1931 +
1932 +/***/ }),
1933 +
1934 +/***/ "../node_modules/react-dom/client.js":
1935 +/*!*******************************************!*\
1936 + !*** ../node_modules/react-dom/client.js ***!
1937 + \*******************************************/
1938 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1939 +
1940 +"use strict";
1941 +
1942 +
1943 +var m = __webpack_require__(/*! react-dom */ "react-dom");
1944 +if (false) {} else {
1945 + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1946 + exports.createRoot = function(c, o) {
1947 + i.usingClientEntryPoint = true;
1948 + try {
1949 + return m.createRoot(c, o);
1950 + } finally {
1951 + i.usingClientEntryPoint = false;
1952 + }
1953 + };
1954 + exports.hydrateRoot = function(c, h, o) {
1955 + i.usingClientEntryPoint = true;
1956 + try {
1957 + return m.hydrateRoot(c, h, o);
1958 + } finally {
1959 + i.usingClientEntryPoint = false;
1960 + }
1961 + };
1962 +}
1963 +
1964 +
1965 +/***/ }),
1966 +
1967 +/***/ "../node_modules/react/cjs/react-jsx-runtime.development.js":
1968 +/*!******************************************************************!*\
1969 + !*** ../node_modules/react/cjs/react-jsx-runtime.development.js ***!
1970 + \******************************************************************/
1971 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1972 +
1973 +"use strict";
1974 +/**
1975 + * @license React
1976 + * react-jsx-runtime.development.js
1977 + *
1978 + * Copyright (c) Facebook, Inc. and its affiliates.
1979 + *
1980 + * This source code is licensed under the MIT license found in the
1981 + * LICENSE file in the root directory of this source tree.
1982 + */
1983 +
1984 +
1985 +
1986 +if (true) {
1987 + (function() {
1988 +'use strict';
1989 +
1990 +var React = __webpack_require__(/*! react */ "react");
1991 +
1992 +// ATTENTION
1993 +// When adding new symbols to this file,
1994 +// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1995 +// The Symbol used to tag the ReactElement-like types.
1996 +var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1997 +var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1998 +var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1999 +var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
2000 +var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
2001 +var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
2002 +var REACT_CONTEXT_TYPE = Symbol.for('react.context');
2003 +var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
2004 +var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
2005 +var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
2006 +var REACT_MEMO_TYPE = Symbol.for('react.memo');
2007 +var REACT_LAZY_TYPE = Symbol.for('react.lazy');
2008 +var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
2009 +var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2010 +var FAUX_ITERATOR_SYMBOL = '@@iterator';
2011 +function getIteratorFn(maybeIterable) {
2012 + if (maybeIterable === null || typeof maybeIterable !== 'object') {
2013 + return null;
2014 + }
2015 +
2016 + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2017 +
2018 + if (typeof maybeIterator === 'function') {
2019 + return maybeIterator;
2020 + }
2021 +
2022 + return null;
2023 +}
2024 +
2025 +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2026 +
2027 +function error(format) {
2028 + {
2029 + {
2030 + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2031 + args[_key2 - 1] = arguments[_key2];
2032 + }
2033 +
2034 + printWarning('error', format, args);
2035 + }
2036 + }
2037 +}
2038 +
2039 +function printWarning(level, format, args) {
2040 + // When changing this logic, you might want to also
2041 + // update consoleWithStackDev.www.js as well.
2042 + {
2043 + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2044 + var stack = ReactDebugCurrentFrame.getStackAddendum();
2045 +
2046 + if (stack !== '') {
2047 + format += '%s';
2048 + args = args.concat([stack]);
2049 + } // eslint-disable-next-line react-internal/safe-string-coercion
2050 +
2051 +
2052 + var argsWithFormat = args.map(function (item) {
2053 + return String(item);
2054 + }); // Careful: RN currently depends on this prefix
2055 +
2056 + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
2057 + // breaks IE9: https://github.com/facebook/react/issues/13610
2058 + // eslint-disable-next-line react-internal/no-production-logging
2059 +
2060 + Function.prototype.apply.call(console[level], console, argsWithFormat);
2061 + }
2062 +}
2063 +
2064 +// -----------------------------------------------------------------------------
2065 +
2066 +var enableScopeAPI = false; // Experimental Create Event Handle API.
2067 +var enableCacheElement = false;
2068 +var enableTransitionTracing = false; // No known bugs, but needs performance testing
2069 +
2070 +var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
2071 +// stuff. Intended to enable React core members to more easily debug scheduling
2072 +// issues in DEV builds.
2073 +
2074 +var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
2075 +
2076 +var REACT_MODULE_REFERENCE;
2077 +
2078 +{
2079 + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
2080 +}
2081 +
2082 +function isValidElementType(type) {
2083 + if (typeof type === 'string' || typeof type === 'function') {
2084 + return true;
2085 + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
2086 +
2087 +
2088 + 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 ) {
2089 + return true;
2090 + }
2091 +
2092 + if (typeof type === 'object' && type !== null) {
2093 + 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
2094 + // types supported by any Flight configuration anywhere since
2095 + // we don't know which Flight build this will end up being used
2096 + // with.
2097 + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
2098 + return true;
2099 + }
2100 + }
2101 +
2102 + return false;
2103 +}
2104 +
2105 +function getWrappedName(outerType, innerType, wrapperName) {
2106 + var displayName = outerType.displayName;
2107 +
2108 + if (displayName) {
2109 + return displayName;
2110 + }
2111 +
2112 + var functionName = innerType.displayName || innerType.name || '';
2113 + return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
2114 +} // Keep in sync with react-reconciler/getComponentNameFromFiber
2115 +
2116 +
2117 +function getContextName(type) {
2118 + return type.displayName || 'Context';
2119 +} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
2120 +
2121 +
2122 +function getComponentNameFromType(type) {
2123 + if (type == null) {
2124 + // Host root, text node or just invalid type.
2125 + return null;
2126 + }
2127 +
2128 + {
2129 + if (typeof type.tag === 'number') {
2130 + error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
2131 + }
2132 + }
2133 +
2134 + if (typeof type === 'function') {
2135 + return type.displayName || type.name || null;
2136 + }
2137 +
2138 + if (typeof type === 'string') {
2139 + return type;
2140 + }
2141 +
2142 + switch (type) {
2143 + case REACT_FRAGMENT_TYPE:
2144 + return 'Fragment';
2145 +
2146 + case REACT_PORTAL_TYPE:
2147 + return 'Portal';
2148 +
2149 + case REACT_PROFILER_TYPE:
2150 + return 'Profiler';
2151 +
2152 + case REACT_STRICT_MODE_TYPE:
2153 + return 'StrictMode';
2154 +
2155 + case REACT_SUSPENSE_TYPE:
2156 + return 'Suspense';
2157 +
2158 + case REACT_SUSPENSE_LIST_TYPE:
2159 + return 'SuspenseList';
2160 +
2161 + }
2162 +
2163 + if (typeof type === 'object') {
2164 + switch (type.$$typeof) {
2165 + case REACT_CONTEXT_TYPE:
2166 + var context = type;
2167 + return getContextName(context) + '.Consumer';
2168 +
2169 + case REACT_PROVIDER_TYPE:
2170 + var provider = type;
2171 + return getContextName(provider._context) + '.Provider';
2172 +
2173 + case REACT_FORWARD_REF_TYPE:
2174 + return getWrappedName(type, type.render, 'ForwardRef');
2175 +
2176 + case REACT_MEMO_TYPE:
2177 + var outerName = type.displayName || null;
2178 +
2179 + if (outerName !== null) {
2180 + return outerName;
2181 + }
2182 +
2183 + return getComponentNameFromType(type.type) || 'Memo';
2184 +
2185 + case REACT_LAZY_TYPE:
2186 + {
2187 + var lazyComponent = type;
2188 + var payload = lazyComponent._payload;
2189 + var init = lazyComponent._init;
2190 +
2191 + try {
2192 + return getComponentNameFromType(init(payload));
2193 + } catch (x) {
2194 + return null;
2195 + }
2196 + }
2197 +
2198 + // eslint-disable-next-line no-fallthrough
2199 + }
2200 + }
2201 +
2202 + return null;
2203 +}
2204 +
2205 +var assign = Object.assign;
2206 +
2207 +// Helpers to patch console.logs to avoid logging during side-effect free
2208 +// replaying on render function. This currently only patches the object
2209 +// lazily which won't cover if the log function was extracted eagerly.
2210 +// We could also eagerly patch the method.
2211 +var disabledDepth = 0;
2212 +var prevLog;
2213 +var prevInfo;
2214 +var prevWarn;
2215 +var prevError;
2216 +var prevGroup;
2217 +var prevGroupCollapsed;
2218 +var prevGroupEnd;
2219 +
2220 +function disabledLog() {}
2221 +
2222 +disabledLog.__reactDisabledLog = true;
2223 +function disableLogs() {
2224 + {
2225 + if (disabledDepth === 0) {
2226 + /* eslint-disable react-internal/no-production-logging */
2227 + prevLog = console.log;
2228 + prevInfo = console.info;
2229 + prevWarn = console.warn;
2230 + prevError = console.error;
2231 + prevGroup = console.group;
2232 + prevGroupCollapsed = console.groupCollapsed;
2233 + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
2234 +
2235 + var props = {
2236 + configurable: true,
2237 + enumerable: true,
2238 + value: disabledLog,
2239 + writable: true
2240 + }; // $FlowFixMe Flow thinks console is immutable.
2241 +
2242 + Object.defineProperties(console, {
2243 + info: props,
2244 + log: props,
2245 + warn: props,
2246 + error: props,
2247 + group: props,
2248 + groupCollapsed: props,
2249 + groupEnd: props
2250 + });
2251 + /* eslint-enable react-internal/no-production-logging */
2252 + }
2253 +
2254 + disabledDepth++;
2255 + }
2256 +}
2257 +function reenableLogs() {
2258 + {
2259 + disabledDepth--;
2260 +
2261 + if (disabledDepth === 0) {
2262 + /* eslint-disable react-internal/no-production-logging */
2263 + var props = {
2264 + configurable: true,
2265 + enumerable: true,
2266 + writable: true
2267 + }; // $FlowFixMe Flow thinks console is immutable.
2268 +
2269 + Object.defineProperties(console, {
2270 + log: assign({}, props, {
2271 + value: prevLog
2272 + }),
2273 + info: assign({}, props, {
2274 + value: prevInfo
2275 + }),
2276 + warn: assign({}, props, {
2277 + value: prevWarn
2278 + }),
2279 + error: assign({}, props, {
2280 + value: prevError
2281 + }),
2282 + group: assign({}, props, {
2283 + value: prevGroup
2284 + }),
2285 + groupCollapsed: assign({}, props, {
2286 + value: prevGroupCollapsed
2287 + }),
2288 + groupEnd: assign({}, props, {
2289 + value: prevGroupEnd
2290 + })
2291 + });
2292 + /* eslint-enable react-internal/no-production-logging */
2293 + }
2294 +
2295 + if (disabledDepth < 0) {
2296 + error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2297 + }
2298 + }
2299 +}
2300 +
2301 +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2302 +var prefix;
2303 +function describeBuiltInComponentFrame(name, source, ownerFn) {
2304 + {
2305 + if (prefix === undefined) {
2306 + // Extract the VM specific prefix used by each line.
2307 + try {
2308 + throw Error();
2309 + } catch (x) {
2310 + var match = x.stack.trim().match(/\n( *(at )?)/);
2311 + prefix = match && match[1] || '';
2312 + }
2313 + } // We use the prefix to ensure our stacks line up with native stack frames.
2314 +
2315 +
2316 + return '\n' + prefix + name;
2317 + }
2318 +}
2319 +var reentry = false;
2320 +var componentFrameCache;
2321 +
2322 +{
2323 + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2324 + componentFrameCache = new PossiblyWeakMap();
2325 +}
2326 +
2327 +function describeNativeComponentFrame(fn, construct) {
2328 + // If something asked for a stack inside a fake render, it should get ignored.
2329 + if ( !fn || reentry) {
2330 + return '';
2331 + }
2332 +
2333 + {
2334 + var frame = componentFrameCache.get(fn);
2335 +
2336 + if (frame !== undefined) {
2337 + return frame;
2338 + }
2339 + }
2340 +
2341 + var control;
2342 + reentry = true;
2343 + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
2344 +
2345 + Error.prepareStackTrace = undefined;
2346 + var previousDispatcher;
2347 +
2348 + {
2349 + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
2350 + // for warnings.
2351 +
2352 + ReactCurrentDispatcher.current = null;
2353 + disableLogs();
2354 + }
2355 +
2356 + try {
2357 + // This should throw.
2358 + if (construct) {
2359 + // Something should be setting the props in the constructor.
2360 + var Fake = function () {
2361 + throw Error();
2362 + }; // $FlowFixMe
2363 +
2364 +
2365 + Object.defineProperty(Fake.prototype, 'props', {
2366 + set: function () {
2367 + // We use a throwing setter instead of frozen or non-writable props
2368 + // because that won't throw in a non-strict mode function.
2369 + throw Error();
2370 + }
2371 + });
2372 +
2373 + if (typeof Reflect === 'object' && Reflect.construct) {
2374 + // We construct a different control for this case to include any extra
2375 + // frames added by the construct call.
2376 + try {
2377 + Reflect.construct(Fake, []);
2378 + } catch (x) {
2379 + control = x;
2380 + }
2381 +
2382 + Reflect.construct(fn, [], Fake);
2383 + } else {
2384 + try {
2385 + Fake.call();
2386 + } catch (x) {
2387 + control = x;
2388 + }
2389 +
2390 + fn.call(Fake.prototype);
2391 + }
2392 + } else {
2393 + try {
2394 + throw Error();
2395 + } catch (x) {
2396 + control = x;
2397 + }
2398 +
2399 + fn();
2400 + }
2401 + } catch (sample) {
2402 + // This is inlined manually because closure doesn't do it for us.
2403 + if (sample && control && typeof sample.stack === 'string') {
2404 + // This extracts the first frame from the sample that isn't also in the control.
2405 + // Skipping one frame that we assume is the frame that calls the two.
2406 + var sampleLines = sample.stack.split('\n');
2407 + var controlLines = control.stack.split('\n');
2408 + var s = sampleLines.length - 1;
2409 + var c = controlLines.length - 1;
2410 +
2411 + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2412 + // We expect at least one stack frame to be shared.
2413 + // Typically this will be the root most one. However, stack frames may be
2414 + // cut off due to maximum stack limits. In this case, one maybe cut off
2415 + // earlier than the other. We assume that the sample is longer or the same
2416 + // and there for cut off earlier. So we should find the root most frame in
2417 + // the sample somewhere in the control.
2418 + c--;
2419 + }
2420 +
2421 + for (; s >= 1 && c >= 0; s--, c--) {
2422 + // Next we find the first one that isn't the same which should be the
2423 + // frame that called our sample function and the control.
2424 + if (sampleLines[s] !== controlLines[c]) {
2425 + // In V8, the first line is describing the message but other VMs don't.
2426 + // If we're about to return the first line, and the control is also on the same
2427 + // line, that's a pretty good indicator that our sample threw at same line as
2428 + // the control. I.e. before we entered the sample frame. So we ignore this result.
2429 + // This can happen if you passed a class to function component, or non-function.
2430 + if (s !== 1 || c !== 1) {
2431 + do {
2432 + s--;
2433 + c--; // We may still have similar intermediate frames from the construct call.
2434 + // The next one that isn't the same should be our match though.
2435 +
2436 + if (c < 0 || sampleLines[s] !== controlLines[c]) {
2437 + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
2438 + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
2439 + // but we have a user-provided "displayName"
2440 + // splice it in to make the stack more readable.
2441 +
2442 +
2443 + if (fn.displayName && _frame.includes('<anonymous>')) {
2444 + _frame = _frame.replace('<anonymous>', fn.displayName);
2445 + }
2446 +
2447 + {
2448 + if (typeof fn === 'function') {
2449 + componentFrameCache.set(fn, _frame);
2450 + }
2451 + } // Return the line we found.
2452 +
2453 +
2454 + return _frame;
2455 + }
2456 + } while (s >= 1 && c >= 0);
2457 + }
2458 +
2459 + break;
2460 + }
2461 + }
2462 + }
2463 + } finally {
2464 + reentry = false;
2465 +
2466 + {
2467 + ReactCurrentDispatcher.current = previousDispatcher;
2468 + reenableLogs();
2469 + }
2470 +
2471 + Error.prepareStackTrace = previousPrepareStackTrace;
2472 + } // Fallback to just using the name if we couldn't make it throw.
2473 +
2474 +
2475 + var name = fn ? fn.displayName || fn.name : '';
2476 + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2477 +
2478 + {
2479 + if (typeof fn === 'function') {
2480 + componentFrameCache.set(fn, syntheticFrame);
2481 + }
2482 + }
2483 +
2484 + return syntheticFrame;
2485 +}
2486 +function describeFunctionComponentFrame(fn, source, ownerFn) {
2487 + {
2488 + return describeNativeComponentFrame(fn, false);
2489 + }
2490 +}
2491 +
2492 +function shouldConstruct(Component) {
2493 + var prototype = Component.prototype;
2494 + return !!(prototype && prototype.isReactComponent);
2495 +}
2496 +
2497 +function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2498 +
2499 + if (type == null) {
2500 + return '';
2501 + }
2502 +
2503 + if (typeof type === 'function') {
2504 + {
2505 + return describeNativeComponentFrame(type, shouldConstruct(type));
2506 + }
2507 + }
2508 +
2509 + if (typeof type === 'string') {
2510 + return describeBuiltInComponentFrame(type);
2511 + }
2512 +
2513 + switch (type) {
2514 + case REACT_SUSPENSE_TYPE:
2515 + return describeBuiltInComponentFrame('Suspense');
2516 +
2517 + case REACT_SUSPENSE_LIST_TYPE:
2518 + return describeBuiltInComponentFrame('SuspenseList');
2519 + }
2520 +
2521 + if (typeof type === 'object') {
2522 + switch (type.$$typeof) {
2523 + case REACT_FORWARD_REF_TYPE:
2524 + return describeFunctionComponentFrame(type.render);
2525 +
2526 + case REACT_MEMO_TYPE:
2527 + // Memo may contain any component type so we recursively resolve it.
2528 + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2529 +
2530 + case REACT_LAZY_TYPE:
2531 + {
2532 + var lazyComponent = type;
2533 + var payload = lazyComponent._payload;
2534 + var init = lazyComponent._init;
2535 +
2536 + try {
2537 + // Lazy may contain any component type so we recursively resolve it.
2538 + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2539 + } catch (x) {}
2540 + }
2541 + }
2542 + }
2543 +
2544 + return '';
2545 +}
2546 +
2547 +var hasOwnProperty = Object.prototype.hasOwnProperty;
2548 +
2549 +var loggedTypeFailures = {};
2550 +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2551 +
2552 +function setCurrentlyValidatingElement(element) {
2553 + {
2554 + if (element) {
2555 + var owner = element._owner;
2556 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2557 + ReactDebugCurrentFrame.setExtraStackFrame(stack);
2558 + } else {
2559 + ReactDebugCurrentFrame.setExtraStackFrame(null);
2560 + }
2561 + }
2562 +}
2563 +
2564 +function checkPropTypes(typeSpecs, values, location, componentName, element) {
2565 + {
2566 + // $FlowFixMe This is okay but Flow doesn't know it.
2567 + var has = Function.call.bind(hasOwnProperty);
2568 +
2569 + for (var typeSpecName in typeSpecs) {
2570 + if (has(typeSpecs, typeSpecName)) {
2571 + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2572 + // fail the render phase where it didn't fail before. So we log it.
2573 + // After these have been cleaned up, we'll let them throw.
2574 +
2575 + try {
2576 + // This is intentionally an invariant that gets caught. It's the same
2577 + // behavior as without this statement except with a better message.
2578 + if (typeof typeSpecs[typeSpecName] !== 'function') {
2579 + // eslint-disable-next-line react-internal/prod-error-codes
2580 + 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`.');
2581 + err.name = 'Invariant Violation';
2582 + throw err;
2583 + }
2584 +
2585 + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2586 + } catch (ex) {
2587 + error$1 = ex;
2588 + }
2589 +
2590 + if (error$1 && !(error$1 instanceof Error)) {
2591 + setCurrentlyValidatingElement(element);
2592 +
2593 + 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);
2594 +
2595 + setCurrentlyValidatingElement(null);
2596 + }
2597 +
2598 + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2599 + // Only monitor this failure once because there tends to be a lot of the
2600 + // same error.
2601 + loggedTypeFailures[error$1.message] = true;
2602 + setCurrentlyValidatingElement(element);
2603 +
2604 + error('Failed %s type: %s', location, error$1.message);
2605 +
2606 + setCurrentlyValidatingElement(null);
2607 + }
2608 + }
2609 + }
2610 + }
2611 +}
2612 +
2613 +var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
2614 +
2615 +function isArray(a) {
2616 + return isArrayImpl(a);
2617 +}
2618 +
243 2619 /*
244 - object-assign
245 - (c) Sindre Sorhus
246 - @license MIT
247 - */
248 - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
249 - var getOwnPropertySymbols = Object.getOwnPropertySymbols;
250 - var hasOwnProperty = Object.prototype.hasOwnProperty;
251 - var propIsEnumerable = Object.prototype.propertyIsEnumerable;
252 - function toObject(val) {
253 - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined");
254 - return Object(val);
255 - }
256 - function shouldUseNative() {
257 - try {
258 - if (!Object.assign) return false;
259 - var test1 = /* @__PURE__ */ new String("abc");
260 - test1[5] = "de";
261 - if (Object.getOwnPropertyNames(test1)[0] === "5") return false;
262 - var test2 = {};
263 - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i;
264 - if (Object.getOwnPropertyNames(test2).map(function(n) {
265 - return test2[n];
266 - }).join("") !== "0123456789") return false;
267 - var test3 = {};
268 - "abcdefghijklmnopqrst".split("").forEach(function(letter) {
269 - test3[letter] = letter;
270 - });
271 - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false;
272 - return true;
273 - } catch (err) {
274 - return false;
275 - }
276 - }
277 - module.exports = shouldUseNative() ? Object.assign : function(target, source) {
278 - var from;
279 - var to = toObject(target);
280 - var symbols;
281 - for (var s = 1; s < arguments.length; s++) {
282 - from = Object(arguments[s]);
283 - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key];
284 - if (getOwnPropertySymbols) {
285 - symbols = getOwnPropertySymbols(from);
286 - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]];
287 - }
288 - }
289 - return to;
290 - };
291 - }));
2620 + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
2621 + * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
2622 + *
2623 + * The functions in this module will throw an easier-to-understand,
2624 + * easier-to-debug exception with a clear errors message message explaining the
2625 + * problem. (Instead of a confusing exception thrown inside the implementation
2626 + * of the `value` object).
2627 + */
2628 +// $FlowFixMe only called in DEV, so void return is not possible.
2629 +function typeName(value) {
2630 + {
2631 + // toStringTag is needed for namespaced types like Temporal.Instant
2632 + var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
2633 + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
2634 + return type;
2635 + }
2636 +} // $FlowFixMe only called in DEV, so void return is not possible.
292 2637
293 -//#endregion
294 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
2638 +
2639 +function willCoercionThrow(value) {
2640 + {
2641 + try {
2642 + testStringCoercion(value);
2643 + return false;
2644 + } catch (e) {
2645 + return true;
2646 + }
2647 + }
2648 +}
2649 +
2650 +function testStringCoercion(value) {
2651 + // If you ended up here by following an exception call stack, here's what's
2652 + // happened: you supplied an object or symbol value to React (as a prop, key,
2653 + // DOM attribute, CSS property, string ref, etc.) and when React tried to
2654 + // coerce it to a string using `'' + value`, an exception was thrown.
2655 + //
2656 + // The most common types that will cause this exception are `Symbol` instances
2657 + // and Temporal objects like `Temporal.Instant`. But any object that has a
2658 + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
2659 + // exception. (Library authors do this to prevent users from using built-in
2660 + // numeric operators like `+` or comparison operators like `>=` because custom
2661 + // methods are needed to perform accurate arithmetic or comparison.)
2662 + //
2663 + // To fix the problem, coerce this object or symbol value to a string before
2664 + // passing it to React. The most reliable way is usually `String(value)`.
2665 + //
2666 + // To find which value is throwing, check the browser or debugger console.
2667 + // Before this exception was thrown, there should be `console.error` output
2668 + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
2669 + // problem and how that type was used: key, atrribute, input value prop, etc.
2670 + // In most cases, this console output also shows the component and its
2671 + // ancestor components where the exception happened.
2672 + //
2673 + // eslint-disable-next-line react-internal/safe-string-coercion
2674 + return '' + value;
2675 +}
2676 +function checkKeyStringCoercion(value) {
2677 + {
2678 + if (willCoercionThrow(value)) {
2679 + error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
2680 +
2681 + return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
2682 + }
2683 + }
2684 +}
2685 +
2686 +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2687 +var RESERVED_PROPS = {
2688 + key: true,
2689 + ref: true,
2690 + __self: true,
2691 + __source: true
2692 +};
2693 +var specialPropKeyWarningShown;
2694 +var specialPropRefWarningShown;
2695 +var didWarnAboutStringRefs;
2696 +
2697 +{
2698 + didWarnAboutStringRefs = {};
2699 +}
2700 +
2701 +function hasValidRef(config) {
2702 + {
2703 + if (hasOwnProperty.call(config, 'ref')) {
2704 + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
2705 +
2706 + if (getter && getter.isReactWarning) {
2707 + return false;
2708 + }
2709 + }
2710 + }
2711 +
2712 + return config.ref !== undefined;
2713 +}
2714 +
2715 +function hasValidKey(config) {
2716 + {
2717 + if (hasOwnProperty.call(config, 'key')) {
2718 + var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
2719 +
2720 + if (getter && getter.isReactWarning) {
2721 + return false;
2722 + }
2723 + }
2724 + }
2725 +
2726 + return config.key !== undefined;
2727 +}
2728 +
2729 +function warnIfStringRefCannotBeAutoConverted(config, self) {
2730 + {
2731 + if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2732 + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2733 +
2734 + if (!didWarnAboutStringRefs[componentName]) {
2735 + 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);
2736 +
2737 + didWarnAboutStringRefs[componentName] = true;
2738 + }
2739 + }
2740 + }
2741 +}
2742 +
2743 +function defineKeyPropWarningGetter(props, displayName) {
2744 + {
2745 + var warnAboutAccessingKey = function () {
2746 + if (!specialPropKeyWarningShown) {
2747 + specialPropKeyWarningShown = true;
2748 +
2749 + 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);
2750 + }
2751 + };
2752 +
2753 + warnAboutAccessingKey.isReactWarning = true;
2754 + Object.defineProperty(props, 'key', {
2755 + get: warnAboutAccessingKey,
2756 + configurable: true
2757 + });
2758 + }
2759 +}
2760 +
2761 +function defineRefPropWarningGetter(props, displayName) {
2762 + {
2763 + var warnAboutAccessingRef = function () {
2764 + if (!specialPropRefWarningShown) {
2765 + specialPropRefWarningShown = true;
2766 +
2767 + 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);
2768 + }
2769 + };
2770 +
2771 + warnAboutAccessingRef.isReactWarning = true;
2772 + Object.defineProperty(props, 'ref', {
2773 + get: warnAboutAccessingRef,
2774 + configurable: true
2775 + });
2776 + }
2777 +}
295 2778 /**
296 - * Copyright (c) 2013-present, Facebook, Inc.
297 - *
298 - * This source code is licensed under the MIT license found in the
299 - * LICENSE file in the root directory of this source tree.
300 - */
301 - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => {
302 - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
303 - module.exports = ReactPropTypesSecret;
304 - }));
2779 + * Factory method to create a new React element. This no longer adheres to
2780 + * the class pattern, so do not use new to call it. Also, instanceof check
2781 + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2782 + * if something is a React Element.
2783 + *
2784 + * @param {*} type
2785 + * @param {*} props
2786 + * @param {*} key
2787 + * @param {string|object} ref
2788 + * @param {*} owner
2789 + * @param {*} self A *temporary* helper to detect places where `this` is
2790 + * different from the `owner` when React.createElement is called, so that we
2791 + * can warn. We want to get rid of owner and replace string `ref`s with arrow
2792 + * functions, and as long as `this` and owner are the same, there will be no
2793 + * change in behavior.
2794 + * @param {*} source An annotation object (added by a transpiler or otherwise)
2795 + * indicating filename, line number, and/or other information.
2796 + * @internal
2797 + */
305 2798
306 -//#endregion
307 -//#region node_modules/prop-types/lib/has.js
308 - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => {
309 - module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
310 - }));
311 2799
312 -//#endregion
313 -//#region node_modules/prop-types/checkPropTypes.js
2800 +var ReactElement = function (type, key, ref, self, source, owner, props) {
2801 + var element = {
2802 + // This tag allows us to uniquely identify this as a React Element
2803 + $$typeof: REACT_ELEMENT_TYPE,
2804 + // Built-in properties that belong on the element
2805 + type: type,
2806 + key: key,
2807 + ref: ref,
2808 + props: props,
2809 + // Record the component responsible for creating this element.
2810 + _owner: owner
2811 + };
2812 +
2813 + {
2814 + // The validation flag is currently mutative. We put it on
2815 + // an external backing store so that we can freeze the whole object.
2816 + // This can be replaced with a WeakMap once they are implemented in
2817 + // commonly used development environments.
2818 + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2819 + // the validation flag non-enumerable (where possible, which should
2820 + // include every environment we run tests in), so the test framework
2821 + // ignores it.
2822 +
2823 + Object.defineProperty(element._store, 'validated', {
2824 + configurable: false,
2825 + enumerable: false,
2826 + writable: true,
2827 + value: false
2828 + }); // self and source are DEV only properties.
2829 +
2830 + Object.defineProperty(element, '_self', {
2831 + configurable: false,
2832 + enumerable: false,
2833 + writable: false,
2834 + value: self
2835 + }); // Two elements created in two different places should be considered
2836 + // equal for testing purposes and therefore we hide it from enumeration.
2837 +
2838 + Object.defineProperty(element, '_source', {
2839 + configurable: false,
2840 + enumerable: false,
2841 + writable: false,
2842 + value: source
2843 + });
2844 +
2845 + if (Object.freeze) {
2846 + Object.freeze(element.props);
2847 + Object.freeze(element);
2848 + }
2849 + }
2850 +
2851 + return element;
2852 +};
314 2853 /**
315 - * Copyright (c) 2013-present, Facebook, Inc.
316 - *
317 - * This source code is licensed under the MIT license found in the
318 - * LICENSE file in the root directory of this source tree.
319 - */
320 - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
321 - var printWarning = function() {};
322 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
323 - var loggedTypeFailures = {};
324 - var has = require_has();
325 - printWarning = function(text) {
326 - var message = "Warning: " + text;
327 - if (typeof console !== "undefined") console.error(message);
328 - try {
329 - throw new Error(message);
330 - } catch (x) {}
331 - };
332 - /**
333 - * Assert that the values match with the type specs.
334 - * Error messages are memorized and will only be shown once.
335 - *
336 - * @param {object} typeSpecs Map of name to a ReactPropType
337 - * @param {object} values Runtime values that need to be type-checked
338 - * @param {string} location e.g. "prop", "context", "child context"
339 - * @param {string} componentName Name of the component for error messages.
340 - * @param {?Function} getStack Returns the component stack.
341 - * @private
342 - */
343 - function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
344 - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
345 - var error;
346 - try {
347 - if (typeof typeSpecs[typeSpecName] !== "function") {
348 - 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`.");
349 - err.name = "Invariant Violation";
350 - throw err;
351 - }
352 - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
353 - } catch (ex) {
354 - error = ex;
355 - }
356 - if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
357 - if (error instanceof Error && !(error.message in loggedTypeFailures)) {
358 - loggedTypeFailures[error.message] = true;
359 - var stack = getStack ? getStack() : "";
360 - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
361 - }
362 - }
363 - }
364 - /**
365 - * Resets warning cache when testing.
366 - *
367 - * @private
368 - */
369 - checkPropTypes.resetWarningCache = function() {
370 - loggedTypeFailures = {};
371 - };
372 - module.exports = checkPropTypes;
373 - }));
2854 + * https://github.com/reactjs/rfcs/pull/107
2855 + * @param {*} type
2856 + * @param {object} props
2857 + * @param {string} key
2858 + */
374 2859
375 -//#endregion
376 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
2860 +function jsxDEV(type, config, maybeKey, source, self) {
2861 + {
2862 + var propName; // Reserved names are extracted
2863 +
2864 + var props = {};
2865 + var key = null;
2866 + var ref = null; // Currently, key can be spread in as a prop. This causes a potential
2867 + // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
2868 + // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
2869 + // but as an intermediary step, we will use jsxDEV for everything except
2870 + // <div {...props} key="Hi" />, because we aren't currently able to tell if
2871 + // key is explicitly declared to be undefined or not.
2872 +
2873 + if (maybeKey !== undefined) {
2874 + {
2875 + checkKeyStringCoercion(maybeKey);
2876 + }
2877 +
2878 + key = '' + maybeKey;
2879 + }
2880 +
2881 + if (hasValidKey(config)) {
2882 + {
2883 + checkKeyStringCoercion(config.key);
2884 + }
2885 +
2886 + key = '' + config.key;
2887 + }
2888 +
2889 + if (hasValidRef(config)) {
2890 + ref = config.ref;
2891 + warnIfStringRefCannotBeAutoConverted(config, self);
2892 + } // Remaining properties are added to a new props object
2893 +
2894 +
2895 + for (propName in config) {
2896 + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2897 + props[propName] = config[propName];
2898 + }
2899 + } // Resolve default props
2900 +
2901 +
2902 + if (type && type.defaultProps) {
2903 + var defaultProps = type.defaultProps;
2904 +
2905 + for (propName in defaultProps) {
2906 + if (props[propName] === undefined) {
2907 + props[propName] = defaultProps[propName];
2908 + }
2909 + }
2910 + }
2911 +
2912 + if (key || ref) {
2913 + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2914 +
2915 + if (key) {
2916 + defineKeyPropWarningGetter(props, displayName);
2917 + }
2918 +
2919 + if (ref) {
2920 + defineRefPropWarningGetter(props, displayName);
2921 + }
2922 + }
2923 +
2924 + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2925 + }
2926 +}
2927 +
2928 +var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2929 +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2930 +
2931 +function setCurrentlyValidatingElement$1(element) {
2932 + {
2933 + if (element) {
2934 + var owner = element._owner;
2935 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2936 + ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2937 + } else {
2938 + ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2939 + }
2940 + }
2941 +}
2942 +
2943 +var propTypesMisspellWarningShown;
2944 +
2945 +{
2946 + propTypesMisspellWarningShown = false;
2947 +}
377 2948 /**
378 - * Copyright (c) 2013-present, Facebook, Inc.
379 - *
380 - * This source code is licensed under the MIT license found in the
381 - * LICENSE file in the root directory of this source tree.
382 - */
383 - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
384 - var ReactIs = require_react_is();
385 - var assign = require_object_assign();
386 - var ReactPropTypesSecret = require_ReactPropTypesSecret();
387 - var has = require_has();
388 - var checkPropTypes = require_checkPropTypes();
389 - var printWarning = function() {};
390 - printWarning = function(text) {
391 - var message = "Warning: " + text;
392 - if (typeof console !== "undefined") console.error(message);
393 - try {
394 - throw new Error(message);
395 - } catch (x) {}
396 - };
397 - function emptyFunctionThatReturnsNull() {
398 - return null;
399 - }
400 - module.exports = function(isValidElement, throwOnDirectAccess) {
401 - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
402 - var FAUX_ITERATOR_SYMBOL = "@@iterator";
403 - /**
404 - * Returns the iterator method function contained on the iterable object.
405 - *
406 - * Be sure to invoke the function with the iterable as context:
407 - *
408 - * var iteratorFn = getIteratorFn(myIterable);
409 - * if (iteratorFn) {
410 - * var iterator = iteratorFn.call(myIterable);
411 - * ...
412 - * }
413 - *
414 - * @param {?object} maybeIterable
415 - * @return {?function}
416 - */
417 - function getIteratorFn(maybeIterable) {
418 - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
419 - if (typeof iteratorFn === "function") return iteratorFn;
420 - }
421 - /**
422 - * Collection of methods that allow declaration and validation of props that are
423 - * supplied to React components. Example usage:
424 - *
425 - * var Props = require('ReactPropTypes');
426 - * var MyArticle = React.createClass({
427 - * propTypes: {
428 - * // An optional string prop named "description".
429 - * description: Props.string,
430 - *
431 - * // A required enum prop named "category".
432 - * category: Props.oneOf(['News','Photos']).isRequired,
433 - *
434 - * // A prop named "dialog" that requires an instance of Dialog.
435 - * dialog: Props.instanceOf(Dialog).isRequired
436 - * },
437 - * render: function() { ... }
438 - * });
439 - *
440 - * A more formal specification of how these methods are used:
441 - *
442 - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
443 - * decl := ReactPropTypes.{type}(.isRequired)?
444 - *
445 - * Each and every declaration produces a function with the same signature. This
446 - * allows the creation of custom validation functions. For example:
447 - *
448 - * var MyLink = React.createClass({
449 - * propTypes: {
450 - * // An optional string or URI prop named "href".
451 - * href: function(props, propName, componentName) {
452 - * var propValue = props[propName];
453 - * if (propValue != null && typeof propValue !== 'string' &&
454 - * !(propValue instanceof URI)) {
455 - * return new Error(
456 - * 'Expected a string or an URI for ' + propName + ' in ' +
457 - * componentName
458 - * );
459 - * }
460 - * }
461 - * },
462 - * render: function() {...}
463 - * });
464 - *
465 - * @internal
466 - */
467 - var ANONYMOUS = "<<anonymous>>";
468 - var ReactPropTypes = {
469 - array: createPrimitiveTypeChecker("array"),
470 - bigint: createPrimitiveTypeChecker("bigint"),
471 - bool: createPrimitiveTypeChecker("boolean"),
472 - func: createPrimitiveTypeChecker("function"),
473 - number: createPrimitiveTypeChecker("number"),
474 - object: createPrimitiveTypeChecker("object"),
475 - string: createPrimitiveTypeChecker("string"),
476 - symbol: createPrimitiveTypeChecker("symbol"),
477 - any: createAnyTypeChecker(),
478 - arrayOf: createArrayOfTypeChecker,
479 - element: createElementTypeChecker(),
480 - elementType: createElementTypeTypeChecker(),
481 - instanceOf: createInstanceTypeChecker,
482 - node: createNodeChecker(),
483 - objectOf: createObjectOfTypeChecker,
484 - oneOf: createEnumTypeChecker,
485 - oneOfType: createUnionTypeChecker,
486 - shape: createShapeTypeChecker,
487 - exact: createStrictShapeTypeChecker
488 - };
489 - /**
490 - * inlined Object.is polyfill to avoid requiring consumers ship their own
491 - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
492 - */
493 - function is(x, y) {
494 - if (x === y) return x !== 0 || 1 / x === 1 / y;
495 - else return x !== x && y !== y;
496 - }
497 - /**
498 - * We use an Error-like object for backward compatibility as people may call
499 - * PropTypes directly and inspect their output. However, we don't use real
500 - * Errors anymore. We don't inspect their stack anyway, and creating them
501 - * is prohibitively expensive if they are created too often, such as what
502 - * happens in oneOfType() for any type before the one that matched.
503 - */
504 - function PropTypeError(message, data) {
505 - this.message = message;
506 - this.data = data && typeof data === "object" ? data : {};
507 - this.stack = "";
508 - }
509 - PropTypeError.prototype = Error.prototype;
510 - function createChainableTypeChecker(validate) {
511 - var manualPropTypeCallCache = {};
512 - var manualPropTypeWarningCount = 0;
513 - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
514 - componentName = componentName || ANONYMOUS;
515 - propFullName = propFullName || propName;
516 - if (secret !== ReactPropTypesSecret) {
517 - if (throwOnDirectAccess) {
518 - var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
519 - err.name = "Invariant Violation";
520 - throw err;
521 - } else if (typeof console !== "undefined") {
522 - var cacheKey = componentName + ":" + propName;
523 - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
524 - printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
525 - manualPropTypeCallCache[cacheKey] = true;
526 - manualPropTypeWarningCount++;
527 - }
528 - }
529 - }
530 - if (props[propName] == null) {
531 - if (isRequired) {
532 - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
533 - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
534 - }
535 - return null;
536 - } else return validate(props, propName, componentName, location, propFullName);
537 - }
538 - var chainedCheckType = checkType.bind(null, false);
539 - chainedCheckType.isRequired = checkType.bind(null, true);
540 - return chainedCheckType;
541 - }
542 - function createPrimitiveTypeChecker(expectedType) {
543 - function validate(props, propName, componentName, location, propFullName, secret) {
544 - var propValue = props[propName];
545 - if (getPropType(propValue) !== expectedType) {
546 - var preciseType = getPreciseType(propValue);
547 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType });
548 - }
549 - return null;
550 - }
551 - return createChainableTypeChecker(validate);
552 - }
553 - function createAnyTypeChecker() {
554 - return createChainableTypeChecker(emptyFunctionThatReturnsNull);
555 - }
556 - function createArrayOfTypeChecker(typeChecker) {
557 - function validate(props, propName, componentName, location, propFullName) {
558 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
559 - var propValue = props[propName];
560 - if (!Array.isArray(propValue)) {
561 - var propType = getPropType(propValue);
562 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
563 - }
564 - for (var i = 0; i < propValue.length; i++) {
565 - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
566 - if (error instanceof Error) return error;
567 - }
568 - return null;
569 - }
570 - return createChainableTypeChecker(validate);
571 - }
572 - function createElementTypeChecker() {
573 - function validate(props, propName, componentName, location, propFullName) {
574 - var propValue = props[propName];
575 - if (!isValidElement(propValue)) {
576 - var propType = getPropType(propValue);
577 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
578 - }
579 - return null;
580 - }
581 - return createChainableTypeChecker(validate);
582 - }
583 - function createElementTypeTypeChecker() {
584 - function validate(props, propName, componentName, location, propFullName) {
585 - var propValue = props[propName];
586 - if (!ReactIs.isValidElementType(propValue)) {
587 - var propType = getPropType(propValue);
588 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
589 - }
590 - return null;
591 - }
592 - return createChainableTypeChecker(validate);
593 - }
594 - function createInstanceTypeChecker(expectedClass) {
595 - function validate(props, propName, componentName, location, propFullName) {
596 - if (!(props[propName] instanceof expectedClass)) {
597 - var expectedClassName = expectedClass.name || ANONYMOUS;
598 - var actualClassName = getClassName(props[propName]);
599 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
600 - }
601 - return null;
602 - }
603 - return createChainableTypeChecker(validate);
604 - }
605 - function createEnumTypeChecker(expectedValues) {
606 - if (!Array.isArray(expectedValues)) {
607 - if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
608 - else printWarning("Invalid argument supplied to oneOf, expected an array.");
609 - return emptyFunctionThatReturnsNull;
610 - }
611 - function validate(props, propName, componentName, location, propFullName) {
612 - var propValue = props[propName];
613 - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null;
614 - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
615 - if (getPreciseType(value) === "symbol") return String(value);
616 - return value;
617 - });
618 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
619 - }
620 - return createChainableTypeChecker(validate);
621 - }
622 - function createObjectOfTypeChecker(typeChecker) {
623 - function validate(props, propName, componentName, location, propFullName) {
624 - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
625 - var propValue = props[propName];
626 - var propType = getPropType(propValue);
627 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
628 - for (var key in propValue) if (has(propValue, key)) {
629 - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
630 - if (error instanceof Error) return error;
631 - }
632 - return null;
633 - }
634 - return createChainableTypeChecker(validate);
635 - }
636 - function createUnionTypeChecker(arrayOfTypeCheckers) {
637 - if (!Array.isArray(arrayOfTypeCheckers)) {
638 - printWarning("Invalid argument supplied to oneOfType, expected an instance of array.");
639 - return emptyFunctionThatReturnsNull;
640 - }
641 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
642 - var checker = arrayOfTypeCheckers[i];
643 - if (typeof checker !== "function") {
644 - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
645 - return emptyFunctionThatReturnsNull;
646 - }
647 - }
648 - function validate(props, propName, componentName, location, propFullName) {
649 - var expectedTypes = [];
650 - for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
651 - var checker = arrayOfTypeCheckers[i];
652 - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
653 - if (checkerResult == null) return null;
654 - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType);
655 - }
656 - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
657 - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
658 - }
659 - return createChainableTypeChecker(validate);
660 - }
661 - function createNodeChecker() {
662 - function validate(props, propName, componentName, location, propFullName) {
663 - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
664 - return null;
665 - }
666 - return createChainableTypeChecker(validate);
667 - }
668 - function invalidValidatorError(componentName, location, propFullName, key, type) {
669 - return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`.");
670 - }
671 - function createShapeTypeChecker(shapeTypes) {
672 - function validate(props, propName, componentName, location, propFullName) {
673 - var propValue = props[propName];
674 - var propType = getPropType(propValue);
675 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
676 - for (var key in shapeTypes) {
677 - var checker = shapeTypes[key];
678 - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
679 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
680 - if (error) return error;
681 - }
682 - return null;
683 - }
684 - return createChainableTypeChecker(validate);
685 - }
686 - function createStrictShapeTypeChecker(shapeTypes) {
687 - function validate(props, propName, componentName, location, propFullName) {
688 - var propValue = props[propName];
689 - var propType = getPropType(propValue);
690 - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
691 - for (var key in assign({}, props[propName], shapeTypes)) {
692 - var checker = shapeTypes[key];
693 - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
694 - if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
695 - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
696 - if (error) return error;
697 - }
698 - return null;
699 - }
700 - return createChainableTypeChecker(validate);
701 - }
702 - function isNode(propValue) {
703 - switch (typeof propValue) {
704 - case "number":
705 - case "string":
706 - case "undefined": return true;
707 - case "boolean": return !propValue;
708 - case "object":
709 - if (Array.isArray(propValue)) return propValue.every(isNode);
710 - if (propValue === null || isValidElement(propValue)) return true;
711 - var iteratorFn = getIteratorFn(propValue);
712 - if (iteratorFn) {
713 - var iterator = iteratorFn.call(propValue);
714 - var step;
715 - if (iteratorFn !== propValue.entries) {
716 - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false;
717 - } else while (!(step = iterator.next()).done) {
718 - var entry = step.value;
719 - if (entry) {
720 - if (!isNode(entry[1])) return false;
721 - }
722 - }
723 - } else return false;
724 - return true;
725 - default: return false;
726 - }
727 - }
728 - function isSymbol(propType, propValue) {
729 - if (propType === "symbol") return true;
730 - if (!propValue) return false;
731 - if (propValue["@@toStringTag"] === "Symbol") return true;
732 - if (typeof Symbol === "function" && propValue instanceof Symbol) return true;
733 - return false;
734 - }
735 - function getPropType(propValue) {
736 - var propType = typeof propValue;
737 - if (Array.isArray(propValue)) return "array";
738 - if (propValue instanceof RegExp) return "object";
739 - if (isSymbol(propType, propValue)) return "symbol";
740 - return propType;
741 - }
742 - function getPreciseType(propValue) {
743 - if (typeof propValue === "undefined" || propValue === null) return "" + propValue;
744 - var propType = getPropType(propValue);
745 - if (propType === "object") {
746 - if (propValue instanceof Date) return "date";
747 - else if (propValue instanceof RegExp) return "regexp";
748 - }
749 - return propType;
750 - }
751 - function getPostfixForTypeWarning(value) {
752 - var type = getPreciseType(value);
753 - switch (type) {
754 - case "array":
755 - case "object": return "an " + type;
756 - case "boolean":
757 - case "date":
758 - case "regexp": return "a " + type;
759 - default: return type;
760 - }
761 - }
762 - function getClassName(propValue) {
763 - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS;
764 - return propValue.constructor.name;
765 - }
766 - ReactPropTypes.checkPropTypes = checkPropTypes;
767 - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
768 - ReactPropTypes.PropTypes = ReactPropTypes;
769 - return ReactPropTypes;
770 - };
771 - }));
2949 + * Verifies the object is a ReactElement.
2950 + * See https://reactjs.org/docs/react-api.html#isvalidelement
2951 + * @param {?object} object
2952 + * @return {boolean} True if `object` is a ReactElement.
2953 + * @final
2954 + */
772 2955
773 -//#endregion
774 -//#region node_modules/prop-types/index.js
775 - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => {
776 - var ReactIs = require_react_is();
777 - var throwOnDirectAccess = true;
778 - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
779 - }));
780 2956
781 -//#endregion
782 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
783 -var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
784 - function _arrayWithHoles(r) {
785 - if (Array.isArray(r)) return r;
786 - }
2957 +function isValidElement(object) {
2958 + {
2959 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2960 + }
2961 +}
787 2962
788 -//#endregion
789 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
790 - function _iterableToArrayLimit(r, l) {
791 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
792 - if (null != t) {
793 - var e;
794 - var n;
795 - var i;
796 - var u;
797 - var a = [];
798 - var f = !0;
799 - var o = !1;
800 - try {
801 - if (i = (t = t.call(r)).next, 0 === l) {
802 - if (Object(t) !== t) return;
803 - f = !1;
804 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
805 - } catch (r) {
806 - o = !0, n = r;
807 - } finally {
808 - try {
809 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
810 - } finally {
811 - if (o) throw n;
812 - }
813 - }
814 - return a;
815 - }
816 - }
2963 +function getDeclarationErrorAddendum() {
2964 + {
2965 + if (ReactCurrentOwner$1.current) {
2966 + var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
817 2967
818 -//#endregion
819 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
820 - function _arrayLikeToArray(r, a) {
821 - (null == a || a > r.length) && (a = r.length);
822 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
823 - return n;
824 - }
2968 + if (name) {
2969 + return '\n\nCheck the render method of `' + name + '`.';
2970 + }
2971 + }
825 2972
826 -//#endregion
827 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
828 - function _unsupportedIterableToArray(r, a) {
829 - if (r) {
830 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
831 - var t = {}.toString.call(r).slice(8, -1);
832 - 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;
833 - }
834 - }
2973 + return '';
2974 + }
2975 +}
835 2976
836 -//#endregion
837 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
838 - function _nonIterableRest() {
839 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
840 - }
2977 +function getSourceInfoErrorAddendum(source) {
2978 + {
2979 + if (source !== undefined) {
2980 + var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2981 + var lineNumber = source.lineNumber;
2982 + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2983 + }
841 2984
842 -//#endregion
843 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
844 - function _slicedToArray(r, e) {
845 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
846 - }
2985 + return '';
2986 + }
2987 +}
2988 +/**
2989 + * Warn if there's no key explicitly set on dynamic arrays of children or
2990 + * object keys are not valid. This allows us to keep track of children between
2991 + * updates.
2992 + */
847 2993
848 -//#endregion
849 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
850 - function _arrayWithoutHoles(r) {
851 - if (Array.isArray(r)) return _arrayLikeToArray(r);
852 - }
853 2994
854 -//#endregion
855 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js
856 - function _iterableToArray(r) {
857 - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
858 - }
2995 +var ownerHasKeyUseWarning = {};
859 2996
860 -//#endregion
861 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
862 - function _nonIterableSpread() {
863 - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
864 - }
2997 +function getCurrentComponentErrorInfo(parentType) {
2998 + {
2999 + var info = getDeclarationErrorAddendum();
865 3000
866 -//#endregion
867 -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
868 - function _toConsumableArray(r) {
869 - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
870 - }
3001 + if (!info) {
3002 + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
871 3003
872 -//#endregion
873 -//#region node_modules/@babel/runtime/helpers/esm/extends.js
874 - function _extends() {
875 - return _extends = Object.assign ? Object.assign.bind() : function(n) {
876 - for (var e = 1; e < arguments.length; e++) {
877 - var t = arguments[e];
878 - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
879 - }
880 - return n;
881 - }, _extends.apply(null, arguments);
882 - }
3004 + if (parentName) {
3005 + info = "\n\nCheck the top-level render call using <" + parentName + ">.";
3006 + }
3007 + }
883 3008
884 -//#endregion
885 -//#region modules/notifications/assets/js/icons/x-icon.js
886 - var XIcon = (0, react.forwardRef)(function(props, ref) {
887 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.SvgIcon, _extends({ viewBox: "0 0 24 24" }, props, { ref }), /*#__PURE__*/ react.default.createElement("path", {
888 - fillRule: "evenodd",
889 - clipRule: "evenodd",
890 - d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
891 - }), /*#__PURE__*/ react.default.createElement("path", {
892 - fillRule: "evenodd",
893 - clipRule: "evenodd",
894 - 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"
895 - }));
896 - });
3009 + return info;
3010 + }
3011 +}
3012 +/**
3013 + * Warn if the element doesn't have an explicit key assigned to it.
3014 + * This element is in an array. The array could grow and shrink or be
3015 + * reordered. All children that haven't already been validated are required to
3016 + * have a "key" property assigned to it. Error statuses are cached so a warning
3017 + * will only be shown once.
3018 + *
3019 + * @internal
3020 + * @param {ReactElement} element Element that requires a key.
3021 + * @param {*} parentType element's parent's type.
3022 + */
897 3023
898 -//#endregion
899 -//#region modules/notifications/assets/js/components/whats-new-top-bar.js
900 - var WhatsNewTopBar = function WhatsNewTopBar(props) {
901 - var setIsOpen = props.setIsOpen;
902 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.AppBar, {
903 - elevation: 0,
904 - position: "sticky",
905 - sx: { backgroundColor: "background.default" }
906 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Toolbar, { variant: "dense" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
907 - variant: "overline",
908 - sx: { flexGrow: 1 }
909 - }, (0, _wordpress_i18n.__)("What's New", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui.IconButton, {
910 - "aria-label": "close",
911 - size: "small",
912 - onClick: function onClick() {
913 - return setIsOpen(false);
914 - }
915 - }, /*#__PURE__*/ react.default.createElement(XIcon, null)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null));
916 - };
917 - WhatsNewTopBar.propTypes = { setIsOpen: import_prop_types.default.func.isRequired };
918 3024
919 -//#endregion
920 -//#region modules/notifications/assets/js/api/index.js
921 - var request = function request(endpoint) {
922 - var data = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
923 - return new Promise(function(resolve, reject) {
924 - elementorCommon.ajax.addRequest(endpoint, {
925 - success: resolve,
926 - error: reject,
927 - data
928 - });
929 - });
930 - };
931 - var getNotifications = function getNotifications() {
932 - return request("notifications_get");
933 - };
3025 +function validateExplicitKey(element, parentType) {
3026 + {
3027 + if (!element._store || element._store.validated || element.key != null) {
3028 + return;
3029 + }
934 3030
935 -//#endregion
936 -//#region node_modules/@babel/runtime/helpers/esm/typeof.js
937 - function _typeof(o) {
938 - "@babel/helpers - typeof";
939 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
940 - return typeof o;
941 - } : function(o) {
942 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
943 - }, _typeof(o);
944 - }
3031 + element._store.validated = true;
3032 + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
945 3033
946 -//#endregion
947 -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
948 - function toPrimitive(t, r) {
949 - if ("object" != _typeof(t) || !t) return t;
950 - var e = t[Symbol.toPrimitive];
951 - if (void 0 !== e) {
952 - var i = e.call(t, r || "default");
953 - if ("object" != _typeof(i)) return i;
954 - throw new TypeError("@@toPrimitive must return a primitive value.");
955 - }
956 - return ("string" === r ? String : Number)(t);
957 - }
3034 + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
3035 + return;
3036 + }
958 3037
959 -//#endregion
960 -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
961 - function toPropertyKey(t) {
962 - var i = toPrimitive(t, "string");
963 - return "symbol" == _typeof(i) ? i : i + "";
964 - }
3038 + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
3039 + // property, it may be the creator of the child that's responsible for
3040 + // assigning it a key.
965 3041
966 -//#endregion
967 -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
968 - function _defineProperty(e, r, t) {
969 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
970 - value: t,
971 - enumerable: !0,
972 - configurable: !0,
973 - writable: !0
974 - }) : e[r] = t, e;
975 - }
3042 + var childOwner = '';
976 3043
977 -//#endregion
978 -//#region modules/notifications/assets/js/components/whats-new-item-topic-line.js
979 - var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
980 - var topic = _ref.topic;
981 - var date = _ref.date;
982 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
983 - direction: "row",
984 - divider: /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, {
985 - orientation: "vertical",
986 - flexItem: true
987 - }),
988 - spacing: 1,
989 - color: "text.tertiary",
990 - sx: { pb: 1 }
991 - }, topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, topic), date && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, date));
992 - };
993 - WhatsNewItemTopicLine.propTypes = {
994 - topic: import_prop_types.default.string,
995 - date: import_prop_types.default.string
996 - };
3044 + if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
3045 + // Give the component that originally created this child.
3046 + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
3047 + }
997 3048
998 -//#endregion
999 -//#region modules/notifications/assets/js/components/wrapper-with-link.js
1000 - var WrapperWithLink = function WrapperWithLink(props) {
1001 - var link = props.link;
1002 - var children = props.children;
1003 - if (!link) return children;
1004 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1005 - href: link,
1006 - target: "_blank",
1007 - underline: "none",
1008 - color: "inherit",
1009 - sx: { "&:hover": { color: "inherit" } }
1010 - }, children);
1011 - };
1012 - WrapperWithLink.propTypes = {
1013 - link: import_prop_types.default.string,
1014 - children: import_prop_types.default.any.isRequired
1015 - };
3049 + setCurrentlyValidatingElement$1(element);
1016 3050
1017 -//#endregion
1018 -//#region modules/notifications/assets/js/components/whats-new-item-thumbnail.js
1019 - var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
1020 - var imageSrc = _ref.imageSrc;
1021 - var title = _ref.title;
1022 - var link = _ref.link;
1023 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link }, /*#__PURE__*/ react.default.createElement("img", {
1024 - src: imageSrc,
1025 - alt: title || "",
1026 - style: { maxWidth: "100%" }
1027 - })));
1028 - };
1029 - WhatsNewItemThumbnail.propTypes = {
1030 - imageSrc: import_prop_types.default.string.isRequired,
1031 - title: import_prop_types.default.string,
1032 - link: import_prop_types.default.string
1033 - };
3051 + 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);
1034 3052
1035 -//#endregion
1036 -//#region modules/notifications/assets/js/components/whats-new-item-media.js
1037 - var WhatsNewItemMedia = function WhatsNewItemMedia(_ref) {
1038 - var item = _ref.item;
1039 - if (item.youtubeEmbedId) {
1040 - var videoId = item.youtubeEmbedId.split("?")[0];
1041 - var src = "https://www.youtube.com/embed/".concat(videoId).concat(item.youtubeAutoplay ? "?autoplay=1&mute=1" : "");
1042 - var allow = "encrypted-media; picture-in-picture".concat(item.youtubeAutoplay ? "; autoplay" : "");
1043 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1044 - component: "iframe",
1045 - src,
1046 - title: item.title || "Video",
1047 - allow,
1048 - allowFullScreen: true,
1049 - sx: {
1050 - aspectRatio: "16/9",
1051 - width: "100%",
1052 - display: "block",
1053 - border: "none"
1054 - }
1055 - }));
1056 - }
1057 - var mediaSrc = item.gifSrc || item.imageSrc;
1058 - if (!mediaSrc) return null;
1059 - return /*#__PURE__*/ react.default.createElement(WhatsNewItemThumbnail, {
1060 - imageSrc: mediaSrc,
1061 - link: item.link,
1062 - title: item.title
1063 - });
1064 - };
3053 + setCurrentlyValidatingElement$1(null);
3054 + }
3055 +}
3056 +/**
3057 + * Ensure that every element either is passed in a static location, in an
3058 + * array with an explicit keys property defined, or in an object literal
3059 + * with valid key property.
3060 + *
3061 + * @internal
3062 + * @param {ReactNode} node Statically passed child of any type.
3063 + * @param {*} parentType node's parent's type.
3064 + */
1065 3065
1066 -//#endregion
1067 -//#region modules/notifications/assets/js/components/whats-new-item-chips.js
1068 - var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
1069 - var chipPlan = _ref.chipPlan;
1070 - var chipTags = _ref.chipTags;
1071 - var itemIndex = _ref.itemIndex;
1072 - var chips = [];
1073 - if (chipPlan) chips.push({
1074 - color: "promotion",
1075 - size: "small",
1076 - label: chipPlan
1077 - });
1078 - if (chipTags) chipTags.forEach(function(chipTag) {
1079 - chips.push({
1080 - variant: "outlined",
1081 - size: "small",
1082 - label: chipTag
1083 - });
1084 - });
1085 - if (!chips.length) return null;
1086 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, {
1087 - direction: "row",
1088 - flexWrap: "wrap",
1089 - gap: 1,
1090 - sx: { pb: 1 }
1091 - }, chips.map(function(chip, chipIndex) {
1092 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, _extends({ key: "chip-".concat(itemIndex).concat(chipIndex) }, chip));
1093 - }));
1094 - };
1095 - WhatsNewItemChips.propTypes = {
1096 - chipPlan: import_prop_types.default.string,
1097 - chipTags: import_prop_types.default.array,
1098 - itemIndex: import_prop_types.default.number.isRequired
1099 - };
1100 3066
1101 -//#endregion
1102 -//#region modules/notifications/assets/js/components/is-image-only.js
1103 - var isImageOnly = function isImageOnly(item) {
1104 - return !item.title && !item.description && (item.imageSrc || item.gifSrc || item.youtubeEmbedId);
1105 - };
3067 +function validateChildKeys(node, parentType) {
3068 + {
3069 + if (typeof node !== 'object') {
3070 + return;
3071 + }
1106 3072
1107 -//#endregion
1108 -//#region modules/notifications/assets/js/components/whats-new-item.js
1109 - function ownKeys(e, r) {
1110 - var t = Object.keys(e);
1111 - if (Object.getOwnPropertySymbols) {
1112 - var o = Object.getOwnPropertySymbols(e);
1113 - r && (o = o.filter(function(r) {
1114 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
1115 - })), t.push.apply(t, o);
1116 - }
1117 - return t;
1118 - }
1119 - function _objectSpread(e) {
1120 - for (var r = 1; r < arguments.length; r++) {
1121 - var t = null != arguments[r] ? arguments[r] : {};
1122 - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
1123 - _defineProperty(e, r, t[r]);
1124 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
1125 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
1126 - });
1127 - }
1128 - return e;
1129 - }
1130 - var WhatsNewItem = function WhatsNewItem(_ref) {
1131 - var item = _ref.item;
1132 - var itemIndex = _ref.itemIndex;
1133 - var itemsLength = _ref.itemsLength;
1134 - var setIsOpen = _ref.setIsOpen;
1135 - var _ref$featured = _ref.featured;
1136 - var featured = _ref$featured === void 0 ? false : _ref$featured;
1137 - var hasMedia = item.imageSrc || item.gifSrc || item.youtubeEmbedId;
1138 - if (isImageOnly(item)) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1139 - key: itemIndex,
1140 - display: "flex",
1141 - flexDirection: "column",
1142 - sx: _objectSpread({ pt: 2 }, featured && { px: 1 })
1143 - }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }));
1144 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1145 - key: itemIndex,
1146 - display: "flex",
1147 - flexDirection: "column",
1148 - sx: _objectSpread({ pt: 2 }, featured && { px: 1 })
1149 - }, (item.topic || item.date) && /*#__PURE__*/ react.default.createElement(WhatsNewItemTopicLine, {
1150 - topic: item.topic,
1151 - date: item.date
1152 - }), /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link: item.link }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1153 - variant: featured ? "h6" : "subtitle1",
1154 - sx: { pb: 2 }
1155 - }, item.title)), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { position: "relative" } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), featured && item.chipPlan && hasMedia && /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, {
1156 - label: item.chipPlan,
1157 - color: "promotion",
1158 - size: "small",
1159 - sx: {
1160 - position: "absolute",
1161 - top: 8,
1162 - insetInlineStart: 8
1163 - }
1164 - })), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, {
1165 - chipPlan: featured && hasMedia ? null : item.chipPlan,
1166 - chipTags: item.chipTags,
1167 - itemIndex
1168 - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1169 - variant: "body2",
1170 - color: "text.secondary",
1171 - sx: { pb: 2 }
1172 - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1173 - href: item.link,
1174 - color: "info.main",
1175 - target: "_blank"
1176 - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, {
1177 - href: item.ctaLink,
1178 - target: item.ctaLink.startsWith("#") ? "_self" : "_blank",
1179 - variant: "contained",
1180 - size: "small",
1181 - color: "promotion",
1182 - onClick: item.ctaLink.startsWith("#") ? function() {
1183 - return setIsOpen(false);
1184 - } : void 0
1185 - }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } }));
1186 - };
1187 - WhatsNewItem.propTypes = {
1188 - item: import_prop_types.default.object.isRequired,
1189 - itemIndex: import_prop_types.default.number.isRequired,
1190 - itemsLength: import_prop_types.default.number.isRequired,
1191 - setIsOpen: import_prop_types.default.func.isRequired,
1192 - featured: import_prop_types.default.bool
1193 - };
3073 + if (isArray(node)) {
3074 + for (var i = 0; i < node.length; i++) {
3075 + var child = node[i];
1194 3076
1195 -//#endregion
1196 -//#region modules/notifications/assets/js/components/whats-new-item-collapsed.js
1197 - var WhatsNewItemCollapsed = function WhatsNewItemCollapsed(_ref) {
1198 - var item = _ref.item;
1199 - var itemIndex = _ref.itemIndex;
1200 - var isNew = _ref.isNew;
1201 - var onSeen = _ref.onSeen;
1202 - var setIsOpen = _ref.setIsOpen;
1203 - var _useState2 = _slicedToArray((0, react.useState)(false), 2);
1204 - var expanded = _useState2[0];
1205 - var setExpanded = _useState2[1];
1206 - var handleToggle = function handleToggle() {
1207 - if (!expanded && isNew && onSeen) onSeen(item.id);
1208 - setExpanded(!expanded);
1209 - };
1210 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1211 - role: "button",
1212 - tabIndex: 0,
1213 - "aria-expanded": expanded,
1214 - onClick: handleToggle,
1215 - onKeyDown: function handleKeyDown(event) {
1216 - if ("Enter" === event.key || " " === event.key) {
1217 - event.preventDefault();
1218 - handleToggle();
1219 - }
1220 - },
1221 - sx: {
1222 - position: "relative",
1223 - display: "flex",
1224 - alignItems: "flex-start",
1225 - gap: 1,
1226 - cursor: "pointer",
1227 - py: 2,
1228 - paddingInlineStart: 1
1229 - }
1230 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1231 - component: "span",
1232 - sx: {
1233 - position: "absolute",
1234 - insetInlineStart: "-6px",
1235 - top: "23px",
1236 - width: 6,
1237 - height: 6,
1238 - borderRadius: "50%",
1239 - backgroundColor: "primary.main",
1240 - opacity: isNew ? 1 : 0,
1241 - transition: "opacity 0.2s ease",
1242 - pointerEvents: "none"
1243 - }
1244 - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1245 - flex: 1,
1246 - minWidth: 0
1247 - } }, item.topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1248 - variant: "caption",
1249 - color: "text.tertiary",
1250 - display: "block"
1251 - }, item.topic), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1252 - variant: "subtitle2",
1253 - noWrap: true
1254 - }, item.title), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1255 - maxHeight: expanded ? 0 : "3em",
1256 - opacity: expanded ? 0 : 1,
1257 - overflow: "hidden",
1258 - transition: "max-height 0.2s ease, opacity 0.15s ease"
1259 - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1260 - variant: "caption",
1261 - color: "text.secondary",
1262 - sx: {
1263 - display: "-webkit-box",
1264 - WebkitLineClamp: 2,
1265 - WebkitBoxOrient: "vertical",
1266 - overflow: "hidden"
1267 - }
1268 - }, item.description))), /*#__PURE__*/ react.default.createElement(_elementor_icons.ChevronDownIcon, { sx: {
1269 - flexShrink: 0,
1270 - color: "secondary.main",
1271 - fontSize: "small",
1272 - mt: .25,
1273 - transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
1274 - transition: "transform 0.2s"
1275 - } })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Collapse, { in: expanded }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: {
1276 - pb: 2,
1277 - paddingInlineStart: 1
1278 - } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, {
1279 - chipPlan: item.chipPlan,
1280 - chipTags: item.chipTags,
1281 - itemIndex
1282 - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1283 - variant: "body2",
1284 - color: "text.secondary",
1285 - sx: { pb: 2 }
1286 - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, {
1287 - href: item.link,
1288 - color: "info.main",
1289 - target: "_blank"
1290 - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, {
1291 - href: item.ctaLink,
1292 - target: item.ctaLink.startsWith("#") ? "_self" : "_blank",
1293 - variant: "contained",
1294 - size: "small",
1295 - color: "promotion",
1296 - onClick: item.ctaLink.startsWith("#") ? function() {
1297 - return setIsOpen === null || setIsOpen === void 0 ? void 0 : setIsOpen(false);
1298 - } : void 0
1299 - }, item.cta)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null));
1300 - };
1301 - WhatsNewItemCollapsed.propTypes = {
1302 - item: import_prop_types.default.object.isRequired,
1303 - itemIndex: import_prop_types.default.number.isRequired,
1304 - isNew: import_prop_types.default.bool,
1305 - onSeen: import_prop_types.default.func,
1306 - setIsOpen: import_prop_types.default.func
1307 - };
3077 + if (isValidElement(child)) {
3078 + validateExplicitKey(child, parentType);
3079 + }
3080 + }
3081 + } else if (isValidElement(node)) {
3082 + // This element was passed in a valid location.
3083 + if (node._store) {
3084 + node._store.validated = true;
3085 + }
3086 + } else if (node) {
3087 + var iteratorFn = getIteratorFn(node);
1308 3088
1309 -//#endregion
1310 -//#region modules/notifications/assets/js/components/whats-new-drawer-content.js
1311 - var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
1312 - var _items$find$listLabel;
1313 - var _items$find;
1314 - var setIsOpen = _ref.setIsOpen;
1315 - var seenItemIds = _ref.seenItemIds;
1316 - var onSeen = _ref.onSeen;
1317 - var initialHasUnread = _ref.initialHasUnread;
1318 - var _useQuery = (0, _elementor_query.useQuery)({
1319 - queryKey: ["e-notifications"],
1320 - queryFn: getNotifications
1321 - });
1322 - var isPending = _useQuery.isPending;
1323 - var error = _useQuery.error;
1324 - var items = _useQuery.data;
1325 - var seenItemIdsRef = (0, react.useRef)(seenItemIds);
1326 - seenItemIdsRef.current = seenItemIds;
1327 - (0, react.useEffect)(function() {
1328 - if (!items) return;
1329 - (items.some(function(item) {
1330 - return item.featured;
1331 - }) ? items.filter(function(item) {
1332 - return item.featured;
1333 - }) : items).filter(function(item) {
1334 - return !seenItemIdsRef.current.has(item.id);
1335 - }).forEach(function(item) {
1336 - return onSeen(item.id);
1337 - });
1338 - }, [items, onSeen]);
1339 - if (isPending) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.LinearProgress, { color: "secondary" }));
1340 - if (error) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, "An error has occurred: ", error);
1341 - var featuredItems = items.filter(function(item) {
1342 - return item.featured;
1343 - });
1344 - var nonFeaturedItems = items.filter(function(item) {
1345 - return !item.featured && !isImageOnly(item);
1346 - });
1347 - var listLabel = (_items$find$listLabel = (_items$find = items.find(function(item) {
1348 - return item.listLabel;
1349 - })) === null || _items$find === void 0 ? void 0 : _items$find.listLabel) !== null && _items$find$listLabel !== void 0 ? _items$find$listLabel : null;
1350 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, featuredItems.map(function(item, index) {
1351 - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, {
1352 - key: item.id,
1353 - item,
1354 - itemIndex: index,
1355 - itemsLength: featuredItems.length,
1356 - setIsOpen,
1357 - featured: true
1358 - });
1359 - }), featuredItems.length > 0 && nonFeaturedItems.length > 0 && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, listLabel ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, {
1360 - variant: "caption",
1361 - color: "text.secondary",
1362 - sx: {
1363 - px: 1,
1364 - textTransform: "uppercase",
1365 - letterSpacing: "0.08em"
1366 - }
1367 - }, listLabel)) : /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }), nonFeaturedItems.map(function(item, index) {
1368 - return /*#__PURE__*/ react.default.createElement(WhatsNewItemCollapsed, {
1369 - key: item.id,
1370 - item,
1371 - itemIndex: index,
1372 - isNew: initialHasUnread && !seenItemIds.has(item.id),
1373 - onSeen,
1374 - setIsOpen
1375 - });
1376 - })), 0 === featuredItems.length && nonFeaturedItems.map(function(item, itemIndex) {
1377 - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, {
1378 - key: item.id,
1379 - item,
1380 - itemIndex,
1381 - itemsLength: nonFeaturedItems.length,
1382 - setIsOpen
1383 - });
1384 - }));
1385 - };
1386 - WhatsNewDrawerContent.propTypes = {
1387 - setIsOpen: import_prop_types.default.func.isRequired,
1388 - seenItemIds: import_prop_types.default.instanceOf(Set).isRequired,
1389 - onSeen: import_prop_types.default.func.isRequired,
1390 - initialHasUnread: import_prop_types.default.bool.isRequired
1391 - };
3089 + if (typeof iteratorFn === 'function') {
3090 + // Entry iterators used to provide implicit keys,
3091 + // but now we print a separate warning for them later.
3092 + if (iteratorFn !== node.entries) {
3093 + var iterator = iteratorFn.call(node);
3094 + var step;
1392 3095
1393 -//#endregion
1394 -//#region modules/notifications/assets/js/components/whats-new.js
1395 - var _window$elementorNoti;
1396 - var _window$elementorNoti2;
1397 - var queryClient = new _elementor_query.QueryClient({ defaultOptions: { queries: {
1398 - refetchOnWindowFocus: false,
1399 - retry: false,
1400 - staleTime: 1e3 * 60 * 30
1401 - } } });
1402 - var initialHasUnread = ((_window$elementorNoti = (_window$elementorNoti2 = window.elementorNotifications) === null || _window$elementorNoti2 === void 0 ? void 0 : _window$elementorNoti2.unread_count) !== null && _window$elementorNoti !== void 0 ? _window$elementorNoti : 0) > 0;
1403 - var WhatsNew = function WhatsNew(props) {
1404 - var _window$elementor;
1405 - var _window$elementor$get;
1406 - var isOpen = props.isOpen;
1407 - var setIsOpen = props.setIsOpen;
1408 - var _props$setIsRead = props.setIsRead;
1409 - var setIsRead = _props$setIsRead === void 0 ? function() {} : _props$setIsRead;
1410 - var _props$anchorPosition = props.anchorPosition;
1411 - var anchorPosition = _props$anchorPosition === void 0 ? "right" : _props$anchorPosition;
1412 - var _useState2 = _slicedToArray((0, react.useState)(function() {
1413 - return /* @__PURE__ */ new Set();
1414 - }), 2);
1415 - var seenItemIds = _useState2[0];
1416 - var setSeenItemIds = _useState2[1];
1417 - (0, react.useEffect)(function() {
1418 - if (!isOpen) return;
1419 - setIsRead(true);
1420 - }, [isOpen, setIsRead]);
1421 - var handleSeen = (0, react.useCallback)(function(itemId) {
1422 - setSeenItemIds(function(prev) {
1423 - if (prev.has(itemId)) return prev;
1424 - window.dispatchEvent(new CustomEvent("e-notification-item-seen"));
1425 - return new Set([].concat(_toConsumableArray(prev), [itemId]));
1426 - });
1427 - }, []);
1428 - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_query.QueryClientProvider, { client: queryClient }, /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: elementorCommon.config.isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { 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" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Drawer, {
1429 - anchor: anchorPosition,
1430 - open: isOpen,
1431 - onClose: function onClose() {
1432 - return setIsOpen(false);
1433 - },
1434 - BackdropProps: { invisible: true },
1435 - ModalProps: { style: { zIndex: 999999 } }
1436 - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, {
1437 - sx: {
1438 - width: 360,
1439 - backgroundColor: "background.default"
1440 - },
1441 - role: "presentation"
1442 - }, /*#__PURE__*/ react.default.createElement(WhatsNewTopBar, { setIsOpen }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { padding: "16px" } }, /*#__PURE__*/ react.default.createElement(WhatsNewDrawerContent, {
1443 - setIsOpen,
1444 - seenItemIds,
1445 - onSeen: handleSeen,
1446 - initialHasUnread
1447 - }))))))));
1448 - };
1449 - WhatsNew.propTypes = {
1450 - isOpen: import_prop_types.default.bool.isRequired,
1451 - setIsOpen: import_prop_types.default.func.isRequired,
1452 - setIsRead: import_prop_types.default.func,
1453 - anchorPosition: import_prop_types.default.oneOf([
1454 - "left",
1455 - "top",
1456 - "right",
1457 - "bottom"
1458 - ])
1459 - };
3096 + while (!(step = iterator.next()).done) {
3097 + if (isValidElement(step.value)) {
3098 + validateExplicitKey(step.value, parentType);
3099 + }
3100 + }
3101 + }
3102 + }
3103 + }
3104 + }
3105 +}
3106 +/**
3107 + * Given an element, validate that its props follow the propTypes definition,
3108 + * provided by the type.
3109 + *
3110 + * @param {ReactElement} element
3111 + */
1460 3112
1461 -//#endregion
1462 -//#region modules/notifications/assets/js/components/editor-drawer.js
1463 - var EditorDrawer = function EditorDrawer(_ref) {
1464 - var _ref$anchorPosition = _ref.anchorPosition;
1465 - var anchorPosition = _ref$anchorPosition === void 0 ? "left" : _ref$anchorPosition;
1466 - var _useState2 = _slicedToArray((0, react.useState)(true), 2);
1467 - var isOpen = _useState2[0];
1468 - var setIsOpen = _useState2[1];
1469 - (0, react.useEffect)(function() {
1470 - elementor.on("elementor/editor/panel/whats-new/clicked", function() {
1471 - return setIsOpen(true);
1472 - });
1473 - }, []);
1474 - return /*#__PURE__*/ react.default.createElement(WhatsNew, {
1475 - isOpen,
1476 - setIsOpen,
1477 - setIsRead: function setIsRead() {
1478 - return document.body.classList.remove("e-has-notification");
1479 - },
1480 - anchorPosition
1481 - });
1482 - };
1483 - EditorDrawer.propTypes = { anchorPosition: import_prop_types.default.oneOf([
1484 - "left",
1485 - "top",
1486 - "right",
1487 - "bottom"
1488 - ]) };
1489 3113
1490 -//#endregion
1491 -//#region modules/notifications/assets/js/components/editor-on-button-clicked.js
1492 - var isRendered = false;
1493 - var editorOnButtonClicked = function editorOnButtonClicked() {
1494 - var anchorPosition = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "left";
1495 - if (!isRendered) {
1496 - isRendered = true;
1497 - var container = document.createElement("div");
1498 - document.body.append(container);
1499 - react_default.render(/*#__PURE__*/ react.default.createElement(EditorDrawer, { anchorPosition }), container);
1500 - return;
1501 - }
1502 - elementor.trigger("elementor/editor/panel/whats-new/clicked");
1503 - };
3114 +function validatePropTypes(element) {
3115 + {
3116 + var type = element.type;
1504 3117
1505 -//#endregion
1506 -//#region modules/notifications/assets/js/components/editor-v1.js
1507 - var editorV1 = function editorV1() {
1508 - elementor.on("panel:init", function() {
1509 - if (elementorNotifications.is_unread) document.body.classList.add("e-has-notification");
1510 - elementor.getPanelView().getPages("menu").view.addItem({
1511 - name: "notification-center",
1512 - icon: "eicon-speakerphone",
1513 - title: (0, _wordpress_i18n.__)("What's New", "elementor"),
1514 - callback: editorOnButtonClicked
1515 - }, "navigate_from_page", "view-page");
1516 - });
1517 - };
3118 + if (type === null || type === undefined || typeof type === 'string') {
3119 + return;
3120 + }
1518 3121
1519 -//#endregion
1520 -//#region modules/notifications/assets/js/components/editor-app-bar-link.js
1521 - var IconWithBadge = function IconWithBadge(_ref) {
1522 - var count = _ref.count;
1523 - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Badge, {
1524 - color: "primary",
1525 - badgeContent: count,
1526 - invisible: 0 === count
1527 - }, /*#__PURE__*/ react.default.createElement(_elementor_icons_SpeakerphoneIcon.default, null));
1528 - };
1529 - IconWithBadge.propTypes = { count: import_prop_types.default.number };
1530 - var useWhatsNewLinkProps = function useWhatsNewLinkProps() {
1531 - var _window$elementorNoti;
1532 - var _useState2 = _slicedToArray((0, react.useState)(parseInt((_window$elementorNoti = window.elementorNotifications) === null || _window$elementorNoti === void 0 ? void 0 : _window$elementorNoti.unread_count, 10) || 0), 2);
1533 - var unreadCount = _useState2[0];
1534 - var setUnreadCount = _useState2[1];
1535 - (0, react.useEffect)(function() {
1536 - var handler = function handler() {
1537 - return setUnreadCount(function(prev) {
1538 - return Math.max(0, prev - 1);
1539 - });
1540 - };
1541 - window.addEventListener("e-notification-item-seen", handler);
1542 - return function() {
1543 - return window.removeEventListener("e-notification-item-seen", handler);
1544 - };
1545 - }, []);
1546 - return {
1547 - title: (0, _wordpress_i18n.__)("What's New", "elementor"),
1548 - icon: function icon() {
1549 - return /*#__PURE__*/ react.default.createElement(IconWithBadge, { count: unreadCount });
1550 - },
1551 - onClick: function onClick() {
1552 - editorOnButtonClicked("right");
1553 - elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.topBar.whatsNew, {
1554 - location: elementorCommon.eventsManager.config.locations.topBar,
1555 - secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations["whats-new"],
1556 - trigger: elementorCommon.eventsManager.config.triggers.click,
1557 - element: elementorCommon.eventsManager.config.elements.buttonIcon
1558 - });
1559 - }
1560 - };
1561 - };
1562 - var editorAppBarLink = function editorAppBarLink() {
1563 - _elementor_editor_app_bar.utilitiesMenu.registerLink({
1564 - id: "app-bar-menu-item-whats-new",
1565 - priority: 10,
1566 - useProps: useWhatsNewLinkProps
1567 - });
1568 - };
3122 + var propTypes;
1569 3123
1570 -//#endregion
1571 -//#region modules/notifications/assets/js/editor.js
1572 - var _window;
1573 - if ((_window = window) !== null && _window !== void 0 && (_window = _window.elementorV2) !== null && _window !== void 0 && _window.editorAppBar) editorAppBarLink();
1574 - else editorV1();
3124 + if (typeof type === 'function') {
3125 + propTypes = type.propTypes;
3126 + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3127 + // Inner props are checked in the reconciler.
3128 + type.$$typeof === REACT_MEMO_TYPE)) {
3129 + propTypes = type.propTypes;
3130 + } else {
3131 + return;
3132 + }
1575 3133
1576 -//#endregion
1577 -})(wp.i18n, React, ReactDOM, elementorV2.ui, elementorV2.query, elementorV2.icons, elementorV2.editorAppBar, elementorV2.icons['SpeakerphoneIcon']);
3134 + if (propTypes) {
3135 + // Intentionally inside to avoid triggering lazy initializers:
3136 + var name = getComponentNameFromType(type);
3137 + checkPropTypes(propTypes, element.props, 'prop', name, element);
3138 + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
3139 + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
3140 +
3141 + var _name = getComponentNameFromType(type);
3142 +
3143 + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
3144 + }
3145 +
3146 + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
3147 + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
3148 + }
3149 + }
3150 +}
3151 +/**
3152 + * Given a fragment, validate that it can only be provided with fragment props
3153 + * @param {ReactElement} fragment
3154 + */
3155 +
3156 +
3157 +function validateFragmentProps(fragment) {
3158 + {
3159 + var keys = Object.keys(fragment.props);
3160 +
3161 + for (var i = 0; i < keys.length; i++) {
3162 + var key = keys[i];
3163 +
3164 + if (key !== 'children' && key !== 'key') {
3165 + setCurrentlyValidatingElement$1(fragment);
3166 +
3167 + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
3168 +
3169 + setCurrentlyValidatingElement$1(null);
3170 + break;
3171 + }
3172 + }
3173 +
3174 + if (fragment.ref !== null) {
3175 + setCurrentlyValidatingElement$1(fragment);
3176 +
3177 + error('Invalid attribute `ref` supplied to `React.Fragment`.');
3178 +
3179 + setCurrentlyValidatingElement$1(null);
3180 + }
3181 + }
3182 +}
3183 +
3184 +var didWarnAboutKeySpread = {};
3185 +function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3186 + {
3187 + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
3188 + // succeed and there will likely be errors in render.
3189 +
3190 + if (!validType) {
3191 + var info = '';
3192 +
3193 + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
3194 + 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.";
3195 + }
3196 +
3197 + var sourceInfo = getSourceInfoErrorAddendum(source);
3198 +
3199 + if (sourceInfo) {
3200 + info += sourceInfo;
3201 + } else {
3202 + info += getDeclarationErrorAddendum();
3203 + }
3204 +
3205 + var typeString;
3206 +
3207 + if (type === null) {
3208 + typeString = 'null';
3209 + } else if (isArray(type)) {
3210 + typeString = 'array';
3211 + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
3212 + typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
3213 + info = ' Did you accidentally export a JSX literal instead of a component?';
3214 + } else {
3215 + typeString = typeof type;
3216 + }
3217 +
3218 + 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);
3219 + }
3220 +
3221 + var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
3222 + // TODO: Drop this when these are no longer allowed as the type argument.
3223 +
3224 + if (element == null) {
3225 + return element;
3226 + } // Skip key warning if the type isn't valid since our key validation logic
3227 + // doesn't expect a non-string/function type and can throw confusing errors.
3228 + // We don't want exception behavior to differ between dev and prod.
3229 + // (Rendering will throw with a helpful message and as soon as the type is
3230 + // fixed, the key warnings will appear.)
3231 +
3232 +
3233 + if (validType) {
3234 + var children = props.children;
3235 +
3236 + if (children !== undefined) {
3237 + if (isStaticChildren) {
3238 + if (isArray(children)) {
3239 + for (var i = 0; i < children.length; i++) {
3240 + validateChildKeys(children[i], type);
3241 + }
3242 +
3243 + if (Object.freeze) {
3244 + Object.freeze(children);
3245 + }
3246 + } else {
3247 + 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.');
3248 + }
3249 + } else {
3250 + validateChildKeys(children, type);
3251 + }
3252 + }
3253 + }
3254 +
3255 + {
3256 + if (hasOwnProperty.call(props, 'key')) {
3257 + var componentName = getComponentNameFromType(type);
3258 + var keys = Object.keys(props).filter(function (k) {
3259 + return k !== 'key';
3260 + });
3261 + var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
3262 +
3263 + if (!didWarnAboutKeySpread[componentName + beforeExample]) {
3264 + var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
3265 +
3266 + 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);
3267 +
3268 + didWarnAboutKeySpread[componentName + beforeExample] = true;
3269 + }
3270 + }
3271 + }
3272 +
3273 + if (type === REACT_FRAGMENT_TYPE) {
3274 + validateFragmentProps(element);
3275 + } else {
3276 + validatePropTypes(element);
3277 + }
3278 +
3279 + return element;
3280 + }
3281 +} // These two functions exist to still get child warnings in dev
3282 +// even with the prod transform. This means that jsxDEV is purely
3283 +// opt-in behavior for better messages but that we won't stop
3284 +// giving you warnings if you use production apis.
3285 +
3286 +function jsxWithValidationStatic(type, props, key) {
3287 + {
3288 + return jsxWithValidation(type, props, key, true);
3289 + }
3290 +}
3291 +function jsxWithValidationDynamic(type, props, key) {
3292 + {
3293 + return jsxWithValidation(type, props, key, false);
3294 + }
3295 +}
3296 +
3297 +var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
3298 +// for now we can ship identical prod functions
3299 +
3300 +var jsxs = jsxWithValidationStatic ;
3301 +
3302 +exports.Fragment = REACT_FRAGMENT_TYPE;
3303 +exports.jsx = jsx;
3304 +exports.jsxs = jsxs;
3305 + })();
3306 +}
3307 +
3308 +
3309 +/***/ }),
3310 +
3311 +/***/ "../node_modules/react/jsx-runtime.js":
3312 +/*!********************************************!*\
3313 + !*** ../node_modules/react/jsx-runtime.js ***!
3314 + \********************************************/
3315 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3316 +
3317 +"use strict";
3318 +
3319 +
3320 +if (false) {} else {
3321 + module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "../node_modules/react/cjs/react-jsx-runtime.development.js");
3322 +}
3323 +
3324 +
3325 +/***/ }),
3326 +
3327 +/***/ "react":
3328 +/*!************************!*\
3329 + !*** external "React" ***!
3330 + \************************/
3331 +/***/ ((module) => {
3332 +
3333 +"use strict";
3334 +module.exports = React;
3335 +
3336 +/***/ }),
3337 +
3338 +/***/ "react-dom":
3339 +/*!***************************!*\
3340 + !*** external "ReactDOM" ***!
3341 + \***************************/
3342 +/***/ ((module) => {
3343 +
3344 +"use strict";
3345 +module.exports = ReactDOM;
3346 +
3347 +/***/ }),
3348 +
3349 +/***/ "@elementor/icons/SpeakerphoneIcon":
3350 +/*!********************************************************!*\
3351 + !*** external "elementorV2.icons['SpeakerphoneIcon']" ***!
3352 + \********************************************************/
3353 +/***/ ((module) => {
3354 +
3355 +"use strict";
3356 +module.exports = elementorV2.icons['SpeakerphoneIcon'];
3357 +
3358 +/***/ }),
3359 +
3360 +/***/ "@elementor/ui":
3361 +/*!*********************************!*\
3362 + !*** external "elementorV2.ui" ***!
3363 + \*********************************/
3364 +/***/ ((module) => {
3365 +
3366 +"use strict";
3367 +module.exports = elementorV2.ui;
3368 +
3369 +/***/ }),
3370 +
3371 +/***/ "@wordpress/i18n":
3372 +/*!**************************!*\
3373 + !*** external "wp.i18n" ***!
3374 + \**************************/
3375 +/***/ ((module) => {
3376 +
3377 +"use strict";
3378 +module.exports = wp.i18n;
3379 +
3380 +/***/ }),
3381 +
3382 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
3383 +/*!******************************************************************!*\
3384 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
3385 + \******************************************************************/
3386 +/***/ ((module) => {
3387 +
3388 +function _arrayLikeToArray(r, a) {
3389 + (null == a || a > r.length) && (a = r.length);
3390 + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
3391 + return n;
3392 +}
3393 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3394 +
3395 +/***/ }),
3396 +
3397 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
3398 +/*!****************************************************************!*\
3399 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
3400 + \****************************************************************/
3401 +/***/ ((module) => {
3402 +
3403 +function _arrayWithHoles(r) {
3404 + if (Array.isArray(r)) return r;
3405 +}
3406 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
3407 +
3408 +/***/ }),
3409 +
3410 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
3411 +/*!*********************************************************!*\
3412 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
3413 + \*********************************************************/
3414 +/***/ ((module) => {
3415 +
3416 +function _extends() {
3417 + return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
3418 + for (var e = 1; e < arguments.length; e++) {
3419 + var t = arguments[e];
3420 + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3421 + }
3422 + return n;
3423 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
3424 +}
3425 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
3426 +
3427 +/***/ }),
3428 +
3429 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
3430 +/*!***********************************************************************!*\
3431 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
3432 + \***********************************************************************/
3433 +/***/ ((module) => {
3434 +
3435 +function _interopRequireDefault(e) {
3436 + return e && e.__esModule ? e : {
3437 + "default": e
3438 + };
3439 +}
3440 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
3441 +
3442 +/***/ }),
3443 +
3444 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
3445 +/*!**********************************************************************!*\
3446 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
3447 + \**********************************************************************/
3448 +/***/ ((module) => {
3449 +
3450 +function _iterableToArrayLimit(r, l) {
3451 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3452 + if (null != t) {
3453 + var e,
3454 + n,
3455 + i,
3456 + u,
3457 + a = [],
3458 + f = !0,
3459 + o = !1;
3460 + try {
3461 + if (i = (t = t.call(r)).next, 0 === l) {
3462 + if (Object(t) !== t) return;
3463 + f = !1;
3464 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
3465 + } catch (r) {
3466 + o = !0, n = r;
3467 + } finally {
3468 + try {
3469 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
3470 + } finally {
3471 + if (o) throw n;
3472 + }
3473 + }
3474 + return a;
3475 + }
3476 +}
3477 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
3478 +
3479 +/***/ }),
3480 +
3481 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
3482 +/*!*****************************************************************!*\
3483 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
3484 + \*****************************************************************/
3485 +/***/ ((module) => {
3486 +
3487 +function _nonIterableRest() {
3488 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3489 +}
3490 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
3491 +
3492 +/***/ }),
3493 +
3494 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
3495 +/*!***************************************************************!*\
3496 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
3497 + \***************************************************************/
3498 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3499 +
3500 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
3501 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
3502 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
3503 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
3504 +function _slicedToArray(r, e) {
3505 + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
3506 +}
3507 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3508 +
3509 +/***/ }),
3510 +
3511 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3512 +/*!********************************************************!*\
3513 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3514 + \********************************************************/
3515 +/***/ ((module) => {
3516 +
3517 +function _typeof(o) {
3518 + "@babel/helpers - typeof";
3519 +
3520 + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3521 + return typeof o;
3522 + } : function (o) {
3523 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3524 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
3525 +}
3526 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3527 +
3528 +/***/ }),
3529 +
3530 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3531 +/*!****************************************************************************!*\
3532 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3533 + \****************************************************************************/
3534 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3535 +
3536 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3537 +function _unsupportedIterableToArray(r, a) {
3538 + if (r) {
3539 + if ("string" == typeof r) return arrayLikeToArray(r, a);
3540 + var t = {}.toString.call(r).slice(8, -1);
3541 + 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;
3542 + }
3543 +}
3544 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3545 +
3546 +/***/ }),
3547 +
3548 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
3549 +/*!**************************************************************************!*\
3550 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
3551 + \**************************************************************************/
3552 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3553 +
3554 +"use strict";
3555 +
3556 +var __defProp = Object.defineProperty;
3557 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3558 +var __getOwnPropNames = Object.getOwnPropertyNames;
3559 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3560 +var __export = (target, all) => {
3561 + for (var name in all)
3562 + __defProp(target, name, { get: all[name], enumerable: true });
3563 +};
3564 +var __copyProps = (to, from, except, desc) => {
3565 + if (from && typeof from === "object" || typeof from === "function") {
3566 + for (let key of __getOwnPropNames(from))
3567 + if (!__hasOwnProp.call(to, key) && key !== except)
3568 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3569 + }
3570 + return to;
3571 +};
3572 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3573 +
3574 +// src/focusManager.ts
3575 +var focusManager_exports = {};
3576 +__export(focusManager_exports, {
3577 + FocusManager: () => FocusManager,
3578 + focusManager: () => focusManager
3579 +});
3580 +module.exports = __toCommonJS(focusManager_exports);
3581 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3582 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3583 +var FocusManager = class extends import_subscribable.Subscribable {
3584 + #focused;
3585 + #cleanup;
3586 + #setup;
3587 + constructor() {
3588 + super();
3589 + this.#setup = (onFocus) => {
3590 + if (!import_utils.isServer && window.addEventListener) {
3591 + const listener = () => onFocus();
3592 + window.addEventListener("visibilitychange", listener, false);
3593 + return () => {
3594 + window.removeEventListener("visibilitychange", listener);
3595 + };
3596 + }
3597 + return;
3598 + };
3599 + }
3600 + onSubscribe() {
3601 + if (!this.#cleanup) {
3602 + this.setEventListener(this.#setup);
3603 + }
3604 + }
3605 + onUnsubscribe() {
3606 + if (!this.hasListeners()) {
3607 + this.#cleanup?.();
3608 + this.#cleanup = void 0;
3609 + }
3610 + }
3611 + setEventListener(setup) {
3612 + this.#setup = setup;
3613 + this.#cleanup?.();
3614 + this.#cleanup = setup((focused) => {
3615 + if (typeof focused === "boolean") {
3616 + this.setFocused(focused);
3617 + } else {
3618 + this.onFocus();
3619 + }
3620 + });
3621 + }
3622 + setFocused(focused) {
3623 + const changed = this.#focused !== focused;
3624 + if (changed) {
3625 + this.#focused = focused;
3626 + this.onFocus();
3627 + }
3628 + }
3629 + onFocus() {
3630 + const isFocused = this.isFocused();
3631 + this.listeners.forEach((listener) => {
3632 + listener(isFocused);
3633 + });
3634 + }
3635 + isFocused() {
3636 + if (typeof this.#focused === "boolean") {
3637 + return this.#focused;
3638 + }
3639 + return globalThis.document?.visibilityState !== "hidden";
3640 + }
3641 +};
3642 +var focusManager = new FocusManager();
3643 +// Annotate the CommonJS export names for ESM import in node:
3644 +0 && (0);
3645 +//# sourceMappingURL=focusManager.cjs.map
3646 +
3647 +/***/ }),
3648 +
3649 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
3650 +/*!***********************************************************************!*\
3651 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
3652 + \***********************************************************************/
3653 +/***/ ((module) => {
3654 +
3655 +"use strict";
3656 +
3657 +var __defProp = Object.defineProperty;
3658 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3659 +var __getOwnPropNames = Object.getOwnPropertyNames;
3660 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3661 +var __export = (target, all) => {
3662 + for (var name in all)
3663 + __defProp(target, name, { get: all[name], enumerable: true });
3664 +};
3665 +var __copyProps = (to, from, except, desc) => {
3666 + if (from && typeof from === "object" || typeof from === "function") {
3667 + for (let key of __getOwnPropNames(from))
3668 + if (!__hasOwnProp.call(to, key) && key !== except)
3669 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3670 + }
3671 + return to;
3672 +};
3673 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3674 +
3675 +// src/hydration.ts
3676 +var hydration_exports = {};
3677 +__export(hydration_exports, {
3678 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
3679 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
3680 + dehydrate: () => dehydrate,
3681 + hydrate: () => hydrate
3682 +});
3683 +module.exports = __toCommonJS(hydration_exports);
3684 +function defaultTransformerFn(data) {
3685 + return data;
3686 +}
3687 +function dehydrateMutation(mutation) {
3688 + return {
3689 + mutationKey: mutation.options.mutationKey,
3690 + state: mutation.state,
3691 + ...mutation.options.scope && { scope: mutation.options.scope },
3692 + ...mutation.meta && { meta: mutation.meta }
3693 + };
3694 +}
3695 +function dehydrateQuery(query, serializeData) {
3696 + return {
3697 + state: {
3698 + ...query.state,
3699 + ...query.state.data !== void 0 && {
3700 + data: serializeData(query.state.data)
3701 + }
3702 + },
3703 + queryKey: query.queryKey,
3704 + queryHash: query.queryHash,
3705 + ...query.state.status === "pending" && {
3706 + promise: query.promise?.then(serializeData).catch((error) => {
3707 + if (true) {
3708 + console.error(
3709 + `A query that was dehydrated as pending ended up rejecting. [${query.queryHash}]: ${error}; The error will be redacted in production builds`
3710 + );
3711 + }
3712 + return Promise.reject(new Error("redacted"));
3713 + })
3714 + },
3715 + ...query.meta && { meta: query.meta }
3716 + };
3717 +}
3718 +function defaultShouldDehydrateMutation(mutation) {
3719 + return mutation.state.isPaused;
3720 +}
3721 +function defaultShouldDehydrateQuery(query) {
3722 + return query.state.status === "success";
3723 +}
3724 +function dehydrate(client, options = {}) {
3725 + const filterMutation = options.shouldDehydrateMutation ?? client.getDefaultOptions().dehydrate?.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
3726 + const mutations = client.getMutationCache().getAll().flatMap(
3727 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
3728 + );
3729 + const filterQuery = options.shouldDehydrateQuery ?? client.getDefaultOptions().dehydrate?.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
3730 + const serializeData = options.serializeData ?? client.getDefaultOptions().dehydrate?.serializeData ?? defaultTransformerFn;
3731 + const queries = client.getQueryCache().getAll().flatMap(
3732 + (query) => filterQuery(query) ? [dehydrateQuery(query, serializeData)] : []
3733 + );
3734 + return { mutations, queries };
3735 +}
3736 +function hydrate(client, dehydratedState, options) {
3737 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
3738 + return;
3739 + }
3740 + const mutationCache = client.getMutationCache();
3741 + const queryCache = client.getQueryCache();
3742 + const deserializeData = options?.defaultOptions?.deserializeData ?? client.getDefaultOptions().hydrate?.deserializeData ?? defaultTransformerFn;
3743 + const mutations = dehydratedState.mutations || [];
3744 + const queries = dehydratedState.queries || [];
3745 + mutations.forEach(({ state, ...mutationOptions }) => {
3746 + mutationCache.build(
3747 + client,
3748 + {
3749 + ...client.getDefaultOptions().hydrate?.mutations,
3750 + ...options?.defaultOptions?.mutations,
3751 + ...mutationOptions
3752 + },
3753 + state
3754 + );
3755 + });
3756 + queries.forEach(({ queryKey, state, queryHash, meta, promise }) => {
3757 + let query = queryCache.get(queryHash);
3758 + const data = state.data === void 0 ? state.data : deserializeData(state.data);
3759 + if (query) {
3760 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
3761 + const { fetchStatus: _ignored, ...serializedState } = state;
3762 + query.setState({
3763 + ...serializedState,
3764 + data
3765 + });
3766 + }
3767 + } else {
3768 + query = queryCache.build(
3769 + client,
3770 + {
3771 + ...client.getDefaultOptions().hydrate?.queries,
3772 + ...options?.defaultOptions?.queries,
3773 + queryKey,
3774 + queryHash,
3775 + meta
3776 + },
3777 + // Reset fetch status to idle to avoid
3778 + // query being stuck in fetching state upon hydration
3779 + {
3780 + ...state,
3781 + data,
3782 + fetchStatus: "idle"
3783 + }
3784 + );
3785 + }
3786 + if (promise) {
3787 + const initialPromise = Promise.resolve(promise).then(deserializeData);
3788 + void query.fetch(void 0, { initialPromise });
3789 + }
3790 + });
3791 +}
3792 +// Annotate the CommonJS export names for ESM import in node:
3793 +0 && (0);
3794 +//# sourceMappingURL=hydration.cjs.map
3795 +
3796 +/***/ }),
3797 +
3798 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
3799 +/*!*******************************************************************!*\
3800 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
3801 + \*******************************************************************/
3802 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3803 +
3804 +"use strict";
3805 +
3806 +var __defProp = Object.defineProperty;
3807 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3808 +var __getOwnPropNames = Object.getOwnPropertyNames;
3809 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3810 +var __export = (target, all) => {
3811 + for (var name in all)
3812 + __defProp(target, name, { get: all[name], enumerable: true });
3813 +};
3814 +var __copyProps = (to, from, except, desc) => {
3815 + if (from && typeof from === "object" || typeof from === "function") {
3816 + for (let key of __getOwnPropNames(from))
3817 + if (!__hasOwnProp.call(to, key) && key !== except)
3818 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3819 + }
3820 + return to;
3821 +};
3822 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
3823 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3824 +
3825 +// src/index.ts
3826 +var src_exports = {};
3827 +__export(src_exports, {
3828 + CancelledError: () => import_retryer.CancelledError,
3829 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
3830 + MutationCache: () => import_mutationCache.MutationCache,
3831 + MutationObserver: () => import_mutationObserver.MutationObserver,
3832 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
3833 + Query: () => import_query.Query,
3834 + QueryCache: () => import_queryCache.QueryCache,
3835 + QueryClient: () => import_queryClient.QueryClient,
3836 + QueryObserver: () => import_queryObserver.QueryObserver,
3837 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
3838 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
3839 + dehydrate: () => import_hydration.dehydrate,
3840 + focusManager: () => import_focusManager.focusManager,
3841 + hashKey: () => import_utils.hashKey,
3842 + hydrate: () => import_hydration.hydrate,
3843 + isCancelledError: () => import_retryer2.isCancelledError,
3844 + isServer: () => import_utils.isServer,
3845 + keepPreviousData: () => import_utils.keepPreviousData,
3846 + matchMutation: () => import_utils.matchMutation,
3847 + matchQuery: () => import_utils.matchQuery,
3848 + notifyManager: () => import_notifyManager.notifyManager,
3849 + onlineManager: () => import_onlineManager.onlineManager,
3850 + replaceEqualDeep: () => import_utils.replaceEqualDeep,
3851 + skipToken: () => import_utils.skipToken
3852 +});
3853 +module.exports = __toCommonJS(src_exports);
3854 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3855 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
3856 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
3857 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3858 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
3859 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
3860 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
3861 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
3862 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3863 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
3864 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
3865 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3866 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3867 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
3868 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
3869 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
3870 +// Annotate the CommonJS export names for ESM import in node:
3871 +0 && (0);
3872 +//# sourceMappingURL=index.cjs.map
3873 +
3874 +/***/ }),
3875 +
3876 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
3877 +/*!***********************************************************************************!*\
3878 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
3879 + \***********************************************************************************/
3880 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3881 +
3882 +"use strict";
3883 +
3884 +var __defProp = Object.defineProperty;
3885 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3886 +var __getOwnPropNames = Object.getOwnPropertyNames;
3887 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3888 +var __export = (target, all) => {
3889 + for (var name in all)
3890 + __defProp(target, name, { get: all[name], enumerable: true });
3891 +};
3892 +var __copyProps = (to, from, except, desc) => {
3893 + if (from && typeof from === "object" || typeof from === "function") {
3894 + for (let key of __getOwnPropNames(from))
3895 + if (!__hasOwnProp.call(to, key) && key !== except)
3896 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3897 + }
3898 + return to;
3899 +};
3900 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3901 +
3902 +// src/infiniteQueryBehavior.ts
3903 +var infiniteQueryBehavior_exports = {};
3904 +__export(infiniteQueryBehavior_exports, {
3905 + hasNextPage: () => hasNextPage,
3906 + hasPreviousPage: () => hasPreviousPage,
3907 + infiniteQueryBehavior: () => infiniteQueryBehavior
3908 +});
3909 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
3910 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3911 +function infiniteQueryBehavior(pages) {
3912 + return {
3913 + onFetch: (context, query) => {
3914 + const fetchFn = async () => {
3915 + const options = context.options;
3916 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
3917 + const oldPages = context.state.data?.pages || [];
3918 + const oldPageParams = context.state.data?.pageParams || [];
3919 + const empty = { pages: [], pageParams: [] };
3920 + let cancelled = false;
3921 + const addSignalProperty = (object) => {
3922 + Object.defineProperty(object, "signal", {
3923 + enumerable: true,
3924 + get: () => {
3925 + if (context.signal.aborted) {
3926 + cancelled = true;
3927 + } else {
3928 + context.signal.addEventListener("abort", () => {
3929 + cancelled = true;
3930 + });
3931 + }
3932 + return context.signal;
3933 + }
3934 + });
3935 + };
3936 + const queryFn = (0, import_utils.ensureQueryFn)(context.options, context.fetchOptions);
3937 + const fetchPage = async (data, param, previous) => {
3938 + if (cancelled) {
3939 + return Promise.reject();
3940 + }
3941 + if (param == null && data.pages.length) {
3942 + return Promise.resolve(data);
3943 + }
3944 + const queryFnContext = {
3945 + queryKey: context.queryKey,
3946 + pageParam: param,
3947 + direction: previous ? "backward" : "forward",
3948 + meta: context.options.meta
3949 + };
3950 + addSignalProperty(queryFnContext);
3951 + const page = await queryFn(
3952 + queryFnContext
3953 + );
3954 + const { maxPages } = context.options;
3955 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
3956 + return {
3957 + pages: addTo(data.pages, page, maxPages),
3958 + pageParams: addTo(data.pageParams, param, maxPages)
3959 + };
3960 + };
3961 + let result;
3962 + if (direction && oldPages.length) {
3963 + const previous = direction === "backward";
3964 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
3965 + const oldData = {
3966 + pages: oldPages,
3967 + pageParams: oldPageParams
3968 + };
3969 + const param = pageParamFn(options, oldData);
3970 + result = await fetchPage(oldData, param, previous);
3971 + } else {
3972 + result = await fetchPage(
3973 + empty,
3974 + oldPageParams[0] ?? options.initialPageParam
3975 + );
3976 + const remainingPages = pages ?? oldPages.length;
3977 + for (let i = 1; i < remainingPages; i++) {
3978 + const param = getNextPageParam(options, result);
3979 + result = await fetchPage(result, param);
3980 + }
3981 + }
3982 + return result;
3983 + };
3984 + if (context.options.persister) {
3985 + context.fetchFn = () => {
3986 + return context.options.persister?.(
3987 + fetchFn,
3988 + {
3989 + queryKey: context.queryKey,
3990 + meta: context.options.meta,
3991 + signal: context.signal
3992 + },
3993 + query
3994 + );
3995 + };
3996 + } else {
3997 + context.fetchFn = fetchFn;
3998 + }
3999 + }
4000 + };
4001 +}
4002 +function getNextPageParam(options, { pages, pageParams }) {
4003 + const lastIndex = pages.length - 1;
4004 + return options.getNextPageParam(
4005 + pages[lastIndex],
4006 + pages,
4007 + pageParams[lastIndex],
4008 + pageParams
4009 + );
4010 +}
4011 +function getPreviousPageParam(options, { pages, pageParams }) {
4012 + return options.getPreviousPageParam?.(
4013 + pages[0],
4014 + pages,
4015 + pageParams[0],
4016 + pageParams
4017 + );
4018 +}
4019 +function hasNextPage(options, data) {
4020 + if (!data)
4021 + return false;
4022 + return getNextPageParam(options, data) != null;
4023 +}
4024 +function hasPreviousPage(options, data) {
4025 + if (!data || !options.getPreviousPageParam)
4026 + return false;
4027 + return getPreviousPageParam(options, data) != null;
4028 +}
4029 +// Annotate the CommonJS export names for ESM import in node:
4030 +0 && (0);
4031 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
4032 +
4033 +/***/ }),
4034 +
4035 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
4036 +/*!***********************************************************************************!*\
4037 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
4038 + \***********************************************************************************/
4039 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4040 +
4041 +"use strict";
4042 +
4043 +var __defProp = Object.defineProperty;
4044 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4045 +var __getOwnPropNames = Object.getOwnPropertyNames;
4046 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4047 +var __export = (target, all) => {
4048 + for (var name in all)
4049 + __defProp(target, name, { get: all[name], enumerable: true });
4050 +};
4051 +var __copyProps = (to, from, except, desc) => {
4052 + if (from && typeof from === "object" || typeof from === "function") {
4053 + for (let key of __getOwnPropNames(from))
4054 + if (!__hasOwnProp.call(to, key) && key !== except)
4055 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4056 + }
4057 + return to;
4058 +};
4059 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4060 +
4061 +// src/infiniteQueryObserver.ts
4062 +var infiniteQueryObserver_exports = {};
4063 +__export(infiniteQueryObserver_exports, {
4064 + InfiniteQueryObserver: () => InfiniteQueryObserver
4065 +});
4066 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
4067 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4068 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
4069 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
4070 + constructor(client, options) {
4071 + super(client, options);
4072 + }
4073 + bindMethods() {
4074 + super.bindMethods();
4075 + this.fetchNextPage = this.fetchNextPage.bind(this);
4076 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
4077 + }
4078 + setOptions(options, notifyOptions) {
4079 + super.setOptions(
4080 + {
4081 + ...options,
4082 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
4083 + },
4084 + notifyOptions
4085 + );
4086 + }
4087 + getOptimisticResult(options) {
4088 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
4089 + return super.getOptimisticResult(options);
4090 + }
4091 + fetchNextPage(options) {
4092 + return this.fetch({
4093 + ...options,
4094 + meta: {
4095 + fetchMore: { direction: "forward" }
4096 + }
4097 + });
4098 + }
4099 + fetchPreviousPage(options) {
4100 + return this.fetch({
4101 + ...options,
4102 + meta: {
4103 + fetchMore: { direction: "backward" }
4104 + }
4105 + });
4106 + }
4107 + createResult(query, options) {
4108 + const { state } = query;
4109 + const parentResult = super.createResult(query, options);
4110 + const { isFetching, isRefetching, isError, isRefetchError } = parentResult;
4111 + const fetchDirection = state.fetchMeta?.fetchMore?.direction;
4112 + const isFetchNextPageError = isError && fetchDirection === "forward";
4113 + const isFetchingNextPage = isFetching && fetchDirection === "forward";
4114 + const isFetchPreviousPageError = isError && fetchDirection === "backward";
4115 + const isFetchingPreviousPage = isFetching && fetchDirection === "backward";
4116 + const result = {
4117 + ...parentResult,
4118 + fetchNextPage: this.fetchNextPage,
4119 + fetchPreviousPage: this.fetchPreviousPage,
4120 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
4121 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
4122 + isFetchNextPageError,
4123 + isFetchingNextPage,
4124 + isFetchPreviousPageError,
4125 + isFetchingPreviousPage,
4126 + isRefetchError: isRefetchError && !isFetchNextPageError && !isFetchPreviousPageError,
4127 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
4128 + };
4129 + return result;
4130 + }
4131 +};
4132 +// Annotate the CommonJS export names for ESM import in node:
4133 +0 && (0);
4134 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
4135 +
4136 +/***/ }),
4137 +
4138 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
4139 +/*!**********************************************************************!*\
4140 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
4141 + \**********************************************************************/
4142 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4143 +
4144 +"use strict";
4145 +
4146 +var __defProp = Object.defineProperty;
4147 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4148 +var __getOwnPropNames = Object.getOwnPropertyNames;
4149 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4150 +var __export = (target, all) => {
4151 + for (var name in all)
4152 + __defProp(target, name, { get: all[name], enumerable: true });
4153 +};
4154 +var __copyProps = (to, from, except, desc) => {
4155 + if (from && typeof from === "object" || typeof from === "function") {
4156 + for (let key of __getOwnPropNames(from))
4157 + if (!__hasOwnProp.call(to, key) && key !== except)
4158 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4159 + }
4160 + return to;
4161 +};
4162 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4163 +
4164 +// src/mutation.ts
4165 +var mutation_exports = {};
4166 +__export(mutation_exports, {
4167 + Mutation: () => Mutation,
4168 + getDefaultState: () => getDefaultState
4169 +});
4170 +module.exports = __toCommonJS(mutation_exports);
4171 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4172 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
4173 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4174 +var Mutation = class extends import_removable.Removable {
4175 + #observers;
4176 + #mutationCache;
4177 + #retryer;
4178 + constructor(config) {
4179 + super();
4180 + this.mutationId = config.mutationId;
4181 + this.#mutationCache = config.mutationCache;
4182 + this.#observers = [];
4183 + this.state = config.state || getDefaultState();
4184 + this.setOptions(config.options);
4185 + this.scheduleGc();
4186 + }
4187 + setOptions(options) {
4188 + this.options = options;
4189 + this.updateGcTime(this.options.gcTime);
4190 + }
4191 + get meta() {
4192 + return this.options.meta;
4193 + }
4194 + addObserver(observer) {
4195 + if (!this.#observers.includes(observer)) {
4196 + this.#observers.push(observer);
4197 + this.clearGcTimeout();
4198 + this.#mutationCache.notify({
4199 + type: "observerAdded",
4200 + mutation: this,
4201 + observer
4202 + });
4203 + }
4204 + }
4205 + removeObserver(observer) {
4206 + this.#observers = this.#observers.filter((x) => x !== observer);
4207 + this.scheduleGc();
4208 + this.#mutationCache.notify({
4209 + type: "observerRemoved",
4210 + mutation: this,
4211 + observer
4212 + });
4213 + }
4214 + optionalRemove() {
4215 + if (!this.#observers.length) {
4216 + if (this.state.status === "pending") {
4217 + this.scheduleGc();
4218 + } else {
4219 + this.#mutationCache.remove(this);
4220 + }
4221 + }
4222 + }
4223 + continue() {
4224 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
4225 + this.execute(this.state.variables);
4226 + }
4227 + async execute(variables) {
4228 + this.#retryer = (0, import_retryer.createRetryer)({
4229 + fn: () => {
4230 + if (!this.options.mutationFn) {
4231 + return Promise.reject(new Error("No mutationFn found"));
4232 + }
4233 + return this.options.mutationFn(variables);
4234 + },
4235 + onFail: (failureCount, error) => {
4236 + this.#dispatch({ type: "failed", failureCount, error });
4237 + },
4238 + onPause: () => {
4239 + this.#dispatch({ type: "pause" });
4240 + },
4241 + onContinue: () => {
4242 + this.#dispatch({ type: "continue" });
4243 + },
4244 + retry: this.options.retry ?? 0,
4245 + retryDelay: this.options.retryDelay,
4246 + networkMode: this.options.networkMode,
4247 + canRun: () => this.#mutationCache.canRun(this)
4248 + });
4249 + const restored = this.state.status === "pending";
4250 + const isPaused = !this.#retryer.canStart();
4251 + try {
4252 + if (!restored) {
4253 + this.#dispatch({ type: "pending", variables, isPaused });
4254 + await this.#mutationCache.config.onMutate?.(
4255 + variables,
4256 + this
4257 + );
4258 + const context = await this.options.onMutate?.(variables);
4259 + if (context !== this.state.context) {
4260 + this.#dispatch({
4261 + type: "pending",
4262 + context,
4263 + variables,
4264 + isPaused
4265 + });
4266 + }
4267 + }
4268 + const data = await this.#retryer.start();
4269 + await this.#mutationCache.config.onSuccess?.(
4270 + data,
4271 + variables,
4272 + this.state.context,
4273 + this
4274 + );
4275 + await this.options.onSuccess?.(data, variables, this.state.context);
4276 + await this.#mutationCache.config.onSettled?.(
4277 + data,
4278 + null,
4279 + this.state.variables,
4280 + this.state.context,
4281 + this
4282 + );
4283 + await this.options.onSettled?.(data, null, variables, this.state.context);
4284 + this.#dispatch({ type: "success", data });
4285 + return data;
4286 + } catch (error) {
4287 + try {
4288 + await this.#mutationCache.config.onError?.(
4289 + error,
4290 + variables,
4291 + this.state.context,
4292 + this
4293 + );
4294 + await this.options.onError?.(
4295 + error,
4296 + variables,
4297 + this.state.context
4298 + );
4299 + await this.#mutationCache.config.onSettled?.(
4300 + void 0,
4301 + error,
4302 + this.state.variables,
4303 + this.state.context,
4304 + this
4305 + );
4306 + await this.options.onSettled?.(
4307 + void 0,
4308 + error,
4309 + variables,
4310 + this.state.context
4311 + );
4312 + throw error;
4313 + } finally {
4314 + this.#dispatch({ type: "error", error });
4315 + }
4316 + } finally {
4317 + this.#mutationCache.runNext(this);
4318 + }
4319 + }
4320 + #dispatch(action) {
4321 + const reducer = (state) => {
4322 + switch (action.type) {
4323 + case "failed":
4324 + return {
4325 + ...state,
4326 + failureCount: action.failureCount,
4327 + failureReason: action.error
4328 + };
4329 + case "pause":
4330 + return {
4331 + ...state,
4332 + isPaused: true
4333 + };
4334 + case "continue":
4335 + return {
4336 + ...state,
4337 + isPaused: false
4338 + };
4339 + case "pending":
4340 + return {
4341 + ...state,
4342 + context: action.context,
4343 + data: void 0,
4344 + failureCount: 0,
4345 + failureReason: null,
4346 + error: null,
4347 + isPaused: action.isPaused,
4348 + status: "pending",
4349 + variables: action.variables,
4350 + submittedAt: Date.now()
4351 + };
4352 + case "success":
4353 + return {
4354 + ...state,
4355 + data: action.data,
4356 + failureCount: 0,
4357 + failureReason: null,
4358 + error: null,
4359 + status: "success",
4360 + isPaused: false
4361 + };
4362 + case "error":
4363 + return {
4364 + ...state,
4365 + data: void 0,
4366 + error: action.error,
4367 + failureCount: state.failureCount + 1,
4368 + failureReason: action.error,
4369 + isPaused: false,
4370 + status: "error"
4371 + };
4372 + }
4373 + };
4374 + this.state = reducer(this.state);
4375 + import_notifyManager.notifyManager.batch(() => {
4376 + this.#observers.forEach((observer) => {
4377 + observer.onMutationUpdate(action);
4378 + });
4379 + this.#mutationCache.notify({
4380 + mutation: this,
4381 + type: "updated",
4382 + action
4383 + });
4384 + });
4385 + }
4386 +};
4387 +function getDefaultState() {
4388 + return {
4389 + context: void 0,
4390 + data: void 0,
4391 + error: null,
4392 + failureCount: 0,
4393 + failureReason: null,
4394 + isPaused: false,
4395 + status: "idle",
4396 + variables: void 0,
4397 + submittedAt: 0
4398 + };
4399 +}
4400 +// Annotate the CommonJS export names for ESM import in node:
4401 +0 && (0);
4402 +//# sourceMappingURL=mutation.cjs.map
4403 +
4404 +/***/ }),
4405 +
4406 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
4407 +/*!***************************************************************************!*\
4408 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
4409 + \***************************************************************************/
4410 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4411 +
4412 +"use strict";
4413 +
4414 +var __defProp = Object.defineProperty;
4415 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4416 +var __getOwnPropNames = Object.getOwnPropertyNames;
4417 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4418 +var __export = (target, all) => {
4419 + for (var name in all)
4420 + __defProp(target, name, { get: all[name], enumerable: true });
4421 +};
4422 +var __copyProps = (to, from, except, desc) => {
4423 + if (from && typeof from === "object" || typeof from === "function") {
4424 + for (let key of __getOwnPropNames(from))
4425 + if (!__hasOwnProp.call(to, key) && key !== except)
4426 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4427 + }
4428 + return to;
4429 +};
4430 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4431 +
4432 +// src/mutationCache.ts
4433 +var mutationCache_exports = {};
4434 +__export(mutationCache_exports, {
4435 + MutationCache: () => MutationCache
4436 +});
4437 +module.exports = __toCommonJS(mutationCache_exports);
4438 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4439 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4440 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4441 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4442 +var MutationCache = class extends import_subscribable.Subscribable {
4443 + constructor(config = {}) {
4444 + super();
4445 + this.config = config;
4446 + this.#mutations = /* @__PURE__ */ new Map();
4447 + this.#mutationId = Date.now();
4448 + }
4449 + #mutations;
4450 + #mutationId;
4451 + build(client, options, state) {
4452 + const mutation = new import_mutation.Mutation({
4453 + mutationCache: this,
4454 + mutationId: ++this.#mutationId,
4455 + options: client.defaultMutationOptions(options),
4456 + state
4457 + });
4458 + this.add(mutation);
4459 + return mutation;
4460 + }
4461 + add(mutation) {
4462 + const scope = scopeFor(mutation);
4463 + const mutations = this.#mutations.get(scope) ?? [];
4464 + mutations.push(mutation);
4465 + this.#mutations.set(scope, mutations);
4466 + this.notify({ type: "added", mutation });
4467 + }
4468 + remove(mutation) {
4469 + const scope = scopeFor(mutation);
4470 + if (this.#mutations.has(scope)) {
4471 + const mutations = this.#mutations.get(scope)?.filter((x) => x !== mutation);
4472 + if (mutations) {
4473 + if (mutations.length === 0) {
4474 + this.#mutations.delete(scope);
4475 + } else {
4476 + this.#mutations.set(scope, mutations);
4477 + }
4478 + }
4479 + }
4480 + this.notify({ type: "removed", mutation });
4481 + }
4482 + canRun(mutation) {
4483 + const firstPendingMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m.state.status === "pending");
4484 + return !firstPendingMutation || firstPendingMutation === mutation;
4485 + }
4486 + runNext(mutation) {
4487 + const foundMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m !== mutation && m.state.isPaused);
4488 + return foundMutation?.continue() ?? Promise.resolve();
4489 + }
4490 + clear() {
4491 + import_notifyManager.notifyManager.batch(() => {
4492 + this.getAll().forEach((mutation) => {
4493 + this.remove(mutation);
4494 + });
4495 + });
4496 + }
4497 + getAll() {
4498 + return [...this.#mutations.values()].flat();
4499 + }
4500 + find(filters) {
4501 + const defaultedFilters = { exact: true, ...filters };
4502 + return this.getAll().find(
4503 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
4504 + );
4505 + }
4506 + findAll(filters = {}) {
4507 + return this.getAll().filter((mutation) => (0, import_utils.matchMutation)(filters, mutation));
4508 + }
4509 + notify(event) {
4510 + import_notifyManager.notifyManager.batch(() => {
4511 + this.listeners.forEach((listener) => {
4512 + listener(event);
4513 + });
4514 + });
4515 + }
4516 + resumePausedMutations() {
4517 + const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
4518 + return import_notifyManager.notifyManager.batch(
4519 + () => Promise.all(
4520 + pausedMutations.map((mutation) => mutation.continue().catch(import_utils.noop))
4521 + )
4522 + );
4523 + }
4524 +};
4525 +function scopeFor(mutation) {
4526 + return mutation.options.scope?.id ?? String(mutation.mutationId);
4527 +}
4528 +// Annotate the CommonJS export names for ESM import in node:
4529 +0 && (0);
4530 +//# sourceMappingURL=mutationCache.cjs.map
4531 +
4532 +/***/ }),
4533 +
4534 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
4535 +/*!******************************************************************************!*\
4536 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
4537 + \******************************************************************************/
4538 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4539 +
4540 +"use strict";
4541 +
4542 +var __defProp = Object.defineProperty;
4543 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4544 +var __getOwnPropNames = Object.getOwnPropertyNames;
4545 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4546 +var __export = (target, all) => {
4547 + for (var name in all)
4548 + __defProp(target, name, { get: all[name], enumerable: true });
4549 +};
4550 +var __copyProps = (to, from, except, desc) => {
4551 + if (from && typeof from === "object" || typeof from === "function") {
4552 + for (let key of __getOwnPropNames(from))
4553 + if (!__hasOwnProp.call(to, key) && key !== except)
4554 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4555 + }
4556 + return to;
4557 +};
4558 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4559 +
4560 +// src/mutationObserver.ts
4561 +var mutationObserver_exports = {};
4562 +__export(mutationObserver_exports, {
4563 + MutationObserver: () => MutationObserver
4564 +});
4565 +module.exports = __toCommonJS(mutationObserver_exports);
4566 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4567 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4568 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4569 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4570 +var MutationObserver = class extends import_subscribable.Subscribable {
4571 + #client;
4572 + #currentResult = void 0;
4573 + #currentMutation;
4574 + #mutateOptions;
4575 + constructor(client, options) {
4576 + super();
4577 + this.#client = client;
4578 + this.setOptions(options);
4579 + this.bindMethods();
4580 + this.#updateResult();
4581 + }
4582 + bindMethods() {
4583 + this.mutate = this.mutate.bind(this);
4584 + this.reset = this.reset.bind(this);
4585 + }
4586 + setOptions(options) {
4587 + const prevOptions = this.options;
4588 + this.options = this.#client.defaultMutationOptions(options);
4589 + if (!(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
4590 + this.#client.getMutationCache().notify({
4591 + type: "observerOptionsUpdated",
4592 + mutation: this.#currentMutation,
4593 + observer: this
4594 + });
4595 + }
4596 + if (prevOptions?.mutationKey && this.options.mutationKey && (0, import_utils.hashKey)(prevOptions.mutationKey) !== (0, import_utils.hashKey)(this.options.mutationKey)) {
4597 + this.reset();
4598 + } else if (this.#currentMutation?.state.status === "pending") {
4599 + this.#currentMutation.setOptions(this.options);
4600 + }
4601 + }
4602 + onUnsubscribe() {
4603 + if (!this.hasListeners()) {
4604 + this.#currentMutation?.removeObserver(this);
4605 + }
4606 + }
4607 + onMutationUpdate(action) {
4608 + this.#updateResult();
4609 + this.#notify(action);
4610 + }
4611 + getCurrentResult() {
4612 + return this.#currentResult;
4613 + }
4614 + reset() {
4615 + this.#currentMutation?.removeObserver(this);
4616 + this.#currentMutation = void 0;
4617 + this.#updateResult();
4618 + this.#notify();
4619 + }
4620 + mutate(variables, options) {
4621 + this.#mutateOptions = options;
4622 + this.#currentMutation?.removeObserver(this);
4623 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
4624 + this.#currentMutation.addObserver(this);
4625 + return this.#currentMutation.execute(variables);
4626 + }
4627 + #updateResult() {
4628 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
4629 + this.#currentResult = {
4630 + ...state,
4631 + isPending: state.status === "pending",
4632 + isSuccess: state.status === "success",
4633 + isError: state.status === "error",
4634 + isIdle: state.status === "idle",
4635 + mutate: this.mutate,
4636 + reset: this.reset
4637 + };
4638 + }
4639 + #notify(action) {
4640 + import_notifyManager.notifyManager.batch(() => {
4641 + if (this.#mutateOptions && this.hasListeners()) {
4642 + const variables = this.#currentResult.variables;
4643 + const context = this.#currentResult.context;
4644 + if (action?.type === "success") {
4645 + this.#mutateOptions.onSuccess?.(action.data, variables, context);
4646 + this.#mutateOptions.onSettled?.(action.data, null, variables, context);
4647 + } else if (action?.type === "error") {
4648 + this.#mutateOptions.onError?.(action.error, variables, context);
4649 + this.#mutateOptions.onSettled?.(
4650 + void 0,
4651 + action.error,
4652 + variables,
4653 + context
4654 + );
4655 + }
4656 + }
4657 + this.listeners.forEach((listener) => {
4658 + listener(this.#currentResult);
4659 + });
4660 + });
4661 + }
4662 +};
4663 +// Annotate the CommonJS export names for ESM import in node:
4664 +0 && (0);
4665 +//# sourceMappingURL=mutationObserver.cjs.map
4666 +
4667 +/***/ }),
4668 +
4669 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
4670 +/*!***************************************************************************!*\
4671 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
4672 + \***************************************************************************/
4673 +/***/ ((module) => {
4674 +
4675 +"use strict";
4676 +
4677 +var __defProp = Object.defineProperty;
4678 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4679 +var __getOwnPropNames = Object.getOwnPropertyNames;
4680 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4681 +var __export = (target, all) => {
4682 + for (var name in all)
4683 + __defProp(target, name, { get: all[name], enumerable: true });
4684 +};
4685 +var __copyProps = (to, from, except, desc) => {
4686 + if (from && typeof from === "object" || typeof from === "function") {
4687 + for (let key of __getOwnPropNames(from))
4688 + if (!__hasOwnProp.call(to, key) && key !== except)
4689 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4690 + }
4691 + return to;
4692 +};
4693 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4694 +
4695 +// src/notifyManager.ts
4696 +var notifyManager_exports = {};
4697 +__export(notifyManager_exports, {
4698 + createNotifyManager: () => createNotifyManager,
4699 + notifyManager: () => notifyManager
4700 +});
4701 +module.exports = __toCommonJS(notifyManager_exports);
4702 +function createNotifyManager() {
4703 + let queue = [];
4704 + let transactions = 0;
4705 + let notifyFn = (callback) => {
4706 + callback();
4707 + };
4708 + let batchNotifyFn = (callback) => {
4709 + callback();
4710 + };
4711 + let scheduleFn = (cb) => setTimeout(cb, 0);
4712 + const setScheduler = (fn) => {
4713 + scheduleFn = fn;
4714 + };
4715 + const batch = (callback) => {
4716 + let result;
4717 + transactions++;
4718 + try {
4719 + result = callback();
4720 + } finally {
4721 + transactions--;
4722 + if (!transactions) {
4723 + flush();
4724 + }
4725 + }
4726 + return result;
4727 + };
4728 + const schedule = (callback) => {
4729 + if (transactions) {
4730 + queue.push(callback);
4731 + } else {
4732 + scheduleFn(() => {
4733 + notifyFn(callback);
4734 + });
4735 + }
4736 + };
4737 + const batchCalls = (callback) => {
4738 + return (...args) => {
4739 + schedule(() => {
4740 + callback(...args);
4741 + });
4742 + };
4743 + };
4744 + const flush = () => {
4745 + const originalQueue = queue;
4746 + queue = [];
4747 + if (originalQueue.length) {
4748 + scheduleFn(() => {
4749 + batchNotifyFn(() => {
4750 + originalQueue.forEach((callback) => {
4751 + notifyFn(callback);
4752 + });
4753 + });
4754 + });
4755 + }
4756 + };
4757 + const setNotifyFunction = (fn) => {
4758 + notifyFn = fn;
4759 + };
4760 + const setBatchNotifyFunction = (fn) => {
4761 + batchNotifyFn = fn;
4762 + };
4763 + return {
4764 + batch,
4765 + batchCalls,
4766 + schedule,
4767 + setNotifyFunction,
4768 + setBatchNotifyFunction,
4769 + setScheduler
4770 + };
4771 +}
4772 +var notifyManager = createNotifyManager();
4773 +// Annotate the CommonJS export names for ESM import in node:
4774 +0 && (0);
4775 +//# sourceMappingURL=notifyManager.cjs.map
4776 +
4777 +/***/ }),
4778 +
4779 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
4780 +/*!***************************************************************************!*\
4781 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
4782 + \***************************************************************************/
4783 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4784 +
4785 +"use strict";
4786 +
4787 +var __defProp = Object.defineProperty;
4788 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4789 +var __getOwnPropNames = Object.getOwnPropertyNames;
4790 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4791 +var __export = (target, all) => {
4792 + for (var name in all)
4793 + __defProp(target, name, { get: all[name], enumerable: true });
4794 +};
4795 +var __copyProps = (to, from, except, desc) => {
4796 + if (from && typeof from === "object" || typeof from === "function") {
4797 + for (let key of __getOwnPropNames(from))
4798 + if (!__hasOwnProp.call(to, key) && key !== except)
4799 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4800 + }
4801 + return to;
4802 +};
4803 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4804 +
4805 +// src/onlineManager.ts
4806 +var onlineManager_exports = {};
4807 +__export(onlineManager_exports, {
4808 + OnlineManager: () => OnlineManager,
4809 + onlineManager: () => onlineManager
4810 +});
4811 +module.exports = __toCommonJS(onlineManager_exports);
4812 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4813 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4814 +var OnlineManager = class extends import_subscribable.Subscribable {
4815 + #online = true;
4816 + #cleanup;
4817 + #setup;
4818 + constructor() {
4819 + super();
4820 + this.#setup = (onOnline) => {
4821 + if (!import_utils.isServer && window.addEventListener) {
4822 + const onlineListener = () => onOnline(true);
4823 + const offlineListener = () => onOnline(false);
4824 + window.addEventListener("online", onlineListener, false);
4825 + window.addEventListener("offline", offlineListener, false);
4826 + return () => {
4827 + window.removeEventListener("online", onlineListener);
4828 + window.removeEventListener("offline", offlineListener);
4829 + };
4830 + }
4831 + return;
4832 + };
4833 + }
4834 + onSubscribe() {
4835 + if (!this.#cleanup) {
4836 + this.setEventListener(this.#setup);
4837 + }
4838 + }
4839 + onUnsubscribe() {
4840 + if (!this.hasListeners()) {
4841 + this.#cleanup?.();
4842 + this.#cleanup = void 0;
4843 + }
4844 + }
4845 + setEventListener(setup) {
4846 + this.#setup = setup;
4847 + this.#cleanup?.();
4848 + this.#cleanup = setup(this.setOnline.bind(this));
4849 + }
4850 + setOnline(online) {
4851 + const changed = this.#online !== online;
4852 + if (changed) {
4853 + this.#online = online;
4854 + this.listeners.forEach((listener) => {
4855 + listener(online);
4856 + });
4857 + }
4858 + }
4859 + isOnline() {
4860 + return this.#online;
4861 + }
4862 +};
4863 +var onlineManager = new OnlineManager();
4864 +// Annotate the CommonJS export names for ESM import in node:
4865 +0 && (0);
4866 +//# sourceMappingURL=onlineManager.cjs.map
4867 +
4868 +/***/ }),
4869 +
4870 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
4871 +/*!*****************************************************************************!*\
4872 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
4873 + \*****************************************************************************/
4874 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4875 +
4876 +"use strict";
4877 +
4878 +var __defProp = Object.defineProperty;
4879 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4880 +var __getOwnPropNames = Object.getOwnPropertyNames;
4881 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4882 +var __export = (target, all) => {
4883 + for (var name in all)
4884 + __defProp(target, name, { get: all[name], enumerable: true });
4885 +};
4886 +var __copyProps = (to, from, except, desc) => {
4887 + if (from && typeof from === "object" || typeof from === "function") {
4888 + for (let key of __getOwnPropNames(from))
4889 + if (!__hasOwnProp.call(to, key) && key !== except)
4890 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4891 + }
4892 + return to;
4893 +};
4894 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4895 +
4896 +// src/queriesObserver.ts
4897 +var queriesObserver_exports = {};
4898 +__export(queriesObserver_exports, {
4899 + QueriesObserver: () => QueriesObserver
4900 +});
4901 +module.exports = __toCommonJS(queriesObserver_exports);
4902 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4903 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4904 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4905 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4906 +function difference(array1, array2) {
4907 + return array1.filter((x) => !array2.includes(x));
4908 +}
4909 +function replaceAt(array, index, value) {
4910 + const copy = array.slice(0);
4911 + copy[index] = value;
4912 + return copy;
4913 +}
4914 +var QueriesObserver = class extends import_subscribable.Subscribable {
4915 + #client;
4916 + #result;
4917 + #queries;
4918 + #observers;
4919 + #combinedResult;
4920 + #lastCombine;
4921 + #lastResult;
4922 + constructor(client, queries, _options) {
4923 + super();
4924 + this.#client = client;
4925 + this.#queries = [];
4926 + this.#observers = [];
4927 + this.#result = [];
4928 + this.setQueries(queries);
4929 + }
4930 + onSubscribe() {
4931 + if (this.listeners.size === 1) {
4932 + this.#observers.forEach((observer) => {
4933 + observer.subscribe((result) => {
4934 + this.#onUpdate(observer, result);
4935 + });
4936 + });
4937 + }
4938 + }
4939 + onUnsubscribe() {
4940 + if (!this.listeners.size) {
4941 + this.destroy();
4942 + }
4943 + }
4944 + destroy() {
4945 + this.listeners = /* @__PURE__ */ new Set();
4946 + this.#observers.forEach((observer) => {
4947 + observer.destroy();
4948 + });
4949 + }
4950 + setQueries(queries, _options, notifyOptions) {
4951 + this.#queries = queries;
4952 + import_notifyManager.notifyManager.batch(() => {
4953 + const prevObservers = this.#observers;
4954 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
4955 + newObserverMatches.forEach(
4956 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
4957 + );
4958 + const newObservers = newObserverMatches.map((match) => match.observer);
4959 + const newResult = newObservers.map(
4960 + (observer) => observer.getCurrentResult()
4961 + );
4962 + const hasIndexChange = newObservers.some(
4963 + (observer, index) => observer !== prevObservers[index]
4964 + );
4965 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
4966 + return;
4967 + }
4968 + this.#observers = newObservers;
4969 + this.#result = newResult;
4970 + if (!this.hasListeners()) {
4971 + return;
4972 + }
4973 + difference(prevObservers, newObservers).forEach((observer) => {
4974 + observer.destroy();
4975 + });
4976 + difference(newObservers, prevObservers).forEach((observer) => {
4977 + observer.subscribe((result) => {
4978 + this.#onUpdate(observer, result);
4979 + });
4980 + });
4981 + this.#notify();
4982 + });
4983 + }
4984 + getCurrentResult() {
4985 + return this.#result;
4986 + }
4987 + getQueries() {
4988 + return this.#observers.map((observer) => observer.getCurrentQuery());
4989 + }
4990 + getObservers() {
4991 + return this.#observers;
4992 + }
4993 + getOptimisticResult(queries, combine) {
4994 + const matches = this.#findMatchingObservers(queries);
4995 + const result = matches.map(
4996 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
4997 + );
4998 + return [
4999 + result,
5000 + (r) => {
5001 + return this.#combineResult(r ?? result, combine);
5002 + },
5003 + () => {
5004 + return matches.map((match, index) => {
5005 + const observerResult = result[index];
5006 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult, (accessedProp) => {
5007 + matches.forEach((m) => {
5008 + m.observer.trackProp(accessedProp);
5009 + });
5010 + }) : observerResult;
5011 + });
5012 + }
5013 + ];
5014 + }
5015 + #combineResult(input, combine) {
5016 + if (combine) {
5017 + if (!this.#combinedResult || this.#result !== this.#lastResult || combine !== this.#lastCombine) {
5018 + this.#lastCombine = combine;
5019 + this.#lastResult = this.#result;
5020 + this.#combinedResult = (0, import_utils.replaceEqualDeep)(
5021 + this.#combinedResult,
5022 + combine(input)
5023 + );
5024 + }
5025 + return this.#combinedResult;
5026 + }
5027 + return input;
5028 + }
5029 + #findMatchingObservers(queries) {
5030 + const prevObservers = this.#observers;
5031 + const prevObserversMap = new Map(
5032 + prevObservers.map((observer) => [observer.options.queryHash, observer])
5033 + );
5034 + const defaultedQueryOptions = queries.map(
5035 + (options) => this.#client.defaultQueryOptions(options)
5036 + );
5037 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
5038 + const match = prevObserversMap.get(defaultedOptions.queryHash);
5039 + if (match != null) {
5040 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
5041 + }
5042 + return [];
5043 + });
5044 + const matchedQueryHashes = new Set(
5045 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
5046 + );
5047 + const unmatchedQueries = defaultedQueryOptions.filter(
5048 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
5049 + );
5050 + const getObserver = (options) => {
5051 + const defaultedOptions = this.#client.defaultQueryOptions(options);
5052 + const currentObserver = this.#observers.find(
5053 + (o) => o.options.queryHash === defaultedOptions.queryHash
5054 + );
5055 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
5056 + };
5057 + const newOrReusedObservers = unmatchedQueries.map((options) => {
5058 + return {
5059 + defaultedQueryOptions: options,
5060 + observer: getObserver(options)
5061 + };
5062 + });
5063 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
5064 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
5065 + }
5066 + #onUpdate(observer, result) {
5067 + const index = this.#observers.indexOf(observer);
5068 + if (index !== -1) {
5069 + this.#result = replaceAt(this.#result, index, result);
5070 + this.#notify();
5071 + }
5072 + }
5073 + #notify() {
5074 + import_notifyManager.notifyManager.batch(() => {
5075 + this.listeners.forEach((listener) => {
5076 + listener(this.#result);
5077 + });
5078 + });
5079 + }
5080 +};
5081 +// Annotate the CommonJS export names for ESM import in node:
5082 +0 && (0);
5083 +//# sourceMappingURL=queriesObserver.cjs.map
5084 +
5085 +/***/ }),
5086 +
5087 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
5088 +/*!*******************************************************************!*\
5089 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
5090 + \*******************************************************************/
5091 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5092 +
5093 +"use strict";
5094 +
5095 +var __defProp = Object.defineProperty;
5096 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5097 +var __getOwnPropNames = Object.getOwnPropertyNames;
5098 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5099 +var __export = (target, all) => {
5100 + for (var name in all)
5101 + __defProp(target, name, { get: all[name], enumerable: true });
5102 +};
5103 +var __copyProps = (to, from, except, desc) => {
5104 + if (from && typeof from === "object" || typeof from === "function") {
5105 + for (let key of __getOwnPropNames(from))
5106 + if (!__hasOwnProp.call(to, key) && key !== except)
5107 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5108 + }
5109 + return to;
5110 +};
5111 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5112 +
5113 +// src/query.ts
5114 +var query_exports = {};
5115 +__export(query_exports, {
5116 + Query: () => Query,
5117 + fetchState: () => fetchState
5118 +});
5119 +module.exports = __toCommonJS(query_exports);
5120 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5121 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5122 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
5123 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
5124 +var Query = class extends import_removable.Removable {
5125 + #initialState;
5126 + #revertState;
5127 + #cache;
5128 + #retryer;
5129 + #defaultOptions;
5130 + #abortSignalConsumed;
5131 + constructor(config) {
5132 + super();
5133 + this.#abortSignalConsumed = false;
5134 + this.#defaultOptions = config.defaultOptions;
5135 + this.setOptions(config.options);
5136 + this.observers = [];
5137 + this.#cache = config.cache;
5138 + this.queryKey = config.queryKey;
5139 + this.queryHash = config.queryHash;
5140 + this.#initialState = config.state || getDefaultState(this.options);
5141 + this.state = this.#initialState;
5142 + this.scheduleGc();
5143 + }
5144 + get meta() {
5145 + return this.options.meta;
5146 + }
5147 + get promise() {
5148 + return this.#retryer?.promise;
5149 + }
5150 + setOptions(options) {
5151 + this.options = { ...this.#defaultOptions, ...options };
5152 + this.updateGcTime(this.options.gcTime);
5153 + }
5154 + optionalRemove() {
5155 + if (!this.observers.length && this.state.fetchStatus === "idle") {
5156 + this.#cache.remove(this);
5157 + }
5158 + }
5159 + setData(newData, options) {
5160 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
5161 + this.#dispatch({
5162 + data,
5163 + type: "success",
5164 + dataUpdatedAt: options?.updatedAt,
5165 + manual: options?.manual
5166 + });
5167 + return data;
5168 + }
5169 + setState(state, setStateOptions) {
5170 + this.#dispatch({ type: "setState", state, setStateOptions });
5171 + }
5172 + cancel(options) {
5173 + const promise = this.#retryer?.promise;
5174 + this.#retryer?.cancel(options);
5175 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
5176 + }
5177 + destroy() {
5178 + super.destroy();
5179 + this.cancel({ silent: true });
5180 + }
5181 + reset() {
5182 + this.destroy();
5183 + this.setState(this.#initialState);
5184 + }
5185 + isActive() {
5186 + return this.observers.some(
5187 + (observer) => (0, import_utils.resolveEnabled)(observer.options.enabled, this) !== false
5188 + );
5189 + }
5190 + isDisabled() {
5191 + return this.getObserversCount() > 0 && !this.isActive();
5192 + }
5193 + isStale() {
5194 + if (this.state.isInvalidated) {
5195 + return true;
5196 + }
5197 + if (this.getObserversCount() > 0) {
5198 + return this.observers.some(
5199 + (observer) => observer.getCurrentResult().isStale
5200 + );
5201 + }
5202 + return this.state.data === void 0;
5203 + }
5204 + isStaleByTime(staleTime = 0) {
5205 + return this.state.isInvalidated || this.state.data === void 0 || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
5206 + }
5207 + onFocus() {
5208 + const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());
5209 + observer?.refetch({ cancelRefetch: false });
5210 + this.#retryer?.continue();
5211 + }
5212 + onOnline() {
5213 + const observer = this.observers.find((x) => x.shouldFetchOnReconnect());
5214 + observer?.refetch({ cancelRefetch: false });
5215 + this.#retryer?.continue();
5216 + }
5217 + addObserver(observer) {
5218 + if (!this.observers.includes(observer)) {
5219 + this.observers.push(observer);
5220 + this.clearGcTimeout();
5221 + this.#cache.notify({ type: "observerAdded", query: this, observer });
5222 + }
5223 + }
5224 + removeObserver(observer) {
5225 + if (this.observers.includes(observer)) {
5226 + this.observers = this.observers.filter((x) => x !== observer);
5227 + if (!this.observers.length) {
5228 + if (this.#retryer) {
5229 + if (this.#abortSignalConsumed) {
5230 + this.#retryer.cancel({ revert: true });
5231 + } else {
5232 + this.#retryer.cancelRetry();
5233 + }
5234 + }
5235 + this.scheduleGc();
5236 + }
5237 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
5238 + }
5239 + }
5240 + getObserversCount() {
5241 + return this.observers.length;
5242 + }
5243 + invalidate() {
5244 + if (!this.state.isInvalidated) {
5245 + this.#dispatch({ type: "invalidate" });
5246 + }
5247 + }
5248 + fetch(options, fetchOptions) {
5249 + if (this.state.fetchStatus !== "idle") {
5250 + if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) {
5251 + this.cancel({ silent: true });
5252 + } else if (this.#retryer) {
5253 + this.#retryer.continueRetry();
5254 + return this.#retryer.promise;
5255 + }
5256 + }
5257 + if (options) {
5258 + this.setOptions(options);
5259 + }
5260 + if (!this.options.queryFn) {
5261 + const observer = this.observers.find((x) => x.options.queryFn);
5262 + if (observer) {
5263 + this.setOptions(observer.options);
5264 + }
5265 + }
5266 + if (true) {
5267 + if (!Array.isArray(this.options.queryKey)) {
5268 + console.error(
5269 + `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']`
5270 + );
5271 + }
5272 + }
5273 + const abortController = new AbortController();
5274 + const addSignalProperty = (object) => {
5275 + Object.defineProperty(object, "signal", {
5276 + enumerable: true,
5277 + get: () => {
5278 + this.#abortSignalConsumed = true;
5279 + return abortController.signal;
5280 + }
5281 + });
5282 + };
5283 + const fetchFn = () => {
5284 + const queryFn = (0, import_utils.ensureQueryFn)(this.options, fetchOptions);
5285 + const queryFnContext = {
5286 + queryKey: this.queryKey,
5287 + meta: this.meta
5288 + };
5289 + addSignalProperty(queryFnContext);
5290 + this.#abortSignalConsumed = false;
5291 + if (this.options.persister) {
5292 + return this.options.persister(
5293 + queryFn,
5294 + queryFnContext,
5295 + this
5296 + );
5297 + }
5298 + return queryFn(queryFnContext);
5299 + };
5300 + const context = {
5301 + fetchOptions,
5302 + options: this.options,
5303 + queryKey: this.queryKey,
5304 + state: this.state,
5305 + fetchFn
5306 + };
5307 + addSignalProperty(context);
5308 + this.options.behavior?.onFetch(
5309 + context,
5310 + this
5311 + );
5312 + this.#revertState = this.state;
5313 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
5314 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
5315 + }
5316 + const onError = (error) => {
5317 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
5318 + this.#dispatch({
5319 + type: "error",
5320 + error
5321 + });
5322 + }
5323 + if (!(0, import_retryer.isCancelledError)(error)) {
5324 + this.#cache.config.onError?.(
5325 + error,
5326 + this
5327 + );
5328 + this.#cache.config.onSettled?.(
5329 + this.state.data,
5330 + error,
5331 + this
5332 + );
5333 + }
5334 + if (!this.isFetchingOptimistic) {
5335 + this.scheduleGc();
5336 + }
5337 + this.isFetchingOptimistic = false;
5338 + };
5339 + this.#retryer = (0, import_retryer.createRetryer)({
5340 + initialPromise: fetchOptions?.initialPromise,
5341 + fn: context.fetchFn,
5342 + abort: abortController.abort.bind(abortController),
5343 + onSuccess: (data) => {
5344 + if (data === void 0) {
5345 + if (true) {
5346 + console.error(
5347 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
5348 + );
5349 + }
5350 + onError(new Error(`${this.queryHash} data is undefined`));
5351 + return;
5352 + }
5353 + this.setData(data);
5354 + this.#cache.config.onSuccess?.(data, this);
5355 + this.#cache.config.onSettled?.(
5356 + data,
5357 + this.state.error,
5358 + this
5359 + );
5360 + if (!this.isFetchingOptimistic) {
5361 + this.scheduleGc();
5362 + }
5363 + this.isFetchingOptimistic = false;
5364 + },
5365 + onError,
5366 + onFail: (failureCount, error) => {
5367 + this.#dispatch({ type: "failed", failureCount, error });
5368 + },
5369 + onPause: () => {
5370 + this.#dispatch({ type: "pause" });
5371 + },
5372 + onContinue: () => {
5373 + this.#dispatch({ type: "continue" });
5374 + },
5375 + retry: context.options.retry,
5376 + retryDelay: context.options.retryDelay,
5377 + networkMode: context.options.networkMode,
5378 + canRun: () => true
5379 + });
5380 + return this.#retryer.start();
5381 + }
5382 + #dispatch(action) {
5383 + const reducer = (state) => {
5384 + switch (action.type) {
5385 + case "failed":
5386 + return {
5387 + ...state,
5388 + fetchFailureCount: action.failureCount,
5389 + fetchFailureReason: action.error
5390 + };
5391 + case "pause":
5392 + return {
5393 + ...state,
5394 + fetchStatus: "paused"
5395 + };
5396 + case "continue":
5397 + return {
5398 + ...state,
5399 + fetchStatus: "fetching"
5400 + };
5401 + case "fetch":
5402 + return {
5403 + ...state,
5404 + ...fetchState(state.data, this.options),
5405 + fetchMeta: action.meta ?? null
5406 + };
5407 + case "success":
5408 + return {
5409 + ...state,
5410 + data: action.data,
5411 + dataUpdateCount: state.dataUpdateCount + 1,
5412 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
5413 + error: null,
5414 + isInvalidated: false,
5415 + status: "success",
5416 + ...!action.manual && {
5417 + fetchStatus: "idle",
5418 + fetchFailureCount: 0,
5419 + fetchFailureReason: null
5420 + }
5421 + };
5422 + case "error":
5423 + const error = action.error;
5424 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
5425 + return { ...this.#revertState, fetchStatus: "idle" };
5426 + }
5427 + return {
5428 + ...state,
5429 + error,
5430 + errorUpdateCount: state.errorUpdateCount + 1,
5431 + errorUpdatedAt: Date.now(),
5432 + fetchFailureCount: state.fetchFailureCount + 1,
5433 + fetchFailureReason: error,
5434 + fetchStatus: "idle",
5435 + status: "error"
5436 + };
5437 + case "invalidate":
5438 + return {
5439 + ...state,
5440 + isInvalidated: true
5441 + };
5442 + case "setState":
5443 + return {
5444 + ...state,
5445 + ...action.state
5446 + };
5447 + }
5448 + };
5449 + this.state = reducer(this.state);
5450 + import_notifyManager.notifyManager.batch(() => {
5451 + this.observers.forEach((observer) => {
5452 + observer.onQueryUpdate();
5453 + });
5454 + this.#cache.notify({ query: this, type: "updated", action });
5455 + });
5456 + }
5457 +};
5458 +function fetchState(data, options) {
5459 + return {
5460 + fetchFailureCount: 0,
5461 + fetchFailureReason: null,
5462 + fetchStatus: (0, import_retryer.canFetch)(options.networkMode) ? "fetching" : "paused",
5463 + ...data === void 0 && {
5464 + error: null,
5465 + status: "pending"
5466 + }
5467 + };
5468 +}
5469 +function getDefaultState(options) {
5470 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
5471 + const hasData = data !== void 0;
5472 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
5473 + return {
5474 + data,
5475 + dataUpdateCount: 0,
5476 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
5477 + error: null,
5478 + errorUpdateCount: 0,
5479 + errorUpdatedAt: 0,
5480 + fetchFailureCount: 0,
5481 + fetchFailureReason: null,
5482 + fetchMeta: null,
5483 + isInvalidated: false,
5484 + status: hasData ? "success" : "pending",
5485 + fetchStatus: "idle"
5486 + };
5487 +}
5488 +// Annotate the CommonJS export names for ESM import in node:
5489 +0 && (0);
5490 +//# sourceMappingURL=query.cjs.map
5491 +
5492 +/***/ }),
5493 +
5494 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
5495 +/*!************************************************************************!*\
5496 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
5497 + \************************************************************************/
5498 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5499 +
5500 +"use strict";
5501 +
5502 +var __defProp = Object.defineProperty;
5503 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5504 +var __getOwnPropNames = Object.getOwnPropertyNames;
5505 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5506 +var __export = (target, all) => {
5507 + for (var name in all)
5508 + __defProp(target, name, { get: all[name], enumerable: true });
5509 +};
5510 +var __copyProps = (to, from, except, desc) => {
5511 + if (from && typeof from === "object" || typeof from === "function") {
5512 + for (let key of __getOwnPropNames(from))
5513 + if (!__hasOwnProp.call(to, key) && key !== except)
5514 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5515 + }
5516 + return to;
5517 +};
5518 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5519 +
5520 +// src/queryCache.ts
5521 +var queryCache_exports = {};
5522 +__export(queryCache_exports, {
5523 + QueryCache: () => QueryCache
5524 +});
5525 +module.exports = __toCommonJS(queryCache_exports);
5526 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5527 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5528 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5529 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5530 +var QueryCache = class extends import_subscribable.Subscribable {
5531 + constructor(config = {}) {
5532 + super();
5533 + this.config = config;
5534 + this.#queries = /* @__PURE__ */ new Map();
5535 + }
5536 + #queries;
5537 + build(client, options, state) {
5538 + const queryKey = options.queryKey;
5539 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
5540 + let query = this.get(queryHash);
5541 + if (!query) {
5542 + query = new import_query.Query({
5543 + cache: this,
5544 + queryKey,
5545 + queryHash,
5546 + options: client.defaultQueryOptions(options),
5547 + state,
5548 + defaultOptions: client.getQueryDefaults(queryKey)
5549 + });
5550 + this.add(query);
5551 + }
5552 + return query;
5553 + }
5554 + add(query) {
5555 + if (!this.#queries.has(query.queryHash)) {
5556 + this.#queries.set(query.queryHash, query);
5557 + this.notify({
5558 + type: "added",
5559 + query
5560 + });
5561 + }
5562 + }
5563 + remove(query) {
5564 + const queryInMap = this.#queries.get(query.queryHash);
5565 + if (queryInMap) {
5566 + query.destroy();
5567 + if (queryInMap === query) {
5568 + this.#queries.delete(query.queryHash);
5569 + }
5570 + this.notify({ type: "removed", query });
5571 + }
5572 + }
5573 + clear() {
5574 + import_notifyManager.notifyManager.batch(() => {
5575 + this.getAll().forEach((query) => {
5576 + this.remove(query);
5577 + });
5578 + });
5579 + }
5580 + get(queryHash) {
5581 + return this.#queries.get(queryHash);
5582 + }
5583 + getAll() {
5584 + return [...this.#queries.values()];
5585 + }
5586 + find(filters) {
5587 + const defaultedFilters = { exact: true, ...filters };
5588 + return this.getAll().find(
5589 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
5590 + );
5591 + }
5592 + findAll(filters = {}) {
5593 + const queries = this.getAll();
5594 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
5595 + }
5596 + notify(event) {
5597 + import_notifyManager.notifyManager.batch(() => {
5598 + this.listeners.forEach((listener) => {
5599 + listener(event);
5600 + });
5601 + });
5602 + }
5603 + onFocus() {
5604 + import_notifyManager.notifyManager.batch(() => {
5605 + this.getAll().forEach((query) => {
5606 + query.onFocus();
5607 + });
5608 + });
5609 + }
5610 + onOnline() {
5611 + import_notifyManager.notifyManager.batch(() => {
5612 + this.getAll().forEach((query) => {
5613 + query.onOnline();
5614 + });
5615 + });
5616 + }
5617 +};
5618 +// Annotate the CommonJS export names for ESM import in node:
5619 +0 && (0);
5620 +//# sourceMappingURL=queryCache.cjs.map
5621 +
5622 +/***/ }),
5623 +
5624 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
5625 +/*!*************************************************************************!*\
5626 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
5627 + \*************************************************************************/
5628 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5629 +
5630 +"use strict";
5631 +
5632 +var __defProp = Object.defineProperty;
5633 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5634 +var __getOwnPropNames = Object.getOwnPropertyNames;
5635 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5636 +var __export = (target, all) => {
5637 + for (var name in all)
5638 + __defProp(target, name, { get: all[name], enumerable: true });
5639 +};
5640 +var __copyProps = (to, from, except, desc) => {
5641 + if (from && typeof from === "object" || typeof from === "function") {
5642 + for (let key of __getOwnPropNames(from))
5643 + if (!__hasOwnProp.call(to, key) && key !== except)
5644 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5645 + }
5646 + return to;
5647 +};
5648 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5649 +
5650 +// src/queryClient.ts
5651 +var queryClient_exports = {};
5652 +__export(queryClient_exports, {
5653 + QueryClient: () => QueryClient
5654 +});
5655 +module.exports = __toCommonJS(queryClient_exports);
5656 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5657 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
5658 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
5659 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5660 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
5661 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5662 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
5663 +var QueryClient = class {
5664 + #queryCache;
5665 + #mutationCache;
5666 + #defaultOptions;
5667 + #queryDefaults;
5668 + #mutationDefaults;
5669 + #mountCount;
5670 + #unsubscribeFocus;
5671 + #unsubscribeOnline;
5672 + constructor(config = {}) {
5673 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
5674 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
5675 + this.#defaultOptions = config.defaultOptions || {};
5676 + this.#queryDefaults = /* @__PURE__ */ new Map();
5677 + this.#mutationDefaults = /* @__PURE__ */ new Map();
5678 + this.#mountCount = 0;
5679 + }
5680 + mount() {
5681 + this.#mountCount++;
5682 + if (this.#mountCount !== 1)
5683 + return;
5684 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(async (focused) => {
5685 + if (focused) {
5686 + await this.resumePausedMutations();
5687 + this.#queryCache.onFocus();
5688 + }
5689 + });
5690 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(async (online) => {
5691 + if (online) {
5692 + await this.resumePausedMutations();
5693 + this.#queryCache.onOnline();
5694 + }
5695 + });
5696 + }
5697 + unmount() {
5698 + this.#mountCount--;
5699 + if (this.#mountCount !== 0)
5700 + return;
5701 + this.#unsubscribeFocus?.();
5702 + this.#unsubscribeFocus = void 0;
5703 + this.#unsubscribeOnline?.();
5704 + this.#unsubscribeOnline = void 0;
5705 + }
5706 + isFetching(filters) {
5707 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
5708 + }
5709 + isMutating(filters) {
5710 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
5711 + }
5712 + getQueryData(queryKey) {
5713 + const options = this.defaultQueryOptions({ queryKey });
5714 + return this.#queryCache.get(options.queryHash)?.state.data;
5715 + }
5716 + ensureQueryData(options) {
5717 + const cachedData = this.getQueryData(options.queryKey);
5718 + if (cachedData === void 0)
5719 + return this.fetchQuery(options);
5720 + else {
5721 + const defaultedOptions = this.defaultQueryOptions(options);
5722 + const query = this.#queryCache.build(this, defaultedOptions);
5723 + if (options.revalidateIfStale && query.isStaleByTime((0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query))) {
5724 + void this.prefetchQuery(defaultedOptions);
5725 + }
5726 + return Promise.resolve(cachedData);
5727 + }
5728 + }
5729 + getQueriesData(filters) {
5730 + return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {
5731 + const data = state.data;
5732 + return [queryKey, data];
5733 + });
5734 + }
5735 + setQueryData(queryKey, updater, options) {
5736 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
5737 + const query = this.#queryCache.get(
5738 + defaultedOptions.queryHash
5739 + );
5740 + const prevData = query?.state.data;
5741 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
5742 + if (data === void 0) {
5743 + return void 0;
5744 + }
5745 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
5746 + }
5747 + setQueriesData(filters, updater, options) {
5748 + return import_notifyManager.notifyManager.batch(
5749 + () => this.#queryCache.findAll(filters).map(({ queryKey }) => [
5750 + queryKey,
5751 + this.setQueryData(queryKey, updater, options)
5752 + ])
5753 + );
5754 + }
5755 + getQueryState(queryKey) {
5756 + const options = this.defaultQueryOptions({ queryKey });
5757 + return this.#queryCache.get(options.queryHash)?.state;
5758 + }
5759 + removeQueries(filters) {
5760 + const queryCache = this.#queryCache;
5761 + import_notifyManager.notifyManager.batch(() => {
5762 + queryCache.findAll(filters).forEach((query) => {
5763 + queryCache.remove(query);
5764 + });
5765 + });
5766 + }
5767 + resetQueries(filters, options) {
5768 + const queryCache = this.#queryCache;
5769 + const refetchFilters = {
5770 + type: "active",
5771 + ...filters
5772 + };
5773 + return import_notifyManager.notifyManager.batch(() => {
5774 + queryCache.findAll(filters).forEach((query) => {
5775 + query.reset();
5776 + });
5777 + return this.refetchQueries(refetchFilters, options);
5778 + });
5779 + }
5780 + cancelQueries(filters = {}, cancelOptions = {}) {
5781 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
5782 + const promises = import_notifyManager.notifyManager.batch(
5783 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
5784 + );
5785 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
5786 + }
5787 + invalidateQueries(filters = {}, options = {}) {
5788 + return import_notifyManager.notifyManager.batch(() => {
5789 + this.#queryCache.findAll(filters).forEach((query) => {
5790 + query.invalidate();
5791 + });
5792 + if (filters.refetchType === "none") {
5793 + return Promise.resolve();
5794 + }
5795 + const refetchFilters = {
5796 + ...filters,
5797 + type: filters.refetchType ?? filters.type ?? "active"
5798 + };
5799 + return this.refetchQueries(refetchFilters, options);
5800 + });
5801 + }
5802 + refetchQueries(filters = {}, options) {
5803 + const fetchOptions = {
5804 + ...options,
5805 + cancelRefetch: options?.cancelRefetch ?? true
5806 + };
5807 + const promises = import_notifyManager.notifyManager.batch(
5808 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
5809 + let promise = query.fetch(void 0, fetchOptions);
5810 + if (!fetchOptions.throwOnError) {
5811 + promise = promise.catch(import_utils.noop);
5812 + }
5813 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
5814 + })
5815 + );
5816 + return Promise.all(promises).then(import_utils.noop);
5817 + }
5818 + fetchQuery(options) {
5819 + const defaultedOptions = this.defaultQueryOptions(options);
5820 + if (defaultedOptions.retry === void 0) {
5821 + defaultedOptions.retry = false;
5822 + }
5823 + const query = this.#queryCache.build(this, defaultedOptions);
5824 + return query.isStaleByTime(
5825 + (0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query)
5826 + ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
5827 + }
5828 + prefetchQuery(options) {
5829 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
5830 + }
5831 + fetchInfiniteQuery(options) {
5832 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
5833 + return this.fetchQuery(options);
5834 + }
5835 + prefetchInfiniteQuery(options) {
5836 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
5837 + }
5838 + resumePausedMutations() {
5839 + if (import_onlineManager.onlineManager.isOnline()) {
5840 + return this.#mutationCache.resumePausedMutations();
5841 + }
5842 + return Promise.resolve();
5843 + }
5844 + getQueryCache() {
5845 + return this.#queryCache;
5846 + }
5847 + getMutationCache() {
5848 + return this.#mutationCache;
5849 + }
5850 + getDefaultOptions() {
5851 + return this.#defaultOptions;
5852 + }
5853 + setDefaultOptions(options) {
5854 + this.#defaultOptions = options;
5855 + }
5856 + setQueryDefaults(queryKey, options) {
5857 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
5858 + queryKey,
5859 + defaultOptions: options
5860 + });
5861 + }
5862 + getQueryDefaults(queryKey) {
5863 + const defaults = [...this.#queryDefaults.values()];
5864 + let result = {};
5865 + defaults.forEach((queryDefault) => {
5866 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
5867 + result = { ...result, ...queryDefault.defaultOptions };
5868 + }
5869 + });
5870 + return result;
5871 + }
5872 + setMutationDefaults(mutationKey, options) {
5873 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
5874 + mutationKey,
5875 + defaultOptions: options
5876 + });
5877 + }
5878 + getMutationDefaults(mutationKey) {
5879 + const defaults = [...this.#mutationDefaults.values()];
5880 + let result = {};
5881 + defaults.forEach((queryDefault) => {
5882 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
5883 + result = { ...result, ...queryDefault.defaultOptions };
5884 + }
5885 + });
5886 + return result;
5887 + }
5888 + defaultQueryOptions(options) {
5889 + if (options._defaulted) {
5890 + return options;
5891 + }
5892 + const defaultedOptions = {
5893 + ...this.#defaultOptions.queries,
5894 + ...this.getQueryDefaults(options.queryKey),
5895 + ...options,
5896 + _defaulted: true
5897 + };
5898 + if (!defaultedOptions.queryHash) {
5899 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
5900 + defaultedOptions.queryKey,
5901 + defaultedOptions
5902 + );
5903 + }
5904 + if (defaultedOptions.refetchOnReconnect === void 0) {
5905 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
5906 + }
5907 + if (defaultedOptions.throwOnError === void 0) {
5908 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
5909 + }
5910 + if (!defaultedOptions.networkMode && defaultedOptions.persister) {
5911 + defaultedOptions.networkMode = "offlineFirst";
5912 + }
5913 + if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === import_utils.skipToken) {
5914 + defaultedOptions.enabled = false;
5915 + }
5916 + return defaultedOptions;
5917 + }
5918 + defaultMutationOptions(options) {
5919 + if (options?._defaulted) {
5920 + return options;
5921 + }
5922 + return {
5923 + ...this.#defaultOptions.mutations,
5924 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
5925 + ...options,
5926 + _defaulted: true
5927 + };
5928 + }
5929 + clear() {
5930 + this.#queryCache.clear();
5931 + this.#mutationCache.clear();
5932 + }
5933 +};
5934 +// Annotate the CommonJS export names for ESM import in node:
5935 +0 && (0);
5936 +//# sourceMappingURL=queryClient.cjs.map
5937 +
5938 +/***/ }),
5939 +
5940 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
5941 +/*!***************************************************************************!*\
5942 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
5943 + \***************************************************************************/
5944 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5945 +
5946 +"use strict";
5947 +
5948 +var __defProp = Object.defineProperty;
5949 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5950 +var __getOwnPropNames = Object.getOwnPropertyNames;
5951 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5952 +var __export = (target, all) => {
5953 + for (var name in all)
5954 + __defProp(target, name, { get: all[name], enumerable: true });
5955 +};
5956 +var __copyProps = (to, from, except, desc) => {
5957 + if (from && typeof from === "object" || typeof from === "function") {
5958 + for (let key of __getOwnPropNames(from))
5959 + if (!__hasOwnProp.call(to, key) && key !== except)
5960 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5961 + }
5962 + return to;
5963 +};
5964 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5965 +
5966 +// src/queryObserver.ts
5967 +var queryObserver_exports = {};
5968 +__export(queryObserver_exports, {
5969 + QueryObserver: () => QueryObserver
5970 +});
5971 +module.exports = __toCommonJS(queryObserver_exports);
5972 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5973 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5974 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5975 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5976 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5977 +var QueryObserver = class extends import_subscribable.Subscribable {
5978 + constructor(client, options) {
5979 + super();
5980 + this.options = options;
5981 + this.#client = client;
5982 + this.#selectError = null;
5983 + this.bindMethods();
5984 + this.setOptions(options);
5985 + }
5986 + #client;
5987 + #currentQuery = void 0;
5988 + #currentQueryInitialState = void 0;
5989 + #currentResult = void 0;
5990 + #currentResultState;
5991 + #currentResultOptions;
5992 + #selectError;
5993 + #selectFn;
5994 + #selectResult;
5995 + // This property keeps track of the last query with defined data.
5996 + // It will be used to pass the previous data and query to the placeholder function between renders.
5997 + #lastQueryWithDefinedData;
5998 + #staleTimeoutId;
5999 + #refetchIntervalId;
6000 + #currentRefetchInterval;
6001 + #trackedProps = /* @__PURE__ */ new Set();
6002 + bindMethods() {
6003 + this.refetch = this.refetch.bind(this);
6004 + }
6005 + onSubscribe() {
6006 + if (this.listeners.size === 1) {
6007 + this.#currentQuery.addObserver(this);
6008 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
6009 + this.#executeFetch();
6010 + } else {
6011 + this.updateResult();
6012 + }
6013 + this.#updateTimers();
6014 + }
6015 + }
6016 + onUnsubscribe() {
6017 + if (!this.hasListeners()) {
6018 + this.destroy();
6019 + }
6020 + }
6021 + shouldFetchOnReconnect() {
6022 + return shouldFetchOn(
6023 + this.#currentQuery,
6024 + this.options,
6025 + this.options.refetchOnReconnect
6026 + );
6027 + }
6028 + shouldFetchOnWindowFocus() {
6029 + return shouldFetchOn(
6030 + this.#currentQuery,
6031 + this.options,
6032 + this.options.refetchOnWindowFocus
6033 + );
6034 + }
6035 + destroy() {
6036 + this.listeners = /* @__PURE__ */ new Set();
6037 + this.#clearStaleTimeout();
6038 + this.#clearRefetchInterval();
6039 + this.#currentQuery.removeObserver(this);
6040 + }
6041 + setOptions(options, notifyOptions) {
6042 + const prevOptions = this.options;
6043 + const prevQuery = this.#currentQuery;
6044 + this.options = this.#client.defaultQueryOptions(options);
6045 + 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") {
6046 + throw new Error(
6047 + "Expected enabled to be a boolean or a callback that returns a boolean"
6048 + );
6049 + }
6050 + this.#updateQuery();
6051 + this.#currentQuery.setOptions(this.options);
6052 + if (prevOptions._defaulted && !(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
6053 + this.#client.getQueryCache().notify({
6054 + type: "observerOptionsUpdated",
6055 + query: this.#currentQuery,
6056 + observer: this
6057 + });
6058 + }
6059 + const mounted = this.hasListeners();
6060 + if (mounted && shouldFetchOptionally(
6061 + this.#currentQuery,
6062 + prevQuery,
6063 + this.options,
6064 + prevOptions
6065 + )) {
6066 + this.#executeFetch();
6067 + }
6068 + this.updateResult(notifyOptions);
6069 + 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))) {
6070 + this.#updateStaleTimeout();
6071 + }
6072 + const nextRefetchInterval = this.#computeRefetchInterval();
6073 + 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)) {
6074 + this.#updateRefetchInterval(nextRefetchInterval);
6075 + }
6076 + }
6077 + getOptimisticResult(options) {
6078 + const query = this.#client.getQueryCache().build(this.#client, options);
6079 + const result = this.createResult(query, options);
6080 + if (shouldAssignObserverCurrentProperties(this, result)) {
6081 + this.#currentResult = result;
6082 + this.#currentResultOptions = this.options;
6083 + this.#currentResultState = this.#currentQuery.state;
6084 + }
6085 + return result;
6086 + }
6087 + getCurrentResult() {
6088 + return this.#currentResult;
6089 + }
6090 + trackResult(result, onPropTracked) {
6091 + const trackedResult = {};
6092 + Object.keys(result).forEach((key) => {
6093 + Object.defineProperty(trackedResult, key, {
6094 + configurable: false,
6095 + enumerable: true,
6096 + get: () => {
6097 + this.trackProp(key);
6098 + onPropTracked?.(key);
6099 + return result[key];
6100 + }
6101 + });
6102 + });
6103 + return trackedResult;
6104 + }
6105 + trackProp(key) {
6106 + this.#trackedProps.add(key);
6107 + }
6108 + getCurrentQuery() {
6109 + return this.#currentQuery;
6110 + }
6111 + refetch({ ...options } = {}) {
6112 + return this.fetch({
6113 + ...options
6114 + });
6115 + }
6116 + fetchOptimistic(options) {
6117 + const defaultedOptions = this.#client.defaultQueryOptions(options);
6118 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
6119 + query.isFetchingOptimistic = true;
6120 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
6121 + }
6122 + fetch(fetchOptions) {
6123 + return this.#executeFetch({
6124 + ...fetchOptions,
6125 + cancelRefetch: fetchOptions.cancelRefetch ?? true
6126 + }).then(() => {
6127 + this.updateResult();
6128 + return this.#currentResult;
6129 + });
6130 + }
6131 + #executeFetch(fetchOptions) {
6132 + this.#updateQuery();
6133 + let promise = this.#currentQuery.fetch(
6134 + this.options,
6135 + fetchOptions
6136 + );
6137 + if (!fetchOptions?.throwOnError) {
6138 + promise = promise.catch(import_utils.noop);
6139 + }
6140 + return promise;
6141 + }
6142 + #updateStaleTimeout() {
6143 + this.#clearStaleTimeout();
6144 + const staleTime = (0, import_utils.resolveStaleTime)(
6145 + this.options.staleTime,
6146 + this.#currentQuery
6147 + );
6148 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(staleTime)) {
6149 + return;
6150 + }
6151 + const time = (0, import_utils.timeUntilStale)(this.#currentResult.dataUpdatedAt, staleTime);
6152 + const timeout = time + 1;
6153 + this.#staleTimeoutId = setTimeout(() => {
6154 + if (!this.#currentResult.isStale) {
6155 + this.updateResult();
6156 + }
6157 + }, timeout);
6158 + }
6159 + #computeRefetchInterval() {
6160 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
6161 + }
6162 + #updateRefetchInterval(nextInterval) {
6163 + this.#clearRefetchInterval();
6164 + this.#currentRefetchInterval = nextInterval;
6165 + if (import_utils.isServer || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
6166 + return;
6167 + }
6168 + this.#refetchIntervalId = setInterval(() => {
6169 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
6170 + this.#executeFetch();
6171 + }
6172 + }, this.#currentRefetchInterval);
6173 + }
6174 + #updateTimers() {
6175 + this.#updateStaleTimeout();
6176 + this.#updateRefetchInterval(this.#computeRefetchInterval());
6177 + }
6178 + #clearStaleTimeout() {
6179 + if (this.#staleTimeoutId) {
6180 + clearTimeout(this.#staleTimeoutId);
6181 + this.#staleTimeoutId = void 0;
6182 + }
6183 + }
6184 + #clearRefetchInterval() {
6185 + if (this.#refetchIntervalId) {
6186 + clearInterval(this.#refetchIntervalId);
6187 + this.#refetchIntervalId = void 0;
6188 + }
6189 + }
6190 + createResult(query, options) {
6191 + const prevQuery = this.#currentQuery;
6192 + const prevOptions = this.options;
6193 + const prevResult = this.#currentResult;
6194 + const prevResultState = this.#currentResultState;
6195 + const prevResultOptions = this.#currentResultOptions;
6196 + const queryChange = query !== prevQuery;
6197 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
6198 + const { state } = query;
6199 + let newState = { ...state };
6200 + let isPlaceholderData = false;
6201 + let data;
6202 + if (options._optimisticResults) {
6203 + const mounted = this.hasListeners();
6204 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
6205 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
6206 + if (fetchOnMount || fetchOptionally) {
6207 + newState = {
6208 + ...newState,
6209 + ...(0, import_query.fetchState)(state.data, query.options)
6210 + };
6211 + }
6212 + if (options._optimisticResults === "isRestoring") {
6213 + newState.fetchStatus = "idle";
6214 + }
6215 + }
6216 + let { error, errorUpdatedAt, status } = newState;
6217 + if (options.select && newState.data !== void 0) {
6218 + if (prevResult && newState.data === prevResultState?.data && options.select === this.#selectFn) {
6219 + data = this.#selectResult;
6220 + } else {
6221 + try {
6222 + this.#selectFn = options.select;
6223 + data = options.select(newState.data);
6224 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
6225 + this.#selectResult = data;
6226 + this.#selectError = null;
6227 + } catch (selectError) {
6228 + this.#selectError = selectError;
6229 + }
6230 + }
6231 + } else {
6232 + data = newState.data;
6233 + }
6234 + if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
6235 + let placeholderData;
6236 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
6237 + placeholderData = prevResult.data;
6238 + } else {
6239 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
6240 + this.#lastQueryWithDefinedData?.state.data,
6241 + this.#lastQueryWithDefinedData
6242 + ) : options.placeholderData;
6243 + if (options.select && placeholderData !== void 0) {
6244 + try {
6245 + placeholderData = options.select(placeholderData);
6246 + this.#selectError = null;
6247 + } catch (selectError) {
6248 + this.#selectError = selectError;
6249 + }
6250 + }
6251 + }
6252 + if (placeholderData !== void 0) {
6253 + status = "success";
6254 + data = (0, import_utils.replaceData)(
6255 + prevResult?.data,
6256 + placeholderData,
6257 + options
6258 + );
6259 + isPlaceholderData = true;
6260 + }
6261 + }
6262 + if (this.#selectError) {
6263 + error = this.#selectError;
6264 + data = this.#selectResult;
6265 + errorUpdatedAt = Date.now();
6266 + status = "error";
6267 + }
6268 + const isFetching = newState.fetchStatus === "fetching";
6269 + const isPending = status === "pending";
6270 + const isError = status === "error";
6271 + const isLoading = isPending && isFetching;
6272 + const hasData = data !== void 0;
6273 + const result = {
6274 + status,
6275 + fetchStatus: newState.fetchStatus,
6276 + isPending,
6277 + isSuccess: status === "success",
6278 + isError,
6279 + isInitialLoading: isLoading,
6280 + isLoading,
6281 + data,
6282 + dataUpdatedAt: newState.dataUpdatedAt,
6283 + error,
6284 + errorUpdatedAt,
6285 + failureCount: newState.fetchFailureCount,
6286 + failureReason: newState.fetchFailureReason,
6287 + errorUpdateCount: newState.errorUpdateCount,
6288 + isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
6289 + isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
6290 + isFetching,
6291 + isRefetching: isFetching && !isPending,
6292 + isLoadingError: isError && !hasData,
6293 + isPaused: newState.fetchStatus === "paused",
6294 + isPlaceholderData,
6295 + isRefetchError: isError && hasData,
6296 + isStale: isStale(query, options),
6297 + refetch: this.refetch
6298 + };
6299 + return result;
6300 + }
6301 + updateResult(notifyOptions) {
6302 + const prevResult = this.#currentResult;
6303 + const nextResult = this.createResult(this.#currentQuery, this.options);
6304 + this.#currentResultState = this.#currentQuery.state;
6305 + this.#currentResultOptions = this.options;
6306 + if (this.#currentResultState.data !== void 0) {
6307 + this.#lastQueryWithDefinedData = this.#currentQuery;
6308 + }
6309 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
6310 + return;
6311 + }
6312 + this.#currentResult = nextResult;
6313 + const defaultNotifyOptions = {};
6314 + const shouldNotifyListeners = () => {
6315 + if (!prevResult) {
6316 + return true;
6317 + }
6318 + const { notifyOnChangeProps } = this.options;
6319 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
6320 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
6321 + return true;
6322 + }
6323 + const includedProps = new Set(
6324 + notifyOnChangePropsValue ?? this.#trackedProps
6325 + );
6326 + if (this.options.throwOnError) {
6327 + includedProps.add("error");
6328 + }
6329 + return Object.keys(this.#currentResult).some((key) => {
6330 + const typedKey = key;
6331 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
6332 + return changed && includedProps.has(typedKey);
6333 + });
6334 + };
6335 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
6336 + defaultNotifyOptions.listeners = true;
6337 + }
6338 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
6339 + }
6340 + #updateQuery() {
6341 + const query = this.#client.getQueryCache().build(this.#client, this.options);
6342 + if (query === this.#currentQuery) {
6343 + return;
6344 + }
6345 + const prevQuery = this.#currentQuery;
6346 + this.#currentQuery = query;
6347 + this.#currentQueryInitialState = query.state;
6348 + if (this.hasListeners()) {
6349 + prevQuery?.removeObserver(this);
6350 + query.addObserver(this);
6351 + }
6352 + }
6353 + onQueryUpdate() {
6354 + this.updateResult();
6355 + if (this.hasListeners()) {
6356 + this.#updateTimers();
6357 + }
6358 + }
6359 + #notify(notifyOptions) {
6360 + import_notifyManager.notifyManager.batch(() => {
6361 + if (notifyOptions.listeners) {
6362 + this.listeners.forEach((listener) => {
6363 + listener(this.#currentResult);
6364 + });
6365 + }
6366 + this.#client.getQueryCache().notify({
6367 + query: this.#currentQuery,
6368 + type: "observerResultsUpdated"
6369 + });
6370 + });
6371 + }
6372 +};
6373 +function shouldLoadOnMount(query, options) {
6374 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
6375 +}
6376 +function shouldFetchOnMount(query, options) {
6377 + return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
6378 +}
6379 +function shouldFetchOn(query, options, field) {
6380 + if ((0, import_utils.resolveEnabled)(options.enabled, query) !== false) {
6381 + const value = typeof field === "function" ? field(query) : field;
6382 + return value === "always" || value !== false && isStale(query, options);
6383 + }
6384 + return false;
6385 +}
6386 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
6387 + return (query !== prevQuery || (0, import_utils.resolveEnabled)(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
6388 +}
6389 +function isStale(query, options) {
6390 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.isStaleByTime((0, import_utils.resolveStaleTime)(options.staleTime, query));
6391 +}
6392 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
6393 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
6394 + return true;
6395 + }
6396 + return false;
6397 +}
6398 +// Annotate the CommonJS export names for ESM import in node:
6399 +0 && (0);
6400 +//# sourceMappingURL=queryObserver.cjs.map
6401 +
6402 +/***/ }),
6403 +
6404 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
6405 +/*!***********************************************************************!*\
6406 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
6407 + \***********************************************************************/
6408 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6409 +
6410 +"use strict";
6411 +
6412 +var __defProp = Object.defineProperty;
6413 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6414 +var __getOwnPropNames = Object.getOwnPropertyNames;
6415 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6416 +var __export = (target, all) => {
6417 + for (var name in all)
6418 + __defProp(target, name, { get: all[name], enumerable: true });
6419 +};
6420 +var __copyProps = (to, from, except, desc) => {
6421 + if (from && typeof from === "object" || typeof from === "function") {
6422 + for (let key of __getOwnPropNames(from))
6423 + if (!__hasOwnProp.call(to, key) && key !== except)
6424 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6425 + }
6426 + return to;
6427 +};
6428 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6429 +
6430 +// src/removable.ts
6431 +var removable_exports = {};
6432 +__export(removable_exports, {
6433 + Removable: () => Removable
6434 +});
6435 +module.exports = __toCommonJS(removable_exports);
6436 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6437 +var Removable = class {
6438 + #gcTimeout;
6439 + destroy() {
6440 + this.clearGcTimeout();
6441 + }
6442 + scheduleGc() {
6443 + this.clearGcTimeout();
6444 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
6445 + this.#gcTimeout = setTimeout(() => {
6446 + this.optionalRemove();
6447 + }, this.gcTime);
6448 + }
6449 + }
6450 + updateGcTime(newGcTime) {
6451 + this.gcTime = Math.max(
6452 + this.gcTime || 0,
6453 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
6454 + );
6455 + }
6456 + clearGcTimeout() {
6457 + if (this.#gcTimeout) {
6458 + clearTimeout(this.#gcTimeout);
6459 + this.#gcTimeout = void 0;
6460 + }
6461 + }
6462 +};
6463 +// Annotate the CommonJS export names for ESM import in node:
6464 +0 && (0);
6465 +//# sourceMappingURL=removable.cjs.map
6466 +
6467 +/***/ }),
6468 +
6469 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
6470 +/*!*********************************************************************!*\
6471 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
6472 + \*********************************************************************/
6473 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6474 +
6475 +"use strict";
6476 +
6477 +var __defProp = Object.defineProperty;
6478 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6479 +var __getOwnPropNames = Object.getOwnPropertyNames;
6480 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6481 +var __export = (target, all) => {
6482 + for (var name in all)
6483 + __defProp(target, name, { get: all[name], enumerable: true });
6484 +};
6485 +var __copyProps = (to, from, except, desc) => {
6486 + if (from && typeof from === "object" || typeof from === "function") {
6487 + for (let key of __getOwnPropNames(from))
6488 + if (!__hasOwnProp.call(to, key) && key !== except)
6489 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6490 + }
6491 + return to;
6492 +};
6493 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6494 +
6495 +// src/retryer.ts
6496 +var retryer_exports = {};
6497 +__export(retryer_exports, {
6498 + CancelledError: () => CancelledError,
6499 + canFetch: () => canFetch,
6500 + createRetryer: () => createRetryer,
6501 + isCancelledError: () => isCancelledError
6502 +});
6503 +module.exports = __toCommonJS(retryer_exports);
6504 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
6505 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
6506 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6507 +function defaultRetryDelay(failureCount) {
6508 + return Math.min(1e3 * 2 ** failureCount, 3e4);
6509 +}
6510 +function canFetch(networkMode) {
6511 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
6512 +}
6513 +var CancelledError = class {
6514 + constructor(options) {
6515 + this.revert = options?.revert;
6516 + this.silent = options?.silent;
6517 + }
6518 +};
6519 +function isCancelledError(value) {
6520 + return value instanceof CancelledError;
6521 +}
6522 +function createRetryer(config) {
6523 + let isRetryCancelled = false;
6524 + let failureCount = 0;
6525 + let isResolved = false;
6526 + let continueFn;
6527 + let promiseResolve;
6528 + let promiseReject;
6529 + const promise = new Promise((outerResolve, outerReject) => {
6530 + promiseResolve = outerResolve;
6531 + promiseReject = outerReject;
6532 + });
6533 + const cancel = (cancelOptions) => {
6534 + if (!isResolved) {
6535 + reject(new CancelledError(cancelOptions));
6536 + config.abort?.();
6537 + }
6538 + };
6539 + const cancelRetry = () => {
6540 + isRetryCancelled = true;
6541 + };
6542 + const continueRetry = () => {
6543 + isRetryCancelled = false;
6544 + };
6545 + const canContinue = () => import_focusManager.focusManager.isFocused() && (config.networkMode === "always" || import_onlineManager.onlineManager.isOnline()) && config.canRun();
6546 + const canStart = () => canFetch(config.networkMode) && config.canRun();
6547 + const resolve = (value) => {
6548 + if (!isResolved) {
6549 + isResolved = true;
6550 + config.onSuccess?.(value);
6551 + continueFn?.();
6552 + promiseResolve(value);
6553 + }
6554 + };
6555 + const reject = (value) => {
6556 + if (!isResolved) {
6557 + isResolved = true;
6558 + config.onError?.(value);
6559 + continueFn?.();
6560 + promiseReject(value);
6561 + }
6562 + };
6563 + const pause = () => {
6564 + return new Promise((continueResolve) => {
6565 + continueFn = (value) => {
6566 + if (isResolved || canContinue()) {
6567 + continueResolve(value);
6568 + }
6569 + };
6570 + config.onPause?.();
6571 + }).then(() => {
6572 + continueFn = void 0;
6573 + if (!isResolved) {
6574 + config.onContinue?.();
6575 + }
6576 + });
6577 + };
6578 + const run = () => {
6579 + if (isResolved) {
6580 + return;
6581 + }
6582 + let promiseOrValue;
6583 + const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
6584 + try {
6585 + promiseOrValue = initialPromise ?? config.fn();
6586 + } catch (error) {
6587 + promiseOrValue = Promise.reject(error);
6588 + }
6589 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
6590 + if (isResolved) {
6591 + return;
6592 + }
6593 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
6594 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
6595 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
6596 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
6597 + if (isRetryCancelled || !shouldRetry) {
6598 + reject(error);
6599 + return;
6600 + }
6601 + failureCount++;
6602 + config.onFail?.(failureCount, error);
6603 + (0, import_utils.sleep)(delay).then(() => {
6604 + return canContinue() ? void 0 : pause();
6605 + }).then(() => {
6606 + if (isRetryCancelled) {
6607 + reject(error);
6608 + } else {
6609 + run();
6610 + }
6611 + });
6612 + });
6613 + };
6614 + return {
6615 + promise,
6616 + cancel,
6617 + continue: () => {
6618 + continueFn?.();
6619 + return promise;
6620 + },
6621 + cancelRetry,
6622 + continueRetry,
6623 + canStart,
6624 + start: () => {
6625 + if (canStart()) {
6626 + run();
6627 + } else {
6628 + pause().then(run);
6629 + }
6630 + return promise;
6631 + }
6632 + };
6633 +}
6634 +// Annotate the CommonJS export names for ESM import in node:
6635 +0 && (0);
6636 +//# sourceMappingURL=retryer.cjs.map
6637 +
6638 +/***/ }),
6639 +
6640 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
6641 +/*!**************************************************************************!*\
6642 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
6643 + \**************************************************************************/
6644 +/***/ ((module) => {
6645 +
6646 +"use strict";
6647 +
6648 +var __defProp = Object.defineProperty;
6649 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6650 +var __getOwnPropNames = Object.getOwnPropertyNames;
6651 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6652 +var __export = (target, all) => {
6653 + for (var name in all)
6654 + __defProp(target, name, { get: all[name], enumerable: true });
6655 +};
6656 +var __copyProps = (to, from, except, desc) => {
6657 + if (from && typeof from === "object" || typeof from === "function") {
6658 + for (let key of __getOwnPropNames(from))
6659 + if (!__hasOwnProp.call(to, key) && key !== except)
6660 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6661 + }
6662 + return to;
6663 +};
6664 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6665 +
6666 +// src/subscribable.ts
6667 +var subscribable_exports = {};
6668 +__export(subscribable_exports, {
6669 + Subscribable: () => Subscribable
6670 +});
6671 +module.exports = __toCommonJS(subscribable_exports);
6672 +var Subscribable = class {
6673 + constructor() {
6674 + this.listeners = /* @__PURE__ */ new Set();
6675 + this.subscribe = this.subscribe.bind(this);
6676 + }
6677 + subscribe(listener) {
6678 + this.listeners.add(listener);
6679 + this.onSubscribe();
6680 + return () => {
6681 + this.listeners.delete(listener);
6682 + this.onUnsubscribe();
6683 + };
6684 + }
6685 + hasListeners() {
6686 + return this.listeners.size > 0;
6687 + }
6688 + onSubscribe() {
6689 + }
6690 + onUnsubscribe() {
6691 + }
6692 +};
6693 +// Annotate the CommonJS export names for ESM import in node:
6694 +0 && (0);
6695 +//# sourceMappingURL=subscribable.cjs.map
6696 +
6697 +/***/ }),
6698 +
6699 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
6700 +/*!*******************************************************************!*\
6701 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
6702 + \*******************************************************************/
6703 +/***/ ((module) => {
6704 +
6705 +"use strict";
6706 +
6707 +var __defProp = Object.defineProperty;
6708 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6709 +var __getOwnPropNames = Object.getOwnPropertyNames;
6710 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6711 +var __copyProps = (to, from, except, desc) => {
6712 + if (from && typeof from === "object" || typeof from === "function") {
6713 + for (let key of __getOwnPropNames(from))
6714 + if (!__hasOwnProp.call(to, key) && key !== except)
6715 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6716 + }
6717 + return to;
6718 +};
6719 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6720 +
6721 +// src/types.ts
6722 +var types_exports = {};
6723 +module.exports = __toCommonJS(types_exports);
6724 +//# sourceMappingURL=types.cjs.map
6725 +
6726 +/***/ }),
6727 +
6728 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
6729 +/*!*******************************************************************!*\
6730 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
6731 + \*******************************************************************/
6732 +/***/ ((module) => {
6733 +
6734 +"use strict";
6735 +
6736 +var __defProp = Object.defineProperty;
6737 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6738 +var __getOwnPropNames = Object.getOwnPropertyNames;
6739 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6740 +var __export = (target, all) => {
6741 + for (var name in all)
6742 + __defProp(target, name, { get: all[name], enumerable: true });
6743 +};
6744 +var __copyProps = (to, from, except, desc) => {
6745 + if (from && typeof from === "object" || typeof from === "function") {
6746 + for (let key of __getOwnPropNames(from))
6747 + if (!__hasOwnProp.call(to, key) && key !== except)
6748 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6749 + }
6750 + return to;
6751 +};
6752 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6753 +
6754 +// src/utils.ts
6755 +var utils_exports = {};
6756 +__export(utils_exports, {
6757 + addToEnd: () => addToEnd,
6758 + addToStart: () => addToStart,
6759 + ensureQueryFn: () => ensureQueryFn,
6760 + functionalUpdate: () => functionalUpdate,
6761 + hashKey: () => hashKey,
6762 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
6763 + isPlainArray: () => isPlainArray,
6764 + isPlainObject: () => isPlainObject,
6765 + isServer: () => isServer,
6766 + isValidTimeout: () => isValidTimeout,
6767 + keepPreviousData: () => keepPreviousData,
6768 + matchMutation: () => matchMutation,
6769 + matchQuery: () => matchQuery,
6770 + noop: () => noop,
6771 + partialMatchKey: () => partialMatchKey,
6772 + replaceData: () => replaceData,
6773 + replaceEqualDeep: () => replaceEqualDeep,
6774 + resolveEnabled: () => resolveEnabled,
6775 + resolveStaleTime: () => resolveStaleTime,
6776 + shallowEqualObjects: () => shallowEqualObjects,
6777 + skipToken: () => skipToken,
6778 + sleep: () => sleep,
6779 + timeUntilStale: () => timeUntilStale
6780 +});
6781 +module.exports = __toCommonJS(utils_exports);
6782 +var isServer = typeof window === "undefined" || "Deno" in globalThis;
6783 +function noop() {
6784 + return void 0;
6785 +}
6786 +function functionalUpdate(updater, input) {
6787 + return typeof updater === "function" ? updater(input) : updater;
6788 +}
6789 +function isValidTimeout(value) {
6790 + return typeof value === "number" && value >= 0 && value !== Infinity;
6791 +}
6792 +function timeUntilStale(updatedAt, staleTime) {
6793 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
6794 +}
6795 +function resolveStaleTime(staleTime, query) {
6796 + return typeof staleTime === "function" ? staleTime(query) : staleTime;
6797 +}
6798 +function resolveEnabled(enabled, query) {
6799 + return typeof enabled === "function" ? enabled(query) : enabled;
6800 +}
6801 +function matchQuery(filters, query) {
6802 + const {
6803 + type = "all",
6804 + exact,
6805 + fetchStatus,
6806 + predicate,
6807 + queryKey,
6808 + stale
6809 + } = filters;
6810 + if (queryKey) {
6811 + if (exact) {
6812 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
6813 + return false;
6814 + }
6815 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
6816 + return false;
6817 + }
6818 + }
6819 + if (type !== "all") {
6820 + const isActive = query.isActive();
6821 + if (type === "active" && !isActive) {
6822 + return false;
6823 + }
6824 + if (type === "inactive" && isActive) {
6825 + return false;
6826 + }
6827 + }
6828 + if (typeof stale === "boolean" && query.isStale() !== stale) {
6829 + return false;
6830 + }
6831 + if (fetchStatus && fetchStatus !== query.state.fetchStatus) {
6832 + return false;
6833 + }
6834 + if (predicate && !predicate(query)) {
6835 + return false;
6836 + }
6837 + return true;
6838 +}
6839 +function matchMutation(filters, mutation) {
6840 + const { exact, status, predicate, mutationKey } = filters;
6841 + if (mutationKey) {
6842 + if (!mutation.options.mutationKey) {
6843 + return false;
6844 + }
6845 + if (exact) {
6846 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
6847 + return false;
6848 + }
6849 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
6850 + return false;
6851 + }
6852 + }
6853 + if (status && mutation.state.status !== status) {
6854 + return false;
6855 + }
6856 + if (predicate && !predicate(mutation)) {
6857 + return false;
6858 + }
6859 + return true;
6860 +}
6861 +function hashQueryKeyByOptions(queryKey, options) {
6862 + const hashFn = options?.queryKeyHashFn || hashKey;
6863 + return hashFn(queryKey);
6864 +}
6865 +function hashKey(queryKey) {
6866 + return JSON.stringify(
6867 + queryKey,
6868 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
6869 + result[key] = val[key];
6870 + return result;
6871 + }, {}) : val
6872 + );
6873 +}
6874 +function partialMatchKey(a, b) {
6875 + if (a === b) {
6876 + return true;
6877 + }
6878 + if (typeof a !== typeof b) {
6879 + return false;
6880 + }
6881 + if (a && b && typeof a === "object" && typeof b === "object") {
6882 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
6883 + }
6884 + return false;
6885 +}
6886 +function replaceEqualDeep(a, b) {
6887 + if (a === b) {
6888 + return a;
6889 + }
6890 + const array = isPlainArray(a) && isPlainArray(b);
6891 + if (array || isPlainObject(a) && isPlainObject(b)) {
6892 + const aItems = array ? a : Object.keys(a);
6893 + const aSize = aItems.length;
6894 + const bItems = array ? b : Object.keys(b);
6895 + const bSize = bItems.length;
6896 + const copy = array ? [] : {};
6897 + let equalItems = 0;
6898 + for (let i = 0; i < bSize; i++) {
6899 + const key = array ? i : bItems[i];
6900 + if ((!array && aItems.includes(key) || array) && a[key] === void 0 && b[key] === void 0) {
6901 + copy[key] = void 0;
6902 + equalItems++;
6903 + } else {
6904 + copy[key] = replaceEqualDeep(a[key], b[key]);
6905 + if (copy[key] === a[key] && a[key] !== void 0) {
6906 + equalItems++;
6907 + }
6908 + }
6909 + }
6910 + return aSize === bSize && equalItems === aSize ? a : copy;
6911 + }
6912 + return b;
6913 +}
6914 +function shallowEqualObjects(a, b) {
6915 + if (!b || Object.keys(a).length !== Object.keys(b).length) {
6916 + return false;
6917 + }
6918 + for (const key in a) {
6919 + if (a[key] !== b[key]) {
6920 + return false;
6921 + }
6922 + }
6923 + return true;
6924 +}
6925 +function isPlainArray(value) {
6926 + return Array.isArray(value) && value.length === Object.keys(value).length;
6927 +}
6928 +function isPlainObject(o) {
6929 + if (!hasObjectPrototype(o)) {
6930 + return false;
6931 + }
6932 + const ctor = o.constructor;
6933 + if (ctor === void 0) {
6934 + return true;
6935 + }
6936 + const prot = ctor.prototype;
6937 + if (!hasObjectPrototype(prot)) {
6938 + return false;
6939 + }
6940 + if (!prot.hasOwnProperty("isPrototypeOf")) {
6941 + return false;
6942 + }
6943 + if (Object.getPrototypeOf(o) !== Object.prototype) {
6944 + return false;
6945 + }
6946 + return true;
6947 +}
6948 +function hasObjectPrototype(o) {
6949 + return Object.prototype.toString.call(o) === "[object Object]";
6950 +}
6951 +function sleep(ms) {
6952 + return new Promise((resolve) => {
6953 + setTimeout(resolve, ms);
6954 + });
6955 +}
6956 +function replaceData(prevData, data, options) {
6957 + if (typeof options.structuralSharing === "function") {
6958 + return options.structuralSharing(prevData, data);
6959 + } else if (options.structuralSharing !== false) {
6960 + return replaceEqualDeep(prevData, data);
6961 + }
6962 + return data;
6963 +}
6964 +function keepPreviousData(previousData) {
6965 + return previousData;
6966 +}
6967 +function addToEnd(items, item, max = 0) {
6968 + const newItems = [...items, item];
6969 + return max && newItems.length > max ? newItems.slice(1) : newItems;
6970 +}
6971 +function addToStart(items, item, max = 0) {
6972 + const newItems = [item, ...items];
6973 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
6974 +}
6975 +var skipToken = Symbol();
6976 +var ensureQueryFn = (options, fetchOptions) => {
6977 + if (true) {
6978 + if (options.queryFn === skipToken) {
6979 + console.error(
6980 + `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`
6981 + );
6982 + }
6983 + }
6984 + if (!options.queryFn && fetchOptions?.initialPromise) {
6985 + return () => fetchOptions.initialPromise;
6986 + }
6987 + if (!options.queryFn || options.queryFn === skipToken) {
6988 + return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));
6989 + }
6990 + return options.queryFn;
6991 +};
6992 +// Annotate the CommonJS export names for ESM import in node:
6993 +0 && (0);
6994 +//# sourceMappingURL=utils.cjs.map
6995 +
6996 +/***/ }),
6997 +
6998 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
6999 +/*!********************************************************************************!*\
7000 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
7001 + \********************************************************************************/
7002 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7003 +
7004 +"use strict";
7005 +
7006 +"use client";
7007 +var __create = Object.create;
7008 +var __defProp = Object.defineProperty;
7009 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7010 +var __getOwnPropNames = Object.getOwnPropertyNames;
7011 +var __getProtoOf = Object.getPrototypeOf;
7012 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7013 +var __export = (target, all) => {
7014 + for (var name in all)
7015 + __defProp(target, name, { get: all[name], enumerable: true });
7016 +};
7017 +var __copyProps = (to, from, except, desc) => {
7018 + if (from && typeof from === "object" || typeof from === "function") {
7019 + for (let key of __getOwnPropNames(from))
7020 + if (!__hasOwnProp.call(to, key) && key !== except)
7021 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7022 + }
7023 + return to;
7024 +};
7025 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7026 + // If the importer is in node compatibility mode or this is not an ESM
7027 + // file that has been converted to a CommonJS file using a Babel-
7028 + // compatible transform (i.e. "__esModule" has not been set), then set
7029 + // "default" to the CommonJS "module.exports" for node compatibility.
7030 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7031 + mod
7032 +));
7033 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7034 +
7035 +// src/HydrationBoundary.tsx
7036 +var HydrationBoundary_exports = {};
7037 +__export(HydrationBoundary_exports, {
7038 + HydrationBoundary: () => HydrationBoundary
7039 +});
7040 +module.exports = __toCommonJS(HydrationBoundary_exports);
7041 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7042 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7043 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7044 +var HydrationBoundary = ({
7045 + children,
7046 + options = {},
7047 + state,
7048 + queryClient
7049 +}) => {
7050 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7051 + const [hydrationQueue, setHydrationQueue] = React.useState();
7052 + const optionsRef = React.useRef(options);
7053 + optionsRef.current = options;
7054 + React.useMemo(() => {
7055 + if (state) {
7056 + if (typeof state !== "object") {
7057 + return;
7058 + }
7059 + const queryCache = client.getQueryCache();
7060 + const queries = state.queries || [];
7061 + const newQueries = [];
7062 + const existingQueries = [];
7063 + for (const dehydratedQuery of queries) {
7064 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
7065 + if (!existingQuery) {
7066 + newQueries.push(dehydratedQuery);
7067 + } else {
7068 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
7069 + const queryAlreadyQueued = hydrationQueue?.find(
7070 + (query) => query.queryHash === dehydratedQuery.queryHash
7071 + );
7072 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
7073 + existingQueries.push(dehydratedQuery);
7074 + }
7075 + }
7076 + }
7077 + if (newQueries.length > 0) {
7078 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
7079 + }
7080 + if (existingQueries.length > 0) {
7081 + setHydrationQueue(
7082 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
7083 + );
7084 + }
7085 + }
7086 + }, [client, hydrationQueue, state]);
7087 + React.useEffect(() => {
7088 + if (hydrationQueue) {
7089 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
7090 + setHydrationQueue(void 0);
7091 + }
7092 + }, [client, hydrationQueue]);
7093 + return children;
7094 +};
7095 +// Annotate the CommonJS export names for ESM import in node:
7096 +0 && (0);
7097 +//# sourceMappingURL=HydrationBoundary.cjs.map
7098 +
7099 +/***/ }),
7100 +
7101 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
7102 +/*!**********************************************************************************!*\
7103 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
7104 + \**********************************************************************************/
7105 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7106 +
7107 +"use strict";
7108 +
7109 +"use client";
7110 +var __create = Object.create;
7111 +var __defProp = Object.defineProperty;
7112 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7113 +var __getOwnPropNames = Object.getOwnPropertyNames;
7114 +var __getProtoOf = Object.getPrototypeOf;
7115 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7116 +var __export = (target, all) => {
7117 + for (var name in all)
7118 + __defProp(target, name, { get: all[name], enumerable: true });
7119 +};
7120 +var __copyProps = (to, from, except, desc) => {
7121 + if (from && typeof from === "object" || typeof from === "function") {
7122 + for (let key of __getOwnPropNames(from))
7123 + if (!__hasOwnProp.call(to, key) && key !== except)
7124 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7125 + }
7126 + return to;
7127 +};
7128 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7129 + // If the importer is in node compatibility mode or this is not an ESM
7130 + // file that has been converted to a CommonJS file using a Babel-
7131 + // compatible transform (i.e. "__esModule" has not been set), then set
7132 + // "default" to the CommonJS "module.exports" for node compatibility.
7133 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7134 + mod
7135 +));
7136 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7137 +
7138 +// src/QueryClientProvider.tsx
7139 +var QueryClientProvider_exports = {};
7140 +__export(QueryClientProvider_exports, {
7141 + QueryClientContext: () => QueryClientContext,
7142 + QueryClientProvider: () => QueryClientProvider,
7143 + useQueryClient: () => useQueryClient
7144 +});
7145 +module.exports = __toCommonJS(QueryClientProvider_exports);
7146 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7147 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7148 +var QueryClientContext = React.createContext(
7149 + void 0
7150 +);
7151 +var useQueryClient = (queryClient) => {
7152 + const client = React.useContext(QueryClientContext);
7153 + if (queryClient) {
7154 + return queryClient;
7155 + }
7156 + if (!client) {
7157 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
7158 + }
7159 + return client;
7160 +};
7161 +var QueryClientProvider = ({
7162 + client,
7163 + children
7164 +}) => {
7165 + React.useEffect(() => {
7166 + client.mount();
7167 + return () => {
7168 + client.unmount();
7169 + };
7170 + }, [client]);
7171 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
7172 +};
7173 +// Annotate the CommonJS export names for ESM import in node:
7174 +0 && (0);
7175 +//# sourceMappingURL=QueryClientProvider.cjs.map
7176 +
7177 +/***/ }),
7178 +
7179 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
7180 +/*!**************************************************************************************!*\
7181 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
7182 + \**************************************************************************************/
7183 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7184 +
7185 +"use strict";
7186 +
7187 +"use client";
7188 +var __create = Object.create;
7189 +var __defProp = Object.defineProperty;
7190 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7191 +var __getOwnPropNames = Object.getOwnPropertyNames;
7192 +var __getProtoOf = Object.getPrototypeOf;
7193 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7194 +var __export = (target, all) => {
7195 + for (var name in all)
7196 + __defProp(target, name, { get: all[name], enumerable: true });
7197 +};
7198 +var __copyProps = (to, from, except, desc) => {
7199 + if (from && typeof from === "object" || typeof from === "function") {
7200 + for (let key of __getOwnPropNames(from))
7201 + if (!__hasOwnProp.call(to, key) && key !== except)
7202 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7203 + }
7204 + return to;
7205 +};
7206 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7207 + // If the importer is in node compatibility mode or this is not an ESM
7208 + // file that has been converted to a CommonJS file using a Babel-
7209 + // compatible transform (i.e. "__esModule" has not been set), then set
7210 + // "default" to the CommonJS "module.exports" for node compatibility.
7211 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7212 + mod
7213 +));
7214 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7215 +
7216 +// src/QueryErrorResetBoundary.tsx
7217 +var QueryErrorResetBoundary_exports = {};
7218 +__export(QueryErrorResetBoundary_exports, {
7219 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
7220 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
7221 +});
7222 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
7223 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7224 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7225 +function createValue() {
7226 + let isReset = false;
7227 + return {
7228 + clearReset: () => {
7229 + isReset = false;
7230 + },
7231 + reset: () => {
7232 + isReset = true;
7233 + },
7234 + isReset: () => {
7235 + return isReset;
7236 + }
7237 + };
7238 +}
7239 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
7240 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
7241 +var QueryErrorResetBoundary = ({
7242 + children
7243 +}) => {
7244 + const [value] = React.useState(() => createValue());
7245 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children });
7246 +};
7247 +// Annotate the CommonJS export names for ESM import in node:
7248 +0 && (0);
7249 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
7250 +
7251 +/***/ }),
7252 +
7253 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
7254 +/*!*********************************************************************************!*\
7255 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
7256 + \*********************************************************************************/
7257 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7258 +
7259 +"use strict";
7260 +
7261 +"use client";
7262 +var __create = Object.create;
7263 +var __defProp = Object.defineProperty;
7264 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7265 +var __getOwnPropNames = Object.getOwnPropertyNames;
7266 +var __getProtoOf = Object.getPrototypeOf;
7267 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7268 +var __export = (target, all) => {
7269 + for (var name in all)
7270 + __defProp(target, name, { get: all[name], enumerable: true });
7271 +};
7272 +var __copyProps = (to, from, except, desc) => {
7273 + if (from && typeof from === "object" || typeof from === "function") {
7274 + for (let key of __getOwnPropNames(from))
7275 + if (!__hasOwnProp.call(to, key) && key !== except)
7276 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7277 + }
7278 + return to;
7279 +};
7280 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7281 + // If the importer is in node compatibility mode or this is not an ESM
7282 + // file that has been converted to a CommonJS file using a Babel-
7283 + // compatible transform (i.e. "__esModule" has not been set), then set
7284 + // "default" to the CommonJS "module.exports" for node compatibility.
7285 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7286 + mod
7287 +));
7288 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7289 +
7290 +// src/errorBoundaryUtils.ts
7291 +var errorBoundaryUtils_exports = {};
7292 +__export(errorBoundaryUtils_exports, {
7293 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
7294 + getHasError: () => getHasError,
7295 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
7296 +});
7297 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
7298 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7299 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7300 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
7301 + if (options.suspense || options.throwOnError) {
7302 + if (!errorResetBoundary.isReset()) {
7303 + options.retryOnMount = false;
7304 + }
7305 + }
7306 +};
7307 +var useClearResetErrorBoundary = (errorResetBoundary) => {
7308 + React.useEffect(() => {
7309 + errorResetBoundary.clearReset();
7310 + }, [errorResetBoundary]);
7311 +};
7312 +var getHasError = ({
7313 + result,
7314 + errorResetBoundary,
7315 + throwOnError,
7316 + query
7317 +}) => {
7318 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
7319 +};
7320 +// Annotate the CommonJS export names for ESM import in node:
7321 +0 && (0);
7322 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
7323 +
7324 +/***/ }),
7325 +
7326 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
7327 +/*!********************************************************************!*\
7328 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
7329 + \********************************************************************/
7330 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7331 +
7332 +"use strict";
7333 +
7334 +var __defProp = Object.defineProperty;
7335 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7336 +var __getOwnPropNames = Object.getOwnPropertyNames;
7337 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7338 +var __export = (target, all) => {
7339 + for (var name in all)
7340 + __defProp(target, name, { get: all[name], enumerable: true });
7341 +};
7342 +var __copyProps = (to, from, except, desc) => {
7343 + if (from && typeof from === "object" || typeof from === "function") {
7344 + for (let key of __getOwnPropNames(from))
7345 + if (!__hasOwnProp.call(to, key) && key !== except)
7346 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7347 + }
7348 + return to;
7349 +};
7350 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
7351 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7352 +
7353 +// src/index.ts
7354 +var src_exports = {};
7355 +__export(src_exports, {
7356 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
7357 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
7358 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
7359 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
7360 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
7361 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
7362 + queryOptions: () => import_queryOptions.queryOptions,
7363 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
7364 + useIsFetching: () => import_useIsFetching.useIsFetching,
7365 + useIsMutating: () => import_useMutationState.useIsMutating,
7366 + useIsRestoring: () => import_isRestoring.useIsRestoring,
7367 + useMutation: () => import_useMutation.useMutation,
7368 + useMutationState: () => import_useMutationState.useMutationState,
7369 + usePrefetchInfiniteQuery: () => import_prefetch.usePrefetchInfiniteQuery,
7370 + usePrefetchQuery: () => import_prefetch.usePrefetchQuery,
7371 + useQueries: () => import_useQueries.useQueries,
7372 + useQuery: () => import_useQuery.useQuery,
7373 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
7374 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
7375 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
7376 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
7377 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
7378 +});
7379 +module.exports = __toCommonJS(src_exports);
7380 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
7381 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
7382 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
7383 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
7384 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
7385 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
7386 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
7387 +var import_prefetch = __webpack_require__(/*! ./prefetch.cjs */ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs");
7388 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
7389 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
7390 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7391 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
7392 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7393 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
7394 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
7395 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
7396 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
7397 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7398 +// Annotate the CommonJS export names for ESM import in node:
7399 +0 && (0);
7400 +//# sourceMappingURL=index.cjs.map
7401 +
7402 +/***/ }),
7403 +
7404 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
7405 +/*!***********************************************************************************!*\
7406 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
7407 + \***********************************************************************************/
7408 +/***/ ((module) => {
7409 +
7410 +"use strict";
7411 +
7412 +var __defProp = Object.defineProperty;
7413 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7414 +var __getOwnPropNames = Object.getOwnPropertyNames;
7415 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7416 +var __export = (target, all) => {
7417 + for (var name in all)
7418 + __defProp(target, name, { get: all[name], enumerable: true });
7419 +};
7420 +var __copyProps = (to, from, except, desc) => {
7421 + if (from && typeof from === "object" || typeof from === "function") {
7422 + for (let key of __getOwnPropNames(from))
7423 + if (!__hasOwnProp.call(to, key) && key !== except)
7424 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7425 + }
7426 + return to;
7427 +};
7428 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7429 +
7430 +// src/infiniteQueryOptions.ts
7431 +var infiniteQueryOptions_exports = {};
7432 +__export(infiniteQueryOptions_exports, {
7433 + infiniteQueryOptions: () => infiniteQueryOptions
7434 +});
7435 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
7436 +function infiniteQueryOptions(options) {
7437 + return options;
7438 +}
7439 +// Annotate the CommonJS export names for ESM import in node:
7440 +0 && (0);
7441 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
7442 +
7443 +/***/ }),
7444 +
7445 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
7446 +/*!**************************************************************************!*\
7447 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
7448 + \**************************************************************************/
7449 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7450 +
7451 +"use strict";
7452 +
7453 +"use client";
7454 +var __create = Object.create;
7455 +var __defProp = Object.defineProperty;
7456 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7457 +var __getOwnPropNames = Object.getOwnPropertyNames;
7458 +var __getProtoOf = Object.getPrototypeOf;
7459 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7460 +var __export = (target, all) => {
7461 + for (var name in all)
7462 + __defProp(target, name, { get: all[name], enumerable: true });
7463 +};
7464 +var __copyProps = (to, from, except, desc) => {
7465 + if (from && typeof from === "object" || typeof from === "function") {
7466 + for (let key of __getOwnPropNames(from))
7467 + if (!__hasOwnProp.call(to, key) && key !== except)
7468 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7469 + }
7470 + return to;
7471 +};
7472 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7473 + // If the importer is in node compatibility mode or this is not an ESM
7474 + // file that has been converted to a CommonJS file using a Babel-
7475 + // compatible transform (i.e. "__esModule" has not been set), then set
7476 + // "default" to the CommonJS "module.exports" for node compatibility.
7477 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7478 + mod
7479 +));
7480 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7481 +
7482 +// src/isRestoring.ts
7483 +var isRestoring_exports = {};
7484 +__export(isRestoring_exports, {
7485 + IsRestoringProvider: () => IsRestoringProvider,
7486 + useIsRestoring: () => useIsRestoring
7487 +});
7488 +module.exports = __toCommonJS(isRestoring_exports);
7489 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7490 +var IsRestoringContext = React.createContext(false);
7491 +var useIsRestoring = () => React.useContext(IsRestoringContext);
7492 +var IsRestoringProvider = IsRestoringContext.Provider;
7493 +// Annotate the CommonJS export names for ESM import in node:
7494 +0 && (0);
7495 +//# sourceMappingURL=isRestoring.cjs.map
7496 +
7497 +/***/ }),
7498 +
7499 +/***/ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs":
7500 +/*!***********************************************************************!*\
7501 + !*** ../node_modules/@tanstack/react-query/build/modern/prefetch.cjs ***!
7502 + \***********************************************************************/
7503 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7504 +
7505 +"use strict";
7506 +
7507 +var __defProp = Object.defineProperty;
7508 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7509 +var __getOwnPropNames = Object.getOwnPropertyNames;
7510 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7511 +var __export = (target, all) => {
7512 + for (var name in all)
7513 + __defProp(target, name, { get: all[name], enumerable: true });
7514 +};
7515 +var __copyProps = (to, from, except, desc) => {
7516 + if (from && typeof from === "object" || typeof from === "function") {
7517 + for (let key of __getOwnPropNames(from))
7518 + if (!__hasOwnProp.call(to, key) && key !== except)
7519 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7520 + }
7521 + return to;
7522 +};
7523 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7524 +
7525 +// src/prefetch.ts
7526 +var prefetch_exports = {};
7527 +__export(prefetch_exports, {
7528 + usePrefetchInfiniteQuery: () => usePrefetchInfiniteQuery,
7529 + usePrefetchQuery: () => usePrefetchQuery
7530 +});
7531 +module.exports = __toCommonJS(prefetch_exports);
7532 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7533 +function usePrefetchQuery(options) {
7534 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7535 + if (!queryClient.getQueryState(options.queryKey)) {
7536 + queryClient.prefetchQuery(options);
7537 + }
7538 +}
7539 +function usePrefetchInfiniteQuery(options) {
7540 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7541 + if (!queryClient.getQueryState(options.queryKey)) {
7542 + queryClient.prefetchInfiniteQuery(options);
7543 + }
7544 +}
7545 +// Annotate the CommonJS export names for ESM import in node:
7546 +0 && (0);
7547 +//# sourceMappingURL=prefetch.cjs.map
7548 +
7549 +/***/ }),
7550 +
7551 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
7552 +/*!***************************************************************************!*\
7553 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
7554 + \***************************************************************************/
7555 +/***/ ((module) => {
7556 +
7557 +"use strict";
7558 +
7559 +var __defProp = Object.defineProperty;
7560 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7561 +var __getOwnPropNames = Object.getOwnPropertyNames;
7562 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7563 +var __export = (target, all) => {
7564 + for (var name in all)
7565 + __defProp(target, name, { get: all[name], enumerable: true });
7566 +};
7567 +var __copyProps = (to, from, except, desc) => {
7568 + if (from && typeof from === "object" || typeof from === "function") {
7569 + for (let key of __getOwnPropNames(from))
7570 + if (!__hasOwnProp.call(to, key) && key !== except)
7571 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7572 + }
7573 + return to;
7574 +};
7575 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7576 +
7577 +// src/queryOptions.ts
7578 +var queryOptions_exports = {};
7579 +__export(queryOptions_exports, {
7580 + queryOptions: () => queryOptions
7581 +});
7582 +module.exports = __toCommonJS(queryOptions_exports);
7583 +function queryOptions(options) {
7584 + return options;
7585 +}
7586 +// Annotate the CommonJS export names for ESM import in node:
7587 +0 && (0);
7588 +//# sourceMappingURL=queryOptions.cjs.map
7589 +
7590 +/***/ }),
7591 +
7592 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
7593 +/*!***********************************************************************!*\
7594 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
7595 + \***********************************************************************/
7596 +/***/ ((module) => {
7597 +
7598 +"use strict";
7599 +
7600 +var __defProp = Object.defineProperty;
7601 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7602 +var __getOwnPropNames = Object.getOwnPropertyNames;
7603 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7604 +var __export = (target, all) => {
7605 + for (var name in all)
7606 + __defProp(target, name, { get: all[name], enumerable: true });
7607 +};
7608 +var __copyProps = (to, from, except, desc) => {
7609 + if (from && typeof from === "object" || typeof from === "function") {
7610 + for (let key of __getOwnPropNames(from))
7611 + if (!__hasOwnProp.call(to, key) && key !== except)
7612 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7613 + }
7614 + return to;
7615 +};
7616 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7617 +
7618 +// src/suspense.ts
7619 +var suspense_exports = {};
7620 +__export(suspense_exports, {
7621 + defaultThrowOnError: () => defaultThrowOnError,
7622 + ensureStaleTime: () => ensureStaleTime,
7623 + fetchOptimistic: () => fetchOptimistic,
7624 + shouldSuspend: () => shouldSuspend,
7625 + willFetch: () => willFetch
7626 +});
7627 +module.exports = __toCommonJS(suspense_exports);
7628 +var defaultThrowOnError = (_error, query) => query.state.data === void 0;
7629 +var ensureStaleTime = (defaultedOptions) => {
7630 + if (defaultedOptions.suspense) {
7631 + if (typeof defaultedOptions.staleTime !== "number") {
7632 + defaultedOptions.staleTime = 1e3;
7633 + }
7634 + }
7635 +};
7636 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
7637 +var shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;
7638 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
7639 + errorResetBoundary.clearReset();
7640 +});
7641 +// Annotate the CommonJS export names for ESM import in node:
7642 +0 && (0);
7643 +//# sourceMappingURL=suspense.cjs.map
7644 +
7645 +/***/ }),
7646 +
7647 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
7648 +/*!********************************************************************!*\
7649 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
7650 + \********************************************************************/
7651 +/***/ ((module) => {
7652 +
7653 +"use strict";
7654 +
7655 +var __defProp = Object.defineProperty;
7656 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7657 +var __getOwnPropNames = Object.getOwnPropertyNames;
7658 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7659 +var __copyProps = (to, from, except, desc) => {
7660 + if (from && typeof from === "object" || typeof from === "function") {
7661 + for (let key of __getOwnPropNames(from))
7662 + if (!__hasOwnProp.call(to, key) && key !== except)
7663 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7664 + }
7665 + return to;
7666 +};
7667 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7668 +
7669 +// src/types.ts
7670 +var types_exports = {};
7671 +module.exports = __toCommonJS(types_exports);
7672 +//# sourceMappingURL=types.cjs.map
7673 +
7674 +/***/ }),
7675 +
7676 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
7677 +/*!***************************************************************************!*\
7678 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
7679 + \***************************************************************************/
7680 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7681 +
7682 +"use strict";
7683 +
7684 +"use client";
7685 +var __create = Object.create;
7686 +var __defProp = Object.defineProperty;
7687 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7688 +var __getOwnPropNames = Object.getOwnPropertyNames;
7689 +var __getProtoOf = Object.getPrototypeOf;
7690 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7691 +var __export = (target, all) => {
7692 + for (var name in all)
7693 + __defProp(target, name, { get: all[name], enumerable: true });
7694 +};
7695 +var __copyProps = (to, from, except, desc) => {
7696 + if (from && typeof from === "object" || typeof from === "function") {
7697 + for (let key of __getOwnPropNames(from))
7698 + if (!__hasOwnProp.call(to, key) && key !== except)
7699 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7700 + }
7701 + return to;
7702 +};
7703 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7704 + // If the importer is in node compatibility mode or this is not an ESM
7705 + // file that has been converted to a CommonJS file using a Babel-
7706 + // compatible transform (i.e. "__esModule" has not been set), then set
7707 + // "default" to the CommonJS "module.exports" for node compatibility.
7708 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7709 + mod
7710 +));
7711 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7712 +
7713 +// src/useBaseQuery.ts
7714 +var useBaseQuery_exports = {};
7715 +__export(useBaseQuery_exports, {
7716 + useBaseQuery: () => useBaseQuery
7717 +});
7718 +module.exports = __toCommonJS(useBaseQuery_exports);
7719 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7720 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7721 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7722 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7723 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7724 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
7725 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
7726 +function useBaseQuery(options, Observer, queryClient) {
7727 + if (true) {
7728 + if (typeof options !== "object" || Array.isArray(options)) {
7729 + throw new Error(
7730 + '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'
7731 + );
7732 + }
7733 + }
7734 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7735 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
7736 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
7737 + const defaultedOptions = client.defaultQueryOptions(options);
7738 + client.getDefaultOptions().queries?._experimental_beforeQuery?.(
7739 + defaultedOptions
7740 + );
7741 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
7742 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
7743 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
7744 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
7745 + const [observer] = React.useState(
7746 + () => new Observer(
7747 + client,
7748 + defaultedOptions
7749 + )
7750 + );
7751 + const result = observer.getOptimisticResult(defaultedOptions);
7752 + React.useSyncExternalStore(
7753 + React.useCallback(
7754 + (onStoreChange) => {
7755 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
7756 + observer.updateResult();
7757 + return unsubscribe;
7758 + },
7759 + [observer, isRestoring]
7760 + ),
7761 + () => observer.getCurrentResult(),
7762 + () => observer.getCurrentResult()
7763 + );
7764 + React.useEffect(() => {
7765 + observer.setOptions(defaultedOptions, { listeners: false });
7766 + }, [defaultedOptions, observer]);
7767 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result)) {
7768 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
7769 + }
7770 + if ((0, import_errorBoundaryUtils.getHasError)({
7771 + result,
7772 + errorResetBoundary,
7773 + throwOnError: defaultedOptions.throwOnError,
7774 + query: client.getQueryCache().get(defaultedOptions.queryHash)
7775 + })) {
7776 + throw result.error;
7777 + }
7778 + ;
7779 + client.getDefaultOptions().queries?._experimental_afterQuery?.(
7780 + defaultedOptions,
7781 + result
7782 + );
7783 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
7784 +}
7785 +// Annotate the CommonJS export names for ESM import in node:
7786 +0 && (0);
7787 +//# sourceMappingURL=useBaseQuery.cjs.map
7788 +
7789 +/***/ }),
7790 +
7791 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
7792 +/*!*******************************************************************************!*\
7793 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
7794 + \*******************************************************************************/
7795 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7796 +
7797 +"use strict";
7798 +
7799 +"use client";
7800 +var __defProp = Object.defineProperty;
7801 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7802 +var __getOwnPropNames = Object.getOwnPropertyNames;
7803 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7804 +var __export = (target, all) => {
7805 + for (var name in all)
7806 + __defProp(target, name, { get: all[name], enumerable: true });
7807 +};
7808 +var __copyProps = (to, from, except, desc) => {
7809 + if (from && typeof from === "object" || typeof from === "function") {
7810 + for (let key of __getOwnPropNames(from))
7811 + if (!__hasOwnProp.call(to, key) && key !== except)
7812 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7813 + }
7814 + return to;
7815 +};
7816 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7817 +
7818 +// src/useInfiniteQuery.ts
7819 +var useInfiniteQuery_exports = {};
7820 +__export(useInfiniteQuery_exports, {
7821 + useInfiniteQuery: () => useInfiniteQuery
7822 +});
7823 +module.exports = __toCommonJS(useInfiniteQuery_exports);
7824 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7825 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
7826 +function useInfiniteQuery(options, queryClient) {
7827 + return (0, import_useBaseQuery.useBaseQuery)(
7828 + options,
7829 + import_query_core.InfiniteQueryObserver,
7830 + queryClient
7831 + );
7832 +}
7833 +// Annotate the CommonJS export names for ESM import in node:
7834 +0 && (0);
7835 +//# sourceMappingURL=useInfiniteQuery.cjs.map
7836 +
7837 +/***/ }),
7838 +
7839 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
7840 +/*!****************************************************************************!*\
7841 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
7842 + \****************************************************************************/
7843 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7844 +
7845 +"use strict";
7846 +
7847 +"use client";
7848 +var __create = Object.create;
7849 +var __defProp = Object.defineProperty;
7850 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7851 +var __getOwnPropNames = Object.getOwnPropertyNames;
7852 +var __getProtoOf = Object.getPrototypeOf;
7853 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7854 +var __export = (target, all) => {
7855 + for (var name in all)
7856 + __defProp(target, name, { get: all[name], enumerable: true });
7857 +};
7858 +var __copyProps = (to, from, except, desc) => {
7859 + if (from && typeof from === "object" || typeof from === "function") {
7860 + for (let key of __getOwnPropNames(from))
7861 + if (!__hasOwnProp.call(to, key) && key !== except)
7862 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7863 + }
7864 + return to;
7865 +};
7866 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7867 + // If the importer is in node compatibility mode or this is not an ESM
7868 + // file that has been converted to a CommonJS file using a Babel-
7869 + // compatible transform (i.e. "__esModule" has not been set), then set
7870 + // "default" to the CommonJS "module.exports" for node compatibility.
7871 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7872 + mod
7873 +));
7874 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7875 +
7876 +// src/useIsFetching.ts
7877 +var useIsFetching_exports = {};
7878 +__export(useIsFetching_exports, {
7879 + useIsFetching: () => useIsFetching
7880 +});
7881 +module.exports = __toCommonJS(useIsFetching_exports);
7882 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7883 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7884 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7885 +function useIsFetching(filters, queryClient) {
7886 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7887 + const queryCache = client.getQueryCache();
7888 + return React.useSyncExternalStore(
7889 + React.useCallback(
7890 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7891 + [queryCache]
7892 + ),
7893 + () => client.isFetching(filters),
7894 + () => client.isFetching(filters)
7895 + );
7896 +}
7897 +// Annotate the CommonJS export names for ESM import in node:
7898 +0 && (0);
7899 +//# sourceMappingURL=useIsFetching.cjs.map
7900 +
7901 +/***/ }),
7902 +
7903 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
7904 +/*!**************************************************************************!*\
7905 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
7906 + \**************************************************************************/
7907 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7908 +
7909 +"use strict";
7910 +
7911 +"use client";
7912 +var __create = Object.create;
7913 +var __defProp = Object.defineProperty;
7914 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7915 +var __getOwnPropNames = Object.getOwnPropertyNames;
7916 +var __getProtoOf = Object.getPrototypeOf;
7917 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7918 +var __export = (target, all) => {
7919 + for (var name in all)
7920 + __defProp(target, name, { get: all[name], enumerable: true });
7921 +};
7922 +var __copyProps = (to, from, except, desc) => {
7923 + if (from && typeof from === "object" || typeof from === "function") {
7924 + for (let key of __getOwnPropNames(from))
7925 + if (!__hasOwnProp.call(to, key) && key !== except)
7926 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7927 + }
7928 + return to;
7929 +};
7930 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7931 + // If the importer is in node compatibility mode or this is not an ESM
7932 + // file that has been converted to a CommonJS file using a Babel-
7933 + // compatible transform (i.e. "__esModule" has not been set), then set
7934 + // "default" to the CommonJS "module.exports" for node compatibility.
7935 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7936 + mod
7937 +));
7938 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7939 +
7940 +// src/useMutation.ts
7941 +var useMutation_exports = {};
7942 +__export(useMutation_exports, {
7943 + useMutation: () => useMutation
7944 +});
7945 +module.exports = __toCommonJS(useMutation_exports);
7946 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7947 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7948 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7949 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7950 +function useMutation(options, queryClient) {
7951 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7952 + const [observer] = React.useState(
7953 + () => new import_query_core.MutationObserver(
7954 + client,
7955 + options
7956 + )
7957 + );
7958 + React.useEffect(() => {
7959 + observer.setOptions(options);
7960 + }, [observer, options]);
7961 + const result = React.useSyncExternalStore(
7962 + React.useCallback(
7963 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7964 + [observer]
7965 + ),
7966 + () => observer.getCurrentResult(),
7967 + () => observer.getCurrentResult()
7968 + );
7969 + const mutate = React.useCallback(
7970 + (variables, mutateOptions) => {
7971 + observer.mutate(variables, mutateOptions).catch(import_utils.noop);
7972 + },
7973 + [observer]
7974 + );
7975 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
7976 + throw result.error;
7977 + }
7978 + return { ...result, mutate, mutateAsync: result.mutate };
7979 +}
7980 +// Annotate the CommonJS export names for ESM import in node:
7981 +0 && (0);
7982 +//# sourceMappingURL=useMutation.cjs.map
7983 +
7984 +/***/ }),
7985 +
7986 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
7987 +/*!*******************************************************************************!*\
7988 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
7989 + \*******************************************************************************/
7990 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7991 +
7992 +"use strict";
7993 +
7994 +"use client";
7995 +var __create = Object.create;
7996 +var __defProp = Object.defineProperty;
7997 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7998 +var __getOwnPropNames = Object.getOwnPropertyNames;
7999 +var __getProtoOf = Object.getPrototypeOf;
8000 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8001 +var __export = (target, all) => {
8002 + for (var name in all)
8003 + __defProp(target, name, { get: all[name], enumerable: true });
8004 +};
8005 +var __copyProps = (to, from, except, desc) => {
8006 + if (from && typeof from === "object" || typeof from === "function") {
8007 + for (let key of __getOwnPropNames(from))
8008 + if (!__hasOwnProp.call(to, key) && key !== except)
8009 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8010 + }
8011 + return to;
8012 +};
8013 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
8014 + // If the importer is in node compatibility mode or this is not an ESM
8015 + // file that has been converted to a CommonJS file using a Babel-
8016 + // compatible transform (i.e. "__esModule" has not been set), then set
8017 + // "default" to the CommonJS "module.exports" for node compatibility.
8018 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
8019 + mod
8020 +));
8021 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8022 +
8023 +// src/useMutationState.ts
8024 +var useMutationState_exports = {};
8025 +__export(useMutationState_exports, {
8026 + useIsMutating: () => useIsMutating,
8027 + useMutationState: () => useMutationState
8028 +});
8029 +module.exports = __toCommonJS(useMutationState_exports);
8030 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
8031 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8032 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
8033 +function useIsMutating(filters, queryClient) {
8034 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
8035 + return useMutationState(
8036 + { filters: { ...filters, status: "pending" } },
8037 + client
8038 + ).length;
8039 +}
8040 +function getResult(mutationCache, options) {
8041 + return mutationCache.findAll(options.filters).map(
8042 + (mutation) => options.select ? options.select(mutation) : mutation.state
8043 + );
8044 +}
8045 +function useMutationState(options = {}, queryClient) {
8046 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
8047 + const optionsRef = React.useRef(options);
8048 + const result = React.useRef(null);
8049 + if (!result.current) {
8050 + result.current = getResult(mutationCache, options);
8051 + }
8052 + React.useEffect(() => {
8053 + optionsRef.current = options;
8054 + });
8055 + return React.useSyncExternalStore(
8056 + React.useCallback(
8057 + (onStoreChange) => mutationCache.subscribe(() => {
8058 + const nextResult = (0, import_query_core.replaceEqualDeep)(
8059 + result.current,
8060 + getResult(mutationCache, optionsRef.current)
8061 + );
8062 + if (result.current !== nextResult) {
8063 + result.current = nextResult;
8064 + import_query_core.notifyManager.schedule(onStoreChange);
8065 + }
8066 + }),
8067 + [mutationCache]
8068 + ),
8069 + () => result.current,
8070 + () => result.current
8071 + );
8072 +}
8073 +// Annotate the CommonJS export names for ESM import in node:
8074 +0 && (0);
8075 +//# sourceMappingURL=useMutationState.cjs.map
8076 +
8077 +/***/ }),
8078 +
8079 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
8080 +/*!*************************************************************************!*\
8081 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
8082 + \*************************************************************************/
8083 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8084 +
8085 +"use strict";
8086 +
8087 +"use client";
8088 +var __create = Object.create;
8089 +var __defProp = Object.defineProperty;
8090 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8091 +var __getOwnPropNames = Object.getOwnPropertyNames;
8092 +var __getProtoOf = Object.getPrototypeOf;
8093 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8094 +var __export = (target, all) => {
8095 + for (var name in all)
8096 + __defProp(target, name, { get: all[name], enumerable: true });
8097 +};
8098 +var __copyProps = (to, from, except, desc) => {
8099 + if (from && typeof from === "object" || typeof from === "function") {
8100 + for (let key of __getOwnPropNames(from))
8101 + if (!__hasOwnProp.call(to, key) && key !== except)
8102 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8103 + }
8104 + return to;
8105 +};
8106 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
8107 + // If the importer is in node compatibility mode or this is not an ESM
8108 + // file that has been converted to a CommonJS file using a Babel-
8109 + // compatible transform (i.e. "__esModule" has not been set), then set
8110 + // "default" to the CommonJS "module.exports" for node compatibility.
8111 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
8112 + mod
8113 +));
8114 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8115 +
8116 +// src/useQueries.ts
8117 +var useQueries_exports = {};
8118 +__export(useQueries_exports, {
8119 + useQueries: () => useQueries
8120 +});
8121 +module.exports = __toCommonJS(useQueries_exports);
8122 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
8123 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8124 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
8125 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
8126 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
8127 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
8128 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8129 +function useQueries({
8130 + queries,
8131 + ...options
8132 +}, queryClient) {
8133 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
8134 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
8135 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
8136 + const defaultedQueries = React.useMemo(
8137 + () => queries.map((opts) => {
8138 + const defaultedOptions = client.defaultQueryOptions(
8139 + opts
8140 + );
8141 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
8142 + return defaultedOptions;
8143 + }),
8144 + [queries, client, isRestoring]
8145 + );
8146 + defaultedQueries.forEach((query) => {
8147 + (0, import_suspense.ensureStaleTime)(query);
8148 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
8149 + });
8150 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
8151 + const [observer] = React.useState(
8152 + () => new import_query_core.QueriesObserver(
8153 + client,
8154 + defaultedQueries,
8155 + options
8156 + )
8157 + );
8158 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(
8159 + defaultedQueries,
8160 + options.combine
8161 + );
8162 + React.useSyncExternalStore(
8163 + React.useCallback(
8164 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
8165 + [observer, isRestoring]
8166 + ),
8167 + () => observer.getCurrentResult(),
8168 + () => observer.getCurrentResult()
8169 + );
8170 + React.useEffect(() => {
8171 + observer.setQueries(
8172 + defaultedQueries,
8173 + options,
8174 + {
8175 + listeners: false
8176 + }
8177 + );
8178 + }, [defaultedQueries, options, observer]);
8179 + const shouldAtLeastOneSuspend = optimisticResult.some(
8180 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result)
8181 + );
8182 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
8183 + const opts = defaultedQueries[index];
8184 + if (opts) {
8185 + const queryObserver = new import_query_core.QueryObserver(client, opts);
8186 + if ((0, import_suspense.shouldSuspend)(opts, result)) {
8187 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
8188 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
8189 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
8190 + }
8191 + }
8192 + return [];
8193 + }) : [];
8194 + if (suspensePromises.length > 0) {
8195 + throw Promise.all(suspensePromises);
8196 + }
8197 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
8198 + (result, index) => {
8199 + const query = defaultedQueries[index];
8200 + return query && (0, import_errorBoundaryUtils.getHasError)({
8201 + result,
8202 + errorResetBoundary,
8203 + throwOnError: query.throwOnError,
8204 + query: client.getQueryCache().get(query.queryHash)
8205 + });
8206 + }
8207 + );
8208 + if (firstSingleResultWhichShouldThrow?.error) {
8209 + throw firstSingleResultWhichShouldThrow.error;
8210 + }
8211 + return getCombinedResult(trackResult());
8212 +}
8213 +// Annotate the CommonJS export names for ESM import in node:
8214 +0 && (0);
8215 +//# sourceMappingURL=useQueries.cjs.map
8216 +
8217 +/***/ }),
8218 +
8219 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
8220 +/*!***********************************************************************!*\
8221 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
8222 + \***********************************************************************/
8223 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8224 +
8225 +"use strict";
8226 +
8227 +"use client";
8228 +var __defProp = Object.defineProperty;
8229 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8230 +var __getOwnPropNames = Object.getOwnPropertyNames;
8231 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8232 +var __export = (target, all) => {
8233 + for (var name in all)
8234 + __defProp(target, name, { get: all[name], enumerable: true });
8235 +};
8236 +var __copyProps = (to, from, except, desc) => {
8237 + if (from && typeof from === "object" || typeof from === "function") {
8238 + for (let key of __getOwnPropNames(from))
8239 + if (!__hasOwnProp.call(to, key) && key !== except)
8240 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8241 + }
8242 + return to;
8243 +};
8244 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8245 +
8246 +// src/useQuery.ts
8247 +var useQuery_exports = {};
8248 +__export(useQuery_exports, {
8249 + useQuery: () => useQuery
8250 +});
8251 +module.exports = __toCommonJS(useQuery_exports);
8252 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8253 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8254 +function useQuery(options, queryClient) {
8255 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
8256 +}
8257 +// Annotate the CommonJS export names for ESM import in node:
8258 +0 && (0);
8259 +//# sourceMappingURL=useQuery.cjs.map
8260 +
8261 +/***/ }),
8262 +
8263 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
8264 +/*!***************************************************************************************!*\
8265 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
8266 + \***************************************************************************************/
8267 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8268 +
8269 +"use strict";
8270 +
8271 +"use client";
8272 +var __defProp = Object.defineProperty;
8273 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8274 +var __getOwnPropNames = Object.getOwnPropertyNames;
8275 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8276 +var __export = (target, all) => {
8277 + for (var name in all)
8278 + __defProp(target, name, { get: all[name], enumerable: true });
8279 +};
8280 +var __copyProps = (to, from, except, desc) => {
8281 + if (from && typeof from === "object" || typeof from === "function") {
8282 + for (let key of __getOwnPropNames(from))
8283 + if (!__hasOwnProp.call(to, key) && key !== except)
8284 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8285 + }
8286 + return to;
8287 +};
8288 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8289 +
8290 +// src/useSuspenseInfiniteQuery.ts
8291 +var useSuspenseInfiniteQuery_exports = {};
8292 +__export(useSuspenseInfiniteQuery_exports, {
8293 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
8294 +});
8295 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
8296 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8297 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8298 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8299 +function useSuspenseInfiniteQuery(options, queryClient) {
8300 + return (0, import_useBaseQuery.useBaseQuery)(
8301 + {
8302 + ...options,
8303 + enabled: true,
8304 + suspense: true,
8305 + throwOnError: import_suspense.defaultThrowOnError
8306 + },
8307 + import_query_core.InfiniteQueryObserver,
8308 + queryClient
8309 + );
8310 +}
8311 +// Annotate the CommonJS export names for ESM import in node:
8312 +0 && (0);
8313 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
8314 +
8315 +/***/ }),
8316 +
8317 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
8318 +/*!*********************************************************************************!*\
8319 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
8320 + \*********************************************************************************/
8321 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8322 +
8323 +"use strict";
8324 +
8325 +"use client";
8326 +var __defProp = Object.defineProperty;
8327 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8328 +var __getOwnPropNames = Object.getOwnPropertyNames;
8329 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8330 +var __export = (target, all) => {
8331 + for (var name in all)
8332 + __defProp(target, name, { get: all[name], enumerable: true });
8333 +};
8334 +var __copyProps = (to, from, except, desc) => {
8335 + if (from && typeof from === "object" || typeof from === "function") {
8336 + for (let key of __getOwnPropNames(from))
8337 + if (!__hasOwnProp.call(to, key) && key !== except)
8338 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8339 + }
8340 + return to;
8341 +};
8342 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8343 +
8344 +// src/useSuspenseQueries.ts
8345 +var useSuspenseQueries_exports = {};
8346 +__export(useSuspenseQueries_exports, {
8347 + useSuspenseQueries: () => useSuspenseQueries
8348 +});
8349 +module.exports = __toCommonJS(useSuspenseQueries_exports);
8350 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
8351 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8352 +function useSuspenseQueries(options, queryClient) {
8353 + return (0, import_useQueries.useQueries)(
8354 + {
8355 + ...options,
8356 + queries: options.queries.map((query) => ({
8357 + ...query,
8358 + suspense: true,
8359 + throwOnError: import_suspense.defaultThrowOnError,
8360 + enabled: true,
8361 + placeholderData: void 0
8362 + }))
8363 + },
8364 + queryClient
8365 + );
8366 +}
8367 +// Annotate the CommonJS export names for ESM import in node:
8368 +0 && (0);
8369 +//# sourceMappingURL=useSuspenseQueries.cjs.map
8370 +
8371 +/***/ }),
8372 +
8373 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
8374 +/*!*******************************************************************************!*\
8375 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
8376 + \*******************************************************************************/
8377 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8378 +
8379 +"use strict";
8380 +
8381 +"use client";
8382 +var __defProp = Object.defineProperty;
8383 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8384 +var __getOwnPropNames = Object.getOwnPropertyNames;
8385 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8386 +var __export = (target, all) => {
8387 + for (var name in all)
8388 + __defProp(target, name, { get: all[name], enumerable: true });
8389 +};
8390 +var __copyProps = (to, from, except, desc) => {
8391 + if (from && typeof from === "object" || typeof from === "function") {
8392 + for (let key of __getOwnPropNames(from))
8393 + if (!__hasOwnProp.call(to, key) && key !== except)
8394 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8395 + }
8396 + return to;
8397 +};
8398 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8399 +
8400 +// src/useSuspenseQuery.ts
8401 +var useSuspenseQuery_exports = {};
8402 +__export(useSuspenseQuery_exports, {
8403 + useSuspenseQuery: () => useSuspenseQuery
8404 +});
8405 +module.exports = __toCommonJS(useSuspenseQuery_exports);
8406 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8407 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8408 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8409 +function useSuspenseQuery(options, queryClient) {
8410 + if (true) {
8411 + if (options.queryFn === import_query_core.skipToken) {
8412 + console.error("skipToken is not allowed for useSuspenseQuery");
8413 + }
8414 + }
8415 + return (0, import_useBaseQuery.useBaseQuery)(
8416 + {
8417 + ...options,
8418 + enabled: true,
8419 + suspense: true,
8420 + throwOnError: import_suspense.defaultThrowOnError,
8421 + placeholderData: void 0
8422 + },
8423 + import_query_core.QueryObserver,
8424 + queryClient
8425 + );
8426 +}
8427 +// Annotate the CommonJS export names for ESM import in node:
8428 +0 && (0);
8429 +//# sourceMappingURL=useSuspenseQuery.cjs.map
8430 +
8431 +/***/ }),
8432 +
8433 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
8434 +/*!********************************************************************!*\
8435 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
8436 + \********************************************************************/
8437 +/***/ ((module) => {
8438 +
8439 +"use strict";
8440 +
8441 +var __defProp = Object.defineProperty;
8442 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8443 +var __getOwnPropNames = Object.getOwnPropertyNames;
8444 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8445 +var __export = (target, all) => {
8446 + for (var name in all)
8447 + __defProp(target, name, { get: all[name], enumerable: true });
8448 +};
8449 +var __copyProps = (to, from, except, desc) => {
8450 + if (from && typeof from === "object" || typeof from === "function") {
8451 + for (let key of __getOwnPropNames(from))
8452 + if (!__hasOwnProp.call(to, key) && key !== except)
8453 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8454 + }
8455 + return to;
8456 +};
8457 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8458 +
8459 +// src/utils.ts
8460 +var utils_exports = {};
8461 +__export(utils_exports, {
8462 + noop: () => noop,
8463 + shouldThrowError: () => shouldThrowError
8464 +});
8465 +module.exports = __toCommonJS(utils_exports);
8466 +function shouldThrowError(throwError, params) {
8467 + if (typeof throwError === "function") {
8468 + return throwError(...params);
8469 + }
8470 + return !!throwError;
8471 +}
8472 +function noop() {
8473 +}
8474 +// Annotate the CommonJS export names for ESM import in node:
8475 +0 && (0);
8476 +//# sourceMappingURL=utils.cjs.map
8477 +
8478 +/***/ })
8479 +
8480 +/******/ });
8481 +/************************************************************************/
8482 +/******/ // The module cache
8483 +/******/ var __webpack_module_cache__ = {};
8484 +/******/
8485 +/******/ // The require function
8486 +/******/ function __webpack_require__(moduleId) {
8487 +/******/ // Check if module is in cache
8488 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
8489 +/******/ if (cachedModule !== undefined) {
8490 +/******/ return cachedModule.exports;
8491 +/******/ }
8492 +/******/ // Create a new module (and put it into the cache)
8493 +/******/ var module = __webpack_module_cache__[moduleId] = {
8494 +/******/ // no module.id needed
8495 +/******/ // no module.loaded needed
8496 +/******/ exports: {}
8497 +/******/ };
8498 +/******/
8499 +/******/ // Execute the module function
8500 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
8501 +/******/
8502 +/******/ // Return the exports of the module
8503 +/******/ return module.exports;
8504 +/******/ }
8505 +/******/
8506 +/************************************************************************/
8507 +var __webpack_exports__ = {};
8508 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
8509 +(() => {
8510 +"use strict";
8511 +/*!****************************************************!*\
8512 + !*** ../modules/notifications/assets/js/editor.js ***!
8513 + \****************************************************/
8514 +
8515 +
8516 +var _editorV = __webpack_require__(/*! ./components/editor-v1 */ "../modules/notifications/assets/js/components/editor-v1.js");
8517 +var _editorV2 = __webpack_require__(/*! ./components/editor-v2 */ "../modules/notifications/assets/js/components/editor-v2.js");
8518 +var _window;
8519 +if ((_window = window) !== null && _window !== void 0 && (_window = _window.elementorV2) !== null && _window !== void 0 && _window.editorAppBar) {
8520 + (0, _editorV2.editorV2)();
8521 +} else {
8522 + (0, _editorV.editorV1)();
8523 +}
8524 +})();
8525 +
8526 +/******/ })()
8527 +;
1578 8528 //# sourceMappingURL=editor-notifications.js.map