PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.2
4.3.1 4.3.0 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 All 454 releases
← All changes | assets/js/editor-notifications.js +8493 -1521 4.3.0 → 3.25.2 View file →
@@ -1,1578 +1,8550 @@
1 -(function(_wordpress_i18n, react, react_dom, _elementor_ui, _elementor_query, _elementor_icons, _elementor_editor_app_bar, _elementor_icons_SpeakerphoneIcon) {
1 +/*! elementor - v3.25.0 - 29-10-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(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
79 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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 = {
110 + render: render
111 +};
112 +exports["default"] = _default;
113 +
114 +/***/ }),
115 +
116 +/***/ "../modules/notifications/assets/js/api/index.js":
117 +/*!*******************************************************!*\
118 + !*** ../modules/notifications/assets/js/api/index.js ***!
119 + \*******************************************************/
120 +/***/ ((__unused_webpack_module, exports) => {
121 +
122 +"use strict";
123 +
124 +
125 +Object.defineProperty(exports, "__esModule", ({
126 + value: true
127 +}));
128 +exports.getNotifications = void 0;
129 +var request = function request(endpoint) {
130 + var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
131 + return new Promise(function (resolve, reject) {
132 + elementorCommon.ajax.addRequest(endpoint, {
133 + success: resolve,
134 + error: reject,
135 + data: data
136 + });
137 + });
138 +};
139 +var getNotifications = function getNotifications() {
140 + return request('notifications_get');
141 +};
142 +exports.getNotifications = getNotifications;
143 +
144 +/***/ }),
145 +
146 +/***/ "../modules/notifications/assets/js/components/editor-drawer.js":
147 +/*!**********************************************************************!*\
148 + !*** ../modules/notifications/assets/js/components/editor-drawer.js ***!
149 + \**********************************************************************/
150 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
151 +
152 +"use strict";
153 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
154 +
155 +
156 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
157 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
158 +Object.defineProperty(exports, "__esModule", ({
159 + value: true
160 +}));
161 +exports.EditorDrawer = void 0;
162 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
163 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
164 +var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
165 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
166 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
167 +var EditorDrawer = function EditorDrawer(_ref) {
168 + var _ref$anchorPosition = _ref.anchorPosition,
169 + anchorPosition = _ref$anchorPosition === void 0 ? 'left' : _ref$anchorPosition;
170 + var _useState = (0, _react.useState)(true),
171 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
172 + isOpen = _useState2[0],
173 + setIsOpen = _useState2[1];
174 + (0, _react.useEffect)(function () {
175 + elementor.on('elementor/editor/panel/whats-new/clicked', function () {
176 + return setIsOpen(true);
177 + });
178 + }, []);
179 + return /*#__PURE__*/_react.default.createElement(_whatsNew.WhatsNew, {
180 + isOpen: isOpen,
181 + setIsOpen: setIsOpen,
182 + setIsRead: function setIsRead() {
183 + return document.body.classList.remove('e-has-notification');
184 + },
185 + anchorPosition: anchorPosition
186 + });
187 +};
188 +exports.EditorDrawer = EditorDrawer;
189 +EditorDrawer.propTypes = {
190 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
191 +};
192 +
193 +/***/ }),
194 +
195 +/***/ "../modules/notifications/assets/js/components/editor-on-button-clicked.js":
196 +/*!*********************************************************************************!*\
197 + !*** ../modules/notifications/assets/js/components/editor-on-button-clicked.js ***!
198 + \*********************************************************************************/
199 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
200 +
201 +"use strict";
202 +
203 +
204 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
205 +Object.defineProperty(exports, "__esModule", ({
206 + value: true
207 +}));
208 +exports.editorOnButtonClicked = void 0;
209 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
210 +var _react2 = _interopRequireDefault(__webpack_require__(/*! elementor-utils/react */ "../assets/dev/js/utils/react.js"));
211 +var _editorDrawer = __webpack_require__(/*! ./editor-drawer */ "../modules/notifications/assets/js/components/editor-drawer.js");
212 +var isRendered = false;
213 +var editorOnButtonClicked = function editorOnButtonClicked() {
214 + var anchorPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'left';
215 + if (!isRendered) {
216 + isRendered = true;
217 + var container = document.createElement('div');
218 + document.body.append(container);
219 + _react2.default.render( /*#__PURE__*/_react.default.createElement(_editorDrawer.EditorDrawer, {
220 + anchorPosition: anchorPosition
221 + }), container);
222 + return;
223 + }
224 + elementor.trigger('elementor/editor/panel/whats-new/clicked');
225 +};
226 +exports.editorOnButtonClicked = editorOnButtonClicked;
227 +
228 +/***/ }),
229 +
230 +/***/ "../modules/notifications/assets/js/components/editor-v1.js":
231 +/*!******************************************************************!*\
232 + !*** ../modules/notifications/assets/js/components/editor-v1.js ***!
233 + \******************************************************************/
234 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
235 +
236 +"use strict";
237 +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
238 +
239 +
240 +Object.defineProperty(exports, "__esModule", ({
241 + value: true
242 +}));
243 +exports.editorV1 = void 0;
244 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
245 +var editorV1 = function editorV1() {
246 + elementor.on('panel:init', function () {
247 + if (elementorNotifications.is_unread) {
248 + document.body.classList.add('e-has-notification');
249 + }
250 + elementor.getPanelView().getPages('menu').view.addItem({
251 + name: 'notification-center',
252 + icon: 'eicon-speakerphone',
253 + title: __('What\'s New', 'elementor'),
254 + callback: _editorOnButtonClicked.editorOnButtonClicked
255 + }, 'navigate_from_page', 'view-page');
256 + });
257 +};
258 +exports.editorV1 = editorV1;
259 +
260 +/***/ }),
261 +
262 +/***/ "../modules/notifications/assets/js/components/editor-v2.js":
263 +/*!******************************************************************!*\
264 + !*** ../modules/notifications/assets/js/components/editor-v2.js ***!
265 + \******************************************************************/
266 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
267 +
268 +"use strict";
269 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
270 +
271 +
272 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
273 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
274 +Object.defineProperty(exports, "__esModule", ({
275 + value: true
276 +}));
277 +exports.editorV2 = void 0;
278 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
279 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
280 +var _editorOnButtonClicked = __webpack_require__(/*! ./editor-on-button-clicked */ "../modules/notifications/assets/js/components/editor-on-button-clicked.js");
281 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
282 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
283 +var _SpeakerphoneIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/SpeakerphoneIcon */ "@elementor/icons/SpeakerphoneIcon"));
284 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
285 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
286 +var IconWithBadge = function IconWithBadge(_ref) {
287 + var invisible = _ref.invisible;
288 + return /*#__PURE__*/_react.default.createElement(_ui.Badge, {
289 + color: "primary",
290 + variant: "dot",
291 + invisible: invisible
292 + }, /*#__PURE__*/_react.default.createElement(_SpeakerphoneIcon.default, null));
293 +};
294 +IconWithBadge.propTypes = {
295 + invisible: PropTypes.bool
296 +};
297 +var editorV2 = function editorV2() {
298 + var utilitiesMenu = window.elementorV2.editorAppBar.utilitiesMenu;
299 + utilitiesMenu.registerLink({
300 + id: 'app-bar-menu-item-whats-new',
301 + priority: 10,
302 + useProps: function useProps() {
303 + var _useState = (0, _react.useState)(!elementorNotifications.is_unread),
304 + _useState2 = (0, _slicedToArray2.default)(_useState, 2),
305 + isRead = _useState2[0],
306 + setIsRead = _useState2[1];
307 + return {
308 + title: (0, _i18n.__)("What's New", 'elementor'),
309 + icon: function icon() {
310 + return /*#__PURE__*/_react.default.createElement(IconWithBadge, {
311 + invisible: isRead
312 + });
313 + },
314 + onClick: function onClick() {
315 + elementor.editorEvents.dispatchEvent(elementor.editorEvents.config.names.topBar.whatsNew, {
316 + location: elementor.editorEvents.config.locations.topBar,
317 + secondaryLocation: elementor.editorEvents.config.secondaryLocations['whats-new'],
318 + trigger: elementor.editorEvents.config.triggers.click,
319 + element: elementor.editorEvents.config.elements.buttonIcon
320 + });
321 + setIsRead(true);
322 + elementorNotifications.is_unread = false;
323 + (0, _editorOnButtonClicked.editorOnButtonClicked)('right');
324 + }
325 + };
326 + }
327 + });
328 +};
329 +exports.editorV2 = editorV2;
330 +
331 +/***/ }),
332 +
333 +/***/ "../modules/notifications/assets/js/components/whats-new-drawer-content.js":
334 +/*!*********************************************************************************!*\
335 + !*** ../modules/notifications/assets/js/components/whats-new-drawer-content.js ***!
336 + \*********************************************************************************/
337 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
338 +
339 +"use strict";
340 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
341 +
342 +
343 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
344 +Object.defineProperty(exports, "__esModule", ({
345 + value: true
346 +}));
347 +exports.WhatsNewDrawerContent = void 0;
348 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
349 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
350 +var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
351 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
352 +var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
353 +var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
354 + var setIsOpen = _ref.setIsOpen;
355 + var _useQuery = (0, _query.useQuery)({
356 + queryKey: ['e-notifications'],
357 + queryFn: _api.getNotifications
358 + }),
359 + isPending = _useQuery.isPending,
360 + error = _useQuery.error,
361 + items = _useQuery.data;
362 + if (isPending) {
363 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.LinearProgress, {
364 + color: "secondary"
365 + }));
366 + }
367 + if (error) {
368 + return /*#__PURE__*/_react.default.createElement(_ui.Box, null, "An error has occurred: ", error);
369 + }
370 + return items.map(function (item, itemIndex) {
371 + return /*#__PURE__*/_react.default.createElement(_whatsNewItem.WhatsNewItem, {
372 + key: itemIndex,
373 + item: item,
374 + itemIndex: itemIndex,
375 + itemsLength: items.length,
376 + setIsOpen: setIsOpen
377 + });
378 + });
379 +};
380 +exports.WhatsNewDrawerContent = WhatsNewDrawerContent;
381 +WhatsNewDrawerContent.propTypes = {
382 + setIsOpen: PropTypes.func.isRequired
383 +};
384 +
385 +/***/ }),
386 +
387 +/***/ "../modules/notifications/assets/js/components/whats-new-item-chips.js":
388 +/*!*****************************************************************************!*\
389 + !*** ../modules/notifications/assets/js/components/whats-new-item-chips.js ***!
390 + \*****************************************************************************/
391 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
392 +
393 +"use strict";
394 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
395 +
396 +
397 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
398 +Object.defineProperty(exports, "__esModule", ({
399 + value: true
400 +}));
401 +exports.WhatsNewItemChips = void 0;
402 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
403 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
404 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
405 +var WhatsNewItemChips = function WhatsNewItemChips(_ref) {
406 + var chipPlan = _ref.chipPlan,
407 + chipTags = _ref.chipTags,
408 + itemIndex = _ref.itemIndex;
409 + var chips = [];
410 + if (chipPlan) {
411 + chips.push({
412 + color: 'promotion',
413 + size: 'small',
414 + label: chipPlan
415 + });
416 + }
417 + if (chipTags) {
418 + chipTags.forEach(function (chipTag) {
419 + chips.push({
420 + variant: 'outlined',
421 + size: 'small',
422 + label: chipTag
423 + });
424 + });
425 + }
426 + if (!chips.length) {
427 + return null;
428 + }
429 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
430 + direction: "row",
431 + flexWrap: "wrap",
432 + gap: 1,
433 + sx: {
434 + pb: 1
435 + }
436 + }, chips.map(function (chip, chipIndex) {
437 + return /*#__PURE__*/_react.default.createElement(_ui.Chip, (0, _extends2.default)({
438 + key: "chip-".concat(itemIndex).concat(chipIndex)
439 + }, chip));
440 + }));
441 +};
442 +exports.WhatsNewItemChips = WhatsNewItemChips;
443 +WhatsNewItemChips.propTypes = {
444 + chipPlan: PropTypes.string,
445 + chipTags: PropTypes.array,
446 + itemIndex: PropTypes.number.isRequired
447 +};
448 +
449 +/***/ }),
450 +
451 +/***/ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js":
452 +/*!*********************************************************************************!*\
453 + !*** ../modules/notifications/assets/js/components/whats-new-item-thumbnail.js ***!
454 + \*********************************************************************************/
455 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
456 +
457 +"use strict";
458 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
459 +
460 +
461 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
462 +Object.defineProperty(exports, "__esModule", ({
463 + value: true
464 +}));
465 +exports.WhatsNewItemThumbnail = void 0;
466 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
467 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
468 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
469 +var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
470 + var imageSrc = _ref.imageSrc,
471 + title = _ref.title,
472 + link = _ref.link;
473 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
474 + sx: {
475 + pb: 2
476 + }
477 + }, /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
478 + link: link
479 + }, /*#__PURE__*/_react.default.createElement("img", {
480 + src: imageSrc,
481 + alt: title,
482 + style: {
483 + maxWidth: '100%'
484 + }
485 + })));
486 +};
487 +exports.WhatsNewItemThumbnail = WhatsNewItemThumbnail;
488 +WhatsNewItemThumbnail.propTypes = {
489 + imageSrc: PropTypes.string.isRequired,
490 + title: PropTypes.string.isRequired,
491 + link: PropTypes.string
492 +};
493 +
494 +/***/ }),
495 +
496 +/***/ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js":
497 +/*!**********************************************************************************!*\
498 + !*** ../modules/notifications/assets/js/components/whats-new-item-topic-line.js ***!
499 + \**********************************************************************************/
500 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
501 +
502 +"use strict";
503 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
504 +
505 +
506 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
507 +Object.defineProperty(exports, "__esModule", ({
508 + value: true
509 +}));
510 +exports.WhatsNewItemTopicLine = void 0;
511 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
512 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
513 +var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
514 + var topic = _ref.topic,
515 + date = _ref.date;
516 + return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
517 + direction: "row",
518 + divider: /*#__PURE__*/_react.default.createElement(_ui.Divider, {
519 + orientation: "vertical",
520 + flexItem: true
521 + }),
522 + spacing: 1,
523 + color: "text.tertiary",
524 + sx: {
525 + pb: 1
526 + }
527 + }, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
528 +};
529 +exports.WhatsNewItemTopicLine = WhatsNewItemTopicLine;
530 +WhatsNewItemTopicLine.propTypes = {
531 + topic: PropTypes.string,
532 + date: PropTypes.string
533 +};
534 +
535 +/***/ }),
536 +
537 +/***/ "../modules/notifications/assets/js/components/whats-new-item.js":
538 +/*!***********************************************************************!*\
539 + !*** ../modules/notifications/assets/js/components/whats-new-item.js ***!
540 + \***********************************************************************/
541 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
542 +
543 +"use strict";
544 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
545 +
546 +
547 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
548 +Object.defineProperty(exports, "__esModule", ({
549 + value: true
550 +}));
551 +exports.WhatsNewItem = void 0;
552 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
553 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
554 +var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
555 +var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
556 +var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
557 +var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
558 +var WhatsNewItem = function WhatsNewItem(_ref) {
559 + var item = _ref.item,
560 + itemIndex = _ref.itemIndex,
561 + itemsLength = _ref.itemsLength,
562 + setIsOpen = _ref.setIsOpen;
563 + return /*#__PURE__*/_react.default.createElement(_ui.Box, {
564 + key: itemIndex,
565 + display: "flex",
566 + flexDirection: "column",
567 + sx: {
568 + pt: 2
569 + }
570 + }, (item.topic || item.date) && /*#__PURE__*/_react.default.createElement(_whatsNewItemTopicLine.WhatsNewItemTopicLine, {
571 + topic: item.topic,
572 + date: item.date
573 + }), /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
574 + link: item.link
575 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
576 + variant: "subtitle1",
577 + sx: {
578 + pb: 2
579 + }
580 + }, item.title)), item.imageSrc && /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
581 + imageSrc: item.imageSrc,
582 + link: item.link,
583 + title: item.title
584 + }), /*#__PURE__*/_react.default.createElement(_whatsNewItemChips.WhatsNewItemChips, {
585 + chipPlan: item.chipPlan,
586 + chipTags: item.chipTags,
587 + itemIndex: itemIndex
588 + }), item.description && /*#__PURE__*/_react.default.createElement(_ui.Typography, {
589 + variant: "body2",
590 + color: "text.secondary",
591 + sx: {
592 + pb: 2
593 + }
594 + }, item.description, item.readMoreText && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ' ', /*#__PURE__*/_react.default.createElement(_ui.Link, {
595 + href: item.link,
596 + color: "info.main",
597 + target: "_blank"
598 + }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/_react.default.createElement(_ui.Box, {
599 + sx: {
600 + pb: 2
601 + }
602 + }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
603 + href: item.ctaLink,
604 + target: item.ctaLink.startsWith('#') ? '_self' : '_blank',
605 + variant: "contained",
606 + size: "small",
607 + color: "promotion",
608 + onClick: item.ctaLink.startsWith('#') ? function () {
609 + return setIsOpen(false);
610 + } : function () {}
611 + }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
612 + sx: {
613 + my: 1
614 + }
615 + }));
616 +};
617 +exports.WhatsNewItem = WhatsNewItem;
618 +WhatsNewItem.propTypes = {
619 + item: PropTypes.object.isRequired,
620 + itemIndex: PropTypes.number.isRequired,
621 + itemsLength: PropTypes.number.isRequired,
622 + setIsOpen: PropTypes.func.isRequired
623 +};
624 +
625 +/***/ }),
626 +
627 +/***/ "../modules/notifications/assets/js/components/whats-new-top-bar.js":
628 +/*!**************************************************************************!*\
629 + !*** ../modules/notifications/assets/js/components/whats-new-top-bar.js ***!
630 + \**************************************************************************/
631 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
632 +
633 +"use strict";
634 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
635 +
636 +
637 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
638 +Object.defineProperty(exports, "__esModule", ({
639 + value: true
640 +}));
641 +exports.WhatsNewTopBar = void 0;
642 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
643 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
644 +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
645 +var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
646 +var WhatsNewTopBar = function WhatsNewTopBar(props) {
647 + var setIsOpen = props.setIsOpen;
648 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
649 + elevation: 0,
650 + position: "sticky",
651 + sx: {
652 + backgroundColor: 'background.default'
653 + }
654 + }, /*#__PURE__*/_react.default.createElement(_ui.Toolbar, {
655 + variant: "dense"
656 + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
657 + variant: "overline",
658 + sx: {
659 + flexGrow: 1
660 + }
661 + }, (0, _i18n.__)('What\'s New', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
662 + "aria-label": 'close',
663 + size: "small",
664 + onClick: function onClick() {
665 + return setIsOpen(false);
666 + }
667 + }, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
668 +};
669 +exports.WhatsNewTopBar = WhatsNewTopBar;
670 +WhatsNewTopBar.propTypes = {
671 + setIsOpen: PropTypes.func.isRequired
672 +};
673 +
674 +/***/ }),
675 +
676 +/***/ "../modules/notifications/assets/js/components/whats-new.js":
677 +/*!******************************************************************!*\
678 + !*** ../modules/notifications/assets/js/components/whats-new.js ***!
679 + \******************************************************************/
680 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
681 +
682 +"use strict";
683 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
684 +
685 +
686 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
687 +Object.defineProperty(exports, "__esModule", ({
688 + value: true
689 +}));
690 +exports.WhatsNew = void 0;
691 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
692 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
693 +var _query = __webpack_require__(/*! @elementor/query */ "../node_modules/@elementor/query/dist/index.js");
694 +var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
695 +var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
696 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
697 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
698 +var queryClient = new _query.QueryClient({
699 + defaultOptions: {
700 + queries: {
701 + refetchOnWindowFocus: false,
702 + retry: false,
703 + staleTime: 1000 * 60 * 30 // 30 minutes
704 + }
705 + }
706 +});
707 +
708 +var WhatsNew = function WhatsNew(props) {
709 + var _window$elementor, _window$elementor$get;
710 + var isOpen = props.isOpen,
711 + setIsOpen = props.setIsOpen,
712 + setIsRead = props.setIsRead,
713 + _props$anchorPosition = props.anchorPosition,
714 + anchorPosition = _props$anchorPosition === void 0 ? 'right' : _props$anchorPosition;
715 + (0, _react.useEffect)(function () {
716 + if (!isOpen) {
717 + return;
718 + }
719 + setIsRead(true);
720 + }, [isOpen, setIsRead]);
721 + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_query.QueryClientProvider, {
722 + client: queryClient
723 + }, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
724 + rtl: elementorCommon.config.isRTL
725 + }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
726 + colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 ? void 0 : (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, 'ui_theme')) || 'auto'
727 + }, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
728 + anchor: anchorPosition,
729 + open: isOpen,
730 + onClose: function onClose() {
731 + return setIsOpen(false);
732 + },
733 + ModalProps: {
734 + style: {
735 + // Above the WordPress Admin Top Bar.
736 + zIndex: 999999
737 + }
738 + }
739 + }, /*#__PURE__*/_react.default.createElement(_ui.Box, {
740 + sx: {
741 + width: 320,
742 + backgroundColor: 'background.default'
743 + },
744 + role: "presentation"
745 + }, /*#__PURE__*/_react.default.createElement(_whatsNewTopBar.WhatsNewTopBar, {
746 + setIsOpen: setIsOpen
747 + }), /*#__PURE__*/_react.default.createElement(_ui.Box, {
748 + sx: {
749 + padding: '16px'
750 + }
751 + }, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, {
752 + setIsOpen: setIsOpen
753 + }))))))));
754 +};
755 +exports.WhatsNew = WhatsNew;
756 +WhatsNew.propTypes = {
757 + isOpen: PropTypes.bool.isRequired,
758 + setIsOpen: PropTypes.func.isRequired,
759 + setIsRead: PropTypes.func.isRequired,
760 + anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
761 +};
762 +
763 +/***/ }),
764 +
765 +/***/ "../modules/notifications/assets/js/components/wrapper-with-link.js":
766 +/*!**************************************************************************!*\
767 + !*** ../modules/notifications/assets/js/components/wrapper-with-link.js ***!
768 + \**************************************************************************/
769 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
770 +
771 +"use strict";
772 +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
773 +
774 +
775 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
776 +Object.defineProperty(exports, "__esModule", ({
777 + value: true
778 +}));
779 +exports.WrapperWithLink = void 0;
780 +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
781 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
782 +var WrapperWithLink = function WrapperWithLink(props) {
783 + var link = props.link,
784 + children = props.children;
785 + if (!link) {
786 + return children;
787 + }
788 + return /*#__PURE__*/_react.default.createElement(_ui.Link, {
789 + href: link,
790 + target: "_blank",
791 + underline: "none",
792 + color: "inherit",
793 + sx: {
794 + '&:hover': {
795 + color: 'inherit'
796 + }
797 + }
798 + }, children);
799 +};
800 +exports.WrapperWithLink = WrapperWithLink;
801 +WrapperWithLink.propTypes = {
802 + link: PropTypes.string,
803 + children: PropTypes.any.isRequired
804 +};
805 +
806 +/***/ }),
807 +
808 +/***/ "../modules/notifications/assets/js/icons/x-icon.js":
809 +/*!**********************************************************!*\
810 + !*** ../modules/notifications/assets/js/icons/x-icon.js ***!
811 + \**********************************************************/
812 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
813 +
814 +"use strict";
815 +
816 +
817 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
818 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
819 +Object.defineProperty(exports, "__esModule", ({
820 + value: true
821 +}));
822 +exports.XIcon = void 0;
823 +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
824 +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
825 +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
826 +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
827 +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
828 +var XIcon = (0, _react.forwardRef)(function (props, ref) {
829 + return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
830 + viewBox: "0 0 24 24"
831 + }, props, {
832 + ref: ref
833 + }), /*#__PURE__*/_react.default.createElement("path", {
834 + fillRule: "evenodd",
835 + clipRule: "evenodd",
836 + 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"
837 + }), /*#__PURE__*/_react.default.createElement("path", {
838 + fillRule: "evenodd",
839 + clipRule: "evenodd",
840 + 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"
841 + }));
842 +});
843 +exports.XIcon = XIcon;
844 +
845 +/***/ }),
846 +
847 +/***/ "../node_modules/object-assign/index.js":
848 +/*!**********************************************!*\
849 + !*** ../node_modules/object-assign/index.js ***!
850 + \**********************************************/
851 +/***/ ((module) => {
852 +
853 +"use strict";
854 +/*
855 +object-assign
856 +(c) Sindre Sorhus
857 +@license MIT
858 +*/
859 +
860 +
861 +/* eslint-disable no-unused-vars */
862 +var getOwnPropertySymbols = Object.getOwnPropertySymbols;
863 +var hasOwnProperty = Object.prototype.hasOwnProperty;
864 +var propIsEnumerable = Object.prototype.propertyIsEnumerable;
865 +
866 +function toObject(val) {
867 + if (val === null || val === undefined) {
868 + throw new TypeError('Object.assign cannot be called with null or undefined');
869 + }
870 +
871 + return Object(val);
872 +}
873 +
874 +function shouldUseNative() {
875 + try {
876 + if (!Object.assign) {
877 + return false;
26 878 }
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 879
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);
880 + // Detect buggy property enumeration order in older V8 versions.
39 881
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 - }));
882 + // https://bugs.chromium.org/p/v8/issues/detail?id=4118
883 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
884 + test1[5] = 'de';
885 + if (Object.getOwnPropertyNames(test1)[0] === '5') {
886 + return false;
887 + }
53 888
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 - };
889 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
890 + var test2 = {};
891 + for (var i = 0; i < 10; i++) {
892 + test2['_' + String.fromCharCode(i)] = i;
79 893 }
80 - return { unmount: unmountFunction };
894 + var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
895 + return test2[n];
896 + });
897 + if (order2.join('') !== '0123456789') {
898 + return false;
899 + }
900 +
901 + // https://bugs.chromium.org/p/v8/issues/detail?id=3056
902 + var test3 = {};
903 + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
904 + test3[letter] = letter;
905 + });
906 + if (Object.keys(Object.assign({}, test3)).join('') !==
907 + 'abcdefghijklmnopqrst') {
908 + return false;
909 + }
910 +
911 + return true;
912 + } catch (err) {
913 + // We don't expect any of the above to throw, but better to be safe.
914 + return false;
81 915 }
82 - var react_default = { render };
916 +}
83 917
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);
918 +module.exports = shouldUseNative() ? Object.assign : function (target, source) {
919 + var from;
920 + var to = toObject(target);
921 + var symbols;
922 +
923 + for (var s = 1; s < arguments.length; s++) {
924 + from = Object(arguments[s]);
925 +
926 + for (var key in from) {
927 + if (hasOwnProperty.call(from, key)) {
928 + to[key] = from[key];
118 929 }
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 - }
930 + }
931 +
932 + if (getOwnPropertySymbols) {
933 + symbols = getOwnPropertySymbols(from);
934 + for (var i = 0; i < symbols.length; i++) {
935 + if (propIsEnumerable.call(from, symbols[i])) {
936 + to[symbols[i]] = from[symbols[i]];
145 937 }
146 938 }
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 - }));
939 + }
940 + }
234 941
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 - }));
942 + return to;
943 +};
240 944
241 -//#endregion
242 -//#region node_modules/object-assign/index.js
945 +
946 +/***/ }),
947 +
948 +/***/ "../node_modules/prop-types/checkPropTypes.js":
949 +/*!****************************************************!*\
950 + !*** ../node_modules/prop-types/checkPropTypes.js ***!
951 + \****************************************************/
952 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
953 +
954 +"use strict";
955 +/**
956 + * Copyright (c) 2013-present, Facebook, Inc.
957 + *
958 + * This source code is licensed under the MIT license found in the
959 + * LICENSE file in the root directory of this source tree.
960 + */
961 +
962 +
963 +
964 +var printWarning = function() {};
965 +
966 +if (true) {
967 + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
968 + var loggedTypeFailures = {};
969 + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
970 +
971 + printWarning = function(text) {
972 + var message = 'Warning: ' + text;
973 + if (typeof console !== 'undefined') {
974 + console.error(message);
975 + }
976 + try {
977 + // --- Welcome to debugging React ---
978 + // This error was thrown as a convenience so that you can use this stack
979 + // to find the callsite that caused this warning to fire.
980 + throw new Error(message);
981 + } catch (x) { /**/ }
982 + };
983 +}
984 +
985 +/**
986 + * Assert that the values match with the type specs.
987 + * Error messages are memorized and will only be shown once.
988 + *
989 + * @param {object} typeSpecs Map of name to a ReactPropType
990 + * @param {object} values Runtime values that need to be type-checked
991 + * @param {string} location e.g. "prop", "context", "child context"
992 + * @param {string} componentName Name of the component for error messages.
993 + * @param {?Function} getStack Returns the component stack.
994 + * @private
995 + */
996 +function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
997 + if (true) {
998 + for (var typeSpecName in typeSpecs) {
999 + if (has(typeSpecs, typeSpecName)) {
1000 + var error;
1001 + // Prop type validation may throw. In case they do, we don't want to
1002 + // fail the render phase where it didn't fail before. So we log it.
1003 + // After these have been cleaned up, we'll let them throw.
1004 + try {
1005 + // This is intentionally an invariant that gets caught. It's the same
1006 + // behavior as without this statement except with a better message.
1007 + if (typeof typeSpecs[typeSpecName] !== 'function') {
1008 + var err = Error(
1009 + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1010 + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1011 + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1012 + );
1013 + err.name = 'Invariant Violation';
1014 + throw err;
1015 + }
1016 + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1017 + } catch (ex) {
1018 + error = ex;
1019 + }
1020 + if (error && !(error instanceof Error)) {
1021 + printWarning(
1022 + (componentName || 'React class') + ': type specification of ' +
1023 + location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1024 + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1025 + 'You may have forgotten to pass an argument to the type checker ' +
1026 + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1027 + 'shape all require an argument).'
1028 + );
1029 + }
1030 + if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1031 + // Only monitor this failure once because there tends to be a lot of the
1032 + // same error.
1033 + loggedTypeFailures[error.message] = true;
1034 +
1035 + var stack = getStack ? getStack() : '';
1036 +
1037 + printWarning(
1038 + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1039 + );
1040 + }
1041 + }
1042 + }
1043 + }
1044 +}
1045 +
1046 +/**
1047 + * Resets warning cache when testing.
1048 + *
1049 + * @private
1050 + */
1051 +checkPropTypes.resetWarningCache = function() {
1052 + if (true) {
1053 + loggedTypeFailures = {};
1054 + }
1055 +}
1056 +
1057 +module.exports = checkPropTypes;
1058 +
1059 +
1060 +/***/ }),
1061 +
1062 +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
1063 +/*!*************************************************************!*\
1064 + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
1065 + \*************************************************************/
1066 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1067 +
1068 +"use strict";
1069 +/**
1070 + * Copyright (c) 2013-present, Facebook, Inc.
1071 + *
1072 + * This source code is licensed under the MIT license found in the
1073 + * LICENSE file in the root directory of this source tree.
1074 + */
1075 +
1076 +
1077 +
1078 +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1079 +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
1080 +
1081 +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1082 +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1083 +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
1084 +
1085 +var printWarning = function() {};
1086 +
1087 +if (true) {
1088 + printWarning = function(text) {
1089 + var message = 'Warning: ' + text;
1090 + if (typeof console !== 'undefined') {
1091 + console.error(message);
1092 + }
1093 + try {
1094 + // --- Welcome to debugging React ---
1095 + // This error was thrown as a convenience so that you can use this stack
1096 + // to find the callsite that caused this warning to fire.
1097 + throw new Error(message);
1098 + } catch (x) {}
1099 + };
1100 +}
1101 +
1102 +function emptyFunctionThatReturnsNull() {
1103 + return null;
1104 +}
1105 +
1106 +module.exports = function(isValidElement, throwOnDirectAccess) {
1107 + /* global Symbol */
1108 + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1109 + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1110 +
1111 + /**
1112 + * Returns the iterator method function contained on the iterable object.
1113 + *
1114 + * Be sure to invoke the function with the iterable as context:
1115 + *
1116 + * var iteratorFn = getIteratorFn(myIterable);
1117 + * if (iteratorFn) {
1118 + * var iterator = iteratorFn.call(myIterable);
1119 + * ...
1120 + * }
1121 + *
1122 + * @param {?object} maybeIterable
1123 + * @return {?function}
1124 + */
1125 + function getIteratorFn(maybeIterable) {
1126 + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1127 + if (typeof iteratorFn === 'function') {
1128 + return iteratorFn;
1129 + }
1130 + }
1131 +
1132 + /**
1133 + * Collection of methods that allow declaration and validation of props that are
1134 + * supplied to React components. Example usage:
1135 + *
1136 + * var Props = require('ReactPropTypes');
1137 + * var MyArticle = React.createClass({
1138 + * propTypes: {
1139 + * // An optional string prop named "description".
1140 + * description: Props.string,
1141 + *
1142 + * // A required enum prop named "category".
1143 + * category: Props.oneOf(['News','Photos']).isRequired,
1144 + *
1145 + * // A prop named "dialog" that requires an instance of Dialog.
1146 + * dialog: Props.instanceOf(Dialog).isRequired
1147 + * },
1148 + * render: function() { ... }
1149 + * });
1150 + *
1151 + * A more formal specification of how these methods are used:
1152 + *
1153 + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1154 + * decl := ReactPropTypes.{type}(.isRequired)?
1155 + *
1156 + * Each and every declaration produces a function with the same signature. This
1157 + * allows the creation of custom validation functions. For example:
1158 + *
1159 + * var MyLink = React.createClass({
1160 + * propTypes: {
1161 + * // An optional string or URI prop named "href".
1162 + * href: function(props, propName, componentName) {
1163 + * var propValue = props[propName];
1164 + * if (propValue != null && typeof propValue !== 'string' &&
1165 + * !(propValue instanceof URI)) {
1166 + * return new Error(
1167 + * 'Expected a string or an URI for ' + propName + ' in ' +
1168 + * componentName
1169 + * );
1170 + * }
1171 + * }
1172 + * },
1173 + * render: function() {...}
1174 + * });
1175 + *
1176 + * @internal
1177 + */
1178 +
1179 + var ANONYMOUS = '<<anonymous>>';
1180 +
1181 + // Important!
1182 + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1183 + var ReactPropTypes = {
1184 + array: createPrimitiveTypeChecker('array'),
1185 + bigint: createPrimitiveTypeChecker('bigint'),
1186 + bool: createPrimitiveTypeChecker('boolean'),
1187 + func: createPrimitiveTypeChecker('function'),
1188 + number: createPrimitiveTypeChecker('number'),
1189 + object: createPrimitiveTypeChecker('object'),
1190 + string: createPrimitiveTypeChecker('string'),
1191 + symbol: createPrimitiveTypeChecker('symbol'),
1192 +
1193 + any: createAnyTypeChecker(),
1194 + arrayOf: createArrayOfTypeChecker,
1195 + element: createElementTypeChecker(),
1196 + elementType: createElementTypeTypeChecker(),
1197 + instanceOf: createInstanceTypeChecker,
1198 + node: createNodeChecker(),
1199 + objectOf: createObjectOfTypeChecker,
1200 + oneOf: createEnumTypeChecker,
1201 + oneOfType: createUnionTypeChecker,
1202 + shape: createShapeTypeChecker,
1203 + exact: createStrictShapeTypeChecker,
1204 + };
1205 +
1206 + /**
1207 + * inlined Object.is polyfill to avoid requiring consumers ship their own
1208 + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1209 + */
1210 + /*eslint-disable no-self-compare*/
1211 + function is(x, y) {
1212 + // SameValue algorithm
1213 + if (x === y) {
1214 + // Steps 1-5, 7-10
1215 + // Steps 6.b-6.e: +0 != -0
1216 + return x !== 0 || 1 / x === 1 / y;
1217 + } else {
1218 + // Step 6.a: NaN == NaN
1219 + return x !== x && y !== y;
1220 + }
1221 + }
1222 + /*eslint-enable no-self-compare*/
1223 +
1224 + /**
1225 + * We use an Error-like object for backward compatibility as people may call
1226 + * PropTypes directly and inspect their output. However, we don't use real
1227 + * Errors anymore. We don't inspect their stack anyway, and creating them
1228 + * is prohibitively expensive if they are created too often, such as what
1229 + * happens in oneOfType() for any type before the one that matched.
1230 + */
1231 + function PropTypeError(message, data) {
1232 + this.message = message;
1233 + this.data = data && typeof data === 'object' ? data: {};
1234 + this.stack = '';
1235 + }
1236 + // Make `instanceof Error` still work for returned errors.
1237 + PropTypeError.prototype = Error.prototype;
1238 +
1239 + function createChainableTypeChecker(validate) {
1240 + if (true) {
1241 + var manualPropTypeCallCache = {};
1242 + var manualPropTypeWarningCount = 0;
1243 + }
1244 + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1245 + componentName = componentName || ANONYMOUS;
1246 + propFullName = propFullName || propName;
1247 +
1248 + if (secret !== ReactPropTypesSecret) {
1249 + if (throwOnDirectAccess) {
1250 + // New behavior only for users of `prop-types` package
1251 + var err = new Error(
1252 + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1253 + 'Use `PropTypes.checkPropTypes()` to call them. ' +
1254 + 'Read more at http://fb.me/use-check-prop-types'
1255 + );
1256 + err.name = 'Invariant Violation';
1257 + throw err;
1258 + } else if ( true && typeof console !== 'undefined') {
1259 + // Old behavior for people using React.PropTypes
1260 + var cacheKey = componentName + ':' + propName;
1261 + if (
1262 + !manualPropTypeCallCache[cacheKey] &&
1263 + // Avoid spamming the console because they are often not actionable except for lib authors
1264 + manualPropTypeWarningCount < 3
1265 + ) {
1266 + printWarning(
1267 + 'You are manually calling a React.PropTypes validation ' +
1268 + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1269 + 'and will throw in the standalone `prop-types` package. ' +
1270 + 'You may be seeing this warning due to a third-party PropTypes ' +
1271 + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1272 + );
1273 + manualPropTypeCallCache[cacheKey] = true;
1274 + manualPropTypeWarningCount++;
1275 + }
1276 + }
1277 + }
1278 + if (props[propName] == null) {
1279 + if (isRequired) {
1280 + if (props[propName] === null) {
1281 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1282 + }
1283 + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1284 + }
1285 + return null;
1286 + } else {
1287 + return validate(props, propName, componentName, location, propFullName);
1288 + }
1289 + }
1290 +
1291 + var chainedCheckType = checkType.bind(null, false);
1292 + chainedCheckType.isRequired = checkType.bind(null, true);
1293 +
1294 + return chainedCheckType;
1295 + }
1296 +
1297 + function createPrimitiveTypeChecker(expectedType) {
1298 + function validate(props, propName, componentName, location, propFullName, secret) {
1299 + var propValue = props[propName];
1300 + var propType = getPropType(propValue);
1301 + if (propType !== expectedType) {
1302 + // `propValue` being instance of, say, date/regexp, pass the 'object'
1303 + // check, but we can offer a more precise error message here rather than
1304 + // 'of type `object`'.
1305 + var preciseType = getPreciseType(propValue);
1306 +
1307 + return new PropTypeError(
1308 + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1309 + {expectedType: expectedType}
1310 + );
1311 + }
1312 + return null;
1313 + }
1314 + return createChainableTypeChecker(validate);
1315 + }
1316 +
1317 + function createAnyTypeChecker() {
1318 + return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1319 + }
1320 +
1321 + function createArrayOfTypeChecker(typeChecker) {
1322 + function validate(props, propName, componentName, location, propFullName) {
1323 + if (typeof typeChecker !== 'function') {
1324 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1325 + }
1326 + var propValue = props[propName];
1327 + if (!Array.isArray(propValue)) {
1328 + var propType = getPropType(propValue);
1329 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1330 + }
1331 + for (var i = 0; i < propValue.length; i++) {
1332 + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1333 + if (error instanceof Error) {
1334 + return error;
1335 + }
1336 + }
1337 + return null;
1338 + }
1339 + return createChainableTypeChecker(validate);
1340 + }
1341 +
1342 + function createElementTypeChecker() {
1343 + function validate(props, propName, componentName, location, propFullName) {
1344 + var propValue = props[propName];
1345 + if (!isValidElement(propValue)) {
1346 + var propType = getPropType(propValue);
1347 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1348 + }
1349 + return null;
1350 + }
1351 + return createChainableTypeChecker(validate);
1352 + }
1353 +
1354 + function createElementTypeTypeChecker() {
1355 + function validate(props, propName, componentName, location, propFullName) {
1356 + var propValue = props[propName];
1357 + if (!ReactIs.isValidElementType(propValue)) {
1358 + var propType = getPropType(propValue);
1359 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1360 + }
1361 + return null;
1362 + }
1363 + return createChainableTypeChecker(validate);
1364 + }
1365 +
1366 + function createInstanceTypeChecker(expectedClass) {
1367 + function validate(props, propName, componentName, location, propFullName) {
1368 + if (!(props[propName] instanceof expectedClass)) {
1369 + var expectedClassName = expectedClass.name || ANONYMOUS;
1370 + var actualClassName = getClassName(props[propName]);
1371 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1372 + }
1373 + return null;
1374 + }
1375 + return createChainableTypeChecker(validate);
1376 + }
1377 +
1378 + function createEnumTypeChecker(expectedValues) {
1379 + if (!Array.isArray(expectedValues)) {
1380 + if (true) {
1381 + if (arguments.length > 1) {
1382 + printWarning(
1383 + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1384 + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1385 + );
1386 + } else {
1387 + printWarning('Invalid argument supplied to oneOf, expected an array.');
1388 + }
1389 + }
1390 + return emptyFunctionThatReturnsNull;
1391 + }
1392 +
1393 + function validate(props, propName, componentName, location, propFullName) {
1394 + var propValue = props[propName];
1395 + for (var i = 0; i < expectedValues.length; i++) {
1396 + if (is(propValue, expectedValues[i])) {
1397 + return null;
1398 + }
1399 + }
1400 +
1401 + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1402 + var type = getPreciseType(value);
1403 + if (type === 'symbol') {
1404 + return String(value);
1405 + }
1406 + return value;
1407 + });
1408 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1409 + }
1410 + return createChainableTypeChecker(validate);
1411 + }
1412 +
1413 + function createObjectOfTypeChecker(typeChecker) {
1414 + function validate(props, propName, componentName, location, propFullName) {
1415 + if (typeof typeChecker !== 'function') {
1416 + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1417 + }
1418 + var propValue = props[propName];
1419 + var propType = getPropType(propValue);
1420 + if (propType !== 'object') {
1421 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1422 + }
1423 + for (var key in propValue) {
1424 + if (has(propValue, key)) {
1425 + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1426 + if (error instanceof Error) {
1427 + return error;
1428 + }
1429 + }
1430 + }
1431 + return null;
1432 + }
1433 + return createChainableTypeChecker(validate);
1434 + }
1435 +
1436 + function createUnionTypeChecker(arrayOfTypeCheckers) {
1437 + if (!Array.isArray(arrayOfTypeCheckers)) {
1438 + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1439 + return emptyFunctionThatReturnsNull;
1440 + }
1441 +
1442 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1443 + var checker = arrayOfTypeCheckers[i];
1444 + if (typeof checker !== 'function') {
1445 + printWarning(
1446 + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1447 + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1448 + );
1449 + return emptyFunctionThatReturnsNull;
1450 + }
1451 + }
1452 +
1453 + function validate(props, propName, componentName, location, propFullName) {
1454 + var expectedTypes = [];
1455 + for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1456 + var checker = arrayOfTypeCheckers[i];
1457 + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1458 + if (checkerResult == null) {
1459 + return null;
1460 + }
1461 + if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1462 + expectedTypes.push(checkerResult.data.expectedType);
1463 + }
1464 + }
1465 + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1466 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1467 + }
1468 + return createChainableTypeChecker(validate);
1469 + }
1470 +
1471 + function createNodeChecker() {
1472 + function validate(props, propName, componentName, location, propFullName) {
1473 + if (!isNode(props[propName])) {
1474 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1475 + }
1476 + return null;
1477 + }
1478 + return createChainableTypeChecker(validate);
1479 + }
1480 +
1481 + function invalidValidatorError(componentName, location, propFullName, key, type) {
1482 + return new PropTypeError(
1483 + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1484 + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1485 + );
1486 + }
1487 +
1488 + function createShapeTypeChecker(shapeTypes) {
1489 + function validate(props, propName, componentName, location, propFullName) {
1490 + var propValue = props[propName];
1491 + var propType = getPropType(propValue);
1492 + if (propType !== 'object') {
1493 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1494 + }
1495 + for (var key in shapeTypes) {
1496 + var checker = shapeTypes[key];
1497 + if (typeof checker !== 'function') {
1498 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1499 + }
1500 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1501 + if (error) {
1502 + return error;
1503 + }
1504 + }
1505 + return null;
1506 + }
1507 + return createChainableTypeChecker(validate);
1508 + }
1509 +
1510 + function createStrictShapeTypeChecker(shapeTypes) {
1511 + function validate(props, propName, componentName, location, propFullName) {
1512 + var propValue = props[propName];
1513 + var propType = getPropType(propValue);
1514 + if (propType !== 'object') {
1515 + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1516 + }
1517 + // We need to check all keys in case some are required but missing from props.
1518 + var allKeys = assign({}, props[propName], shapeTypes);
1519 + for (var key in allKeys) {
1520 + var checker = shapeTypes[key];
1521 + if (has(shapeTypes, key) && typeof checker !== 'function') {
1522 + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1523 + }
1524 + if (!checker) {
1525 + return new PropTypeError(
1526 + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1527 + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1528 + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1529 + );
1530 + }
1531 + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1532 + if (error) {
1533 + return error;
1534 + }
1535 + }
1536 + return null;
1537 + }
1538 +
1539 + return createChainableTypeChecker(validate);
1540 + }
1541 +
1542 + function isNode(propValue) {
1543 + switch (typeof propValue) {
1544 + case 'number':
1545 + case 'string':
1546 + case 'undefined':
1547 + return true;
1548 + case 'boolean':
1549 + return !propValue;
1550 + case 'object':
1551 + if (Array.isArray(propValue)) {
1552 + return propValue.every(isNode);
1553 + }
1554 + if (propValue === null || isValidElement(propValue)) {
1555 + return true;
1556 + }
1557 +
1558 + var iteratorFn = getIteratorFn(propValue);
1559 + if (iteratorFn) {
1560 + var iterator = iteratorFn.call(propValue);
1561 + var step;
1562 + if (iteratorFn !== propValue.entries) {
1563 + while (!(step = iterator.next()).done) {
1564 + if (!isNode(step.value)) {
1565 + return false;
1566 + }
1567 + }
1568 + } else {
1569 + // Iterator will provide entry [k,v] tuples rather than values.
1570 + while (!(step = iterator.next()).done) {
1571 + var entry = step.value;
1572 + if (entry) {
1573 + if (!isNode(entry[1])) {
1574 + return false;
1575 + }
1576 + }
1577 + }
1578 + }
1579 + } else {
1580 + return false;
1581 + }
1582 +
1583 + return true;
1584 + default:
1585 + return false;
1586 + }
1587 + }
1588 +
1589 + function isSymbol(propType, propValue) {
1590 + // Native Symbol.
1591 + if (propType === 'symbol') {
1592 + return true;
1593 + }
1594 +
1595 + // falsy value can't be a Symbol
1596 + if (!propValue) {
1597 + return false;
1598 + }
1599 +
1600 + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1601 + if (propValue['@@toStringTag'] === 'Symbol') {
1602 + return true;
1603 + }
1604 +
1605 + // Fallback for non-spec compliant Symbols which are polyfilled.
1606 + if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1607 + return true;
1608 + }
1609 +
1610 + return false;
1611 + }
1612 +
1613 + // Equivalent of `typeof` but with special handling for array and regexp.
1614 + function getPropType(propValue) {
1615 + var propType = typeof propValue;
1616 + if (Array.isArray(propValue)) {
1617 + return 'array';
1618 + }
1619 + if (propValue instanceof RegExp) {
1620 + // Old webkits (at least until Android 4.0) return 'function' rather than
1621 + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1622 + // passes PropTypes.object.
1623 + return 'object';
1624 + }
1625 + if (isSymbol(propType, propValue)) {
1626 + return 'symbol';
1627 + }
1628 + return propType;
1629 + }
1630 +
1631 + // This handles more types than `getPropType`. Only used for error messages.
1632 + // See `createPrimitiveTypeChecker`.
1633 + function getPreciseType(propValue) {
1634 + if (typeof propValue === 'undefined' || propValue === null) {
1635 + return '' + propValue;
1636 + }
1637 + var propType = getPropType(propValue);
1638 + if (propType === 'object') {
1639 + if (propValue instanceof Date) {
1640 + return 'date';
1641 + } else if (propValue instanceof RegExp) {
1642 + return 'regexp';
1643 + }
1644 + }
1645 + return propType;
1646 + }
1647 +
1648 + // Returns a string that is postfixed to a warning about an invalid type.
1649 + // For example, "undefined" or "of type array"
1650 + function getPostfixForTypeWarning(value) {
1651 + var type = getPreciseType(value);
1652 + switch (type) {
1653 + case 'array':
1654 + case 'object':
1655 + return 'an ' + type;
1656 + case 'boolean':
1657 + case 'date':
1658 + case 'regexp':
1659 + return 'a ' + type;
1660 + default:
1661 + return type;
1662 + }
1663 + }
1664 +
1665 + // Returns class name of the object, if any.
1666 + function getClassName(propValue) {
1667 + if (!propValue.constructor || !propValue.constructor.name) {
1668 + return ANONYMOUS;
1669 + }
1670 + return propValue.constructor.name;
1671 + }
1672 +
1673 + ReactPropTypes.checkPropTypes = checkPropTypes;
1674 + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1675 + ReactPropTypes.PropTypes = ReactPropTypes;
1676 +
1677 + return ReactPropTypes;
1678 +};
1679 +
1680 +
1681 +/***/ }),
1682 +
1683 +/***/ "../node_modules/prop-types/index.js":
1684 +/*!*******************************************!*\
1685 + !*** ../node_modules/prop-types/index.js ***!
1686 + \*******************************************/
1687 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1688 +
1689 +/**
1690 + * Copyright (c) 2013-present, Facebook, Inc.
1691 + *
1692 + * This source code is licensed under the MIT license found in the
1693 + * LICENSE file in the root directory of this source tree.
1694 + */
1695 +
1696 +if (true) {
1697 + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1698 +
1699 + // By explicitly using `prop-types` you are opting into new development behavior.
1700 + // http://fb.me/prop-types-in-prod
1701 + var throwOnDirectAccess = true;
1702 + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1703 +} else {}
1704 +
1705 +
1706 +/***/ }),
1707 +
1708 +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1709 +/*!**************************************************************!*\
1710 + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1711 + \**************************************************************/
1712 +/***/ ((module) => {
1713 +
1714 +"use strict";
1715 +/**
1716 + * Copyright (c) 2013-present, Facebook, Inc.
1717 + *
1718 + * This source code is licensed under the MIT license found in the
1719 + * LICENSE file in the root directory of this source tree.
1720 + */
1721 +
1722 +
1723 +
1724 +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1725 +
1726 +module.exports = ReactPropTypesSecret;
1727 +
1728 +
1729 +/***/ }),
1730 +
1731 +/***/ "../node_modules/prop-types/lib/has.js":
1732 +/*!*********************************************!*\
1733 + !*** ../node_modules/prop-types/lib/has.js ***!
1734 + \*********************************************/
1735 +/***/ ((module) => {
1736 +
1737 +module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1738 +
1739 +
1740 +/***/ }),
1741 +
1742 +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1743 +/*!************************************************************************************!*\
1744 + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1745 + \************************************************************************************/
1746 +/***/ ((__unused_webpack_module, exports) => {
1747 +
1748 +"use strict";
1749 +/** @license React v16.13.1
1750 + * react-is.development.js
1751 + *
1752 + * Copyright (c) Facebook, Inc. and its affiliates.
1753 + *
1754 + * This source code is licensed under the MIT license found in the
1755 + * LICENSE file in the root directory of this source tree.
1756 + */
1757 +
1758 +
1759 +
1760 +
1761 +
1762 +if (true) {
1763 + (function() {
1764 +'use strict';
1765 +
1766 +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1767 +// nor polyfill, then a plain number is used for performance.
1768 +var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1769 +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1770 +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1771 +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1772 +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1773 +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1774 +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1775 +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1776 +// (unstable) APIs that have been removed. Can we remove the symbols?
1777 +
1778 +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1779 +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1780 +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1781 +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1782 +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1783 +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1784 +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1785 +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1786 +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1787 +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1788 +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1789 +
1790 +function isValidElementType(type) {
1791 + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1792 + 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);
1793 +}
1794 +
1795 +function typeOf(object) {
1796 + if (typeof object === 'object' && object !== null) {
1797 + var $$typeof = object.$$typeof;
1798 +
1799 + switch ($$typeof) {
1800 + case REACT_ELEMENT_TYPE:
1801 + var type = object.type;
1802 +
1803 + switch (type) {
1804 + case REACT_ASYNC_MODE_TYPE:
1805 + case REACT_CONCURRENT_MODE_TYPE:
1806 + case REACT_FRAGMENT_TYPE:
1807 + case REACT_PROFILER_TYPE:
1808 + case REACT_STRICT_MODE_TYPE:
1809 + case REACT_SUSPENSE_TYPE:
1810 + return type;
1811 +
1812 + default:
1813 + var $$typeofType = type && type.$$typeof;
1814 +
1815 + switch ($$typeofType) {
1816 + case REACT_CONTEXT_TYPE:
1817 + case REACT_FORWARD_REF_TYPE:
1818 + case REACT_LAZY_TYPE:
1819 + case REACT_MEMO_TYPE:
1820 + case REACT_PROVIDER_TYPE:
1821 + return $$typeofType;
1822 +
1823 + default:
1824 + return $$typeof;
1825 + }
1826 +
1827 + }
1828 +
1829 + case REACT_PORTAL_TYPE:
1830 + return $$typeof;
1831 + }
1832 + }
1833 +
1834 + return undefined;
1835 +} // AsyncMode is deprecated along with isAsyncMode
1836 +
1837 +var AsyncMode = REACT_ASYNC_MODE_TYPE;
1838 +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1839 +var ContextConsumer = REACT_CONTEXT_TYPE;
1840 +var ContextProvider = REACT_PROVIDER_TYPE;
1841 +var Element = REACT_ELEMENT_TYPE;
1842 +var ForwardRef = REACT_FORWARD_REF_TYPE;
1843 +var Fragment = REACT_FRAGMENT_TYPE;
1844 +var Lazy = REACT_LAZY_TYPE;
1845 +var Memo = REACT_MEMO_TYPE;
1846 +var Portal = REACT_PORTAL_TYPE;
1847 +var Profiler = REACT_PROFILER_TYPE;
1848 +var StrictMode = REACT_STRICT_MODE_TYPE;
1849 +var Suspense = REACT_SUSPENSE_TYPE;
1850 +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1851 +
1852 +function isAsyncMode(object) {
1853 + {
1854 + if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1855 + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1856 +
1857 + 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.');
1858 + }
1859 + }
1860 +
1861 + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1862 +}
1863 +function isConcurrentMode(object) {
1864 + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1865 +}
1866 +function isContextConsumer(object) {
1867 + return typeOf(object) === REACT_CONTEXT_TYPE;
1868 +}
1869 +function isContextProvider(object) {
1870 + return typeOf(object) === REACT_PROVIDER_TYPE;
1871 +}
1872 +function isElement(object) {
1873 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1874 +}
1875 +function isForwardRef(object) {
1876 + return typeOf(object) === REACT_FORWARD_REF_TYPE;
1877 +}
1878 +function isFragment(object) {
1879 + return typeOf(object) === REACT_FRAGMENT_TYPE;
1880 +}
1881 +function isLazy(object) {
1882 + return typeOf(object) === REACT_LAZY_TYPE;
1883 +}
1884 +function isMemo(object) {
1885 + return typeOf(object) === REACT_MEMO_TYPE;
1886 +}
1887 +function isPortal(object) {
1888 + return typeOf(object) === REACT_PORTAL_TYPE;
1889 +}
1890 +function isProfiler(object) {
1891 + return typeOf(object) === REACT_PROFILER_TYPE;
1892 +}
1893 +function isStrictMode(object) {
1894 + return typeOf(object) === REACT_STRICT_MODE_TYPE;
1895 +}
1896 +function isSuspense(object) {
1897 + return typeOf(object) === REACT_SUSPENSE_TYPE;
1898 +}
1899 +
1900 +exports.AsyncMode = AsyncMode;
1901 +exports.ConcurrentMode = ConcurrentMode;
1902 +exports.ContextConsumer = ContextConsumer;
1903 +exports.ContextProvider = ContextProvider;
1904 +exports.Element = Element;
1905 +exports.ForwardRef = ForwardRef;
1906 +exports.Fragment = Fragment;
1907 +exports.Lazy = Lazy;
1908 +exports.Memo = Memo;
1909 +exports.Portal = Portal;
1910 +exports.Profiler = Profiler;
1911 +exports.StrictMode = StrictMode;
1912 +exports.Suspense = Suspense;
1913 +exports.isAsyncMode = isAsyncMode;
1914 +exports.isConcurrentMode = isConcurrentMode;
1915 +exports.isContextConsumer = isContextConsumer;
1916 +exports.isContextProvider = isContextProvider;
1917 +exports.isElement = isElement;
1918 +exports.isForwardRef = isForwardRef;
1919 +exports.isFragment = isFragment;
1920 +exports.isLazy = isLazy;
1921 +exports.isMemo = isMemo;
1922 +exports.isPortal = isPortal;
1923 +exports.isProfiler = isProfiler;
1924 +exports.isStrictMode = isStrictMode;
1925 +exports.isSuspense = isSuspense;
1926 +exports.isValidElementType = isValidElementType;
1927 +exports.typeOf = typeOf;
1928 + })();
1929 +}
1930 +
1931 +
1932 +/***/ }),
1933 +
1934 +/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1935 +/*!*****************************************************************!*\
1936 + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1937 + \*****************************************************************/
1938 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1939 +
1940 +"use strict";
1941 +
1942 +
1943 +if (false) {} else {
1944 + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1945 +}
1946 +
1947 +
1948 +/***/ }),
1949 +
1950 +/***/ "../node_modules/react-dom/client.js":
1951 +/*!*******************************************!*\
1952 + !*** ../node_modules/react-dom/client.js ***!
1953 + \*******************************************/
1954 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1955 +
1956 +"use strict";
1957 +
1958 +
1959 +var m = __webpack_require__(/*! react-dom */ "react-dom");
1960 +if (false) {} else {
1961 + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1962 + exports.createRoot = function(c, o) {
1963 + i.usingClientEntryPoint = true;
1964 + try {
1965 + return m.createRoot(c, o);
1966 + } finally {
1967 + i.usingClientEntryPoint = false;
1968 + }
1969 + };
1970 + exports.hydrateRoot = function(c, h, o) {
1971 + i.usingClientEntryPoint = true;
1972 + try {
1973 + return m.hydrateRoot(c, h, o);
1974 + } finally {
1975 + i.usingClientEntryPoint = false;
1976 + }
1977 + };
1978 +}
1979 +
1980 +
1981 +/***/ }),
1982 +
1983 +/***/ "../node_modules/react/cjs/react-jsx-runtime.development.js":
1984 +/*!******************************************************************!*\
1985 + !*** ../node_modules/react/cjs/react-jsx-runtime.development.js ***!
1986 + \******************************************************************/
1987 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1988 +
1989 +"use strict";
1990 +/**
1991 + * @license React
1992 + * react-jsx-runtime.development.js
1993 + *
1994 + * Copyright (c) Facebook, Inc. and its affiliates.
1995 + *
1996 + * This source code is licensed under the MIT license found in the
1997 + * LICENSE file in the root directory of this source tree.
1998 + */
1999 +
2000 +
2001 +
2002 +if (true) {
2003 + (function() {
2004 +'use strict';
2005 +
2006 +var React = __webpack_require__(/*! react */ "react");
2007 +
2008 +// ATTENTION
2009 +// When adding new symbols to this file,
2010 +// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
2011 +// The Symbol used to tag the ReactElement-like types.
2012 +var REACT_ELEMENT_TYPE = Symbol.for('react.element');
2013 +var REACT_PORTAL_TYPE = Symbol.for('react.portal');
2014 +var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
2015 +var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
2016 +var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
2017 +var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
2018 +var REACT_CONTEXT_TYPE = Symbol.for('react.context');
2019 +var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
2020 +var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
2021 +var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
2022 +var REACT_MEMO_TYPE = Symbol.for('react.memo');
2023 +var REACT_LAZY_TYPE = Symbol.for('react.lazy');
2024 +var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
2025 +var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2026 +var FAUX_ITERATOR_SYMBOL = '@@iterator';
2027 +function getIteratorFn(maybeIterable) {
2028 + if (maybeIterable === null || typeof maybeIterable !== 'object') {
2029 + return null;
2030 + }
2031 +
2032 + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2033 +
2034 + if (typeof maybeIterator === 'function') {
2035 + return maybeIterator;
2036 + }
2037 +
2038 + return null;
2039 +}
2040 +
2041 +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2042 +
2043 +function error(format) {
2044 + {
2045 + {
2046 + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2047 + args[_key2 - 1] = arguments[_key2];
2048 + }
2049 +
2050 + printWarning('error', format, args);
2051 + }
2052 + }
2053 +}
2054 +
2055 +function printWarning(level, format, args) {
2056 + // When changing this logic, you might want to also
2057 + // update consoleWithStackDev.www.js as well.
2058 + {
2059 + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2060 + var stack = ReactDebugCurrentFrame.getStackAddendum();
2061 +
2062 + if (stack !== '') {
2063 + format += '%s';
2064 + args = args.concat([stack]);
2065 + } // eslint-disable-next-line react-internal/safe-string-coercion
2066 +
2067 +
2068 + var argsWithFormat = args.map(function (item) {
2069 + return String(item);
2070 + }); // Careful: RN currently depends on this prefix
2071 +
2072 + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
2073 + // breaks IE9: https://github.com/facebook/react/issues/13610
2074 + // eslint-disable-next-line react-internal/no-production-logging
2075 +
2076 + Function.prototype.apply.call(console[level], console, argsWithFormat);
2077 + }
2078 +}
2079 +
2080 +// -----------------------------------------------------------------------------
2081 +
2082 +var enableScopeAPI = false; // Experimental Create Event Handle API.
2083 +var enableCacheElement = false;
2084 +var enableTransitionTracing = false; // No known bugs, but needs performance testing
2085 +
2086 +var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
2087 +// stuff. Intended to enable React core members to more easily debug scheduling
2088 +// issues in DEV builds.
2089 +
2090 +var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
2091 +
2092 +var REACT_MODULE_REFERENCE;
2093 +
2094 +{
2095 + REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
2096 +}
2097 +
2098 +function isValidElementType(type) {
2099 + if (typeof type === 'string' || typeof type === 'function') {
2100 + return true;
2101 + } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
2102 +
2103 +
2104 + 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 ) {
2105 + return true;
2106 + }
2107 +
2108 + if (typeof type === 'object' && type !== null) {
2109 + 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
2110 + // types supported by any Flight configuration anywhere since
2111 + // we don't know which Flight build this will end up being used
2112 + // with.
2113 + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
2114 + return true;
2115 + }
2116 + }
2117 +
2118 + return false;
2119 +}
2120 +
2121 +function getWrappedName(outerType, innerType, wrapperName) {
2122 + var displayName = outerType.displayName;
2123 +
2124 + if (displayName) {
2125 + return displayName;
2126 + }
2127 +
2128 + var functionName = innerType.displayName || innerType.name || '';
2129 + return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
2130 +} // Keep in sync with react-reconciler/getComponentNameFromFiber
2131 +
2132 +
2133 +function getContextName(type) {
2134 + return type.displayName || 'Context';
2135 +} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
2136 +
2137 +
2138 +function getComponentNameFromType(type) {
2139 + if (type == null) {
2140 + // Host root, text node or just invalid type.
2141 + return null;
2142 + }
2143 +
2144 + {
2145 + if (typeof type.tag === 'number') {
2146 + error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
2147 + }
2148 + }
2149 +
2150 + if (typeof type === 'function') {
2151 + return type.displayName || type.name || null;
2152 + }
2153 +
2154 + if (typeof type === 'string') {
2155 + return type;
2156 + }
2157 +
2158 + switch (type) {
2159 + case REACT_FRAGMENT_TYPE:
2160 + return 'Fragment';
2161 +
2162 + case REACT_PORTAL_TYPE:
2163 + return 'Portal';
2164 +
2165 + case REACT_PROFILER_TYPE:
2166 + return 'Profiler';
2167 +
2168 + case REACT_STRICT_MODE_TYPE:
2169 + return 'StrictMode';
2170 +
2171 + case REACT_SUSPENSE_TYPE:
2172 + return 'Suspense';
2173 +
2174 + case REACT_SUSPENSE_LIST_TYPE:
2175 + return 'SuspenseList';
2176 +
2177 + }
2178 +
2179 + if (typeof type === 'object') {
2180 + switch (type.$$typeof) {
2181 + case REACT_CONTEXT_TYPE:
2182 + var context = type;
2183 + return getContextName(context) + '.Consumer';
2184 +
2185 + case REACT_PROVIDER_TYPE:
2186 + var provider = type;
2187 + return getContextName(provider._context) + '.Provider';
2188 +
2189 + case REACT_FORWARD_REF_TYPE:
2190 + return getWrappedName(type, type.render, 'ForwardRef');
2191 +
2192 + case REACT_MEMO_TYPE:
2193 + var outerName = type.displayName || null;
2194 +
2195 + if (outerName !== null) {
2196 + return outerName;
2197 + }
2198 +
2199 + return getComponentNameFromType(type.type) || 'Memo';
2200 +
2201 + case REACT_LAZY_TYPE:
2202 + {
2203 + var lazyComponent = type;
2204 + var payload = lazyComponent._payload;
2205 + var init = lazyComponent._init;
2206 +
2207 + try {
2208 + return getComponentNameFromType(init(payload));
2209 + } catch (x) {
2210 + return null;
2211 + }
2212 + }
2213 +
2214 + // eslint-disable-next-line no-fallthrough
2215 + }
2216 + }
2217 +
2218 + return null;
2219 +}
2220 +
2221 +var assign = Object.assign;
2222 +
2223 +// Helpers to patch console.logs to avoid logging during side-effect free
2224 +// replaying on render function. This currently only patches the object
2225 +// lazily which won't cover if the log function was extracted eagerly.
2226 +// We could also eagerly patch the method.
2227 +var disabledDepth = 0;
2228 +var prevLog;
2229 +var prevInfo;
2230 +var prevWarn;
2231 +var prevError;
2232 +var prevGroup;
2233 +var prevGroupCollapsed;
2234 +var prevGroupEnd;
2235 +
2236 +function disabledLog() {}
2237 +
2238 +disabledLog.__reactDisabledLog = true;
2239 +function disableLogs() {
2240 + {
2241 + if (disabledDepth === 0) {
2242 + /* eslint-disable react-internal/no-production-logging */
2243 + prevLog = console.log;
2244 + prevInfo = console.info;
2245 + prevWarn = console.warn;
2246 + prevError = console.error;
2247 + prevGroup = console.group;
2248 + prevGroupCollapsed = console.groupCollapsed;
2249 + prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
2250 +
2251 + var props = {
2252 + configurable: true,
2253 + enumerable: true,
2254 + value: disabledLog,
2255 + writable: true
2256 + }; // $FlowFixMe Flow thinks console is immutable.
2257 +
2258 + Object.defineProperties(console, {
2259 + info: props,
2260 + log: props,
2261 + warn: props,
2262 + error: props,
2263 + group: props,
2264 + groupCollapsed: props,
2265 + groupEnd: props
2266 + });
2267 + /* eslint-enable react-internal/no-production-logging */
2268 + }
2269 +
2270 + disabledDepth++;
2271 + }
2272 +}
2273 +function reenableLogs() {
2274 + {
2275 + disabledDepth--;
2276 +
2277 + if (disabledDepth === 0) {
2278 + /* eslint-disable react-internal/no-production-logging */
2279 + var props = {
2280 + configurable: true,
2281 + enumerable: true,
2282 + writable: true
2283 + }; // $FlowFixMe Flow thinks console is immutable.
2284 +
2285 + Object.defineProperties(console, {
2286 + log: assign({}, props, {
2287 + value: prevLog
2288 + }),
2289 + info: assign({}, props, {
2290 + value: prevInfo
2291 + }),
2292 + warn: assign({}, props, {
2293 + value: prevWarn
2294 + }),
2295 + error: assign({}, props, {
2296 + value: prevError
2297 + }),
2298 + group: assign({}, props, {
2299 + value: prevGroup
2300 + }),
2301 + groupCollapsed: assign({}, props, {
2302 + value: prevGroupCollapsed
2303 + }),
2304 + groupEnd: assign({}, props, {
2305 + value: prevGroupEnd
2306 + })
2307 + });
2308 + /* eslint-enable react-internal/no-production-logging */
2309 + }
2310 +
2311 + if (disabledDepth < 0) {
2312 + error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2313 + }
2314 + }
2315 +}
2316 +
2317 +var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2318 +var prefix;
2319 +function describeBuiltInComponentFrame(name, source, ownerFn) {
2320 + {
2321 + if (prefix === undefined) {
2322 + // Extract the VM specific prefix used by each line.
2323 + try {
2324 + throw Error();
2325 + } catch (x) {
2326 + var match = x.stack.trim().match(/\n( *(at )?)/);
2327 + prefix = match && match[1] || '';
2328 + }
2329 + } // We use the prefix to ensure our stacks line up with native stack frames.
2330 +
2331 +
2332 + return '\n' + prefix + name;
2333 + }
2334 +}
2335 +var reentry = false;
2336 +var componentFrameCache;
2337 +
2338 +{
2339 + var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2340 + componentFrameCache = new PossiblyWeakMap();
2341 +}
2342 +
2343 +function describeNativeComponentFrame(fn, construct) {
2344 + // If something asked for a stack inside a fake render, it should get ignored.
2345 + if ( !fn || reentry) {
2346 + return '';
2347 + }
2348 +
2349 + {
2350 + var frame = componentFrameCache.get(fn);
2351 +
2352 + if (frame !== undefined) {
2353 + return frame;
2354 + }
2355 + }
2356 +
2357 + var control;
2358 + reentry = true;
2359 + var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
2360 +
2361 + Error.prepareStackTrace = undefined;
2362 + var previousDispatcher;
2363 +
2364 + {
2365 + previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
2366 + // for warnings.
2367 +
2368 + ReactCurrentDispatcher.current = null;
2369 + disableLogs();
2370 + }
2371 +
2372 + try {
2373 + // This should throw.
2374 + if (construct) {
2375 + // Something should be setting the props in the constructor.
2376 + var Fake = function () {
2377 + throw Error();
2378 + }; // $FlowFixMe
2379 +
2380 +
2381 + Object.defineProperty(Fake.prototype, 'props', {
2382 + set: function () {
2383 + // We use a throwing setter instead of frozen or non-writable props
2384 + // because that won't throw in a non-strict mode function.
2385 + throw Error();
2386 + }
2387 + });
2388 +
2389 + if (typeof Reflect === 'object' && Reflect.construct) {
2390 + // We construct a different control for this case to include any extra
2391 + // frames added by the construct call.
2392 + try {
2393 + Reflect.construct(Fake, []);
2394 + } catch (x) {
2395 + control = x;
2396 + }
2397 +
2398 + Reflect.construct(fn, [], Fake);
2399 + } else {
2400 + try {
2401 + Fake.call();
2402 + } catch (x) {
2403 + control = x;
2404 + }
2405 +
2406 + fn.call(Fake.prototype);
2407 + }
2408 + } else {
2409 + try {
2410 + throw Error();
2411 + } catch (x) {
2412 + control = x;
2413 + }
2414 +
2415 + fn();
2416 + }
2417 + } catch (sample) {
2418 + // This is inlined manually because closure doesn't do it for us.
2419 + if (sample && control && typeof sample.stack === 'string') {
2420 + // This extracts the first frame from the sample that isn't also in the control.
2421 + // Skipping one frame that we assume is the frame that calls the two.
2422 + var sampleLines = sample.stack.split('\n');
2423 + var controlLines = control.stack.split('\n');
2424 + var s = sampleLines.length - 1;
2425 + var c = controlLines.length - 1;
2426 +
2427 + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2428 + // We expect at least one stack frame to be shared.
2429 + // Typically this will be the root most one. However, stack frames may be
2430 + // cut off due to maximum stack limits. In this case, one maybe cut off
2431 + // earlier than the other. We assume that the sample is longer or the same
2432 + // and there for cut off earlier. So we should find the root most frame in
2433 + // the sample somewhere in the control.
2434 + c--;
2435 + }
2436 +
2437 + for (; s >= 1 && c >= 0; s--, c--) {
2438 + // Next we find the first one that isn't the same which should be the
2439 + // frame that called our sample function and the control.
2440 + if (sampleLines[s] !== controlLines[c]) {
2441 + // In V8, the first line is describing the message but other VMs don't.
2442 + // If we're about to return the first line, and the control is also on the same
2443 + // line, that's a pretty good indicator that our sample threw at same line as
2444 + // the control. I.e. before we entered the sample frame. So we ignore this result.
2445 + // This can happen if you passed a class to function component, or non-function.
2446 + if (s !== 1 || c !== 1) {
2447 + do {
2448 + s--;
2449 + c--; // We may still have similar intermediate frames from the construct call.
2450 + // The next one that isn't the same should be our match though.
2451 +
2452 + if (c < 0 || sampleLines[s] !== controlLines[c]) {
2453 + // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
2454 + var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
2455 + // but we have a user-provided "displayName"
2456 + // splice it in to make the stack more readable.
2457 +
2458 +
2459 + if (fn.displayName && _frame.includes('<anonymous>')) {
2460 + _frame = _frame.replace('<anonymous>', fn.displayName);
2461 + }
2462 +
2463 + {
2464 + if (typeof fn === 'function') {
2465 + componentFrameCache.set(fn, _frame);
2466 + }
2467 + } // Return the line we found.
2468 +
2469 +
2470 + return _frame;
2471 + }
2472 + } while (s >= 1 && c >= 0);
2473 + }
2474 +
2475 + break;
2476 + }
2477 + }
2478 + }
2479 + } finally {
2480 + reentry = false;
2481 +
2482 + {
2483 + ReactCurrentDispatcher.current = previousDispatcher;
2484 + reenableLogs();
2485 + }
2486 +
2487 + Error.prepareStackTrace = previousPrepareStackTrace;
2488 + } // Fallback to just using the name if we couldn't make it throw.
2489 +
2490 +
2491 + var name = fn ? fn.displayName || fn.name : '';
2492 + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2493 +
2494 + {
2495 + if (typeof fn === 'function') {
2496 + componentFrameCache.set(fn, syntheticFrame);
2497 + }
2498 + }
2499 +
2500 + return syntheticFrame;
2501 +}
2502 +function describeFunctionComponentFrame(fn, source, ownerFn) {
2503 + {
2504 + return describeNativeComponentFrame(fn, false);
2505 + }
2506 +}
2507 +
2508 +function shouldConstruct(Component) {
2509 + var prototype = Component.prototype;
2510 + return !!(prototype && prototype.isReactComponent);
2511 +}
2512 +
2513 +function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2514 +
2515 + if (type == null) {
2516 + return '';
2517 + }
2518 +
2519 + if (typeof type === 'function') {
2520 + {
2521 + return describeNativeComponentFrame(type, shouldConstruct(type));
2522 + }
2523 + }
2524 +
2525 + if (typeof type === 'string') {
2526 + return describeBuiltInComponentFrame(type);
2527 + }
2528 +
2529 + switch (type) {
2530 + case REACT_SUSPENSE_TYPE:
2531 + return describeBuiltInComponentFrame('Suspense');
2532 +
2533 + case REACT_SUSPENSE_LIST_TYPE:
2534 + return describeBuiltInComponentFrame('SuspenseList');
2535 + }
2536 +
2537 + if (typeof type === 'object') {
2538 + switch (type.$$typeof) {
2539 + case REACT_FORWARD_REF_TYPE:
2540 + return describeFunctionComponentFrame(type.render);
2541 +
2542 + case REACT_MEMO_TYPE:
2543 + // Memo may contain any component type so we recursively resolve it.
2544 + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2545 +
2546 + case REACT_LAZY_TYPE:
2547 + {
2548 + var lazyComponent = type;
2549 + var payload = lazyComponent._payload;
2550 + var init = lazyComponent._init;
2551 +
2552 + try {
2553 + // Lazy may contain any component type so we recursively resolve it.
2554 + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2555 + } catch (x) {}
2556 + }
2557 + }
2558 + }
2559 +
2560 + return '';
2561 +}
2562 +
2563 +var hasOwnProperty = Object.prototype.hasOwnProperty;
2564 +
2565 +var loggedTypeFailures = {};
2566 +var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2567 +
2568 +function setCurrentlyValidatingElement(element) {
2569 + {
2570 + if (element) {
2571 + var owner = element._owner;
2572 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2573 + ReactDebugCurrentFrame.setExtraStackFrame(stack);
2574 + } else {
2575 + ReactDebugCurrentFrame.setExtraStackFrame(null);
2576 + }
2577 + }
2578 +}
2579 +
2580 +function checkPropTypes(typeSpecs, values, location, componentName, element) {
2581 + {
2582 + // $FlowFixMe This is okay but Flow doesn't know it.
2583 + var has = Function.call.bind(hasOwnProperty);
2584 +
2585 + for (var typeSpecName in typeSpecs) {
2586 + if (has(typeSpecs, typeSpecName)) {
2587 + var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2588 + // fail the render phase where it didn't fail before. So we log it.
2589 + // After these have been cleaned up, we'll let them throw.
2590 +
2591 + try {
2592 + // This is intentionally an invariant that gets caught. It's the same
2593 + // behavior as without this statement except with a better message.
2594 + if (typeof typeSpecs[typeSpecName] !== 'function') {
2595 + // eslint-disable-next-line react-internal/prod-error-codes
2596 + 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`.');
2597 + err.name = 'Invariant Violation';
2598 + throw err;
2599 + }
2600 +
2601 + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2602 + } catch (ex) {
2603 + error$1 = ex;
2604 + }
2605 +
2606 + if (error$1 && !(error$1 instanceof Error)) {
2607 + setCurrentlyValidatingElement(element);
2608 +
2609 + 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);
2610 +
2611 + setCurrentlyValidatingElement(null);
2612 + }
2613 +
2614 + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2615 + // Only monitor this failure once because there tends to be a lot of the
2616 + // same error.
2617 + loggedTypeFailures[error$1.message] = true;
2618 + setCurrentlyValidatingElement(element);
2619 +
2620 + error('Failed %s type: %s', location, error$1.message);
2621 +
2622 + setCurrentlyValidatingElement(null);
2623 + }
2624 + }
2625 + }
2626 + }
2627 +}
2628 +
2629 +var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
2630 +
2631 +function isArray(a) {
2632 + return isArrayImpl(a);
2633 +}
2634 +
243 2635 /*
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 - }));
2636 + * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
2637 + * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
2638 + *
2639 + * The functions in this module will throw an easier-to-understand,
2640 + * easier-to-debug exception with a clear errors message message explaining the
2641 + * problem. (Instead of a confusing exception thrown inside the implementation
2642 + * of the `value` object).
2643 + */
2644 +// $FlowFixMe only called in DEV, so void return is not possible.
2645 +function typeName(value) {
2646 + {
2647 + // toStringTag is needed for namespaced types like Temporal.Instant
2648 + var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
2649 + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
2650 + return type;
2651 + }
2652 +} // $FlowFixMe only called in DEV, so void return is not possible.
292 2653
293 -//#endregion
294 -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js
2654 +
2655 +function willCoercionThrow(value) {
2656 + {
2657 + try {
2658 + testStringCoercion(value);
2659 + return false;
2660 + } catch (e) {
2661 + return true;
2662 + }
2663 + }
2664 +}
2665 +
2666 +function testStringCoercion(value) {
2667 + // If you ended up here by following an exception call stack, here's what's
2668 + // happened: you supplied an object or symbol value to React (as a prop, key,
2669 + // DOM attribute, CSS property, string ref, etc.) and when React tried to
2670 + // coerce it to a string using `'' + value`, an exception was thrown.
2671 + //
2672 + // The most common types that will cause this exception are `Symbol` instances
2673 + // and Temporal objects like `Temporal.Instant`. But any object that has a
2674 + // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
2675 + // exception. (Library authors do this to prevent users from using built-in
2676 + // numeric operators like `+` or comparison operators like `>=` because custom
2677 + // methods are needed to perform accurate arithmetic or comparison.)
2678 + //
2679 + // To fix the problem, coerce this object or symbol value to a string before
2680 + // passing it to React. The most reliable way is usually `String(value)`.
2681 + //
2682 + // To find which value is throwing, check the browser or debugger console.
2683 + // Before this exception was thrown, there should be `console.error` output
2684 + // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
2685 + // problem and how that type was used: key, atrribute, input value prop, etc.
2686 + // In most cases, this console output also shows the component and its
2687 + // ancestor components where the exception happened.
2688 + //
2689 + // eslint-disable-next-line react-internal/safe-string-coercion
2690 + return '' + value;
2691 +}
2692 +function checkKeyStringCoercion(value) {
2693 + {
2694 + if (willCoercionThrow(value)) {
2695 + error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
2696 +
2697 + return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
2698 + }
2699 + }
2700 +}
2701 +
2702 +var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2703 +var RESERVED_PROPS = {
2704 + key: true,
2705 + ref: true,
2706 + __self: true,
2707 + __source: true
2708 +};
2709 +var specialPropKeyWarningShown;
2710 +var specialPropRefWarningShown;
2711 +var didWarnAboutStringRefs;
2712 +
2713 +{
2714 + didWarnAboutStringRefs = {};
2715 +}
2716 +
2717 +function hasValidRef(config) {
2718 + {
2719 + if (hasOwnProperty.call(config, 'ref')) {
2720 + var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
2721 +
2722 + if (getter && getter.isReactWarning) {
2723 + return false;
2724 + }
2725 + }
2726 + }
2727 +
2728 + return config.ref !== undefined;
2729 +}
2730 +
2731 +function hasValidKey(config) {
2732 + {
2733 + if (hasOwnProperty.call(config, 'key')) {
2734 + var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
2735 +
2736 + if (getter && getter.isReactWarning) {
2737 + return false;
2738 + }
2739 + }
2740 + }
2741 +
2742 + return config.key !== undefined;
2743 +}
2744 +
2745 +function warnIfStringRefCannotBeAutoConverted(config, self) {
2746 + {
2747 + if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2748 + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2749 +
2750 + if (!didWarnAboutStringRefs[componentName]) {
2751 + 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);
2752 +
2753 + didWarnAboutStringRefs[componentName] = true;
2754 + }
2755 + }
2756 + }
2757 +}
2758 +
2759 +function defineKeyPropWarningGetter(props, displayName) {
2760 + {
2761 + var warnAboutAccessingKey = function () {
2762 + if (!specialPropKeyWarningShown) {
2763 + specialPropKeyWarningShown = true;
2764 +
2765 + 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);
2766 + }
2767 + };
2768 +
2769 + warnAboutAccessingKey.isReactWarning = true;
2770 + Object.defineProperty(props, 'key', {
2771 + get: warnAboutAccessingKey,
2772 + configurable: true
2773 + });
2774 + }
2775 +}
2776 +
2777 +function defineRefPropWarningGetter(props, displayName) {
2778 + {
2779 + var warnAboutAccessingRef = function () {
2780 + if (!specialPropRefWarningShown) {
2781 + specialPropRefWarningShown = true;
2782 +
2783 + 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);
2784 + }
2785 + };
2786 +
2787 + warnAboutAccessingRef.isReactWarning = true;
2788 + Object.defineProperty(props, 'ref', {
2789 + get: warnAboutAccessingRef,
2790 + configurable: true
2791 + });
2792 + }
2793 +}
295 2794 /**
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 - }));
2795 + * Factory method to create a new React element. This no longer adheres to
2796 + * the class pattern, so do not use new to call it. Also, instanceof check
2797 + * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2798 + * if something is a React Element.
2799 + *
2800 + * @param {*} type
2801 + * @param {*} props
2802 + * @param {*} key
2803 + * @param {string|object} ref
2804 + * @param {*} owner
2805 + * @param {*} self A *temporary* helper to detect places where `this` is
2806 + * different from the `owner` when React.createElement is called, so that we
2807 + * can warn. We want to get rid of owner and replace string `ref`s with arrow
2808 + * functions, and as long as `this` and owner are the same, there will be no
2809 + * change in behavior.
2810 + * @param {*} source An annotation object (added by a transpiler or otherwise)
2811 + * indicating filename, line number, and/or other information.
2812 + * @internal
2813 + */
305 2814
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 2815
312 -//#endregion
313 -//#region node_modules/prop-types/checkPropTypes.js
2816 +var ReactElement = function (type, key, ref, self, source, owner, props) {
2817 + var element = {
2818 + // This tag allows us to uniquely identify this as a React Element
2819 + $$typeof: REACT_ELEMENT_TYPE,
2820 + // Built-in properties that belong on the element
2821 + type: type,
2822 + key: key,
2823 + ref: ref,
2824 + props: props,
2825 + // Record the component responsible for creating this element.
2826 + _owner: owner
2827 + };
2828 +
2829 + {
2830 + // The validation flag is currently mutative. We put it on
2831 + // an external backing store so that we can freeze the whole object.
2832 + // This can be replaced with a WeakMap once they are implemented in
2833 + // commonly used development environments.
2834 + element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2835 + // the validation flag non-enumerable (where possible, which should
2836 + // include every environment we run tests in), so the test framework
2837 + // ignores it.
2838 +
2839 + Object.defineProperty(element._store, 'validated', {
2840 + configurable: false,
2841 + enumerable: false,
2842 + writable: true,
2843 + value: false
2844 + }); // self and source are DEV only properties.
2845 +
2846 + Object.defineProperty(element, '_self', {
2847 + configurable: false,
2848 + enumerable: false,
2849 + writable: false,
2850 + value: self
2851 + }); // Two elements created in two different places should be considered
2852 + // equal for testing purposes and therefore we hide it from enumeration.
2853 +
2854 + Object.defineProperty(element, '_source', {
2855 + configurable: false,
2856 + enumerable: false,
2857 + writable: false,
2858 + value: source
2859 + });
2860 +
2861 + if (Object.freeze) {
2862 + Object.freeze(element.props);
2863 + Object.freeze(element);
2864 + }
2865 + }
2866 +
2867 + return element;
2868 +};
314 2869 /**
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 - }));
2870 + * https://github.com/reactjs/rfcs/pull/107
2871 + * @param {*} type
2872 + * @param {object} props
2873 + * @param {string} key
2874 + */
374 2875
375 -//#endregion
376 -//#region node_modules/prop-types/factoryWithTypeCheckers.js
2876 +function jsxDEV(type, config, maybeKey, source, self) {
2877 + {
2878 + var propName; // Reserved names are extracted
2879 +
2880 + var props = {};
2881 + var key = null;
2882 + var ref = null; // Currently, key can be spread in as a prop. This causes a potential
2883 + // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
2884 + // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
2885 + // but as an intermediary step, we will use jsxDEV for everything except
2886 + // <div {...props} key="Hi" />, because we aren't currently able to tell if
2887 + // key is explicitly declared to be undefined or not.
2888 +
2889 + if (maybeKey !== undefined) {
2890 + {
2891 + checkKeyStringCoercion(maybeKey);
2892 + }
2893 +
2894 + key = '' + maybeKey;
2895 + }
2896 +
2897 + if (hasValidKey(config)) {
2898 + {
2899 + checkKeyStringCoercion(config.key);
2900 + }
2901 +
2902 + key = '' + config.key;
2903 + }
2904 +
2905 + if (hasValidRef(config)) {
2906 + ref = config.ref;
2907 + warnIfStringRefCannotBeAutoConverted(config, self);
2908 + } // Remaining properties are added to a new props object
2909 +
2910 +
2911 + for (propName in config) {
2912 + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2913 + props[propName] = config[propName];
2914 + }
2915 + } // Resolve default props
2916 +
2917 +
2918 + if (type && type.defaultProps) {
2919 + var defaultProps = type.defaultProps;
2920 +
2921 + for (propName in defaultProps) {
2922 + if (props[propName] === undefined) {
2923 + props[propName] = defaultProps[propName];
2924 + }
2925 + }
2926 + }
2927 +
2928 + if (key || ref) {
2929 + var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2930 +
2931 + if (key) {
2932 + defineKeyPropWarningGetter(props, displayName);
2933 + }
2934 +
2935 + if (ref) {
2936 + defineRefPropWarningGetter(props, displayName);
2937 + }
2938 + }
2939 +
2940 + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2941 + }
2942 +}
2943 +
2944 +var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2945 +var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2946 +
2947 +function setCurrentlyValidatingElement$1(element) {
2948 + {
2949 + if (element) {
2950 + var owner = element._owner;
2951 + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2952 + ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2953 + } else {
2954 + ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2955 + }
2956 + }
2957 +}
2958 +
2959 +var propTypesMisspellWarningShown;
2960 +
2961 +{
2962 + propTypesMisspellWarningShown = false;
2963 +}
377 2964 /**
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 - }));
2965 + * Verifies the object is a ReactElement.
2966 + * See https://reactjs.org/docs/react-api.html#isvalidelement
2967 + * @param {?object} object
2968 + * @return {boolean} True if `object` is a ReactElement.
2969 + * @final
2970 + */
772 2971
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 2972
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 - }
2973 +function isValidElement(object) {
2974 + {
2975 + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2976 + }
2977 +}
787 2978
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 - }
2979 +function getDeclarationErrorAddendum() {
2980 + {
2981 + if (ReactCurrentOwner$1.current) {
2982 + var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
817 2983
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 - }
2984 + if (name) {
2985 + return '\n\nCheck the render method of `' + name + '`.';
2986 + }
2987 + }
825 2988
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 - }
2989 + return '';
2990 + }
2991 +}
835 2992
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 - }
2993 +function getSourceInfoErrorAddendum(source) {
2994 + {
2995 + if (source !== undefined) {
2996 + var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2997 + var lineNumber = source.lineNumber;
2998 + return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2999 + }
841 3000
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 - }
3001 + return '';
3002 + }
3003 +}
3004 +/**
3005 + * Warn if there's no key explicitly set on dynamic arrays of children or
3006 + * object keys are not valid. This allows us to keep track of children between
3007 + * updates.
3008 + */
847 3009
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 3010
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 - }
3011 +var ownerHasKeyUseWarning = {};
859 3012
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 - }
3013 +function getCurrentComponentErrorInfo(parentType) {
3014 + {
3015 + var info = getDeclarationErrorAddendum();
865 3016
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 - }
3017 + if (!info) {
3018 + var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
871 3019
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 - }
3020 + if (parentName) {
3021 + info = "\n\nCheck the top-level render call using <" + parentName + ">.";
3022 + }
3023 + }
883 3024
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 - });
3025 + return info;
3026 + }
3027 +}
3028 +/**
3029 + * Warn if the element doesn't have an explicit key assigned to it.
3030 + * This element is in an array. The array could grow and shrink or be
3031 + * reordered. All children that haven't already been validated are required to
3032 + * have a "key" property assigned to it. Error statuses are cached so a warning
3033 + * will only be shown once.
3034 + *
3035 + * @internal
3036 + * @param {ReactElement} element Element that requires a key.
3037 + * @param {*} parentType element's parent's type.
3038 + */
897 3039
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 3040
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 - };
3041 +function validateExplicitKey(element, parentType) {
3042 + {
3043 + if (!element._store || element._store.validated || element.key != null) {
3044 + return;
3045 + }
934 3046
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 - }
3047 + element._store.validated = true;
3048 + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
945 3049
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 - }
3050 + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
3051 + return;
3052 + }
958 3053
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 - }
3054 + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
3055 + // property, it may be the creator of the child that's responsible for
3056 + // assigning it a key.
965 3057
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 - }
3058 + var childOwner = '';
976 3059
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 - };
3060 + if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
3061 + // Give the component that originally created this child.
3062 + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
3063 + }
997 3064
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 - };
3065 + setCurrentlyValidatingElement$1(element);
1016 3066
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 - };
3067 + 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 3068
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 - };
3069 + setCurrentlyValidatingElement$1(null);
3070 + }
3071 +}
3072 +/**
3073 + * Ensure that every element either is passed in a static location, in an
3074 + * array with an explicit keys property defined, or in an object literal
3075 + * with valid key property.
3076 + *
3077 + * @internal
3078 + * @param {ReactNode} node Statically passed child of any type.
3079 + * @param {*} parentType node's parent's type.
3080 + */
1065 3081
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 3082
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 - };
3083 +function validateChildKeys(node, parentType) {
3084 + {
3085 + if (typeof node !== 'object') {
3086 + return;
3087 + }
1106 3088
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 - };
3089 + if (isArray(node)) {
3090 + for (var i = 0; i < node.length; i++) {
3091 + var child = node[i];
1194 3092
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 - };
3093 + if (isValidElement(child)) {
3094 + validateExplicitKey(child, parentType);
3095 + }
3096 + }
3097 + } else if (isValidElement(node)) {
3098 + // This element was passed in a valid location.
3099 + if (node._store) {
3100 + node._store.validated = true;
3101 + }
3102 + } else if (node) {
3103 + var iteratorFn = getIteratorFn(node);
1308 3104
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 - };
3105 + if (typeof iteratorFn === 'function') {
3106 + // Entry iterators used to provide implicit keys,
3107 + // but now we print a separate warning for them later.
3108 + if (iteratorFn !== node.entries) {
3109 + var iterator = iteratorFn.call(node);
3110 + var step;
1392 3111
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 - };
3112 + while (!(step = iterator.next()).done) {
3113 + if (isValidElement(step.value)) {
3114 + validateExplicitKey(step.value, parentType);
3115 + }
3116 + }
3117 + }
3118 + }
3119 + }
3120 + }
3121 +}
3122 +/**
3123 + * Given an element, validate that its props follow the propTypes definition,
3124 + * provided by the type.
3125 + *
3126 + * @param {ReactElement} element
3127 + */
1460 3128
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 3129
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 - };
3130 +function validatePropTypes(element) {
3131 + {
3132 + var type = element.type;
1504 3133
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 - };
3134 + if (type === null || type === undefined || typeof type === 'string') {
3135 + return;
3136 + }
1518 3137
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 - };
3138 + var propTypes;
1569 3139
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();
3140 + if (typeof type === 'function') {
3141 + propTypes = type.propTypes;
3142 + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3143 + // Inner props are checked in the reconciler.
3144 + type.$$typeof === REACT_MEMO_TYPE)) {
3145 + propTypes = type.propTypes;
3146 + } else {
3147 + return;
3148 + }
1575 3149
1576 -//#endregion
1577 -})(wp.i18n, React, ReactDOM, elementorV2.ui, elementorV2.query, elementorV2.icons, elementorV2.editorAppBar, elementorV2.icons['SpeakerphoneIcon']);
3150 + if (propTypes) {
3151 + // Intentionally inside to avoid triggering lazy initializers:
3152 + var name = getComponentNameFromType(type);
3153 + checkPropTypes(propTypes, element.props, 'prop', name, element);
3154 + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
3155 + propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
3156 +
3157 + var _name = getComponentNameFromType(type);
3158 +
3159 + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
3160 + }
3161 +
3162 + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
3163 + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
3164 + }
3165 + }
3166 +}
3167 +/**
3168 + * Given a fragment, validate that it can only be provided with fragment props
3169 + * @param {ReactElement} fragment
3170 + */
3171 +
3172 +
3173 +function validateFragmentProps(fragment) {
3174 + {
3175 + var keys = Object.keys(fragment.props);
3176 +
3177 + for (var i = 0; i < keys.length; i++) {
3178 + var key = keys[i];
3179 +
3180 + if (key !== 'children' && key !== 'key') {
3181 + setCurrentlyValidatingElement$1(fragment);
3182 +
3183 + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
3184 +
3185 + setCurrentlyValidatingElement$1(null);
3186 + break;
3187 + }
3188 + }
3189 +
3190 + if (fragment.ref !== null) {
3191 + setCurrentlyValidatingElement$1(fragment);
3192 +
3193 + error('Invalid attribute `ref` supplied to `React.Fragment`.');
3194 +
3195 + setCurrentlyValidatingElement$1(null);
3196 + }
3197 + }
3198 +}
3199 +
3200 +var didWarnAboutKeySpread = {};
3201 +function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3202 + {
3203 + var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
3204 + // succeed and there will likely be errors in render.
3205 +
3206 + if (!validType) {
3207 + var info = '';
3208 +
3209 + if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
3210 + 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.";
3211 + }
3212 +
3213 + var sourceInfo = getSourceInfoErrorAddendum(source);
3214 +
3215 + if (sourceInfo) {
3216 + info += sourceInfo;
3217 + } else {
3218 + info += getDeclarationErrorAddendum();
3219 + }
3220 +
3221 + var typeString;
3222 +
3223 + if (type === null) {
3224 + typeString = 'null';
3225 + } else if (isArray(type)) {
3226 + typeString = 'array';
3227 + } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
3228 + typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
3229 + info = ' Did you accidentally export a JSX literal instead of a component?';
3230 + } else {
3231 + typeString = typeof type;
3232 + }
3233 +
3234 + 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);
3235 + }
3236 +
3237 + var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
3238 + // TODO: Drop this when these are no longer allowed as the type argument.
3239 +
3240 + if (element == null) {
3241 + return element;
3242 + } // Skip key warning if the type isn't valid since our key validation logic
3243 + // doesn't expect a non-string/function type and can throw confusing errors.
3244 + // We don't want exception behavior to differ between dev and prod.
3245 + // (Rendering will throw with a helpful message and as soon as the type is
3246 + // fixed, the key warnings will appear.)
3247 +
3248 +
3249 + if (validType) {
3250 + var children = props.children;
3251 +
3252 + if (children !== undefined) {
3253 + if (isStaticChildren) {
3254 + if (isArray(children)) {
3255 + for (var i = 0; i < children.length; i++) {
3256 + validateChildKeys(children[i], type);
3257 + }
3258 +
3259 + if (Object.freeze) {
3260 + Object.freeze(children);
3261 + }
3262 + } else {
3263 + 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.');
3264 + }
3265 + } else {
3266 + validateChildKeys(children, type);
3267 + }
3268 + }
3269 + }
3270 +
3271 + {
3272 + if (hasOwnProperty.call(props, 'key')) {
3273 + var componentName = getComponentNameFromType(type);
3274 + var keys = Object.keys(props).filter(function (k) {
3275 + return k !== 'key';
3276 + });
3277 + var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
3278 +
3279 + if (!didWarnAboutKeySpread[componentName + beforeExample]) {
3280 + var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
3281 +
3282 + 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);
3283 +
3284 + didWarnAboutKeySpread[componentName + beforeExample] = true;
3285 + }
3286 + }
3287 + }
3288 +
3289 + if (type === REACT_FRAGMENT_TYPE) {
3290 + validateFragmentProps(element);
3291 + } else {
3292 + validatePropTypes(element);
3293 + }
3294 +
3295 + return element;
3296 + }
3297 +} // These two functions exist to still get child warnings in dev
3298 +// even with the prod transform. This means that jsxDEV is purely
3299 +// opt-in behavior for better messages but that we won't stop
3300 +// giving you warnings if you use production apis.
3301 +
3302 +function jsxWithValidationStatic(type, props, key) {
3303 + {
3304 + return jsxWithValidation(type, props, key, true);
3305 + }
3306 +}
3307 +function jsxWithValidationDynamic(type, props, key) {
3308 + {
3309 + return jsxWithValidation(type, props, key, false);
3310 + }
3311 +}
3312 +
3313 +var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
3314 +// for now we can ship identical prod functions
3315 +
3316 +var jsxs = jsxWithValidationStatic ;
3317 +
3318 +exports.Fragment = REACT_FRAGMENT_TYPE;
3319 +exports.jsx = jsx;
3320 +exports.jsxs = jsxs;
3321 + })();
3322 +}
3323 +
3324 +
3325 +/***/ }),
3326 +
3327 +/***/ "../node_modules/react/jsx-runtime.js":
3328 +/*!********************************************!*\
3329 + !*** ../node_modules/react/jsx-runtime.js ***!
3330 + \********************************************/
3331 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3332 +
3333 +"use strict";
3334 +
3335 +
3336 +if (false) {} else {
3337 + module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "../node_modules/react/cjs/react-jsx-runtime.development.js");
3338 +}
3339 +
3340 +
3341 +/***/ }),
3342 +
3343 +/***/ "react":
3344 +/*!************************!*\
3345 + !*** external "React" ***!
3346 + \************************/
3347 +/***/ ((module) => {
3348 +
3349 +"use strict";
3350 +module.exports = React;
3351 +
3352 +/***/ }),
3353 +
3354 +/***/ "react-dom":
3355 +/*!***************************!*\
3356 + !*** external "ReactDOM" ***!
3357 + \***************************/
3358 +/***/ ((module) => {
3359 +
3360 +"use strict";
3361 +module.exports = ReactDOM;
3362 +
3363 +/***/ }),
3364 +
3365 +/***/ "@elementor/icons/SpeakerphoneIcon":
3366 +/*!********************************************************!*\
3367 + !*** external "elementorV2.icons['SpeakerphoneIcon']" ***!
3368 + \********************************************************/
3369 +/***/ ((module) => {
3370 +
3371 +"use strict";
3372 +module.exports = elementorV2.icons['SpeakerphoneIcon'];
3373 +
3374 +/***/ }),
3375 +
3376 +/***/ "@elementor/ui":
3377 +/*!*********************************!*\
3378 + !*** external "elementorV2.ui" ***!
3379 + \*********************************/
3380 +/***/ ((module) => {
3381 +
3382 +"use strict";
3383 +module.exports = elementorV2.ui;
3384 +
3385 +/***/ }),
3386 +
3387 +/***/ "@wordpress/i18n":
3388 +/*!**************************!*\
3389 + !*** external "wp.i18n" ***!
3390 + \**************************/
3391 +/***/ ((module) => {
3392 +
3393 +"use strict";
3394 +module.exports = wp.i18n;
3395 +
3396 +/***/ }),
3397 +
3398 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
3399 +/*!******************************************************************!*\
3400 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
3401 + \******************************************************************/
3402 +/***/ ((module) => {
3403 +
3404 +function _arrayLikeToArray(arr, len) {
3405 + if (len == null || len > arr.length) len = arr.length;
3406 + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
3407 + return arr2;
3408 +}
3409 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3410 +
3411 +/***/ }),
3412 +
3413 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
3414 +/*!****************************************************************!*\
3415 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
3416 + \****************************************************************/
3417 +/***/ ((module) => {
3418 +
3419 +function _arrayWithHoles(arr) {
3420 + if (Array.isArray(arr)) return arr;
3421 +}
3422 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
3423 +
3424 +/***/ }),
3425 +
3426 +/***/ "../node_modules/@babel/runtime/helpers/extends.js":
3427 +/*!*********************************************************!*\
3428 + !*** ../node_modules/@babel/runtime/helpers/extends.js ***!
3429 + \*********************************************************/
3430 +/***/ ((module) => {
3431 +
3432 +function _extends() {
3433 + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
3434 + for (var i = 1; i < arguments.length; i++) {
3435 + var source = arguments[i];
3436 + for (var key in source) {
3437 + if (Object.prototype.hasOwnProperty.call(source, key)) {
3438 + target[key] = source[key];
3439 + }
3440 + }
3441 + }
3442 + return target;
3443 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
3444 + return _extends.apply(this, arguments);
3445 +}
3446 +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
3447 +
3448 +/***/ }),
3449 +
3450 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
3451 +/*!***********************************************************************!*\
3452 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
3453 + \***********************************************************************/
3454 +/***/ ((module) => {
3455 +
3456 +function _interopRequireDefault(obj) {
3457 + return obj && obj.__esModule ? obj : {
3458 + "default": obj
3459 + };
3460 +}
3461 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
3462 +
3463 +/***/ }),
3464 +
3465 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
3466 +/*!**********************************************************************!*\
3467 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
3468 + \**********************************************************************/
3469 +/***/ ((module) => {
3470 +
3471 +function _iterableToArrayLimit(r, l) {
3472 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3473 + if (null != t) {
3474 + var e,
3475 + n,
3476 + i,
3477 + u,
3478 + a = [],
3479 + f = !0,
3480 + o = !1;
3481 + try {
3482 + if (i = (t = t.call(r)).next, 0 === l) {
3483 + if (Object(t) !== t) return;
3484 + f = !1;
3485 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
3486 + } catch (r) {
3487 + o = !0, n = r;
3488 + } finally {
3489 + try {
3490 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
3491 + } finally {
3492 + if (o) throw n;
3493 + }
3494 + }
3495 + return a;
3496 + }
3497 +}
3498 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
3499 +
3500 +/***/ }),
3501 +
3502 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
3503 +/*!*****************************************************************!*\
3504 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
3505 + \*****************************************************************/
3506 +/***/ ((module) => {
3507 +
3508 +function _nonIterableRest() {
3509 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3510 +}
3511 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
3512 +
3513 +/***/ }),
3514 +
3515 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
3516 +/*!***************************************************************!*\
3517 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
3518 + \***************************************************************/
3519 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3520 +
3521 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
3522 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
3523 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
3524 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
3525 +function _slicedToArray(arr, i) {
3526 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3527 +}
3528 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3529 +
3530 +/***/ }),
3531 +
3532 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3533 +/*!********************************************************!*\
3534 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3535 + \********************************************************/
3536 +/***/ ((module) => {
3537 +
3538 +function _typeof(o) {
3539 + "@babel/helpers - typeof";
3540 +
3541 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3542 + return typeof o;
3543 + } : function (o) {
3544 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3545 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
3546 +}
3547 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3548 +
3549 +/***/ }),
3550 +
3551 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3552 +/*!****************************************************************************!*\
3553 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3554 + \****************************************************************************/
3555 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3556 +
3557 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3558 +function _unsupportedIterableToArray(o, minLen) {
3559 + if (!o) return;
3560 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
3561 + var n = Object.prototype.toString.call(o).slice(8, -1);
3562 + if (n === "Object" && o.constructor) n = o.constructor.name;
3563 + if (n === "Map" || n === "Set") return Array.from(o);
3564 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
3565 +}
3566 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3567 +
3568 +/***/ }),
3569 +
3570 +/***/ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs":
3571 +/*!**************************************************************************!*\
3572 + !*** ../node_modules/@tanstack/query-core/build/modern/focusManager.cjs ***!
3573 + \**************************************************************************/
3574 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3575 +
3576 +"use strict";
3577 +
3578 +var __defProp = Object.defineProperty;
3579 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3580 +var __getOwnPropNames = Object.getOwnPropertyNames;
3581 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3582 +var __export = (target, all) => {
3583 + for (var name in all)
3584 + __defProp(target, name, { get: all[name], enumerable: true });
3585 +};
3586 +var __copyProps = (to, from, except, desc) => {
3587 + if (from && typeof from === "object" || typeof from === "function") {
3588 + for (let key of __getOwnPropNames(from))
3589 + if (!__hasOwnProp.call(to, key) && key !== except)
3590 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3591 + }
3592 + return to;
3593 +};
3594 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3595 +
3596 +// src/focusManager.ts
3597 +var focusManager_exports = {};
3598 +__export(focusManager_exports, {
3599 + FocusManager: () => FocusManager,
3600 + focusManager: () => focusManager
3601 +});
3602 +module.exports = __toCommonJS(focusManager_exports);
3603 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
3604 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3605 +var FocusManager = class extends import_subscribable.Subscribable {
3606 + #focused;
3607 + #cleanup;
3608 + #setup;
3609 + constructor() {
3610 + super();
3611 + this.#setup = (onFocus) => {
3612 + if (!import_utils.isServer && window.addEventListener) {
3613 + const listener = () => onFocus();
3614 + window.addEventListener("visibilitychange", listener, false);
3615 + return () => {
3616 + window.removeEventListener("visibilitychange", listener);
3617 + };
3618 + }
3619 + return;
3620 + };
3621 + }
3622 + onSubscribe() {
3623 + if (!this.#cleanup) {
3624 + this.setEventListener(this.#setup);
3625 + }
3626 + }
3627 + onUnsubscribe() {
3628 + if (!this.hasListeners()) {
3629 + this.#cleanup?.();
3630 + this.#cleanup = void 0;
3631 + }
3632 + }
3633 + setEventListener(setup) {
3634 + this.#setup = setup;
3635 + this.#cleanup?.();
3636 + this.#cleanup = setup((focused) => {
3637 + if (typeof focused === "boolean") {
3638 + this.setFocused(focused);
3639 + } else {
3640 + this.onFocus();
3641 + }
3642 + });
3643 + }
3644 + setFocused(focused) {
3645 + const changed = this.#focused !== focused;
3646 + if (changed) {
3647 + this.#focused = focused;
3648 + this.onFocus();
3649 + }
3650 + }
3651 + onFocus() {
3652 + const isFocused = this.isFocused();
3653 + this.listeners.forEach((listener) => {
3654 + listener(isFocused);
3655 + });
3656 + }
3657 + isFocused() {
3658 + if (typeof this.#focused === "boolean") {
3659 + return this.#focused;
3660 + }
3661 + return globalThis.document?.visibilityState !== "hidden";
3662 + }
3663 +};
3664 +var focusManager = new FocusManager();
3665 +// Annotate the CommonJS export names for ESM import in node:
3666 +0 && (0);
3667 +//# sourceMappingURL=focusManager.cjs.map
3668 +
3669 +/***/ }),
3670 +
3671 +/***/ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs":
3672 +/*!***********************************************************************!*\
3673 + !*** ../node_modules/@tanstack/query-core/build/modern/hydration.cjs ***!
3674 + \***********************************************************************/
3675 +/***/ ((module) => {
3676 +
3677 +"use strict";
3678 +
3679 +var __defProp = Object.defineProperty;
3680 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3681 +var __getOwnPropNames = Object.getOwnPropertyNames;
3682 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3683 +var __export = (target, all) => {
3684 + for (var name in all)
3685 + __defProp(target, name, { get: all[name], enumerable: true });
3686 +};
3687 +var __copyProps = (to, from, except, desc) => {
3688 + if (from && typeof from === "object" || typeof from === "function") {
3689 + for (let key of __getOwnPropNames(from))
3690 + if (!__hasOwnProp.call(to, key) && key !== except)
3691 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3692 + }
3693 + return to;
3694 +};
3695 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3696 +
3697 +// src/hydration.ts
3698 +var hydration_exports = {};
3699 +__export(hydration_exports, {
3700 + defaultShouldDehydrateMutation: () => defaultShouldDehydrateMutation,
3701 + defaultShouldDehydrateQuery: () => defaultShouldDehydrateQuery,
3702 + dehydrate: () => dehydrate,
3703 + hydrate: () => hydrate
3704 +});
3705 +module.exports = __toCommonJS(hydration_exports);
3706 +function defaultTransformerFn(data) {
3707 + return data;
3708 +}
3709 +function dehydrateMutation(mutation) {
3710 + return {
3711 + mutationKey: mutation.options.mutationKey,
3712 + state: mutation.state,
3713 + ...mutation.options.scope && { scope: mutation.options.scope },
3714 + ...mutation.meta && { meta: mutation.meta }
3715 + };
3716 +}
3717 +function dehydrateQuery(query, serializeData) {
3718 + return {
3719 + state: {
3720 + ...query.state,
3721 + ...query.state.data !== void 0 && {
3722 + data: serializeData(query.state.data)
3723 + }
3724 + },
3725 + queryKey: query.queryKey,
3726 + queryHash: query.queryHash,
3727 + ...query.state.status === "pending" && {
3728 + promise: query.promise?.then(serializeData).catch((error) => {
3729 + if (true) {
3730 + console.error(
3731 + `A query that was dehydrated as pending ended up rejecting. [${query.queryHash}]: ${error}; The error will be redacted in production builds`
3732 + );
3733 + }
3734 + return Promise.reject(new Error("redacted"));
3735 + })
3736 + },
3737 + ...query.meta && { meta: query.meta }
3738 + };
3739 +}
3740 +function defaultShouldDehydrateMutation(mutation) {
3741 + return mutation.state.isPaused;
3742 +}
3743 +function defaultShouldDehydrateQuery(query) {
3744 + return query.state.status === "success";
3745 +}
3746 +function dehydrate(client, options = {}) {
3747 + const filterMutation = options.shouldDehydrateMutation ?? client.getDefaultOptions().dehydrate?.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
3748 + const mutations = client.getMutationCache().getAll().flatMap(
3749 + (mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []
3750 + );
3751 + const filterQuery = options.shouldDehydrateQuery ?? client.getDefaultOptions().dehydrate?.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
3752 + const serializeData = options.serializeData ?? client.getDefaultOptions().dehydrate?.serializeData ?? defaultTransformerFn;
3753 + const queries = client.getQueryCache().getAll().flatMap(
3754 + (query) => filterQuery(query) ? [dehydrateQuery(query, serializeData)] : []
3755 + );
3756 + return { mutations, queries };
3757 +}
3758 +function hydrate(client, dehydratedState, options) {
3759 + if (typeof dehydratedState !== "object" || dehydratedState === null) {
3760 + return;
3761 + }
3762 + const mutationCache = client.getMutationCache();
3763 + const queryCache = client.getQueryCache();
3764 + const deserializeData = options?.defaultOptions?.deserializeData ?? client.getDefaultOptions().hydrate?.deserializeData ?? defaultTransformerFn;
3765 + const mutations = dehydratedState.mutations || [];
3766 + const queries = dehydratedState.queries || [];
3767 + mutations.forEach(({ state, ...mutationOptions }) => {
3768 + mutationCache.build(
3769 + client,
3770 + {
3771 + ...client.getDefaultOptions().hydrate?.mutations,
3772 + ...options?.defaultOptions?.mutations,
3773 + ...mutationOptions
3774 + },
3775 + state
3776 + );
3777 + });
3778 + queries.forEach(({ queryKey, state, queryHash, meta, promise }) => {
3779 + let query = queryCache.get(queryHash);
3780 + const data = state.data === void 0 ? state.data : deserializeData(state.data);
3781 + if (query) {
3782 + if (query.state.dataUpdatedAt < state.dataUpdatedAt) {
3783 + const { fetchStatus: _ignored, ...serializedState } = state;
3784 + query.setState({
3785 + ...serializedState,
3786 + data
3787 + });
3788 + }
3789 + } else {
3790 + query = queryCache.build(
3791 + client,
3792 + {
3793 + ...client.getDefaultOptions().hydrate?.queries,
3794 + ...options?.defaultOptions?.queries,
3795 + queryKey,
3796 + queryHash,
3797 + meta
3798 + },
3799 + // Reset fetch status to idle to avoid
3800 + // query being stuck in fetching state upon hydration
3801 + {
3802 + ...state,
3803 + data,
3804 + fetchStatus: "idle"
3805 + }
3806 + );
3807 + }
3808 + if (promise) {
3809 + const initialPromise = Promise.resolve(promise).then(deserializeData);
3810 + void query.fetch(void 0, { initialPromise });
3811 + }
3812 + });
3813 +}
3814 +// Annotate the CommonJS export names for ESM import in node:
3815 +0 && (0);
3816 +//# sourceMappingURL=hydration.cjs.map
3817 +
3818 +/***/ }),
3819 +
3820 +/***/ "../node_modules/@tanstack/query-core/build/modern/index.cjs":
3821 +/*!*******************************************************************!*\
3822 + !*** ../node_modules/@tanstack/query-core/build/modern/index.cjs ***!
3823 + \*******************************************************************/
3824 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3825 +
3826 +"use strict";
3827 +
3828 +var __defProp = Object.defineProperty;
3829 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3830 +var __getOwnPropNames = Object.getOwnPropertyNames;
3831 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3832 +var __export = (target, all) => {
3833 + for (var name in all)
3834 + __defProp(target, name, { get: all[name], enumerable: true });
3835 +};
3836 +var __copyProps = (to, from, except, desc) => {
3837 + if (from && typeof from === "object" || typeof from === "function") {
3838 + for (let key of __getOwnPropNames(from))
3839 + if (!__hasOwnProp.call(to, key) && key !== except)
3840 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3841 + }
3842 + return to;
3843 +};
3844 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
3845 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3846 +
3847 +// src/index.ts
3848 +var src_exports = {};
3849 +__export(src_exports, {
3850 + CancelledError: () => import_retryer.CancelledError,
3851 + InfiniteQueryObserver: () => import_infiniteQueryObserver.InfiniteQueryObserver,
3852 + MutationCache: () => import_mutationCache.MutationCache,
3853 + MutationObserver: () => import_mutationObserver.MutationObserver,
3854 + QueriesObserver: () => import_queriesObserver.QueriesObserver,
3855 + Query: () => import_query.Query,
3856 + QueryCache: () => import_queryCache.QueryCache,
3857 + QueryClient: () => import_queryClient.QueryClient,
3858 + QueryObserver: () => import_queryObserver.QueryObserver,
3859 + defaultShouldDehydrateMutation: () => import_hydration.defaultShouldDehydrateMutation,
3860 + defaultShouldDehydrateQuery: () => import_hydration.defaultShouldDehydrateQuery,
3861 + dehydrate: () => import_hydration.dehydrate,
3862 + focusManager: () => import_focusManager.focusManager,
3863 + hashKey: () => import_utils.hashKey,
3864 + hydrate: () => import_hydration.hydrate,
3865 + isCancelledError: () => import_retryer2.isCancelledError,
3866 + isServer: () => import_utils.isServer,
3867 + keepPreviousData: () => import_utils.keepPreviousData,
3868 + matchMutation: () => import_utils.matchMutation,
3869 + matchQuery: () => import_utils.matchQuery,
3870 + notifyManager: () => import_notifyManager.notifyManager,
3871 + onlineManager: () => import_onlineManager.onlineManager,
3872 + replaceEqualDeep: () => import_utils.replaceEqualDeep,
3873 + skipToken: () => import_utils.skipToken
3874 +});
3875 +module.exports = __toCommonJS(src_exports);
3876 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3877 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
3878 +var import_queryClient = __webpack_require__(/*! ./queryClient.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs");
3879 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
3880 +var import_queriesObserver = __webpack_require__(/*! ./queriesObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs");
3881 +var import_infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs");
3882 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
3883 +var import_mutationObserver = __webpack_require__(/*! ./mutationObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs");
3884 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
3885 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
3886 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
3887 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3888 +var import_retryer2 = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
3889 +var import_hydration = __webpack_require__(/*! ./hydration.cjs */ "../node_modules/@tanstack/query-core/build/modern/hydration.cjs");
3890 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/query-core/build/modern/types.cjs"), module.exports);
3891 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
3892 +// Annotate the CommonJS export names for ESM import in node:
3893 +0 && (0);
3894 +//# sourceMappingURL=index.cjs.map
3895 +
3896 +/***/ }),
3897 +
3898 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs":
3899 +/*!***********************************************************************************!*\
3900 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs ***!
3901 + \***********************************************************************************/
3902 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3903 +
3904 +"use strict";
3905 +
3906 +var __defProp = Object.defineProperty;
3907 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3908 +var __getOwnPropNames = Object.getOwnPropertyNames;
3909 +var __hasOwnProp = Object.prototype.hasOwnProperty;
3910 +var __export = (target, all) => {
3911 + for (var name in all)
3912 + __defProp(target, name, { get: all[name], enumerable: true });
3913 +};
3914 +var __copyProps = (to, from, except, desc) => {
3915 + if (from && typeof from === "object" || typeof from === "function") {
3916 + for (let key of __getOwnPropNames(from))
3917 + if (!__hasOwnProp.call(to, key) && key !== except)
3918 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3919 + }
3920 + return to;
3921 +};
3922 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3923 +
3924 +// src/infiniteQueryBehavior.ts
3925 +var infiniteQueryBehavior_exports = {};
3926 +__export(infiniteQueryBehavior_exports, {
3927 + hasNextPage: () => hasNextPage,
3928 + hasPreviousPage: () => hasPreviousPage,
3929 + infiniteQueryBehavior: () => infiniteQueryBehavior
3930 +});
3931 +module.exports = __toCommonJS(infiniteQueryBehavior_exports);
3932 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
3933 +function infiniteQueryBehavior(pages) {
3934 + return {
3935 + onFetch: (context, query) => {
3936 + const fetchFn = async () => {
3937 + const options = context.options;
3938 + const direction = context.fetchOptions?.meta?.fetchMore?.direction;
3939 + const oldPages = context.state.data?.pages || [];
3940 + const oldPageParams = context.state.data?.pageParams || [];
3941 + const empty = { pages: [], pageParams: [] };
3942 + let cancelled = false;
3943 + const addSignalProperty = (object) => {
3944 + Object.defineProperty(object, "signal", {
3945 + enumerable: true,
3946 + get: () => {
3947 + if (context.signal.aborted) {
3948 + cancelled = true;
3949 + } else {
3950 + context.signal.addEventListener("abort", () => {
3951 + cancelled = true;
3952 + });
3953 + }
3954 + return context.signal;
3955 + }
3956 + });
3957 + };
3958 + const queryFn = (0, import_utils.ensureQueryFn)(context.options, context.fetchOptions);
3959 + const fetchPage = async (data, param, previous) => {
3960 + if (cancelled) {
3961 + return Promise.reject();
3962 + }
3963 + if (param == null && data.pages.length) {
3964 + return Promise.resolve(data);
3965 + }
3966 + const queryFnContext = {
3967 + queryKey: context.queryKey,
3968 + pageParam: param,
3969 + direction: previous ? "backward" : "forward",
3970 + meta: context.options.meta
3971 + };
3972 + addSignalProperty(queryFnContext);
3973 + const page = await queryFn(
3974 + queryFnContext
3975 + );
3976 + const { maxPages } = context.options;
3977 + const addTo = previous ? import_utils.addToStart : import_utils.addToEnd;
3978 + return {
3979 + pages: addTo(data.pages, page, maxPages),
3980 + pageParams: addTo(data.pageParams, param, maxPages)
3981 + };
3982 + };
3983 + let result;
3984 + if (direction && oldPages.length) {
3985 + const previous = direction === "backward";
3986 + const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
3987 + const oldData = {
3988 + pages: oldPages,
3989 + pageParams: oldPageParams
3990 + };
3991 + const param = pageParamFn(options, oldData);
3992 + result = await fetchPage(oldData, param, previous);
3993 + } else {
3994 + result = await fetchPage(
3995 + empty,
3996 + oldPageParams[0] ?? options.initialPageParam
3997 + );
3998 + const remainingPages = pages ?? oldPages.length;
3999 + for (let i = 1; i < remainingPages; i++) {
4000 + const param = getNextPageParam(options, result);
4001 + result = await fetchPage(result, param);
4002 + }
4003 + }
4004 + return result;
4005 + };
4006 + if (context.options.persister) {
4007 + context.fetchFn = () => {
4008 + return context.options.persister?.(
4009 + fetchFn,
4010 + {
4011 + queryKey: context.queryKey,
4012 + meta: context.options.meta,
4013 + signal: context.signal
4014 + },
4015 + query
4016 + );
4017 + };
4018 + } else {
4019 + context.fetchFn = fetchFn;
4020 + }
4021 + }
4022 + };
4023 +}
4024 +function getNextPageParam(options, { pages, pageParams }) {
4025 + const lastIndex = pages.length - 1;
4026 + return options.getNextPageParam(
4027 + pages[lastIndex],
4028 + pages,
4029 + pageParams[lastIndex],
4030 + pageParams
4031 + );
4032 +}
4033 +function getPreviousPageParam(options, { pages, pageParams }) {
4034 + return options.getPreviousPageParam?.(
4035 + pages[0],
4036 + pages,
4037 + pageParams[0],
4038 + pageParams
4039 + );
4040 +}
4041 +function hasNextPage(options, data) {
4042 + if (!data)
4043 + return false;
4044 + return getNextPageParam(options, data) != null;
4045 +}
4046 +function hasPreviousPage(options, data) {
4047 + if (!data || !options.getPreviousPageParam)
4048 + return false;
4049 + return getPreviousPageParam(options, data) != null;
4050 +}
4051 +// Annotate the CommonJS export names for ESM import in node:
4052 +0 && (0);
4053 +//# sourceMappingURL=infiniteQueryBehavior.cjs.map
4054 +
4055 +/***/ }),
4056 +
4057 +/***/ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs":
4058 +/*!***********************************************************************************!*\
4059 + !*** ../node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs ***!
4060 + \***********************************************************************************/
4061 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4062 +
4063 +"use strict";
4064 +
4065 +var __defProp = Object.defineProperty;
4066 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4067 +var __getOwnPropNames = Object.getOwnPropertyNames;
4068 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4069 +var __export = (target, all) => {
4070 + for (var name in all)
4071 + __defProp(target, name, { get: all[name], enumerable: true });
4072 +};
4073 +var __copyProps = (to, from, except, desc) => {
4074 + if (from && typeof from === "object" || typeof from === "function") {
4075 + for (let key of __getOwnPropNames(from))
4076 + if (!__hasOwnProp.call(to, key) && key !== except)
4077 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4078 + }
4079 + return to;
4080 +};
4081 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4082 +
4083 +// src/infiniteQueryObserver.ts
4084 +var infiniteQueryObserver_exports = {};
4085 +__export(infiniteQueryObserver_exports, {
4086 + InfiniteQueryObserver: () => InfiniteQueryObserver
4087 +});
4088 +module.exports = __toCommonJS(infiniteQueryObserver_exports);
4089 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4090 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
4091 +var InfiniteQueryObserver = class extends import_queryObserver.QueryObserver {
4092 + constructor(client, options) {
4093 + super(client, options);
4094 + }
4095 + bindMethods() {
4096 + super.bindMethods();
4097 + this.fetchNextPage = this.fetchNextPage.bind(this);
4098 + this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
4099 + }
4100 + setOptions(options, notifyOptions) {
4101 + super.setOptions(
4102 + {
4103 + ...options,
4104 + behavior: (0, import_infiniteQueryBehavior.infiniteQueryBehavior)()
4105 + },
4106 + notifyOptions
4107 + );
4108 + }
4109 + getOptimisticResult(options) {
4110 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)();
4111 + return super.getOptimisticResult(options);
4112 + }
4113 + fetchNextPage(options) {
4114 + return this.fetch({
4115 + ...options,
4116 + meta: {
4117 + fetchMore: { direction: "forward" }
4118 + }
4119 + });
4120 + }
4121 + fetchPreviousPage(options) {
4122 + return this.fetch({
4123 + ...options,
4124 + meta: {
4125 + fetchMore: { direction: "backward" }
4126 + }
4127 + });
4128 + }
4129 + createResult(query, options) {
4130 + const { state } = query;
4131 + const parentResult = super.createResult(query, options);
4132 + const { isFetching, isRefetching, isError, isRefetchError } = parentResult;
4133 + const fetchDirection = state.fetchMeta?.fetchMore?.direction;
4134 + const isFetchNextPageError = isError && fetchDirection === "forward";
4135 + const isFetchingNextPage = isFetching && fetchDirection === "forward";
4136 + const isFetchPreviousPageError = isError && fetchDirection === "backward";
4137 + const isFetchingPreviousPage = isFetching && fetchDirection === "backward";
4138 + const result = {
4139 + ...parentResult,
4140 + fetchNextPage: this.fetchNextPage,
4141 + fetchPreviousPage: this.fetchPreviousPage,
4142 + hasNextPage: (0, import_infiniteQueryBehavior.hasNextPage)(options, state.data),
4143 + hasPreviousPage: (0, import_infiniteQueryBehavior.hasPreviousPage)(options, state.data),
4144 + isFetchNextPageError,
4145 + isFetchingNextPage,
4146 + isFetchPreviousPageError,
4147 + isFetchingPreviousPage,
4148 + isRefetchError: isRefetchError && !isFetchNextPageError && !isFetchPreviousPageError,
4149 + isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage
4150 + };
4151 + return result;
4152 + }
4153 +};
4154 +// Annotate the CommonJS export names for ESM import in node:
4155 +0 && (0);
4156 +//# sourceMappingURL=infiniteQueryObserver.cjs.map
4157 +
4158 +/***/ }),
4159 +
4160 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs":
4161 +/*!**********************************************************************!*\
4162 + !*** ../node_modules/@tanstack/query-core/build/modern/mutation.cjs ***!
4163 + \**********************************************************************/
4164 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4165 +
4166 +"use strict";
4167 +
4168 +var __defProp = Object.defineProperty;
4169 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4170 +var __getOwnPropNames = Object.getOwnPropertyNames;
4171 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4172 +var __export = (target, all) => {
4173 + for (var name in all)
4174 + __defProp(target, name, { get: all[name], enumerable: true });
4175 +};
4176 +var __copyProps = (to, from, except, desc) => {
4177 + if (from && typeof from === "object" || typeof from === "function") {
4178 + for (let key of __getOwnPropNames(from))
4179 + if (!__hasOwnProp.call(to, key) && key !== except)
4180 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4181 + }
4182 + return to;
4183 +};
4184 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4185 +
4186 +// src/mutation.ts
4187 +var mutation_exports = {};
4188 +__export(mutation_exports, {
4189 + Mutation: () => Mutation,
4190 + getDefaultState: () => getDefaultState
4191 +});
4192 +module.exports = __toCommonJS(mutation_exports);
4193 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4194 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
4195 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
4196 +var Mutation = class extends import_removable.Removable {
4197 + #observers;
4198 + #mutationCache;
4199 + #retryer;
4200 + constructor(config) {
4201 + super();
4202 + this.mutationId = config.mutationId;
4203 + this.#mutationCache = config.mutationCache;
4204 + this.#observers = [];
4205 + this.state = config.state || getDefaultState();
4206 + this.setOptions(config.options);
4207 + this.scheduleGc();
4208 + }
4209 + setOptions(options) {
4210 + this.options = options;
4211 + this.updateGcTime(this.options.gcTime);
4212 + }
4213 + get meta() {
4214 + return this.options.meta;
4215 + }
4216 + addObserver(observer) {
4217 + if (!this.#observers.includes(observer)) {
4218 + this.#observers.push(observer);
4219 + this.clearGcTimeout();
4220 + this.#mutationCache.notify({
4221 + type: "observerAdded",
4222 + mutation: this,
4223 + observer
4224 + });
4225 + }
4226 + }
4227 + removeObserver(observer) {
4228 + this.#observers = this.#observers.filter((x) => x !== observer);
4229 + this.scheduleGc();
4230 + this.#mutationCache.notify({
4231 + type: "observerRemoved",
4232 + mutation: this,
4233 + observer
4234 + });
4235 + }
4236 + optionalRemove() {
4237 + if (!this.#observers.length) {
4238 + if (this.state.status === "pending") {
4239 + this.scheduleGc();
4240 + } else {
4241 + this.#mutationCache.remove(this);
4242 + }
4243 + }
4244 + }
4245 + continue() {
4246 + return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
4247 + this.execute(this.state.variables);
4248 + }
4249 + async execute(variables) {
4250 + this.#retryer = (0, import_retryer.createRetryer)({
4251 + fn: () => {
4252 + if (!this.options.mutationFn) {
4253 + return Promise.reject(new Error("No mutationFn found"));
4254 + }
4255 + return this.options.mutationFn(variables);
4256 + },
4257 + onFail: (failureCount, error) => {
4258 + this.#dispatch({ type: "failed", failureCount, error });
4259 + },
4260 + onPause: () => {
4261 + this.#dispatch({ type: "pause" });
4262 + },
4263 + onContinue: () => {
4264 + this.#dispatch({ type: "continue" });
4265 + },
4266 + retry: this.options.retry ?? 0,
4267 + retryDelay: this.options.retryDelay,
4268 + networkMode: this.options.networkMode,
4269 + canRun: () => this.#mutationCache.canRun(this)
4270 + });
4271 + const restored = this.state.status === "pending";
4272 + const isPaused = !this.#retryer.canStart();
4273 + try {
4274 + if (!restored) {
4275 + this.#dispatch({ type: "pending", variables, isPaused });
4276 + await this.#mutationCache.config.onMutate?.(
4277 + variables,
4278 + this
4279 + );
4280 + const context = await this.options.onMutate?.(variables);
4281 + if (context !== this.state.context) {
4282 + this.#dispatch({
4283 + type: "pending",
4284 + context,
4285 + variables,
4286 + isPaused
4287 + });
4288 + }
4289 + }
4290 + const data = await this.#retryer.start();
4291 + await this.#mutationCache.config.onSuccess?.(
4292 + data,
4293 + variables,
4294 + this.state.context,
4295 + this
4296 + );
4297 + await this.options.onSuccess?.(data, variables, this.state.context);
4298 + await this.#mutationCache.config.onSettled?.(
4299 + data,
4300 + null,
4301 + this.state.variables,
4302 + this.state.context,
4303 + this
4304 + );
4305 + await this.options.onSettled?.(data, null, variables, this.state.context);
4306 + this.#dispatch({ type: "success", data });
4307 + return data;
4308 + } catch (error) {
4309 + try {
4310 + await this.#mutationCache.config.onError?.(
4311 + error,
4312 + variables,
4313 + this.state.context,
4314 + this
4315 + );
4316 + await this.options.onError?.(
4317 + error,
4318 + variables,
4319 + this.state.context
4320 + );
4321 + await this.#mutationCache.config.onSettled?.(
4322 + void 0,
4323 + error,
4324 + this.state.variables,
4325 + this.state.context,
4326 + this
4327 + );
4328 + await this.options.onSettled?.(
4329 + void 0,
4330 + error,
4331 + variables,
4332 + this.state.context
4333 + );
4334 + throw error;
4335 + } finally {
4336 + this.#dispatch({ type: "error", error });
4337 + }
4338 + } finally {
4339 + this.#mutationCache.runNext(this);
4340 + }
4341 + }
4342 + #dispatch(action) {
4343 + const reducer = (state) => {
4344 + switch (action.type) {
4345 + case "failed":
4346 + return {
4347 + ...state,
4348 + failureCount: action.failureCount,
4349 + failureReason: action.error
4350 + };
4351 + case "pause":
4352 + return {
4353 + ...state,
4354 + isPaused: true
4355 + };
4356 + case "continue":
4357 + return {
4358 + ...state,
4359 + isPaused: false
4360 + };
4361 + case "pending":
4362 + return {
4363 + ...state,
4364 + context: action.context,
4365 + data: void 0,
4366 + failureCount: 0,
4367 + failureReason: null,
4368 + error: null,
4369 + isPaused: action.isPaused,
4370 + status: "pending",
4371 + variables: action.variables,
4372 + submittedAt: Date.now()
4373 + };
4374 + case "success":
4375 + return {
4376 + ...state,
4377 + data: action.data,
4378 + failureCount: 0,
4379 + failureReason: null,
4380 + error: null,
4381 + status: "success",
4382 + isPaused: false
4383 + };
4384 + case "error":
4385 + return {
4386 + ...state,
4387 + data: void 0,
4388 + error: action.error,
4389 + failureCount: state.failureCount + 1,
4390 + failureReason: action.error,
4391 + isPaused: false,
4392 + status: "error"
4393 + };
4394 + }
4395 + };
4396 + this.state = reducer(this.state);
4397 + import_notifyManager.notifyManager.batch(() => {
4398 + this.#observers.forEach((observer) => {
4399 + observer.onMutationUpdate(action);
4400 + });
4401 + this.#mutationCache.notify({
4402 + mutation: this,
4403 + type: "updated",
4404 + action
4405 + });
4406 + });
4407 + }
4408 +};
4409 +function getDefaultState() {
4410 + return {
4411 + context: void 0,
4412 + data: void 0,
4413 + error: null,
4414 + failureCount: 0,
4415 + failureReason: null,
4416 + isPaused: false,
4417 + status: "idle",
4418 + variables: void 0,
4419 + submittedAt: 0
4420 + };
4421 +}
4422 +// Annotate the CommonJS export names for ESM import in node:
4423 +0 && (0);
4424 +//# sourceMappingURL=mutation.cjs.map
4425 +
4426 +/***/ }),
4427 +
4428 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs":
4429 +/*!***************************************************************************!*\
4430 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs ***!
4431 + \***************************************************************************/
4432 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4433 +
4434 +"use strict";
4435 +
4436 +var __defProp = Object.defineProperty;
4437 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4438 +var __getOwnPropNames = Object.getOwnPropertyNames;
4439 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4440 +var __export = (target, all) => {
4441 + for (var name in all)
4442 + __defProp(target, name, { get: all[name], enumerable: true });
4443 +};
4444 +var __copyProps = (to, from, except, desc) => {
4445 + if (from && typeof from === "object" || typeof from === "function") {
4446 + for (let key of __getOwnPropNames(from))
4447 + if (!__hasOwnProp.call(to, key) && key !== except)
4448 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4449 + }
4450 + return to;
4451 +};
4452 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4453 +
4454 +// src/mutationCache.ts
4455 +var mutationCache_exports = {};
4456 +__export(mutationCache_exports, {
4457 + MutationCache: () => MutationCache
4458 +});
4459 +module.exports = __toCommonJS(mutationCache_exports);
4460 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4461 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4462 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4463 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4464 +var MutationCache = class extends import_subscribable.Subscribable {
4465 + constructor(config = {}) {
4466 + super();
4467 + this.config = config;
4468 + this.#mutations = /* @__PURE__ */ new Map();
4469 + this.#mutationId = Date.now();
4470 + }
4471 + #mutations;
4472 + #mutationId;
4473 + build(client, options, state) {
4474 + const mutation = new import_mutation.Mutation({
4475 + mutationCache: this,
4476 + mutationId: ++this.#mutationId,
4477 + options: client.defaultMutationOptions(options),
4478 + state
4479 + });
4480 + this.add(mutation);
4481 + return mutation;
4482 + }
4483 + add(mutation) {
4484 + const scope = scopeFor(mutation);
4485 + const mutations = this.#mutations.get(scope) ?? [];
4486 + mutations.push(mutation);
4487 + this.#mutations.set(scope, mutations);
4488 + this.notify({ type: "added", mutation });
4489 + }
4490 + remove(mutation) {
4491 + const scope = scopeFor(mutation);
4492 + if (this.#mutations.has(scope)) {
4493 + const mutations = this.#mutations.get(scope)?.filter((x) => x !== mutation);
4494 + if (mutations) {
4495 + if (mutations.length === 0) {
4496 + this.#mutations.delete(scope);
4497 + } else {
4498 + this.#mutations.set(scope, mutations);
4499 + }
4500 + }
4501 + }
4502 + this.notify({ type: "removed", mutation });
4503 + }
4504 + canRun(mutation) {
4505 + const firstPendingMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m.state.status === "pending");
4506 + return !firstPendingMutation || firstPendingMutation === mutation;
4507 + }
4508 + runNext(mutation) {
4509 + const foundMutation = this.#mutations.get(scopeFor(mutation))?.find((m) => m !== mutation && m.state.isPaused);
4510 + return foundMutation?.continue() ?? Promise.resolve();
4511 + }
4512 + clear() {
4513 + import_notifyManager.notifyManager.batch(() => {
4514 + this.getAll().forEach((mutation) => {
4515 + this.remove(mutation);
4516 + });
4517 + });
4518 + }
4519 + getAll() {
4520 + return [...this.#mutations.values()].flat();
4521 + }
4522 + find(filters) {
4523 + const defaultedFilters = { exact: true, ...filters };
4524 + return this.getAll().find(
4525 + (mutation) => (0, import_utils.matchMutation)(defaultedFilters, mutation)
4526 + );
4527 + }
4528 + findAll(filters = {}) {
4529 + return this.getAll().filter((mutation) => (0, import_utils.matchMutation)(filters, mutation));
4530 + }
4531 + notify(event) {
4532 + import_notifyManager.notifyManager.batch(() => {
4533 + this.listeners.forEach((listener) => {
4534 + listener(event);
4535 + });
4536 + });
4537 + }
4538 + resumePausedMutations() {
4539 + const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
4540 + return import_notifyManager.notifyManager.batch(
4541 + () => Promise.all(
4542 + pausedMutations.map((mutation) => mutation.continue().catch(import_utils.noop))
4543 + )
4544 + );
4545 + }
4546 +};
4547 +function scopeFor(mutation) {
4548 + return mutation.options.scope?.id ?? String(mutation.mutationId);
4549 +}
4550 +// Annotate the CommonJS export names for ESM import in node:
4551 +0 && (0);
4552 +//# sourceMappingURL=mutationCache.cjs.map
4553 +
4554 +/***/ }),
4555 +
4556 +/***/ "../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs":
4557 +/*!******************************************************************************!*\
4558 + !*** ../node_modules/@tanstack/query-core/build/modern/mutationObserver.cjs ***!
4559 + \******************************************************************************/
4560 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4561 +
4562 +"use strict";
4563 +
4564 +var __defProp = Object.defineProperty;
4565 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4566 +var __getOwnPropNames = Object.getOwnPropertyNames;
4567 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4568 +var __export = (target, all) => {
4569 + for (var name in all)
4570 + __defProp(target, name, { get: all[name], enumerable: true });
4571 +};
4572 +var __copyProps = (to, from, except, desc) => {
4573 + if (from && typeof from === "object" || typeof from === "function") {
4574 + for (let key of __getOwnPropNames(from))
4575 + if (!__hasOwnProp.call(to, key) && key !== except)
4576 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4577 + }
4578 + return to;
4579 +};
4580 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4581 +
4582 +// src/mutationObserver.ts
4583 +var mutationObserver_exports = {};
4584 +__export(mutationObserver_exports, {
4585 + MutationObserver: () => MutationObserver
4586 +});
4587 +module.exports = __toCommonJS(mutationObserver_exports);
4588 +var import_mutation = __webpack_require__(/*! ./mutation.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutation.cjs");
4589 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4590 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4591 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4592 +var MutationObserver = class extends import_subscribable.Subscribable {
4593 + #client;
4594 + #currentResult = void 0;
4595 + #currentMutation;
4596 + #mutateOptions;
4597 + constructor(client, options) {
4598 + super();
4599 + this.#client = client;
4600 + this.setOptions(options);
4601 + this.bindMethods();
4602 + this.#updateResult();
4603 + }
4604 + bindMethods() {
4605 + this.mutate = this.mutate.bind(this);
4606 + this.reset = this.reset.bind(this);
4607 + }
4608 + setOptions(options) {
4609 + const prevOptions = this.options;
4610 + this.options = this.#client.defaultMutationOptions(options);
4611 + if (!(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
4612 + this.#client.getMutationCache().notify({
4613 + type: "observerOptionsUpdated",
4614 + mutation: this.#currentMutation,
4615 + observer: this
4616 + });
4617 + }
4618 + if (prevOptions?.mutationKey && this.options.mutationKey && (0, import_utils.hashKey)(prevOptions.mutationKey) !== (0, import_utils.hashKey)(this.options.mutationKey)) {
4619 + this.reset();
4620 + } else if (this.#currentMutation?.state.status === "pending") {
4621 + this.#currentMutation.setOptions(this.options);
4622 + }
4623 + }
4624 + onUnsubscribe() {
4625 + if (!this.hasListeners()) {
4626 + this.#currentMutation?.removeObserver(this);
4627 + }
4628 + }
4629 + onMutationUpdate(action) {
4630 + this.#updateResult();
4631 + this.#notify(action);
4632 + }
4633 + getCurrentResult() {
4634 + return this.#currentResult;
4635 + }
4636 + reset() {
4637 + this.#currentMutation?.removeObserver(this);
4638 + this.#currentMutation = void 0;
4639 + this.#updateResult();
4640 + this.#notify();
4641 + }
4642 + mutate(variables, options) {
4643 + this.#mutateOptions = options;
4644 + this.#currentMutation?.removeObserver(this);
4645 + this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
4646 + this.#currentMutation.addObserver(this);
4647 + return this.#currentMutation.execute(variables);
4648 + }
4649 + #updateResult() {
4650 + const state = this.#currentMutation?.state ?? (0, import_mutation.getDefaultState)();
4651 + this.#currentResult = {
4652 + ...state,
4653 + isPending: state.status === "pending",
4654 + isSuccess: state.status === "success",
4655 + isError: state.status === "error",
4656 + isIdle: state.status === "idle",
4657 + mutate: this.mutate,
4658 + reset: this.reset
4659 + };
4660 + }
4661 + #notify(action) {
4662 + import_notifyManager.notifyManager.batch(() => {
4663 + if (this.#mutateOptions && this.hasListeners()) {
4664 + const variables = this.#currentResult.variables;
4665 + const context = this.#currentResult.context;
4666 + if (action?.type === "success") {
4667 + this.#mutateOptions.onSuccess?.(action.data, variables, context);
4668 + this.#mutateOptions.onSettled?.(action.data, null, variables, context);
4669 + } else if (action?.type === "error") {
4670 + this.#mutateOptions.onError?.(action.error, variables, context);
4671 + this.#mutateOptions.onSettled?.(
4672 + void 0,
4673 + action.error,
4674 + variables,
4675 + context
4676 + );
4677 + }
4678 + }
4679 + this.listeners.forEach((listener) => {
4680 + listener(this.#currentResult);
4681 + });
4682 + });
4683 + }
4684 +};
4685 +// Annotate the CommonJS export names for ESM import in node:
4686 +0 && (0);
4687 +//# sourceMappingURL=mutationObserver.cjs.map
4688 +
4689 +/***/ }),
4690 +
4691 +/***/ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs":
4692 +/*!***************************************************************************!*\
4693 + !*** ../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs ***!
4694 + \***************************************************************************/
4695 +/***/ ((module) => {
4696 +
4697 +"use strict";
4698 +
4699 +var __defProp = Object.defineProperty;
4700 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4701 +var __getOwnPropNames = Object.getOwnPropertyNames;
4702 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4703 +var __export = (target, all) => {
4704 + for (var name in all)
4705 + __defProp(target, name, { get: all[name], enumerable: true });
4706 +};
4707 +var __copyProps = (to, from, except, desc) => {
4708 + if (from && typeof from === "object" || typeof from === "function") {
4709 + for (let key of __getOwnPropNames(from))
4710 + if (!__hasOwnProp.call(to, key) && key !== except)
4711 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4712 + }
4713 + return to;
4714 +};
4715 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4716 +
4717 +// src/notifyManager.ts
4718 +var notifyManager_exports = {};
4719 +__export(notifyManager_exports, {
4720 + createNotifyManager: () => createNotifyManager,
4721 + notifyManager: () => notifyManager
4722 +});
4723 +module.exports = __toCommonJS(notifyManager_exports);
4724 +function createNotifyManager() {
4725 + let queue = [];
4726 + let transactions = 0;
4727 + let notifyFn = (callback) => {
4728 + callback();
4729 + };
4730 + let batchNotifyFn = (callback) => {
4731 + callback();
4732 + };
4733 + let scheduleFn = (cb) => setTimeout(cb, 0);
4734 + const setScheduler = (fn) => {
4735 + scheduleFn = fn;
4736 + };
4737 + const batch = (callback) => {
4738 + let result;
4739 + transactions++;
4740 + try {
4741 + result = callback();
4742 + } finally {
4743 + transactions--;
4744 + if (!transactions) {
4745 + flush();
4746 + }
4747 + }
4748 + return result;
4749 + };
4750 + const schedule = (callback) => {
4751 + if (transactions) {
4752 + queue.push(callback);
4753 + } else {
4754 + scheduleFn(() => {
4755 + notifyFn(callback);
4756 + });
4757 + }
4758 + };
4759 + const batchCalls = (callback) => {
4760 + return (...args) => {
4761 + schedule(() => {
4762 + callback(...args);
4763 + });
4764 + };
4765 + };
4766 + const flush = () => {
4767 + const originalQueue = queue;
4768 + queue = [];
4769 + if (originalQueue.length) {
4770 + scheduleFn(() => {
4771 + batchNotifyFn(() => {
4772 + originalQueue.forEach((callback) => {
4773 + notifyFn(callback);
4774 + });
4775 + });
4776 + });
4777 + }
4778 + };
4779 + const setNotifyFunction = (fn) => {
4780 + notifyFn = fn;
4781 + };
4782 + const setBatchNotifyFunction = (fn) => {
4783 + batchNotifyFn = fn;
4784 + };
4785 + return {
4786 + batch,
4787 + batchCalls,
4788 + schedule,
4789 + setNotifyFunction,
4790 + setBatchNotifyFunction,
4791 + setScheduler
4792 + };
4793 +}
4794 +var notifyManager = createNotifyManager();
4795 +// Annotate the CommonJS export names for ESM import in node:
4796 +0 && (0);
4797 +//# sourceMappingURL=notifyManager.cjs.map
4798 +
4799 +/***/ }),
4800 +
4801 +/***/ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs":
4802 +/*!***************************************************************************!*\
4803 + !*** ../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs ***!
4804 + \***************************************************************************/
4805 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4806 +
4807 +"use strict";
4808 +
4809 +var __defProp = Object.defineProperty;
4810 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4811 +var __getOwnPropNames = Object.getOwnPropertyNames;
4812 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4813 +var __export = (target, all) => {
4814 + for (var name in all)
4815 + __defProp(target, name, { get: all[name], enumerable: true });
4816 +};
4817 +var __copyProps = (to, from, except, desc) => {
4818 + if (from && typeof from === "object" || typeof from === "function") {
4819 + for (let key of __getOwnPropNames(from))
4820 + if (!__hasOwnProp.call(to, key) && key !== except)
4821 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4822 + }
4823 + return to;
4824 +};
4825 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4826 +
4827 +// src/onlineManager.ts
4828 +var onlineManager_exports = {};
4829 +__export(onlineManager_exports, {
4830 + OnlineManager: () => OnlineManager,
4831 + onlineManager: () => onlineManager
4832 +});
4833 +module.exports = __toCommonJS(onlineManager_exports);
4834 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4835 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4836 +var OnlineManager = class extends import_subscribable.Subscribable {
4837 + #online = true;
4838 + #cleanup;
4839 + #setup;
4840 + constructor() {
4841 + super();
4842 + this.#setup = (onOnline) => {
4843 + if (!import_utils.isServer && window.addEventListener) {
4844 + const onlineListener = () => onOnline(true);
4845 + const offlineListener = () => onOnline(false);
4846 + window.addEventListener("online", onlineListener, false);
4847 + window.addEventListener("offline", offlineListener, false);
4848 + return () => {
4849 + window.removeEventListener("online", onlineListener);
4850 + window.removeEventListener("offline", offlineListener);
4851 + };
4852 + }
4853 + return;
4854 + };
4855 + }
4856 + onSubscribe() {
4857 + if (!this.#cleanup) {
4858 + this.setEventListener(this.#setup);
4859 + }
4860 + }
4861 + onUnsubscribe() {
4862 + if (!this.hasListeners()) {
4863 + this.#cleanup?.();
4864 + this.#cleanup = void 0;
4865 + }
4866 + }
4867 + setEventListener(setup) {
4868 + this.#setup = setup;
4869 + this.#cleanup?.();
4870 + this.#cleanup = setup(this.setOnline.bind(this));
4871 + }
4872 + setOnline(online) {
4873 + const changed = this.#online !== online;
4874 + if (changed) {
4875 + this.#online = online;
4876 + this.listeners.forEach((listener) => {
4877 + listener(online);
4878 + });
4879 + }
4880 + }
4881 + isOnline() {
4882 + return this.#online;
4883 + }
4884 +};
4885 +var onlineManager = new OnlineManager();
4886 +// Annotate the CommonJS export names for ESM import in node:
4887 +0 && (0);
4888 +//# sourceMappingURL=onlineManager.cjs.map
4889 +
4890 +/***/ }),
4891 +
4892 +/***/ "../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs":
4893 +/*!*****************************************************************************!*\
4894 + !*** ../node_modules/@tanstack/query-core/build/modern/queriesObserver.cjs ***!
4895 + \*****************************************************************************/
4896 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4897 +
4898 +"use strict";
4899 +
4900 +var __defProp = Object.defineProperty;
4901 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4902 +var __getOwnPropNames = Object.getOwnPropertyNames;
4903 +var __hasOwnProp = Object.prototype.hasOwnProperty;
4904 +var __export = (target, all) => {
4905 + for (var name in all)
4906 + __defProp(target, name, { get: all[name], enumerable: true });
4907 +};
4908 +var __copyProps = (to, from, except, desc) => {
4909 + if (from && typeof from === "object" || typeof from === "function") {
4910 + for (let key of __getOwnPropNames(from))
4911 + if (!__hasOwnProp.call(to, key) && key !== except)
4912 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
4913 + }
4914 + return to;
4915 +};
4916 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4917 +
4918 +// src/queriesObserver.ts
4919 +var queriesObserver_exports = {};
4920 +__export(queriesObserver_exports, {
4921 + QueriesObserver: () => QueriesObserver
4922 +});
4923 +module.exports = __toCommonJS(queriesObserver_exports);
4924 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
4925 +var import_queryObserver = __webpack_require__(/*! ./queryObserver.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs");
4926 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
4927 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
4928 +function difference(array1, array2) {
4929 + return array1.filter((x) => !array2.includes(x));
4930 +}
4931 +function replaceAt(array, index, value) {
4932 + const copy = array.slice(0);
4933 + copy[index] = value;
4934 + return copy;
4935 +}
4936 +var QueriesObserver = class extends import_subscribable.Subscribable {
4937 + #client;
4938 + #result;
4939 + #queries;
4940 + #observers;
4941 + #combinedResult;
4942 + #lastCombine;
4943 + #lastResult;
4944 + constructor(client, queries, _options) {
4945 + super();
4946 + this.#client = client;
4947 + this.#queries = [];
4948 + this.#observers = [];
4949 + this.#result = [];
4950 + this.setQueries(queries);
4951 + }
4952 + onSubscribe() {
4953 + if (this.listeners.size === 1) {
4954 + this.#observers.forEach((observer) => {
4955 + observer.subscribe((result) => {
4956 + this.#onUpdate(observer, result);
4957 + });
4958 + });
4959 + }
4960 + }
4961 + onUnsubscribe() {
4962 + if (!this.listeners.size) {
4963 + this.destroy();
4964 + }
4965 + }
4966 + destroy() {
4967 + this.listeners = /* @__PURE__ */ new Set();
4968 + this.#observers.forEach((observer) => {
4969 + observer.destroy();
4970 + });
4971 + }
4972 + setQueries(queries, _options, notifyOptions) {
4973 + this.#queries = queries;
4974 + import_notifyManager.notifyManager.batch(() => {
4975 + const prevObservers = this.#observers;
4976 + const newObserverMatches = this.#findMatchingObservers(this.#queries);
4977 + newObserverMatches.forEach(
4978 + (match) => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)
4979 + );
4980 + const newObservers = newObserverMatches.map((match) => match.observer);
4981 + const newResult = newObservers.map(
4982 + (observer) => observer.getCurrentResult()
4983 + );
4984 + const hasIndexChange = newObservers.some(
4985 + (observer, index) => observer !== prevObservers[index]
4986 + );
4987 + if (prevObservers.length === newObservers.length && !hasIndexChange) {
4988 + return;
4989 + }
4990 + this.#observers = newObservers;
4991 + this.#result = newResult;
4992 + if (!this.hasListeners()) {
4993 + return;
4994 + }
4995 + difference(prevObservers, newObservers).forEach((observer) => {
4996 + observer.destroy();
4997 + });
4998 + difference(newObservers, prevObservers).forEach((observer) => {
4999 + observer.subscribe((result) => {
5000 + this.#onUpdate(observer, result);
5001 + });
5002 + });
5003 + this.#notify();
5004 + });
5005 + }
5006 + getCurrentResult() {
5007 + return this.#result;
5008 + }
5009 + getQueries() {
5010 + return this.#observers.map((observer) => observer.getCurrentQuery());
5011 + }
5012 + getObservers() {
5013 + return this.#observers;
5014 + }
5015 + getOptimisticResult(queries, combine) {
5016 + const matches = this.#findMatchingObservers(queries);
5017 + const result = matches.map(
5018 + (match) => match.observer.getOptimisticResult(match.defaultedQueryOptions)
5019 + );
5020 + return [
5021 + result,
5022 + (r) => {
5023 + return this.#combineResult(r ?? result, combine);
5024 + },
5025 + () => {
5026 + return matches.map((match, index) => {
5027 + const observerResult = result[index];
5028 + return !match.defaultedQueryOptions.notifyOnChangeProps ? match.observer.trackResult(observerResult, (accessedProp) => {
5029 + matches.forEach((m) => {
5030 + m.observer.trackProp(accessedProp);
5031 + });
5032 + }) : observerResult;
5033 + });
5034 + }
5035 + ];
5036 + }
5037 + #combineResult(input, combine) {
5038 + if (combine) {
5039 + if (!this.#combinedResult || this.#result !== this.#lastResult || combine !== this.#lastCombine) {
5040 + this.#lastCombine = combine;
5041 + this.#lastResult = this.#result;
5042 + this.#combinedResult = (0, import_utils.replaceEqualDeep)(
5043 + this.#combinedResult,
5044 + combine(input)
5045 + );
5046 + }
5047 + return this.#combinedResult;
5048 + }
5049 + return input;
5050 + }
5051 + #findMatchingObservers(queries) {
5052 + const prevObservers = this.#observers;
5053 + const prevObserversMap = new Map(
5054 + prevObservers.map((observer) => [observer.options.queryHash, observer])
5055 + );
5056 + const defaultedQueryOptions = queries.map(
5057 + (options) => this.#client.defaultQueryOptions(options)
5058 + );
5059 + const matchingObservers = defaultedQueryOptions.flatMap((defaultedOptions) => {
5060 + const match = prevObserversMap.get(defaultedOptions.queryHash);
5061 + if (match != null) {
5062 + return [{ defaultedQueryOptions: defaultedOptions, observer: match }];
5063 + }
5064 + return [];
5065 + });
5066 + const matchedQueryHashes = new Set(
5067 + matchingObservers.map((match) => match.defaultedQueryOptions.queryHash)
5068 + );
5069 + const unmatchedQueries = defaultedQueryOptions.filter(
5070 + (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash)
5071 + );
5072 + const getObserver = (options) => {
5073 + const defaultedOptions = this.#client.defaultQueryOptions(options);
5074 + const currentObserver = this.#observers.find(
5075 + (o) => o.options.queryHash === defaultedOptions.queryHash
5076 + );
5077 + return currentObserver ?? new import_queryObserver.QueryObserver(this.#client, defaultedOptions);
5078 + };
5079 + const newOrReusedObservers = unmatchedQueries.map((options) => {
5080 + return {
5081 + defaultedQueryOptions: options,
5082 + observer: getObserver(options)
5083 + };
5084 + });
5085 + const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);
5086 + return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);
5087 + }
5088 + #onUpdate(observer, result) {
5089 + const index = this.#observers.indexOf(observer);
5090 + if (index !== -1) {
5091 + this.#result = replaceAt(this.#result, index, result);
5092 + this.#notify();
5093 + }
5094 + }
5095 + #notify() {
5096 + import_notifyManager.notifyManager.batch(() => {
5097 + this.listeners.forEach((listener) => {
5098 + listener(this.#result);
5099 + });
5100 + });
5101 + }
5102 +};
5103 +// Annotate the CommonJS export names for ESM import in node:
5104 +0 && (0);
5105 +//# sourceMappingURL=queriesObserver.cjs.map
5106 +
5107 +/***/ }),
5108 +
5109 +/***/ "../node_modules/@tanstack/query-core/build/modern/query.cjs":
5110 +/*!*******************************************************************!*\
5111 + !*** ../node_modules/@tanstack/query-core/build/modern/query.cjs ***!
5112 + \*******************************************************************/
5113 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5114 +
5115 +"use strict";
5116 +
5117 +var __defProp = Object.defineProperty;
5118 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5119 +var __getOwnPropNames = Object.getOwnPropertyNames;
5120 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5121 +var __export = (target, all) => {
5122 + for (var name in all)
5123 + __defProp(target, name, { get: all[name], enumerable: true });
5124 +};
5125 +var __copyProps = (to, from, except, desc) => {
5126 + if (from && typeof from === "object" || typeof from === "function") {
5127 + for (let key of __getOwnPropNames(from))
5128 + if (!__hasOwnProp.call(to, key) && key !== except)
5129 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5130 + }
5131 + return to;
5132 +};
5133 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5134 +
5135 +// src/query.ts
5136 +var query_exports = {};
5137 +__export(query_exports, {
5138 + Query: () => Query,
5139 + fetchState: () => fetchState
5140 +});
5141 +module.exports = __toCommonJS(query_exports);
5142 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5143 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5144 +var import_retryer = __webpack_require__(/*! ./retryer.cjs */ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs");
5145 +var import_removable = __webpack_require__(/*! ./removable.cjs */ "../node_modules/@tanstack/query-core/build/modern/removable.cjs");
5146 +var Query = class extends import_removable.Removable {
5147 + #initialState;
5148 + #revertState;
5149 + #cache;
5150 + #retryer;
5151 + #defaultOptions;
5152 + #abortSignalConsumed;
5153 + constructor(config) {
5154 + super();
5155 + this.#abortSignalConsumed = false;
5156 + this.#defaultOptions = config.defaultOptions;
5157 + this.setOptions(config.options);
5158 + this.observers = [];
5159 + this.#cache = config.cache;
5160 + this.queryKey = config.queryKey;
5161 + this.queryHash = config.queryHash;
5162 + this.#initialState = config.state || getDefaultState(this.options);
5163 + this.state = this.#initialState;
5164 + this.scheduleGc();
5165 + }
5166 + get meta() {
5167 + return this.options.meta;
5168 + }
5169 + get promise() {
5170 + return this.#retryer?.promise;
5171 + }
5172 + setOptions(options) {
5173 + this.options = { ...this.#defaultOptions, ...options };
5174 + this.updateGcTime(this.options.gcTime);
5175 + }
5176 + optionalRemove() {
5177 + if (!this.observers.length && this.state.fetchStatus === "idle") {
5178 + this.#cache.remove(this);
5179 + }
5180 + }
5181 + setData(newData, options) {
5182 + const data = (0, import_utils.replaceData)(this.state.data, newData, this.options);
5183 + this.#dispatch({
5184 + data,
5185 + type: "success",
5186 + dataUpdatedAt: options?.updatedAt,
5187 + manual: options?.manual
5188 + });
5189 + return data;
5190 + }
5191 + setState(state, setStateOptions) {
5192 + this.#dispatch({ type: "setState", state, setStateOptions });
5193 + }
5194 + cancel(options) {
5195 + const promise = this.#retryer?.promise;
5196 + this.#retryer?.cancel(options);
5197 + return promise ? promise.then(import_utils.noop).catch(import_utils.noop) : Promise.resolve();
5198 + }
5199 + destroy() {
5200 + super.destroy();
5201 + this.cancel({ silent: true });
5202 + }
5203 + reset() {
5204 + this.destroy();
5205 + this.setState(this.#initialState);
5206 + }
5207 + isActive() {
5208 + return this.observers.some(
5209 + (observer) => (0, import_utils.resolveEnabled)(observer.options.enabled, this) !== false
5210 + );
5211 + }
5212 + isDisabled() {
5213 + return this.getObserversCount() > 0 && !this.isActive();
5214 + }
5215 + isStale() {
5216 + if (this.state.isInvalidated) {
5217 + return true;
5218 + }
5219 + if (this.getObserversCount() > 0) {
5220 + return this.observers.some(
5221 + (observer) => observer.getCurrentResult().isStale
5222 + );
5223 + }
5224 + return this.state.data === void 0;
5225 + }
5226 + isStaleByTime(staleTime = 0) {
5227 + return this.state.isInvalidated || this.state.data === void 0 || !(0, import_utils.timeUntilStale)(this.state.dataUpdatedAt, staleTime);
5228 + }
5229 + onFocus() {
5230 + const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus());
5231 + observer?.refetch({ cancelRefetch: false });
5232 + this.#retryer?.continue();
5233 + }
5234 + onOnline() {
5235 + const observer = this.observers.find((x) => x.shouldFetchOnReconnect());
5236 + observer?.refetch({ cancelRefetch: false });
5237 + this.#retryer?.continue();
5238 + }
5239 + addObserver(observer) {
5240 + if (!this.observers.includes(observer)) {
5241 + this.observers.push(observer);
5242 + this.clearGcTimeout();
5243 + this.#cache.notify({ type: "observerAdded", query: this, observer });
5244 + }
5245 + }
5246 + removeObserver(observer) {
5247 + if (this.observers.includes(observer)) {
5248 + this.observers = this.observers.filter((x) => x !== observer);
5249 + if (!this.observers.length) {
5250 + if (this.#retryer) {
5251 + if (this.#abortSignalConsumed) {
5252 + this.#retryer.cancel({ revert: true });
5253 + } else {
5254 + this.#retryer.cancelRetry();
5255 + }
5256 + }
5257 + this.scheduleGc();
5258 + }
5259 + this.#cache.notify({ type: "observerRemoved", query: this, observer });
5260 + }
5261 + }
5262 + getObserversCount() {
5263 + return this.observers.length;
5264 + }
5265 + invalidate() {
5266 + if (!this.state.isInvalidated) {
5267 + this.#dispatch({ type: "invalidate" });
5268 + }
5269 + }
5270 + fetch(options, fetchOptions) {
5271 + if (this.state.fetchStatus !== "idle") {
5272 + if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) {
5273 + this.cancel({ silent: true });
5274 + } else if (this.#retryer) {
5275 + this.#retryer.continueRetry();
5276 + return this.#retryer.promise;
5277 + }
5278 + }
5279 + if (options) {
5280 + this.setOptions(options);
5281 + }
5282 + if (!this.options.queryFn) {
5283 + const observer = this.observers.find((x) => x.options.queryFn);
5284 + if (observer) {
5285 + this.setOptions(observer.options);
5286 + }
5287 + }
5288 + if (true) {
5289 + if (!Array.isArray(this.options.queryKey)) {
5290 + console.error(
5291 + `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']`
5292 + );
5293 + }
5294 + }
5295 + const abortController = new AbortController();
5296 + const addSignalProperty = (object) => {
5297 + Object.defineProperty(object, "signal", {
5298 + enumerable: true,
5299 + get: () => {
5300 + this.#abortSignalConsumed = true;
5301 + return abortController.signal;
5302 + }
5303 + });
5304 + };
5305 + const fetchFn = () => {
5306 + const queryFn = (0, import_utils.ensureQueryFn)(this.options, fetchOptions);
5307 + const queryFnContext = {
5308 + queryKey: this.queryKey,
5309 + meta: this.meta
5310 + };
5311 + addSignalProperty(queryFnContext);
5312 + this.#abortSignalConsumed = false;
5313 + if (this.options.persister) {
5314 + return this.options.persister(
5315 + queryFn,
5316 + queryFnContext,
5317 + this
5318 + );
5319 + }
5320 + return queryFn(queryFnContext);
5321 + };
5322 + const context = {
5323 + fetchOptions,
5324 + options: this.options,
5325 + queryKey: this.queryKey,
5326 + state: this.state,
5327 + fetchFn
5328 + };
5329 + addSignalProperty(context);
5330 + this.options.behavior?.onFetch(
5331 + context,
5332 + this
5333 + );
5334 + this.#revertState = this.state;
5335 + if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) {
5336 + this.#dispatch({ type: "fetch", meta: context.fetchOptions?.meta });
5337 + }
5338 + const onError = (error) => {
5339 + if (!((0, import_retryer.isCancelledError)(error) && error.silent)) {
5340 + this.#dispatch({
5341 + type: "error",
5342 + error
5343 + });
5344 + }
5345 + if (!(0, import_retryer.isCancelledError)(error)) {
5346 + this.#cache.config.onError?.(
5347 + error,
5348 + this
5349 + );
5350 + this.#cache.config.onSettled?.(
5351 + this.state.data,
5352 + error,
5353 + this
5354 + );
5355 + }
5356 + if (!this.isFetchingOptimistic) {
5357 + this.scheduleGc();
5358 + }
5359 + this.isFetchingOptimistic = false;
5360 + };
5361 + this.#retryer = (0, import_retryer.createRetryer)({
5362 + initialPromise: fetchOptions?.initialPromise,
5363 + fn: context.fetchFn,
5364 + abort: abortController.abort.bind(abortController),
5365 + onSuccess: (data) => {
5366 + if (data === void 0) {
5367 + if (true) {
5368 + console.error(
5369 + `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
5370 + );
5371 + }
5372 + onError(new Error(`${this.queryHash} data is undefined`));
5373 + return;
5374 + }
5375 + this.setData(data);
5376 + this.#cache.config.onSuccess?.(data, this);
5377 + this.#cache.config.onSettled?.(
5378 + data,
5379 + this.state.error,
5380 + this
5381 + );
5382 + if (!this.isFetchingOptimistic) {
5383 + this.scheduleGc();
5384 + }
5385 + this.isFetchingOptimistic = false;
5386 + },
5387 + onError,
5388 + onFail: (failureCount, error) => {
5389 + this.#dispatch({ type: "failed", failureCount, error });
5390 + },
5391 + onPause: () => {
5392 + this.#dispatch({ type: "pause" });
5393 + },
5394 + onContinue: () => {
5395 + this.#dispatch({ type: "continue" });
5396 + },
5397 + retry: context.options.retry,
5398 + retryDelay: context.options.retryDelay,
5399 + networkMode: context.options.networkMode,
5400 + canRun: () => true
5401 + });
5402 + return this.#retryer.start();
5403 + }
5404 + #dispatch(action) {
5405 + const reducer = (state) => {
5406 + switch (action.type) {
5407 + case "failed":
5408 + return {
5409 + ...state,
5410 + fetchFailureCount: action.failureCount,
5411 + fetchFailureReason: action.error
5412 + };
5413 + case "pause":
5414 + return {
5415 + ...state,
5416 + fetchStatus: "paused"
5417 + };
5418 + case "continue":
5419 + return {
5420 + ...state,
5421 + fetchStatus: "fetching"
5422 + };
5423 + case "fetch":
5424 + return {
5425 + ...state,
5426 + ...fetchState(state.data, this.options),
5427 + fetchMeta: action.meta ?? null
5428 + };
5429 + case "success":
5430 + return {
5431 + ...state,
5432 + data: action.data,
5433 + dataUpdateCount: state.dataUpdateCount + 1,
5434 + dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
5435 + error: null,
5436 + isInvalidated: false,
5437 + status: "success",
5438 + ...!action.manual && {
5439 + fetchStatus: "idle",
5440 + fetchFailureCount: 0,
5441 + fetchFailureReason: null
5442 + }
5443 + };
5444 + case "error":
5445 + const error = action.error;
5446 + if ((0, import_retryer.isCancelledError)(error) && error.revert && this.#revertState) {
5447 + return { ...this.#revertState, fetchStatus: "idle" };
5448 + }
5449 + return {
5450 + ...state,
5451 + error,
5452 + errorUpdateCount: state.errorUpdateCount + 1,
5453 + errorUpdatedAt: Date.now(),
5454 + fetchFailureCount: state.fetchFailureCount + 1,
5455 + fetchFailureReason: error,
5456 + fetchStatus: "idle",
5457 + status: "error"
5458 + };
5459 + case "invalidate":
5460 + return {
5461 + ...state,
5462 + isInvalidated: true
5463 + };
5464 + case "setState":
5465 + return {
5466 + ...state,
5467 + ...action.state
5468 + };
5469 + }
5470 + };
5471 + this.state = reducer(this.state);
5472 + import_notifyManager.notifyManager.batch(() => {
5473 + this.observers.forEach((observer) => {
5474 + observer.onQueryUpdate();
5475 + });
5476 + this.#cache.notify({ query: this, type: "updated", action });
5477 + });
5478 + }
5479 +};
5480 +function fetchState(data, options) {
5481 + return {
5482 + fetchFailureCount: 0,
5483 + fetchFailureReason: null,
5484 + fetchStatus: (0, import_retryer.canFetch)(options.networkMode) ? "fetching" : "paused",
5485 + ...data === void 0 && {
5486 + error: null,
5487 + status: "pending"
5488 + }
5489 + };
5490 +}
5491 +function getDefaultState(options) {
5492 + const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
5493 + const hasData = data !== void 0;
5494 + const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
5495 + return {
5496 + data,
5497 + dataUpdateCount: 0,
5498 + dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
5499 + error: null,
5500 + errorUpdateCount: 0,
5501 + errorUpdatedAt: 0,
5502 + fetchFailureCount: 0,
5503 + fetchFailureReason: null,
5504 + fetchMeta: null,
5505 + isInvalidated: false,
5506 + status: hasData ? "success" : "pending",
5507 + fetchStatus: "idle"
5508 + };
5509 +}
5510 +// Annotate the CommonJS export names for ESM import in node:
5511 +0 && (0);
5512 +//# sourceMappingURL=query.cjs.map
5513 +
5514 +/***/ }),
5515 +
5516 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs":
5517 +/*!************************************************************************!*\
5518 + !*** ../node_modules/@tanstack/query-core/build/modern/queryCache.cjs ***!
5519 + \************************************************************************/
5520 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5521 +
5522 +"use strict";
5523 +
5524 +var __defProp = Object.defineProperty;
5525 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5526 +var __getOwnPropNames = Object.getOwnPropertyNames;
5527 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5528 +var __export = (target, all) => {
5529 + for (var name in all)
5530 + __defProp(target, name, { get: all[name], enumerable: true });
5531 +};
5532 +var __copyProps = (to, from, except, desc) => {
5533 + if (from && typeof from === "object" || typeof from === "function") {
5534 + for (let key of __getOwnPropNames(from))
5535 + if (!__hasOwnProp.call(to, key) && key !== except)
5536 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5537 + }
5538 + return to;
5539 +};
5540 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5541 +
5542 +// src/queryCache.ts
5543 +var queryCache_exports = {};
5544 +__export(queryCache_exports, {
5545 + QueryCache: () => QueryCache
5546 +});
5547 +module.exports = __toCommonJS(queryCache_exports);
5548 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5549 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5550 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5551 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5552 +var QueryCache = class extends import_subscribable.Subscribable {
5553 + constructor(config = {}) {
5554 + super();
5555 + this.config = config;
5556 + this.#queries = /* @__PURE__ */ new Map();
5557 + }
5558 + #queries;
5559 + build(client, options, state) {
5560 + const queryKey = options.queryKey;
5561 + const queryHash = options.queryHash ?? (0, import_utils.hashQueryKeyByOptions)(queryKey, options);
5562 + let query = this.get(queryHash);
5563 + if (!query) {
5564 + query = new import_query.Query({
5565 + cache: this,
5566 + queryKey,
5567 + queryHash,
5568 + options: client.defaultQueryOptions(options),
5569 + state,
5570 + defaultOptions: client.getQueryDefaults(queryKey)
5571 + });
5572 + this.add(query);
5573 + }
5574 + return query;
5575 + }
5576 + add(query) {
5577 + if (!this.#queries.has(query.queryHash)) {
5578 + this.#queries.set(query.queryHash, query);
5579 + this.notify({
5580 + type: "added",
5581 + query
5582 + });
5583 + }
5584 + }
5585 + remove(query) {
5586 + const queryInMap = this.#queries.get(query.queryHash);
5587 + if (queryInMap) {
5588 + query.destroy();
5589 + if (queryInMap === query) {
5590 + this.#queries.delete(query.queryHash);
5591 + }
5592 + this.notify({ type: "removed", query });
5593 + }
5594 + }
5595 + clear() {
5596 + import_notifyManager.notifyManager.batch(() => {
5597 + this.getAll().forEach((query) => {
5598 + this.remove(query);
5599 + });
5600 + });
5601 + }
5602 + get(queryHash) {
5603 + return this.#queries.get(queryHash);
5604 + }
5605 + getAll() {
5606 + return [...this.#queries.values()];
5607 + }
5608 + find(filters) {
5609 + const defaultedFilters = { exact: true, ...filters };
5610 + return this.getAll().find(
5611 + (query) => (0, import_utils.matchQuery)(defaultedFilters, query)
5612 + );
5613 + }
5614 + findAll(filters = {}) {
5615 + const queries = this.getAll();
5616 + return Object.keys(filters).length > 0 ? queries.filter((query) => (0, import_utils.matchQuery)(filters, query)) : queries;
5617 + }
5618 + notify(event) {
5619 + import_notifyManager.notifyManager.batch(() => {
5620 + this.listeners.forEach((listener) => {
5621 + listener(event);
5622 + });
5623 + });
5624 + }
5625 + onFocus() {
5626 + import_notifyManager.notifyManager.batch(() => {
5627 + this.getAll().forEach((query) => {
5628 + query.onFocus();
5629 + });
5630 + });
5631 + }
5632 + onOnline() {
5633 + import_notifyManager.notifyManager.batch(() => {
5634 + this.getAll().forEach((query) => {
5635 + query.onOnline();
5636 + });
5637 + });
5638 + }
5639 +};
5640 +// Annotate the CommonJS export names for ESM import in node:
5641 +0 && (0);
5642 +//# sourceMappingURL=queryCache.cjs.map
5643 +
5644 +/***/ }),
5645 +
5646 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryClient.cjs":
5647 +/*!*************************************************************************!*\
5648 + !*** ../node_modules/@tanstack/query-core/build/modern/queryClient.cjs ***!
5649 + \*************************************************************************/
5650 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5651 +
5652 +"use strict";
5653 +
5654 +var __defProp = Object.defineProperty;
5655 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5656 +var __getOwnPropNames = Object.getOwnPropertyNames;
5657 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5658 +var __export = (target, all) => {
5659 + for (var name in all)
5660 + __defProp(target, name, { get: all[name], enumerable: true });
5661 +};
5662 +var __copyProps = (to, from, except, desc) => {
5663 + if (from && typeof from === "object" || typeof from === "function") {
5664 + for (let key of __getOwnPropNames(from))
5665 + if (!__hasOwnProp.call(to, key) && key !== except)
5666 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5667 + }
5668 + return to;
5669 +};
5670 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5671 +
5672 +// src/queryClient.ts
5673 +var queryClient_exports = {};
5674 +__export(queryClient_exports, {
5675 + QueryClient: () => QueryClient
5676 +});
5677 +module.exports = __toCommonJS(queryClient_exports);
5678 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5679 +var import_queryCache = __webpack_require__(/*! ./queryCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/queryCache.cjs");
5680 +var import_mutationCache = __webpack_require__(/*! ./mutationCache.cjs */ "../node_modules/@tanstack/query-core/build/modern/mutationCache.cjs");
5681 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5682 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
5683 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5684 +var import_infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.cjs */ "../node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs");
5685 +var QueryClient = class {
5686 + #queryCache;
5687 + #mutationCache;
5688 + #defaultOptions;
5689 + #queryDefaults;
5690 + #mutationDefaults;
5691 + #mountCount;
5692 + #unsubscribeFocus;
5693 + #unsubscribeOnline;
5694 + constructor(config = {}) {
5695 + this.#queryCache = config.queryCache || new import_queryCache.QueryCache();
5696 + this.#mutationCache = config.mutationCache || new import_mutationCache.MutationCache();
5697 + this.#defaultOptions = config.defaultOptions || {};
5698 + this.#queryDefaults = /* @__PURE__ */ new Map();
5699 + this.#mutationDefaults = /* @__PURE__ */ new Map();
5700 + this.#mountCount = 0;
5701 + }
5702 + mount() {
5703 + this.#mountCount++;
5704 + if (this.#mountCount !== 1)
5705 + return;
5706 + this.#unsubscribeFocus = import_focusManager.focusManager.subscribe(async (focused) => {
5707 + if (focused) {
5708 + await this.resumePausedMutations();
5709 + this.#queryCache.onFocus();
5710 + }
5711 + });
5712 + this.#unsubscribeOnline = import_onlineManager.onlineManager.subscribe(async (online) => {
5713 + if (online) {
5714 + await this.resumePausedMutations();
5715 + this.#queryCache.onOnline();
5716 + }
5717 + });
5718 + }
5719 + unmount() {
5720 + this.#mountCount--;
5721 + if (this.#mountCount !== 0)
5722 + return;
5723 + this.#unsubscribeFocus?.();
5724 + this.#unsubscribeFocus = void 0;
5725 + this.#unsubscribeOnline?.();
5726 + this.#unsubscribeOnline = void 0;
5727 + }
5728 + isFetching(filters) {
5729 + return this.#queryCache.findAll({ ...filters, fetchStatus: "fetching" }).length;
5730 + }
5731 + isMutating(filters) {
5732 + return this.#mutationCache.findAll({ ...filters, status: "pending" }).length;
5733 + }
5734 + getQueryData(queryKey) {
5735 + const options = this.defaultQueryOptions({ queryKey });
5736 + return this.#queryCache.get(options.queryHash)?.state.data;
5737 + }
5738 + ensureQueryData(options) {
5739 + const cachedData = this.getQueryData(options.queryKey);
5740 + if (cachedData === void 0)
5741 + return this.fetchQuery(options);
5742 + else {
5743 + const defaultedOptions = this.defaultQueryOptions(options);
5744 + const query = this.#queryCache.build(this, defaultedOptions);
5745 + if (options.revalidateIfStale && query.isStaleByTime((0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query))) {
5746 + void this.prefetchQuery(defaultedOptions);
5747 + }
5748 + return Promise.resolve(cachedData);
5749 + }
5750 + }
5751 + getQueriesData(filters) {
5752 + return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {
5753 + const data = state.data;
5754 + return [queryKey, data];
5755 + });
5756 + }
5757 + setQueryData(queryKey, updater, options) {
5758 + const defaultedOptions = this.defaultQueryOptions({ queryKey });
5759 + const query = this.#queryCache.get(
5760 + defaultedOptions.queryHash
5761 + );
5762 + const prevData = query?.state.data;
5763 + const data = (0, import_utils.functionalUpdate)(updater, prevData);
5764 + if (data === void 0) {
5765 + return void 0;
5766 + }
5767 + return this.#queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true });
5768 + }
5769 + setQueriesData(filters, updater, options) {
5770 + return import_notifyManager.notifyManager.batch(
5771 + () => this.#queryCache.findAll(filters).map(({ queryKey }) => [
5772 + queryKey,
5773 + this.setQueryData(queryKey, updater, options)
5774 + ])
5775 + );
5776 + }
5777 + getQueryState(queryKey) {
5778 + const options = this.defaultQueryOptions({ queryKey });
5779 + return this.#queryCache.get(options.queryHash)?.state;
5780 + }
5781 + removeQueries(filters) {
5782 + const queryCache = this.#queryCache;
5783 + import_notifyManager.notifyManager.batch(() => {
5784 + queryCache.findAll(filters).forEach((query) => {
5785 + queryCache.remove(query);
5786 + });
5787 + });
5788 + }
5789 + resetQueries(filters, options) {
5790 + const queryCache = this.#queryCache;
5791 + const refetchFilters = {
5792 + type: "active",
5793 + ...filters
5794 + };
5795 + return import_notifyManager.notifyManager.batch(() => {
5796 + queryCache.findAll(filters).forEach((query) => {
5797 + query.reset();
5798 + });
5799 + return this.refetchQueries(refetchFilters, options);
5800 + });
5801 + }
5802 + cancelQueries(filters = {}, cancelOptions = {}) {
5803 + const defaultedCancelOptions = { revert: true, ...cancelOptions };
5804 + const promises = import_notifyManager.notifyManager.batch(
5805 + () => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
5806 + );
5807 + return Promise.all(promises).then(import_utils.noop).catch(import_utils.noop);
5808 + }
5809 + invalidateQueries(filters = {}, options = {}) {
5810 + return import_notifyManager.notifyManager.batch(() => {
5811 + this.#queryCache.findAll(filters).forEach((query) => {
5812 + query.invalidate();
5813 + });
5814 + if (filters.refetchType === "none") {
5815 + return Promise.resolve();
5816 + }
5817 + const refetchFilters = {
5818 + ...filters,
5819 + type: filters.refetchType ?? filters.type ?? "active"
5820 + };
5821 + return this.refetchQueries(refetchFilters, options);
5822 + });
5823 + }
5824 + refetchQueries(filters = {}, options) {
5825 + const fetchOptions = {
5826 + ...options,
5827 + cancelRefetch: options?.cancelRefetch ?? true
5828 + };
5829 + const promises = import_notifyManager.notifyManager.batch(
5830 + () => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
5831 + let promise = query.fetch(void 0, fetchOptions);
5832 + if (!fetchOptions.throwOnError) {
5833 + promise = promise.catch(import_utils.noop);
5834 + }
5835 + return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
5836 + })
5837 + );
5838 + return Promise.all(promises).then(import_utils.noop);
5839 + }
5840 + fetchQuery(options) {
5841 + const defaultedOptions = this.defaultQueryOptions(options);
5842 + if (defaultedOptions.retry === void 0) {
5843 + defaultedOptions.retry = false;
5844 + }
5845 + const query = this.#queryCache.build(this, defaultedOptions);
5846 + return query.isStaleByTime(
5847 + (0, import_utils.resolveStaleTime)(defaultedOptions.staleTime, query)
5848 + ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
5849 + }
5850 + prefetchQuery(options) {
5851 + return this.fetchQuery(options).then(import_utils.noop).catch(import_utils.noop);
5852 + }
5853 + fetchInfiniteQuery(options) {
5854 + options.behavior = (0, import_infiniteQueryBehavior.infiniteQueryBehavior)(options.pages);
5855 + return this.fetchQuery(options);
5856 + }
5857 + prefetchInfiniteQuery(options) {
5858 + return this.fetchInfiniteQuery(options).then(import_utils.noop).catch(import_utils.noop);
5859 + }
5860 + resumePausedMutations() {
5861 + if (import_onlineManager.onlineManager.isOnline()) {
5862 + return this.#mutationCache.resumePausedMutations();
5863 + }
5864 + return Promise.resolve();
5865 + }
5866 + getQueryCache() {
5867 + return this.#queryCache;
5868 + }
5869 + getMutationCache() {
5870 + return this.#mutationCache;
5871 + }
5872 + getDefaultOptions() {
5873 + return this.#defaultOptions;
5874 + }
5875 + setDefaultOptions(options) {
5876 + this.#defaultOptions = options;
5877 + }
5878 + setQueryDefaults(queryKey, options) {
5879 + this.#queryDefaults.set((0, import_utils.hashKey)(queryKey), {
5880 + queryKey,
5881 + defaultOptions: options
5882 + });
5883 + }
5884 + getQueryDefaults(queryKey) {
5885 + const defaults = [...this.#queryDefaults.values()];
5886 + let result = {};
5887 + defaults.forEach((queryDefault) => {
5888 + if ((0, import_utils.partialMatchKey)(queryKey, queryDefault.queryKey)) {
5889 + result = { ...result, ...queryDefault.defaultOptions };
5890 + }
5891 + });
5892 + return result;
5893 + }
5894 + setMutationDefaults(mutationKey, options) {
5895 + this.#mutationDefaults.set((0, import_utils.hashKey)(mutationKey), {
5896 + mutationKey,
5897 + defaultOptions: options
5898 + });
5899 + }
5900 + getMutationDefaults(mutationKey) {
5901 + const defaults = [...this.#mutationDefaults.values()];
5902 + let result = {};
5903 + defaults.forEach((queryDefault) => {
5904 + if ((0, import_utils.partialMatchKey)(mutationKey, queryDefault.mutationKey)) {
5905 + result = { ...result, ...queryDefault.defaultOptions };
5906 + }
5907 + });
5908 + return result;
5909 + }
5910 + defaultQueryOptions(options) {
5911 + if (options._defaulted) {
5912 + return options;
5913 + }
5914 + const defaultedOptions = {
5915 + ...this.#defaultOptions.queries,
5916 + ...this.getQueryDefaults(options.queryKey),
5917 + ...options,
5918 + _defaulted: true
5919 + };
5920 + if (!defaultedOptions.queryHash) {
5921 + defaultedOptions.queryHash = (0, import_utils.hashQueryKeyByOptions)(
5922 + defaultedOptions.queryKey,
5923 + defaultedOptions
5924 + );
5925 + }
5926 + if (defaultedOptions.refetchOnReconnect === void 0) {
5927 + defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
5928 + }
5929 + if (defaultedOptions.throwOnError === void 0) {
5930 + defaultedOptions.throwOnError = !!defaultedOptions.suspense;
5931 + }
5932 + if (!defaultedOptions.networkMode && defaultedOptions.persister) {
5933 + defaultedOptions.networkMode = "offlineFirst";
5934 + }
5935 + if (defaultedOptions.enabled !== true && defaultedOptions.queryFn === import_utils.skipToken) {
5936 + defaultedOptions.enabled = false;
5937 + }
5938 + return defaultedOptions;
5939 + }
5940 + defaultMutationOptions(options) {
5941 + if (options?._defaulted) {
5942 + return options;
5943 + }
5944 + return {
5945 + ...this.#defaultOptions.mutations,
5946 + ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
5947 + ...options,
5948 + _defaulted: true
5949 + };
5950 + }
5951 + clear() {
5952 + this.#queryCache.clear();
5953 + this.#mutationCache.clear();
5954 + }
5955 +};
5956 +// Annotate the CommonJS export names for ESM import in node:
5957 +0 && (0);
5958 +//# sourceMappingURL=queryClient.cjs.map
5959 +
5960 +/***/ }),
5961 +
5962 +/***/ "../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs":
5963 +/*!***************************************************************************!*\
5964 + !*** ../node_modules/@tanstack/query-core/build/modern/queryObserver.cjs ***!
5965 + \***************************************************************************/
5966 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5967 +
5968 +"use strict";
5969 +
5970 +var __defProp = Object.defineProperty;
5971 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5972 +var __getOwnPropNames = Object.getOwnPropertyNames;
5973 +var __hasOwnProp = Object.prototype.hasOwnProperty;
5974 +var __export = (target, all) => {
5975 + for (var name in all)
5976 + __defProp(target, name, { get: all[name], enumerable: true });
5977 +};
5978 +var __copyProps = (to, from, except, desc) => {
5979 + if (from && typeof from === "object" || typeof from === "function") {
5980 + for (let key of __getOwnPropNames(from))
5981 + if (!__hasOwnProp.call(to, key) && key !== except)
5982 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5983 + }
5984 + return to;
5985 +};
5986 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
5987 +
5988 +// src/queryObserver.ts
5989 +var queryObserver_exports = {};
5990 +__export(queryObserver_exports, {
5991 + QueryObserver: () => QueryObserver
5992 +});
5993 +module.exports = __toCommonJS(queryObserver_exports);
5994 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
5995 +var import_notifyManager = __webpack_require__(/*! ./notifyManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/notifyManager.cjs");
5996 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
5997 +var import_subscribable = __webpack_require__(/*! ./subscribable.cjs */ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs");
5998 +var import_query = __webpack_require__(/*! ./query.cjs */ "../node_modules/@tanstack/query-core/build/modern/query.cjs");
5999 +var QueryObserver = class extends import_subscribable.Subscribable {
6000 + constructor(client, options) {
6001 + super();
6002 + this.options = options;
6003 + this.#client = client;
6004 + this.#selectError = null;
6005 + this.bindMethods();
6006 + this.setOptions(options);
6007 + }
6008 + #client;
6009 + #currentQuery = void 0;
6010 + #currentQueryInitialState = void 0;
6011 + #currentResult = void 0;
6012 + #currentResultState;
6013 + #currentResultOptions;
6014 + #selectError;
6015 + #selectFn;
6016 + #selectResult;
6017 + // This property keeps track of the last query with defined data.
6018 + // It will be used to pass the previous data and query to the placeholder function between renders.
6019 + #lastQueryWithDefinedData;
6020 + #staleTimeoutId;
6021 + #refetchIntervalId;
6022 + #currentRefetchInterval;
6023 + #trackedProps = /* @__PURE__ */ new Set();
6024 + bindMethods() {
6025 + this.refetch = this.refetch.bind(this);
6026 + }
6027 + onSubscribe() {
6028 + if (this.listeners.size === 1) {
6029 + this.#currentQuery.addObserver(this);
6030 + if (shouldFetchOnMount(this.#currentQuery, this.options)) {
6031 + this.#executeFetch();
6032 + } else {
6033 + this.updateResult();
6034 + }
6035 + this.#updateTimers();
6036 + }
6037 + }
6038 + onUnsubscribe() {
6039 + if (!this.hasListeners()) {
6040 + this.destroy();
6041 + }
6042 + }
6043 + shouldFetchOnReconnect() {
6044 + return shouldFetchOn(
6045 + this.#currentQuery,
6046 + this.options,
6047 + this.options.refetchOnReconnect
6048 + );
6049 + }
6050 + shouldFetchOnWindowFocus() {
6051 + return shouldFetchOn(
6052 + this.#currentQuery,
6053 + this.options,
6054 + this.options.refetchOnWindowFocus
6055 + );
6056 + }
6057 + destroy() {
6058 + this.listeners = /* @__PURE__ */ new Set();
6059 + this.#clearStaleTimeout();
6060 + this.#clearRefetchInterval();
6061 + this.#currentQuery.removeObserver(this);
6062 + }
6063 + setOptions(options, notifyOptions) {
6064 + const prevOptions = this.options;
6065 + const prevQuery = this.#currentQuery;
6066 + this.options = this.#client.defaultQueryOptions(options);
6067 + 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") {
6068 + throw new Error(
6069 + "Expected enabled to be a boolean or a callback that returns a boolean"
6070 + );
6071 + }
6072 + this.#updateQuery();
6073 + this.#currentQuery.setOptions(this.options);
6074 + if (prevOptions._defaulted && !(0, import_utils.shallowEqualObjects)(this.options, prevOptions)) {
6075 + this.#client.getQueryCache().notify({
6076 + type: "observerOptionsUpdated",
6077 + query: this.#currentQuery,
6078 + observer: this
6079 + });
6080 + }
6081 + const mounted = this.hasListeners();
6082 + if (mounted && shouldFetchOptionally(
6083 + this.#currentQuery,
6084 + prevQuery,
6085 + this.options,
6086 + prevOptions
6087 + )) {
6088 + this.#executeFetch();
6089 + }
6090 + this.updateResult(notifyOptions);
6091 + 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))) {
6092 + this.#updateStaleTimeout();
6093 + }
6094 + const nextRefetchInterval = this.#computeRefetchInterval();
6095 + 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)) {
6096 + this.#updateRefetchInterval(nextRefetchInterval);
6097 + }
6098 + }
6099 + getOptimisticResult(options) {
6100 + const query = this.#client.getQueryCache().build(this.#client, options);
6101 + const result = this.createResult(query, options);
6102 + if (shouldAssignObserverCurrentProperties(this, result)) {
6103 + this.#currentResult = result;
6104 + this.#currentResultOptions = this.options;
6105 + this.#currentResultState = this.#currentQuery.state;
6106 + }
6107 + return result;
6108 + }
6109 + getCurrentResult() {
6110 + return this.#currentResult;
6111 + }
6112 + trackResult(result, onPropTracked) {
6113 + const trackedResult = {};
6114 + Object.keys(result).forEach((key) => {
6115 + Object.defineProperty(trackedResult, key, {
6116 + configurable: false,
6117 + enumerable: true,
6118 + get: () => {
6119 + this.trackProp(key);
6120 + onPropTracked?.(key);
6121 + return result[key];
6122 + }
6123 + });
6124 + });
6125 + return trackedResult;
6126 + }
6127 + trackProp(key) {
6128 + this.#trackedProps.add(key);
6129 + }
6130 + getCurrentQuery() {
6131 + return this.#currentQuery;
6132 + }
6133 + refetch({ ...options } = {}) {
6134 + return this.fetch({
6135 + ...options
6136 + });
6137 + }
6138 + fetchOptimistic(options) {
6139 + const defaultedOptions = this.#client.defaultQueryOptions(options);
6140 + const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
6141 + query.isFetchingOptimistic = true;
6142 + return query.fetch().then(() => this.createResult(query, defaultedOptions));
6143 + }
6144 + fetch(fetchOptions) {
6145 + return this.#executeFetch({
6146 + ...fetchOptions,
6147 + cancelRefetch: fetchOptions.cancelRefetch ?? true
6148 + }).then(() => {
6149 + this.updateResult();
6150 + return this.#currentResult;
6151 + });
6152 + }
6153 + #executeFetch(fetchOptions) {
6154 + this.#updateQuery();
6155 + let promise = this.#currentQuery.fetch(
6156 + this.options,
6157 + fetchOptions
6158 + );
6159 + if (!fetchOptions?.throwOnError) {
6160 + promise = promise.catch(import_utils.noop);
6161 + }
6162 + return promise;
6163 + }
6164 + #updateStaleTimeout() {
6165 + this.#clearStaleTimeout();
6166 + const staleTime = (0, import_utils.resolveStaleTime)(
6167 + this.options.staleTime,
6168 + this.#currentQuery
6169 + );
6170 + if (import_utils.isServer || this.#currentResult.isStale || !(0, import_utils.isValidTimeout)(staleTime)) {
6171 + return;
6172 + }
6173 + const time = (0, import_utils.timeUntilStale)(this.#currentResult.dataUpdatedAt, staleTime);
6174 + const timeout = time + 1;
6175 + this.#staleTimeoutId = setTimeout(() => {
6176 + if (!this.#currentResult.isStale) {
6177 + this.updateResult();
6178 + }
6179 + }, timeout);
6180 + }
6181 + #computeRefetchInterval() {
6182 + return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
6183 + }
6184 + #updateRefetchInterval(nextInterval) {
6185 + this.#clearRefetchInterval();
6186 + this.#currentRefetchInterval = nextInterval;
6187 + if (import_utils.isServer || (0, import_utils.resolveEnabled)(this.options.enabled, this.#currentQuery) === false || !(0, import_utils.isValidTimeout)(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) {
6188 + return;
6189 + }
6190 + this.#refetchIntervalId = setInterval(() => {
6191 + if (this.options.refetchIntervalInBackground || import_focusManager.focusManager.isFocused()) {
6192 + this.#executeFetch();
6193 + }
6194 + }, this.#currentRefetchInterval);
6195 + }
6196 + #updateTimers() {
6197 + this.#updateStaleTimeout();
6198 + this.#updateRefetchInterval(this.#computeRefetchInterval());
6199 + }
6200 + #clearStaleTimeout() {
6201 + if (this.#staleTimeoutId) {
6202 + clearTimeout(this.#staleTimeoutId);
6203 + this.#staleTimeoutId = void 0;
6204 + }
6205 + }
6206 + #clearRefetchInterval() {
6207 + if (this.#refetchIntervalId) {
6208 + clearInterval(this.#refetchIntervalId);
6209 + this.#refetchIntervalId = void 0;
6210 + }
6211 + }
6212 + createResult(query, options) {
6213 + const prevQuery = this.#currentQuery;
6214 + const prevOptions = this.options;
6215 + const prevResult = this.#currentResult;
6216 + const prevResultState = this.#currentResultState;
6217 + const prevResultOptions = this.#currentResultOptions;
6218 + const queryChange = query !== prevQuery;
6219 + const queryInitialState = queryChange ? query.state : this.#currentQueryInitialState;
6220 + const { state } = query;
6221 + let newState = { ...state };
6222 + let isPlaceholderData = false;
6223 + let data;
6224 + if (options._optimisticResults) {
6225 + const mounted = this.hasListeners();
6226 + const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
6227 + const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
6228 + if (fetchOnMount || fetchOptionally) {
6229 + newState = {
6230 + ...newState,
6231 + ...(0, import_query.fetchState)(state.data, query.options)
6232 + };
6233 + }
6234 + if (options._optimisticResults === "isRestoring") {
6235 + newState.fetchStatus = "idle";
6236 + }
6237 + }
6238 + let { error, errorUpdatedAt, status } = newState;
6239 + if (options.select && newState.data !== void 0) {
6240 + if (prevResult && newState.data === prevResultState?.data && options.select === this.#selectFn) {
6241 + data = this.#selectResult;
6242 + } else {
6243 + try {
6244 + this.#selectFn = options.select;
6245 + data = options.select(newState.data);
6246 + data = (0, import_utils.replaceData)(prevResult?.data, data, options);
6247 + this.#selectResult = data;
6248 + this.#selectError = null;
6249 + } catch (selectError) {
6250 + this.#selectError = selectError;
6251 + }
6252 + }
6253 + } else {
6254 + data = newState.data;
6255 + }
6256 + if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
6257 + let placeholderData;
6258 + if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
6259 + placeholderData = prevResult.data;
6260 + } else {
6261 + placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
6262 + this.#lastQueryWithDefinedData?.state.data,
6263 + this.#lastQueryWithDefinedData
6264 + ) : options.placeholderData;
6265 + if (options.select && placeholderData !== void 0) {
6266 + try {
6267 + placeholderData = options.select(placeholderData);
6268 + this.#selectError = null;
6269 + } catch (selectError) {
6270 + this.#selectError = selectError;
6271 + }
6272 + }
6273 + }
6274 + if (placeholderData !== void 0) {
6275 + status = "success";
6276 + data = (0, import_utils.replaceData)(
6277 + prevResult?.data,
6278 + placeholderData,
6279 + options
6280 + );
6281 + isPlaceholderData = true;
6282 + }
6283 + }
6284 + if (this.#selectError) {
6285 + error = this.#selectError;
6286 + data = this.#selectResult;
6287 + errorUpdatedAt = Date.now();
6288 + status = "error";
6289 + }
6290 + const isFetching = newState.fetchStatus === "fetching";
6291 + const isPending = status === "pending";
6292 + const isError = status === "error";
6293 + const isLoading = isPending && isFetching;
6294 + const hasData = data !== void 0;
6295 + const result = {
6296 + status,
6297 + fetchStatus: newState.fetchStatus,
6298 + isPending,
6299 + isSuccess: status === "success",
6300 + isError,
6301 + isInitialLoading: isLoading,
6302 + isLoading,
6303 + data,
6304 + dataUpdatedAt: newState.dataUpdatedAt,
6305 + error,
6306 + errorUpdatedAt,
6307 + failureCount: newState.fetchFailureCount,
6308 + failureReason: newState.fetchFailureReason,
6309 + errorUpdateCount: newState.errorUpdateCount,
6310 + isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
6311 + isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
6312 + isFetching,
6313 + isRefetching: isFetching && !isPending,
6314 + isLoadingError: isError && !hasData,
6315 + isPaused: newState.fetchStatus === "paused",
6316 + isPlaceholderData,
6317 + isRefetchError: isError && hasData,
6318 + isStale: isStale(query, options),
6319 + refetch: this.refetch
6320 + };
6321 + return result;
6322 + }
6323 + updateResult(notifyOptions) {
6324 + const prevResult = this.#currentResult;
6325 + const nextResult = this.createResult(this.#currentQuery, this.options);
6326 + this.#currentResultState = this.#currentQuery.state;
6327 + this.#currentResultOptions = this.options;
6328 + if (this.#currentResultState.data !== void 0) {
6329 + this.#lastQueryWithDefinedData = this.#currentQuery;
6330 + }
6331 + if ((0, import_utils.shallowEqualObjects)(nextResult, prevResult)) {
6332 + return;
6333 + }
6334 + this.#currentResult = nextResult;
6335 + const defaultNotifyOptions = {};
6336 + const shouldNotifyListeners = () => {
6337 + if (!prevResult) {
6338 + return true;
6339 + }
6340 + const { notifyOnChangeProps } = this.options;
6341 + const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
6342 + if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) {
6343 + return true;
6344 + }
6345 + const includedProps = new Set(
6346 + notifyOnChangePropsValue ?? this.#trackedProps
6347 + );
6348 + if (this.options.throwOnError) {
6349 + includedProps.add("error");
6350 + }
6351 + return Object.keys(this.#currentResult).some((key) => {
6352 + const typedKey = key;
6353 + const changed = this.#currentResult[typedKey] !== prevResult[typedKey];
6354 + return changed && includedProps.has(typedKey);
6355 + });
6356 + };
6357 + if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {
6358 + defaultNotifyOptions.listeners = true;
6359 + }
6360 + this.#notify({ ...defaultNotifyOptions, ...notifyOptions });
6361 + }
6362 + #updateQuery() {
6363 + const query = this.#client.getQueryCache().build(this.#client, this.options);
6364 + if (query === this.#currentQuery) {
6365 + return;
6366 + }
6367 + const prevQuery = this.#currentQuery;
6368 + this.#currentQuery = query;
6369 + this.#currentQueryInitialState = query.state;
6370 + if (this.hasListeners()) {
6371 + prevQuery?.removeObserver(this);
6372 + query.addObserver(this);
6373 + }
6374 + }
6375 + onQueryUpdate() {
6376 + this.updateResult();
6377 + if (this.hasListeners()) {
6378 + this.#updateTimers();
6379 + }
6380 + }
6381 + #notify(notifyOptions) {
6382 + import_notifyManager.notifyManager.batch(() => {
6383 + if (notifyOptions.listeners) {
6384 + this.listeners.forEach((listener) => {
6385 + listener(this.#currentResult);
6386 + });
6387 + }
6388 + this.#client.getQueryCache().notify({
6389 + query: this.#currentQuery,
6390 + type: "observerResultsUpdated"
6391 + });
6392 + });
6393 + }
6394 +};
6395 +function shouldLoadOnMount(query, options) {
6396 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
6397 +}
6398 +function shouldFetchOnMount(query, options) {
6399 + return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
6400 +}
6401 +function shouldFetchOn(query, options, field) {
6402 + if ((0, import_utils.resolveEnabled)(options.enabled, query) !== false) {
6403 + const value = typeof field === "function" ? field(query) : field;
6404 + return value === "always" || value !== false && isStale(query, options);
6405 + }
6406 + return false;
6407 +}
6408 +function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
6409 + return (query !== prevQuery || (0, import_utils.resolveEnabled)(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
6410 +}
6411 +function isStale(query, options) {
6412 + return (0, import_utils.resolveEnabled)(options.enabled, query) !== false && query.isStaleByTime((0, import_utils.resolveStaleTime)(options.staleTime, query));
6413 +}
6414 +function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
6415 + if (!(0, import_utils.shallowEqualObjects)(observer.getCurrentResult(), optimisticResult)) {
6416 + return true;
6417 + }
6418 + return false;
6419 +}
6420 +// Annotate the CommonJS export names for ESM import in node:
6421 +0 && (0);
6422 +//# sourceMappingURL=queryObserver.cjs.map
6423 +
6424 +/***/ }),
6425 +
6426 +/***/ "../node_modules/@tanstack/query-core/build/modern/removable.cjs":
6427 +/*!***********************************************************************!*\
6428 + !*** ../node_modules/@tanstack/query-core/build/modern/removable.cjs ***!
6429 + \***********************************************************************/
6430 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6431 +
6432 +"use strict";
6433 +
6434 +var __defProp = Object.defineProperty;
6435 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6436 +var __getOwnPropNames = Object.getOwnPropertyNames;
6437 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6438 +var __export = (target, all) => {
6439 + for (var name in all)
6440 + __defProp(target, name, { get: all[name], enumerable: true });
6441 +};
6442 +var __copyProps = (to, from, except, desc) => {
6443 + if (from && typeof from === "object" || typeof from === "function") {
6444 + for (let key of __getOwnPropNames(from))
6445 + if (!__hasOwnProp.call(to, key) && key !== except)
6446 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6447 + }
6448 + return to;
6449 +};
6450 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6451 +
6452 +// src/removable.ts
6453 +var removable_exports = {};
6454 +__export(removable_exports, {
6455 + Removable: () => Removable
6456 +});
6457 +module.exports = __toCommonJS(removable_exports);
6458 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6459 +var Removable = class {
6460 + #gcTimeout;
6461 + destroy() {
6462 + this.clearGcTimeout();
6463 + }
6464 + scheduleGc() {
6465 + this.clearGcTimeout();
6466 + if ((0, import_utils.isValidTimeout)(this.gcTime)) {
6467 + this.#gcTimeout = setTimeout(() => {
6468 + this.optionalRemove();
6469 + }, this.gcTime);
6470 + }
6471 + }
6472 + updateGcTime(newGcTime) {
6473 + this.gcTime = Math.max(
6474 + this.gcTime || 0,
6475 + newGcTime ?? (import_utils.isServer ? Infinity : 5 * 60 * 1e3)
6476 + );
6477 + }
6478 + clearGcTimeout() {
6479 + if (this.#gcTimeout) {
6480 + clearTimeout(this.#gcTimeout);
6481 + this.#gcTimeout = void 0;
6482 + }
6483 + }
6484 +};
6485 +// Annotate the CommonJS export names for ESM import in node:
6486 +0 && (0);
6487 +//# sourceMappingURL=removable.cjs.map
6488 +
6489 +/***/ }),
6490 +
6491 +/***/ "../node_modules/@tanstack/query-core/build/modern/retryer.cjs":
6492 +/*!*********************************************************************!*\
6493 + !*** ../node_modules/@tanstack/query-core/build/modern/retryer.cjs ***!
6494 + \*********************************************************************/
6495 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6496 +
6497 +"use strict";
6498 +
6499 +var __defProp = Object.defineProperty;
6500 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6501 +var __getOwnPropNames = Object.getOwnPropertyNames;
6502 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6503 +var __export = (target, all) => {
6504 + for (var name in all)
6505 + __defProp(target, name, { get: all[name], enumerable: true });
6506 +};
6507 +var __copyProps = (to, from, except, desc) => {
6508 + if (from && typeof from === "object" || typeof from === "function") {
6509 + for (let key of __getOwnPropNames(from))
6510 + if (!__hasOwnProp.call(to, key) && key !== except)
6511 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6512 + }
6513 + return to;
6514 +};
6515 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6516 +
6517 +// src/retryer.ts
6518 +var retryer_exports = {};
6519 +__export(retryer_exports, {
6520 + CancelledError: () => CancelledError,
6521 + canFetch: () => canFetch,
6522 + createRetryer: () => createRetryer,
6523 + isCancelledError: () => isCancelledError
6524 +});
6525 +module.exports = __toCommonJS(retryer_exports);
6526 +var import_focusManager = __webpack_require__(/*! ./focusManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/focusManager.cjs");
6527 +var import_onlineManager = __webpack_require__(/*! ./onlineManager.cjs */ "../node_modules/@tanstack/query-core/build/modern/onlineManager.cjs");
6528 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/query-core/build/modern/utils.cjs");
6529 +function defaultRetryDelay(failureCount) {
6530 + return Math.min(1e3 * 2 ** failureCount, 3e4);
6531 +}
6532 +function canFetch(networkMode) {
6533 + return (networkMode ?? "online") === "online" ? import_onlineManager.onlineManager.isOnline() : true;
6534 +}
6535 +var CancelledError = class {
6536 + constructor(options) {
6537 + this.revert = options?.revert;
6538 + this.silent = options?.silent;
6539 + }
6540 +};
6541 +function isCancelledError(value) {
6542 + return value instanceof CancelledError;
6543 +}
6544 +function createRetryer(config) {
6545 + let isRetryCancelled = false;
6546 + let failureCount = 0;
6547 + let isResolved = false;
6548 + let continueFn;
6549 + let promiseResolve;
6550 + let promiseReject;
6551 + const promise = new Promise((outerResolve, outerReject) => {
6552 + promiseResolve = outerResolve;
6553 + promiseReject = outerReject;
6554 + });
6555 + const cancel = (cancelOptions) => {
6556 + if (!isResolved) {
6557 + reject(new CancelledError(cancelOptions));
6558 + config.abort?.();
6559 + }
6560 + };
6561 + const cancelRetry = () => {
6562 + isRetryCancelled = true;
6563 + };
6564 + const continueRetry = () => {
6565 + isRetryCancelled = false;
6566 + };
6567 + const canContinue = () => import_focusManager.focusManager.isFocused() && (config.networkMode === "always" || import_onlineManager.onlineManager.isOnline()) && config.canRun();
6568 + const canStart = () => canFetch(config.networkMode) && config.canRun();
6569 + const resolve = (value) => {
6570 + if (!isResolved) {
6571 + isResolved = true;
6572 + config.onSuccess?.(value);
6573 + continueFn?.();
6574 + promiseResolve(value);
6575 + }
6576 + };
6577 + const reject = (value) => {
6578 + if (!isResolved) {
6579 + isResolved = true;
6580 + config.onError?.(value);
6581 + continueFn?.();
6582 + promiseReject(value);
6583 + }
6584 + };
6585 + const pause = () => {
6586 + return new Promise((continueResolve) => {
6587 + continueFn = (value) => {
6588 + if (isResolved || canContinue()) {
6589 + continueResolve(value);
6590 + }
6591 + };
6592 + config.onPause?.();
6593 + }).then(() => {
6594 + continueFn = void 0;
6595 + if (!isResolved) {
6596 + config.onContinue?.();
6597 + }
6598 + });
6599 + };
6600 + const run = () => {
6601 + if (isResolved) {
6602 + return;
6603 + }
6604 + let promiseOrValue;
6605 + const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
6606 + try {
6607 + promiseOrValue = initialPromise ?? config.fn();
6608 + } catch (error) {
6609 + promiseOrValue = Promise.reject(error);
6610 + }
6611 + Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
6612 + if (isResolved) {
6613 + return;
6614 + }
6615 + const retry = config.retry ?? (import_utils.isServer ? 0 : 3);
6616 + const retryDelay = config.retryDelay ?? defaultRetryDelay;
6617 + const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
6618 + const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
6619 + if (isRetryCancelled || !shouldRetry) {
6620 + reject(error);
6621 + return;
6622 + }
6623 + failureCount++;
6624 + config.onFail?.(failureCount, error);
6625 + (0, import_utils.sleep)(delay).then(() => {
6626 + return canContinue() ? void 0 : pause();
6627 + }).then(() => {
6628 + if (isRetryCancelled) {
6629 + reject(error);
6630 + } else {
6631 + run();
6632 + }
6633 + });
6634 + });
6635 + };
6636 + return {
6637 + promise,
6638 + cancel,
6639 + continue: () => {
6640 + continueFn?.();
6641 + return promise;
6642 + },
6643 + cancelRetry,
6644 + continueRetry,
6645 + canStart,
6646 + start: () => {
6647 + if (canStart()) {
6648 + run();
6649 + } else {
6650 + pause().then(run);
6651 + }
6652 + return promise;
6653 + }
6654 + };
6655 +}
6656 +// Annotate the CommonJS export names for ESM import in node:
6657 +0 && (0);
6658 +//# sourceMappingURL=retryer.cjs.map
6659 +
6660 +/***/ }),
6661 +
6662 +/***/ "../node_modules/@tanstack/query-core/build/modern/subscribable.cjs":
6663 +/*!**************************************************************************!*\
6664 + !*** ../node_modules/@tanstack/query-core/build/modern/subscribable.cjs ***!
6665 + \**************************************************************************/
6666 +/***/ ((module) => {
6667 +
6668 +"use strict";
6669 +
6670 +var __defProp = Object.defineProperty;
6671 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6672 +var __getOwnPropNames = Object.getOwnPropertyNames;
6673 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6674 +var __export = (target, all) => {
6675 + for (var name in all)
6676 + __defProp(target, name, { get: all[name], enumerable: true });
6677 +};
6678 +var __copyProps = (to, from, except, desc) => {
6679 + if (from && typeof from === "object" || typeof from === "function") {
6680 + for (let key of __getOwnPropNames(from))
6681 + if (!__hasOwnProp.call(to, key) && key !== except)
6682 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6683 + }
6684 + return to;
6685 +};
6686 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6687 +
6688 +// src/subscribable.ts
6689 +var subscribable_exports = {};
6690 +__export(subscribable_exports, {
6691 + Subscribable: () => Subscribable
6692 +});
6693 +module.exports = __toCommonJS(subscribable_exports);
6694 +var Subscribable = class {
6695 + constructor() {
6696 + this.listeners = /* @__PURE__ */ new Set();
6697 + this.subscribe = this.subscribe.bind(this);
6698 + }
6699 + subscribe(listener) {
6700 + this.listeners.add(listener);
6701 + this.onSubscribe();
6702 + return () => {
6703 + this.listeners.delete(listener);
6704 + this.onUnsubscribe();
6705 + };
6706 + }
6707 + hasListeners() {
6708 + return this.listeners.size > 0;
6709 + }
6710 + onSubscribe() {
6711 + }
6712 + onUnsubscribe() {
6713 + }
6714 +};
6715 +// Annotate the CommonJS export names for ESM import in node:
6716 +0 && (0);
6717 +//# sourceMappingURL=subscribable.cjs.map
6718 +
6719 +/***/ }),
6720 +
6721 +/***/ "../node_modules/@tanstack/query-core/build/modern/types.cjs":
6722 +/*!*******************************************************************!*\
6723 + !*** ../node_modules/@tanstack/query-core/build/modern/types.cjs ***!
6724 + \*******************************************************************/
6725 +/***/ ((module) => {
6726 +
6727 +"use strict";
6728 +
6729 +var __defProp = Object.defineProperty;
6730 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6731 +var __getOwnPropNames = Object.getOwnPropertyNames;
6732 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6733 +var __copyProps = (to, from, except, desc) => {
6734 + if (from && typeof from === "object" || typeof from === "function") {
6735 + for (let key of __getOwnPropNames(from))
6736 + if (!__hasOwnProp.call(to, key) && key !== except)
6737 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6738 + }
6739 + return to;
6740 +};
6741 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6742 +
6743 +// src/types.ts
6744 +var types_exports = {};
6745 +module.exports = __toCommonJS(types_exports);
6746 +//# sourceMappingURL=types.cjs.map
6747 +
6748 +/***/ }),
6749 +
6750 +/***/ "../node_modules/@tanstack/query-core/build/modern/utils.cjs":
6751 +/*!*******************************************************************!*\
6752 + !*** ../node_modules/@tanstack/query-core/build/modern/utils.cjs ***!
6753 + \*******************************************************************/
6754 +/***/ ((module) => {
6755 +
6756 +"use strict";
6757 +
6758 +var __defProp = Object.defineProperty;
6759 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6760 +var __getOwnPropNames = Object.getOwnPropertyNames;
6761 +var __hasOwnProp = Object.prototype.hasOwnProperty;
6762 +var __export = (target, all) => {
6763 + for (var name in all)
6764 + __defProp(target, name, { get: all[name], enumerable: true });
6765 +};
6766 +var __copyProps = (to, from, except, desc) => {
6767 + if (from && typeof from === "object" || typeof from === "function") {
6768 + for (let key of __getOwnPropNames(from))
6769 + if (!__hasOwnProp.call(to, key) && key !== except)
6770 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6771 + }
6772 + return to;
6773 +};
6774 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
6775 +
6776 +// src/utils.ts
6777 +var utils_exports = {};
6778 +__export(utils_exports, {
6779 + addToEnd: () => addToEnd,
6780 + addToStart: () => addToStart,
6781 + ensureQueryFn: () => ensureQueryFn,
6782 + functionalUpdate: () => functionalUpdate,
6783 + hashKey: () => hashKey,
6784 + hashQueryKeyByOptions: () => hashQueryKeyByOptions,
6785 + isPlainArray: () => isPlainArray,
6786 + isPlainObject: () => isPlainObject,
6787 + isServer: () => isServer,
6788 + isValidTimeout: () => isValidTimeout,
6789 + keepPreviousData: () => keepPreviousData,
6790 + matchMutation: () => matchMutation,
6791 + matchQuery: () => matchQuery,
6792 + noop: () => noop,
6793 + partialMatchKey: () => partialMatchKey,
6794 + replaceData: () => replaceData,
6795 + replaceEqualDeep: () => replaceEqualDeep,
6796 + resolveEnabled: () => resolveEnabled,
6797 + resolveStaleTime: () => resolveStaleTime,
6798 + shallowEqualObjects: () => shallowEqualObjects,
6799 + skipToken: () => skipToken,
6800 + sleep: () => sleep,
6801 + timeUntilStale: () => timeUntilStale
6802 +});
6803 +module.exports = __toCommonJS(utils_exports);
6804 +var isServer = typeof window === "undefined" || "Deno" in globalThis;
6805 +function noop() {
6806 + return void 0;
6807 +}
6808 +function functionalUpdate(updater, input) {
6809 + return typeof updater === "function" ? updater(input) : updater;
6810 +}
6811 +function isValidTimeout(value) {
6812 + return typeof value === "number" && value >= 0 && value !== Infinity;
6813 +}
6814 +function timeUntilStale(updatedAt, staleTime) {
6815 + return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
6816 +}
6817 +function resolveStaleTime(staleTime, query) {
6818 + return typeof staleTime === "function" ? staleTime(query) : staleTime;
6819 +}
6820 +function resolveEnabled(enabled, query) {
6821 + return typeof enabled === "function" ? enabled(query) : enabled;
6822 +}
6823 +function matchQuery(filters, query) {
6824 + const {
6825 + type = "all",
6826 + exact,
6827 + fetchStatus,
6828 + predicate,
6829 + queryKey,
6830 + stale
6831 + } = filters;
6832 + if (queryKey) {
6833 + if (exact) {
6834 + if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {
6835 + return false;
6836 + }
6837 + } else if (!partialMatchKey(query.queryKey, queryKey)) {
6838 + return false;
6839 + }
6840 + }
6841 + if (type !== "all") {
6842 + const isActive = query.isActive();
6843 + if (type === "active" && !isActive) {
6844 + return false;
6845 + }
6846 + if (type === "inactive" && isActive) {
6847 + return false;
6848 + }
6849 + }
6850 + if (typeof stale === "boolean" && query.isStale() !== stale) {
6851 + return false;
6852 + }
6853 + if (fetchStatus && fetchStatus !== query.state.fetchStatus) {
6854 + return false;
6855 + }
6856 + if (predicate && !predicate(query)) {
6857 + return false;
6858 + }
6859 + return true;
6860 +}
6861 +function matchMutation(filters, mutation) {
6862 + const { exact, status, predicate, mutationKey } = filters;
6863 + if (mutationKey) {
6864 + if (!mutation.options.mutationKey) {
6865 + return false;
6866 + }
6867 + if (exact) {
6868 + if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {
6869 + return false;
6870 + }
6871 + } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {
6872 + return false;
6873 + }
6874 + }
6875 + if (status && mutation.state.status !== status) {
6876 + return false;
6877 + }
6878 + if (predicate && !predicate(mutation)) {
6879 + return false;
6880 + }
6881 + return true;
6882 +}
6883 +function hashQueryKeyByOptions(queryKey, options) {
6884 + const hashFn = options?.queryKeyHashFn || hashKey;
6885 + return hashFn(queryKey);
6886 +}
6887 +function hashKey(queryKey) {
6888 + return JSON.stringify(
6889 + queryKey,
6890 + (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
6891 + result[key] = val[key];
6892 + return result;
6893 + }, {}) : val
6894 + );
6895 +}
6896 +function partialMatchKey(a, b) {
6897 + if (a === b) {
6898 + return true;
6899 + }
6900 + if (typeof a !== typeof b) {
6901 + return false;
6902 + }
6903 + if (a && b && typeof a === "object" && typeof b === "object") {
6904 + return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
6905 + }
6906 + return false;
6907 +}
6908 +function replaceEqualDeep(a, b) {
6909 + if (a === b) {
6910 + return a;
6911 + }
6912 + const array = isPlainArray(a) && isPlainArray(b);
6913 + if (array || isPlainObject(a) && isPlainObject(b)) {
6914 + const aItems = array ? a : Object.keys(a);
6915 + const aSize = aItems.length;
6916 + const bItems = array ? b : Object.keys(b);
6917 + const bSize = bItems.length;
6918 + const copy = array ? [] : {};
6919 + let equalItems = 0;
6920 + for (let i = 0; i < bSize; i++) {
6921 + const key = array ? i : bItems[i];
6922 + if ((!array && aItems.includes(key) || array) && a[key] === void 0 && b[key] === void 0) {
6923 + copy[key] = void 0;
6924 + equalItems++;
6925 + } else {
6926 + copy[key] = replaceEqualDeep(a[key], b[key]);
6927 + if (copy[key] === a[key] && a[key] !== void 0) {
6928 + equalItems++;
6929 + }
6930 + }
6931 + }
6932 + return aSize === bSize && equalItems === aSize ? a : copy;
6933 + }
6934 + return b;
6935 +}
6936 +function shallowEqualObjects(a, b) {
6937 + if (!b || Object.keys(a).length !== Object.keys(b).length) {
6938 + return false;
6939 + }
6940 + for (const key in a) {
6941 + if (a[key] !== b[key]) {
6942 + return false;
6943 + }
6944 + }
6945 + return true;
6946 +}
6947 +function isPlainArray(value) {
6948 + return Array.isArray(value) && value.length === Object.keys(value).length;
6949 +}
6950 +function isPlainObject(o) {
6951 + if (!hasObjectPrototype(o)) {
6952 + return false;
6953 + }
6954 + const ctor = o.constructor;
6955 + if (ctor === void 0) {
6956 + return true;
6957 + }
6958 + const prot = ctor.prototype;
6959 + if (!hasObjectPrototype(prot)) {
6960 + return false;
6961 + }
6962 + if (!prot.hasOwnProperty("isPrototypeOf")) {
6963 + return false;
6964 + }
6965 + if (Object.getPrototypeOf(o) !== Object.prototype) {
6966 + return false;
6967 + }
6968 + return true;
6969 +}
6970 +function hasObjectPrototype(o) {
6971 + return Object.prototype.toString.call(o) === "[object Object]";
6972 +}
6973 +function sleep(ms) {
6974 + return new Promise((resolve) => {
6975 + setTimeout(resolve, ms);
6976 + });
6977 +}
6978 +function replaceData(prevData, data, options) {
6979 + if (typeof options.structuralSharing === "function") {
6980 + return options.structuralSharing(prevData, data);
6981 + } else if (options.structuralSharing !== false) {
6982 + return replaceEqualDeep(prevData, data);
6983 + }
6984 + return data;
6985 +}
6986 +function keepPreviousData(previousData) {
6987 + return previousData;
6988 +}
6989 +function addToEnd(items, item, max = 0) {
6990 + const newItems = [...items, item];
6991 + return max && newItems.length > max ? newItems.slice(1) : newItems;
6992 +}
6993 +function addToStart(items, item, max = 0) {
6994 + const newItems = [item, ...items];
6995 + return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
6996 +}
6997 +var skipToken = Symbol();
6998 +var ensureQueryFn = (options, fetchOptions) => {
6999 + if (true) {
7000 + if (options.queryFn === skipToken) {
7001 + console.error(
7002 + `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`
7003 + );
7004 + }
7005 + }
7006 + if (!options.queryFn && fetchOptions?.initialPromise) {
7007 + return () => fetchOptions.initialPromise;
7008 + }
7009 + if (!options.queryFn || options.queryFn === skipToken) {
7010 + return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));
7011 + }
7012 + return options.queryFn;
7013 +};
7014 +// Annotate the CommonJS export names for ESM import in node:
7015 +0 && (0);
7016 +//# sourceMappingURL=utils.cjs.map
7017 +
7018 +/***/ }),
7019 +
7020 +/***/ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs":
7021 +/*!********************************************************************************!*\
7022 + !*** ../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs ***!
7023 + \********************************************************************************/
7024 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7025 +
7026 +"use strict";
7027 +
7028 +"use client";
7029 +var __create = Object.create;
7030 +var __defProp = Object.defineProperty;
7031 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7032 +var __getOwnPropNames = Object.getOwnPropertyNames;
7033 +var __getProtoOf = Object.getPrototypeOf;
7034 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7035 +var __export = (target, all) => {
7036 + for (var name in all)
7037 + __defProp(target, name, { get: all[name], enumerable: true });
7038 +};
7039 +var __copyProps = (to, from, except, desc) => {
7040 + if (from && typeof from === "object" || typeof from === "function") {
7041 + for (let key of __getOwnPropNames(from))
7042 + if (!__hasOwnProp.call(to, key) && key !== except)
7043 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7044 + }
7045 + return to;
7046 +};
7047 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7048 + // If the importer is in node compatibility mode or this is not an ESM
7049 + // file that has been converted to a CommonJS file using a Babel-
7050 + // compatible transform (i.e. "__esModule" has not been set), then set
7051 + // "default" to the CommonJS "module.exports" for node compatibility.
7052 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7053 + mod
7054 +));
7055 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7056 +
7057 +// src/HydrationBoundary.tsx
7058 +var HydrationBoundary_exports = {};
7059 +__export(HydrationBoundary_exports, {
7060 + HydrationBoundary: () => HydrationBoundary
7061 +});
7062 +module.exports = __toCommonJS(HydrationBoundary_exports);
7063 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7064 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7065 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7066 +var HydrationBoundary = ({
7067 + children,
7068 + options = {},
7069 + state,
7070 + queryClient
7071 +}) => {
7072 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7073 + const [hydrationQueue, setHydrationQueue] = React.useState();
7074 + const optionsRef = React.useRef(options);
7075 + optionsRef.current = options;
7076 + React.useMemo(() => {
7077 + if (state) {
7078 + if (typeof state !== "object") {
7079 + return;
7080 + }
7081 + const queryCache = client.getQueryCache();
7082 + const queries = state.queries || [];
7083 + const newQueries = [];
7084 + const existingQueries = [];
7085 + for (const dehydratedQuery of queries) {
7086 + const existingQuery = queryCache.get(dehydratedQuery.queryHash);
7087 + if (!existingQuery) {
7088 + newQueries.push(dehydratedQuery);
7089 + } else {
7090 + const hydrationIsNewer = dehydratedQuery.state.dataUpdatedAt > existingQuery.state.dataUpdatedAt;
7091 + const queryAlreadyQueued = hydrationQueue?.find(
7092 + (query) => query.queryHash === dehydratedQuery.queryHash
7093 + );
7094 + if (hydrationIsNewer && (!queryAlreadyQueued || dehydratedQuery.state.dataUpdatedAt > queryAlreadyQueued.state.dataUpdatedAt)) {
7095 + existingQueries.push(dehydratedQuery);
7096 + }
7097 + }
7098 + }
7099 + if (newQueries.length > 0) {
7100 + (0, import_query_core.hydrate)(client, { queries: newQueries }, optionsRef.current);
7101 + }
7102 + if (existingQueries.length > 0) {
7103 + setHydrationQueue(
7104 + (prev) => prev ? [...prev, ...existingQueries] : existingQueries
7105 + );
7106 + }
7107 + }
7108 + }, [client, hydrationQueue, state]);
7109 + React.useEffect(() => {
7110 + if (hydrationQueue) {
7111 + (0, import_query_core.hydrate)(client, { queries: hydrationQueue }, optionsRef.current);
7112 + setHydrationQueue(void 0);
7113 + }
7114 + }, [client, hydrationQueue]);
7115 + return children;
7116 +};
7117 +// Annotate the CommonJS export names for ESM import in node:
7118 +0 && (0);
7119 +//# sourceMappingURL=HydrationBoundary.cjs.map
7120 +
7121 +/***/ }),
7122 +
7123 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs":
7124 +/*!**********************************************************************************!*\
7125 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs ***!
7126 + \**********************************************************************************/
7127 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7128 +
7129 +"use strict";
7130 +
7131 +"use client";
7132 +var __create = Object.create;
7133 +var __defProp = Object.defineProperty;
7134 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7135 +var __getOwnPropNames = Object.getOwnPropertyNames;
7136 +var __getProtoOf = Object.getPrototypeOf;
7137 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7138 +var __export = (target, all) => {
7139 + for (var name in all)
7140 + __defProp(target, name, { get: all[name], enumerable: true });
7141 +};
7142 +var __copyProps = (to, from, except, desc) => {
7143 + if (from && typeof from === "object" || typeof from === "function") {
7144 + for (let key of __getOwnPropNames(from))
7145 + if (!__hasOwnProp.call(to, key) && key !== except)
7146 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7147 + }
7148 + return to;
7149 +};
7150 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7151 + // If the importer is in node compatibility mode or this is not an ESM
7152 + // file that has been converted to a CommonJS file using a Babel-
7153 + // compatible transform (i.e. "__esModule" has not been set), then set
7154 + // "default" to the CommonJS "module.exports" for node compatibility.
7155 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7156 + mod
7157 +));
7158 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7159 +
7160 +// src/QueryClientProvider.tsx
7161 +var QueryClientProvider_exports = {};
7162 +__export(QueryClientProvider_exports, {
7163 + QueryClientContext: () => QueryClientContext,
7164 + QueryClientProvider: () => QueryClientProvider,
7165 + useQueryClient: () => useQueryClient
7166 +});
7167 +module.exports = __toCommonJS(QueryClientProvider_exports);
7168 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7169 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7170 +var QueryClientContext = React.createContext(
7171 + void 0
7172 +);
7173 +var useQueryClient = (queryClient) => {
7174 + const client = React.useContext(QueryClientContext);
7175 + if (queryClient) {
7176 + return queryClient;
7177 + }
7178 + if (!client) {
7179 + throw new Error("No QueryClient set, use QueryClientProvider to set one");
7180 + }
7181 + return client;
7182 +};
7183 +var QueryClientProvider = ({
7184 + client,
7185 + children
7186 +}) => {
7187 + React.useEffect(() => {
7188 + client.mount();
7189 + return () => {
7190 + client.unmount();
7191 + };
7192 + }, [client]);
7193 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientContext.Provider, { value: client, children });
7194 +};
7195 +// Annotate the CommonJS export names for ESM import in node:
7196 +0 && (0);
7197 +//# sourceMappingURL=QueryClientProvider.cjs.map
7198 +
7199 +/***/ }),
7200 +
7201 +/***/ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs":
7202 +/*!**************************************************************************************!*\
7203 + !*** ../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs ***!
7204 + \**************************************************************************************/
7205 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7206 +
7207 +"use strict";
7208 +
7209 +"use client";
7210 +var __create = Object.create;
7211 +var __defProp = Object.defineProperty;
7212 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7213 +var __getOwnPropNames = Object.getOwnPropertyNames;
7214 +var __getProtoOf = Object.getPrototypeOf;
7215 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7216 +var __export = (target, all) => {
7217 + for (var name in all)
7218 + __defProp(target, name, { get: all[name], enumerable: true });
7219 +};
7220 +var __copyProps = (to, from, except, desc) => {
7221 + if (from && typeof from === "object" || typeof from === "function") {
7222 + for (let key of __getOwnPropNames(from))
7223 + if (!__hasOwnProp.call(to, key) && key !== except)
7224 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7225 + }
7226 + return to;
7227 +};
7228 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7229 + // If the importer is in node compatibility mode or this is not an ESM
7230 + // file that has been converted to a CommonJS file using a Babel-
7231 + // compatible transform (i.e. "__esModule" has not been set), then set
7232 + // "default" to the CommonJS "module.exports" for node compatibility.
7233 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7234 + mod
7235 +));
7236 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7237 +
7238 +// src/QueryErrorResetBoundary.tsx
7239 +var QueryErrorResetBoundary_exports = {};
7240 +__export(QueryErrorResetBoundary_exports, {
7241 + QueryErrorResetBoundary: () => QueryErrorResetBoundary,
7242 + useQueryErrorResetBoundary: () => useQueryErrorResetBoundary
7243 +});
7244 +module.exports = __toCommonJS(QueryErrorResetBoundary_exports);
7245 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7246 +var import_jsx_runtime = __webpack_require__(/*! react/jsx-runtime */ "../node_modules/react/jsx-runtime.js");
7247 +function createValue() {
7248 + let isReset = false;
7249 + return {
7250 + clearReset: () => {
7251 + isReset = false;
7252 + },
7253 + reset: () => {
7254 + isReset = true;
7255 + },
7256 + isReset: () => {
7257 + return isReset;
7258 + }
7259 + };
7260 +}
7261 +var QueryErrorResetBoundaryContext = React.createContext(createValue());
7262 +var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
7263 +var QueryErrorResetBoundary = ({
7264 + children
7265 +}) => {
7266 + const [value] = React.useState(() => createValue());
7267 + return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === "function" ? children(value) : children });
7268 +};
7269 +// Annotate the CommonJS export names for ESM import in node:
7270 +0 && (0);
7271 +//# sourceMappingURL=QueryErrorResetBoundary.cjs.map
7272 +
7273 +/***/ }),
7274 +
7275 +/***/ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs":
7276 +/*!*********************************************************************************!*\
7277 + !*** ../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs ***!
7278 + \*********************************************************************************/
7279 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7280 +
7281 +"use strict";
7282 +
7283 +"use client";
7284 +var __create = Object.create;
7285 +var __defProp = Object.defineProperty;
7286 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7287 +var __getOwnPropNames = Object.getOwnPropertyNames;
7288 +var __getProtoOf = Object.getPrototypeOf;
7289 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7290 +var __export = (target, all) => {
7291 + for (var name in all)
7292 + __defProp(target, name, { get: all[name], enumerable: true });
7293 +};
7294 +var __copyProps = (to, from, except, desc) => {
7295 + if (from && typeof from === "object" || typeof from === "function") {
7296 + for (let key of __getOwnPropNames(from))
7297 + if (!__hasOwnProp.call(to, key) && key !== except)
7298 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7299 + }
7300 + return to;
7301 +};
7302 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7303 + // If the importer is in node compatibility mode or this is not an ESM
7304 + // file that has been converted to a CommonJS file using a Babel-
7305 + // compatible transform (i.e. "__esModule" has not been set), then set
7306 + // "default" to the CommonJS "module.exports" for node compatibility.
7307 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7308 + mod
7309 +));
7310 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7311 +
7312 +// src/errorBoundaryUtils.ts
7313 +var errorBoundaryUtils_exports = {};
7314 +__export(errorBoundaryUtils_exports, {
7315 + ensurePreventErrorBoundaryRetry: () => ensurePreventErrorBoundaryRetry,
7316 + getHasError: () => getHasError,
7317 + useClearResetErrorBoundary: () => useClearResetErrorBoundary
7318 +});
7319 +module.exports = __toCommonJS(errorBoundaryUtils_exports);
7320 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7321 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7322 +var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
7323 + if (options.suspense || options.throwOnError) {
7324 + if (!errorResetBoundary.isReset()) {
7325 + options.retryOnMount = false;
7326 + }
7327 + }
7328 +};
7329 +var useClearResetErrorBoundary = (errorResetBoundary) => {
7330 + React.useEffect(() => {
7331 + errorResetBoundary.clearReset();
7332 + }, [errorResetBoundary]);
7333 +};
7334 +var getHasError = ({
7335 + result,
7336 + errorResetBoundary,
7337 + throwOnError,
7338 + query
7339 +}) => {
7340 + return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (0, import_utils.shouldThrowError)(throwOnError, [result.error, query]);
7341 +};
7342 +// Annotate the CommonJS export names for ESM import in node:
7343 +0 && (0);
7344 +//# sourceMappingURL=errorBoundaryUtils.cjs.map
7345 +
7346 +/***/ }),
7347 +
7348 +/***/ "../node_modules/@tanstack/react-query/build/modern/index.cjs":
7349 +/*!********************************************************************!*\
7350 + !*** ../node_modules/@tanstack/react-query/build/modern/index.cjs ***!
7351 + \********************************************************************/
7352 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7353 +
7354 +"use strict";
7355 +
7356 +var __defProp = Object.defineProperty;
7357 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7358 +var __getOwnPropNames = Object.getOwnPropertyNames;
7359 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7360 +var __export = (target, all) => {
7361 + for (var name in all)
7362 + __defProp(target, name, { get: all[name], enumerable: true });
7363 +};
7364 +var __copyProps = (to, from, except, desc) => {
7365 + if (from && typeof from === "object" || typeof from === "function") {
7366 + for (let key of __getOwnPropNames(from))
7367 + if (!__hasOwnProp.call(to, key) && key !== except)
7368 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7369 + }
7370 + return to;
7371 +};
7372 +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
7373 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7374 +
7375 +// src/index.ts
7376 +var src_exports = {};
7377 +__export(src_exports, {
7378 + HydrationBoundary: () => import_HydrationBoundary.HydrationBoundary,
7379 + IsRestoringProvider: () => import_isRestoring.IsRestoringProvider,
7380 + QueryClientContext: () => import_QueryClientProvider.QueryClientContext,
7381 + QueryClientProvider: () => import_QueryClientProvider.QueryClientProvider,
7382 + QueryErrorResetBoundary: () => import_QueryErrorResetBoundary.QueryErrorResetBoundary,
7383 + infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
7384 + queryOptions: () => import_queryOptions.queryOptions,
7385 + useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
7386 + useIsFetching: () => import_useIsFetching.useIsFetching,
7387 + useIsMutating: () => import_useMutationState.useIsMutating,
7388 + useIsRestoring: () => import_isRestoring.useIsRestoring,
7389 + useMutation: () => import_useMutation.useMutation,
7390 + useMutationState: () => import_useMutationState.useMutationState,
7391 + usePrefetchInfiniteQuery: () => import_prefetch.usePrefetchInfiniteQuery,
7392 + usePrefetchQuery: () => import_prefetch.usePrefetchQuery,
7393 + useQueries: () => import_useQueries.useQueries,
7394 + useQuery: () => import_useQuery.useQuery,
7395 + useQueryClient: () => import_QueryClientProvider.useQueryClient,
7396 + useQueryErrorResetBoundary: () => import_QueryErrorResetBoundary.useQueryErrorResetBoundary,
7397 + useSuspenseInfiniteQuery: () => import_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery,
7398 + useSuspenseQueries: () => import_useSuspenseQueries.useSuspenseQueries,
7399 + useSuspenseQuery: () => import_useSuspenseQuery.useSuspenseQuery
7400 +});
7401 +module.exports = __toCommonJS(src_exports);
7402 +__reExport(src_exports, __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs"), module.exports);
7403 +__reExport(src_exports, __webpack_require__(/*! ./types.cjs */ "../node_modules/@tanstack/react-query/build/modern/types.cjs"), module.exports);
7404 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
7405 +var import_useQuery = __webpack_require__(/*! ./useQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs");
7406 +var import_useSuspenseQuery = __webpack_require__(/*! ./useSuspenseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs");
7407 +var import_useSuspenseInfiniteQuery = __webpack_require__(/*! ./useSuspenseInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs");
7408 +var import_useSuspenseQueries = __webpack_require__(/*! ./useSuspenseQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs");
7409 +var import_prefetch = __webpack_require__(/*! ./prefetch.cjs */ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs");
7410 +var import_queryOptions = __webpack_require__(/*! ./queryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs");
7411 +var import_infiniteQueryOptions = __webpack_require__(/*! ./infiniteQueryOptions.cjs */ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs");
7412 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7413 +var import_HydrationBoundary = __webpack_require__(/*! ./HydrationBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/HydrationBoundary.cjs");
7414 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7415 +var import_useIsFetching = __webpack_require__(/*! ./useIsFetching.cjs */ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs");
7416 +var import_useMutationState = __webpack_require__(/*! ./useMutationState.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs");
7417 +var import_useMutation = __webpack_require__(/*! ./useMutation.cjs */ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs");
7418 +var import_useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
7419 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7420 +// Annotate the CommonJS export names for ESM import in node:
7421 +0 && (0);
7422 +//# sourceMappingURL=index.cjs.map
7423 +
7424 +/***/ }),
7425 +
7426 +/***/ "../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs":
7427 +/*!***********************************************************************************!*\
7428 + !*** ../node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs ***!
7429 + \***********************************************************************************/
7430 +/***/ ((module) => {
7431 +
7432 +"use strict";
7433 +
7434 +var __defProp = Object.defineProperty;
7435 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7436 +var __getOwnPropNames = Object.getOwnPropertyNames;
7437 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7438 +var __export = (target, all) => {
7439 + for (var name in all)
7440 + __defProp(target, name, { get: all[name], enumerable: true });
7441 +};
7442 +var __copyProps = (to, from, except, desc) => {
7443 + if (from && typeof from === "object" || typeof from === "function") {
7444 + for (let key of __getOwnPropNames(from))
7445 + if (!__hasOwnProp.call(to, key) && key !== except)
7446 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7447 + }
7448 + return to;
7449 +};
7450 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7451 +
7452 +// src/infiniteQueryOptions.ts
7453 +var infiniteQueryOptions_exports = {};
7454 +__export(infiniteQueryOptions_exports, {
7455 + infiniteQueryOptions: () => infiniteQueryOptions
7456 +});
7457 +module.exports = __toCommonJS(infiniteQueryOptions_exports);
7458 +function infiniteQueryOptions(options) {
7459 + return options;
7460 +}
7461 +// Annotate the CommonJS export names for ESM import in node:
7462 +0 && (0);
7463 +//# sourceMappingURL=infiniteQueryOptions.cjs.map
7464 +
7465 +/***/ }),
7466 +
7467 +/***/ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs":
7468 +/*!**************************************************************************!*\
7469 + !*** ../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs ***!
7470 + \**************************************************************************/
7471 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7472 +
7473 +"use strict";
7474 +
7475 +"use client";
7476 +var __create = Object.create;
7477 +var __defProp = Object.defineProperty;
7478 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7479 +var __getOwnPropNames = Object.getOwnPropertyNames;
7480 +var __getProtoOf = Object.getPrototypeOf;
7481 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7482 +var __export = (target, all) => {
7483 + for (var name in all)
7484 + __defProp(target, name, { get: all[name], enumerable: true });
7485 +};
7486 +var __copyProps = (to, from, except, desc) => {
7487 + if (from && typeof from === "object" || typeof from === "function") {
7488 + for (let key of __getOwnPropNames(from))
7489 + if (!__hasOwnProp.call(to, key) && key !== except)
7490 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7491 + }
7492 + return to;
7493 +};
7494 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7495 + // If the importer is in node compatibility mode or this is not an ESM
7496 + // file that has been converted to a CommonJS file using a Babel-
7497 + // compatible transform (i.e. "__esModule" has not been set), then set
7498 + // "default" to the CommonJS "module.exports" for node compatibility.
7499 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7500 + mod
7501 +));
7502 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7503 +
7504 +// src/isRestoring.ts
7505 +var isRestoring_exports = {};
7506 +__export(isRestoring_exports, {
7507 + IsRestoringProvider: () => IsRestoringProvider,
7508 + useIsRestoring: () => useIsRestoring
7509 +});
7510 +module.exports = __toCommonJS(isRestoring_exports);
7511 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7512 +var IsRestoringContext = React.createContext(false);
7513 +var useIsRestoring = () => React.useContext(IsRestoringContext);
7514 +var IsRestoringProvider = IsRestoringContext.Provider;
7515 +// Annotate the CommonJS export names for ESM import in node:
7516 +0 && (0);
7517 +//# sourceMappingURL=isRestoring.cjs.map
7518 +
7519 +/***/ }),
7520 +
7521 +/***/ "../node_modules/@tanstack/react-query/build/modern/prefetch.cjs":
7522 +/*!***********************************************************************!*\
7523 + !*** ../node_modules/@tanstack/react-query/build/modern/prefetch.cjs ***!
7524 + \***********************************************************************/
7525 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7526 +
7527 +"use strict";
7528 +
7529 +var __defProp = Object.defineProperty;
7530 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7531 +var __getOwnPropNames = Object.getOwnPropertyNames;
7532 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7533 +var __export = (target, all) => {
7534 + for (var name in all)
7535 + __defProp(target, name, { get: all[name], enumerable: true });
7536 +};
7537 +var __copyProps = (to, from, except, desc) => {
7538 + if (from && typeof from === "object" || typeof from === "function") {
7539 + for (let key of __getOwnPropNames(from))
7540 + if (!__hasOwnProp.call(to, key) && key !== except)
7541 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7542 + }
7543 + return to;
7544 +};
7545 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7546 +
7547 +// src/prefetch.ts
7548 +var prefetch_exports = {};
7549 +__export(prefetch_exports, {
7550 + usePrefetchInfiniteQuery: () => usePrefetchInfiniteQuery,
7551 + usePrefetchQuery: () => usePrefetchQuery
7552 +});
7553 +module.exports = __toCommonJS(prefetch_exports);
7554 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7555 +function usePrefetchQuery(options) {
7556 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7557 + if (!queryClient.getQueryState(options.queryKey)) {
7558 + queryClient.prefetchQuery(options);
7559 + }
7560 +}
7561 +function usePrefetchInfiniteQuery(options) {
7562 + const queryClient = (0, import_QueryClientProvider.useQueryClient)();
7563 + if (!queryClient.getQueryState(options.queryKey)) {
7564 + queryClient.prefetchInfiniteQuery(options);
7565 + }
7566 +}
7567 +// Annotate the CommonJS export names for ESM import in node:
7568 +0 && (0);
7569 +//# sourceMappingURL=prefetch.cjs.map
7570 +
7571 +/***/ }),
7572 +
7573 +/***/ "../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs":
7574 +/*!***************************************************************************!*\
7575 + !*** ../node_modules/@tanstack/react-query/build/modern/queryOptions.cjs ***!
7576 + \***************************************************************************/
7577 +/***/ ((module) => {
7578 +
7579 +"use strict";
7580 +
7581 +var __defProp = Object.defineProperty;
7582 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7583 +var __getOwnPropNames = Object.getOwnPropertyNames;
7584 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7585 +var __export = (target, all) => {
7586 + for (var name in all)
7587 + __defProp(target, name, { get: all[name], enumerable: true });
7588 +};
7589 +var __copyProps = (to, from, except, desc) => {
7590 + if (from && typeof from === "object" || typeof from === "function") {
7591 + for (let key of __getOwnPropNames(from))
7592 + if (!__hasOwnProp.call(to, key) && key !== except)
7593 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7594 + }
7595 + return to;
7596 +};
7597 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7598 +
7599 +// src/queryOptions.ts
7600 +var queryOptions_exports = {};
7601 +__export(queryOptions_exports, {
7602 + queryOptions: () => queryOptions
7603 +});
7604 +module.exports = __toCommonJS(queryOptions_exports);
7605 +function queryOptions(options) {
7606 + return options;
7607 +}
7608 +// Annotate the CommonJS export names for ESM import in node:
7609 +0 && (0);
7610 +//# sourceMappingURL=queryOptions.cjs.map
7611 +
7612 +/***/ }),
7613 +
7614 +/***/ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs":
7615 +/*!***********************************************************************!*\
7616 + !*** ../node_modules/@tanstack/react-query/build/modern/suspense.cjs ***!
7617 + \***********************************************************************/
7618 +/***/ ((module) => {
7619 +
7620 +"use strict";
7621 +
7622 +var __defProp = Object.defineProperty;
7623 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7624 +var __getOwnPropNames = Object.getOwnPropertyNames;
7625 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7626 +var __export = (target, all) => {
7627 + for (var name in all)
7628 + __defProp(target, name, { get: all[name], enumerable: true });
7629 +};
7630 +var __copyProps = (to, from, except, desc) => {
7631 + if (from && typeof from === "object" || typeof from === "function") {
7632 + for (let key of __getOwnPropNames(from))
7633 + if (!__hasOwnProp.call(to, key) && key !== except)
7634 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7635 + }
7636 + return to;
7637 +};
7638 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7639 +
7640 +// src/suspense.ts
7641 +var suspense_exports = {};
7642 +__export(suspense_exports, {
7643 + defaultThrowOnError: () => defaultThrowOnError,
7644 + ensureStaleTime: () => ensureStaleTime,
7645 + fetchOptimistic: () => fetchOptimistic,
7646 + shouldSuspend: () => shouldSuspend,
7647 + willFetch: () => willFetch
7648 +});
7649 +module.exports = __toCommonJS(suspense_exports);
7650 +var defaultThrowOnError = (_error, query) => query.state.data === void 0;
7651 +var ensureStaleTime = (defaultedOptions) => {
7652 + if (defaultedOptions.suspense) {
7653 + if (typeof defaultedOptions.staleTime !== "number") {
7654 + defaultedOptions.staleTime = 1e3;
7655 + }
7656 + }
7657 +};
7658 +var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
7659 +var shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;
7660 +var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
7661 + errorResetBoundary.clearReset();
7662 +});
7663 +// Annotate the CommonJS export names for ESM import in node:
7664 +0 && (0);
7665 +//# sourceMappingURL=suspense.cjs.map
7666 +
7667 +/***/ }),
7668 +
7669 +/***/ "../node_modules/@tanstack/react-query/build/modern/types.cjs":
7670 +/*!********************************************************************!*\
7671 + !*** ../node_modules/@tanstack/react-query/build/modern/types.cjs ***!
7672 + \********************************************************************/
7673 +/***/ ((module) => {
7674 +
7675 +"use strict";
7676 +
7677 +var __defProp = Object.defineProperty;
7678 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7679 +var __getOwnPropNames = Object.getOwnPropertyNames;
7680 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7681 +var __copyProps = (to, from, except, desc) => {
7682 + if (from && typeof from === "object" || typeof from === "function") {
7683 + for (let key of __getOwnPropNames(from))
7684 + if (!__hasOwnProp.call(to, key) && key !== except)
7685 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7686 + }
7687 + return to;
7688 +};
7689 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7690 +
7691 +// src/types.ts
7692 +var types_exports = {};
7693 +module.exports = __toCommonJS(types_exports);
7694 +//# sourceMappingURL=types.cjs.map
7695 +
7696 +/***/ }),
7697 +
7698 +/***/ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs":
7699 +/*!***************************************************************************!*\
7700 + !*** ../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs ***!
7701 + \***************************************************************************/
7702 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7703 +
7704 +"use strict";
7705 +
7706 +"use client";
7707 +var __create = Object.create;
7708 +var __defProp = Object.defineProperty;
7709 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7710 +var __getOwnPropNames = Object.getOwnPropertyNames;
7711 +var __getProtoOf = Object.getPrototypeOf;
7712 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7713 +var __export = (target, all) => {
7714 + for (var name in all)
7715 + __defProp(target, name, { get: all[name], enumerable: true });
7716 +};
7717 +var __copyProps = (to, from, except, desc) => {
7718 + if (from && typeof from === "object" || typeof from === "function") {
7719 + for (let key of __getOwnPropNames(from))
7720 + if (!__hasOwnProp.call(to, key) && key !== except)
7721 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7722 + }
7723 + return to;
7724 +};
7725 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7726 + // If the importer is in node compatibility mode or this is not an ESM
7727 + // file that has been converted to a CommonJS file using a Babel-
7728 + // compatible transform (i.e. "__esModule" has not been set), then set
7729 + // "default" to the CommonJS "module.exports" for node compatibility.
7730 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7731 + mod
7732 +));
7733 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7734 +
7735 +// src/useBaseQuery.ts
7736 +var useBaseQuery_exports = {};
7737 +__export(useBaseQuery_exports, {
7738 + useBaseQuery: () => useBaseQuery
7739 +});
7740 +module.exports = __toCommonJS(useBaseQuery_exports);
7741 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7742 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7743 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
7744 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7745 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
7746 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
7747 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
7748 +function useBaseQuery(options, Observer, queryClient) {
7749 + if (true) {
7750 + if (typeof options !== "object" || Array.isArray(options)) {
7751 + throw new Error(
7752 + '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'
7753 + );
7754 + }
7755 + }
7756 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7757 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
7758 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
7759 + const defaultedOptions = client.defaultQueryOptions(options);
7760 + client.getDefaultOptions().queries?._experimental_beforeQuery?.(
7761 + defaultedOptions
7762 + );
7763 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
7764 + (0, import_suspense.ensureStaleTime)(defaultedOptions);
7765 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(defaultedOptions, errorResetBoundary);
7766 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
7767 + const [observer] = React.useState(
7768 + () => new Observer(
7769 + client,
7770 + defaultedOptions
7771 + )
7772 + );
7773 + const result = observer.getOptimisticResult(defaultedOptions);
7774 + React.useSyncExternalStore(
7775 + React.useCallback(
7776 + (onStoreChange) => {
7777 + const unsubscribe = isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange));
7778 + observer.updateResult();
7779 + return unsubscribe;
7780 + },
7781 + [observer, isRestoring]
7782 + ),
7783 + () => observer.getCurrentResult(),
7784 + () => observer.getCurrentResult()
7785 + );
7786 + React.useEffect(() => {
7787 + observer.setOptions(defaultedOptions, { listeners: false });
7788 + }, [defaultedOptions, observer]);
7789 + if ((0, import_suspense.shouldSuspend)(defaultedOptions, result)) {
7790 + throw (0, import_suspense.fetchOptimistic)(defaultedOptions, observer, errorResetBoundary);
7791 + }
7792 + if ((0, import_errorBoundaryUtils.getHasError)({
7793 + result,
7794 + errorResetBoundary,
7795 + throwOnError: defaultedOptions.throwOnError,
7796 + query: client.getQueryCache().get(defaultedOptions.queryHash)
7797 + })) {
7798 + throw result.error;
7799 + }
7800 + ;
7801 + client.getDefaultOptions().queries?._experimental_afterQuery?.(
7802 + defaultedOptions,
7803 + result
7804 + );
7805 + return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
7806 +}
7807 +// Annotate the CommonJS export names for ESM import in node:
7808 +0 && (0);
7809 +//# sourceMappingURL=useBaseQuery.cjs.map
7810 +
7811 +/***/ }),
7812 +
7813 +/***/ "../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs":
7814 +/*!*******************************************************************************!*\
7815 + !*** ../node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.cjs ***!
7816 + \*******************************************************************************/
7817 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7818 +
7819 +"use strict";
7820 +
7821 +"use client";
7822 +var __defProp = Object.defineProperty;
7823 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7824 +var __getOwnPropNames = Object.getOwnPropertyNames;
7825 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7826 +var __export = (target, all) => {
7827 + for (var name in all)
7828 + __defProp(target, name, { get: all[name], enumerable: true });
7829 +};
7830 +var __copyProps = (to, from, except, desc) => {
7831 + if (from && typeof from === "object" || typeof from === "function") {
7832 + for (let key of __getOwnPropNames(from))
7833 + if (!__hasOwnProp.call(to, key) && key !== except)
7834 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7835 + }
7836 + return to;
7837 +};
7838 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7839 +
7840 +// src/useInfiniteQuery.ts
7841 +var useInfiniteQuery_exports = {};
7842 +__export(useInfiniteQuery_exports, {
7843 + useInfiniteQuery: () => useInfiniteQuery
7844 +});
7845 +module.exports = __toCommonJS(useInfiniteQuery_exports);
7846 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7847 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
7848 +function useInfiniteQuery(options, queryClient) {
7849 + return (0, import_useBaseQuery.useBaseQuery)(
7850 + options,
7851 + import_query_core.InfiniteQueryObserver,
7852 + queryClient
7853 + );
7854 +}
7855 +// Annotate the CommonJS export names for ESM import in node:
7856 +0 && (0);
7857 +//# sourceMappingURL=useInfiniteQuery.cjs.map
7858 +
7859 +/***/ }),
7860 +
7861 +/***/ "../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs":
7862 +/*!****************************************************************************!*\
7863 + !*** ../node_modules/@tanstack/react-query/build/modern/useIsFetching.cjs ***!
7864 + \****************************************************************************/
7865 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7866 +
7867 +"use strict";
7868 +
7869 +"use client";
7870 +var __create = Object.create;
7871 +var __defProp = Object.defineProperty;
7872 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7873 +var __getOwnPropNames = Object.getOwnPropertyNames;
7874 +var __getProtoOf = Object.getPrototypeOf;
7875 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7876 +var __export = (target, all) => {
7877 + for (var name in all)
7878 + __defProp(target, name, { get: all[name], enumerable: true });
7879 +};
7880 +var __copyProps = (to, from, except, desc) => {
7881 + if (from && typeof from === "object" || typeof from === "function") {
7882 + for (let key of __getOwnPropNames(from))
7883 + if (!__hasOwnProp.call(to, key) && key !== except)
7884 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7885 + }
7886 + return to;
7887 +};
7888 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7889 + // If the importer is in node compatibility mode or this is not an ESM
7890 + // file that has been converted to a CommonJS file using a Babel-
7891 + // compatible transform (i.e. "__esModule" has not been set), then set
7892 + // "default" to the CommonJS "module.exports" for node compatibility.
7893 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7894 + mod
7895 +));
7896 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7897 +
7898 +// src/useIsFetching.ts
7899 +var useIsFetching_exports = {};
7900 +__export(useIsFetching_exports, {
7901 + useIsFetching: () => useIsFetching
7902 +});
7903 +module.exports = __toCommonJS(useIsFetching_exports);
7904 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7905 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7906 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7907 +function useIsFetching(filters, queryClient) {
7908 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7909 + const queryCache = client.getQueryCache();
7910 + return React.useSyncExternalStore(
7911 + React.useCallback(
7912 + (onStoreChange) => queryCache.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7913 + [queryCache]
7914 + ),
7915 + () => client.isFetching(filters),
7916 + () => client.isFetching(filters)
7917 + );
7918 +}
7919 +// Annotate the CommonJS export names for ESM import in node:
7920 +0 && (0);
7921 +//# sourceMappingURL=useIsFetching.cjs.map
7922 +
7923 +/***/ }),
7924 +
7925 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutation.cjs":
7926 +/*!**************************************************************************!*\
7927 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutation.cjs ***!
7928 + \**************************************************************************/
7929 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7930 +
7931 +"use strict";
7932 +
7933 +"use client";
7934 +var __create = Object.create;
7935 +var __defProp = Object.defineProperty;
7936 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7937 +var __getOwnPropNames = Object.getOwnPropertyNames;
7938 +var __getProtoOf = Object.getPrototypeOf;
7939 +var __hasOwnProp = Object.prototype.hasOwnProperty;
7940 +var __export = (target, all) => {
7941 + for (var name in all)
7942 + __defProp(target, name, { get: all[name], enumerable: true });
7943 +};
7944 +var __copyProps = (to, from, except, desc) => {
7945 + if (from && typeof from === "object" || typeof from === "function") {
7946 + for (let key of __getOwnPropNames(from))
7947 + if (!__hasOwnProp.call(to, key) && key !== except)
7948 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
7949 + }
7950 + return to;
7951 +};
7952 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
7953 + // If the importer is in node compatibility mode or this is not an ESM
7954 + // file that has been converted to a CommonJS file using a Babel-
7955 + // compatible transform (i.e. "__esModule" has not been set), then set
7956 + // "default" to the CommonJS "module.exports" for node compatibility.
7957 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
7958 + mod
7959 +));
7960 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
7961 +
7962 +// src/useMutation.ts
7963 +var useMutation_exports = {};
7964 +__export(useMutation_exports, {
7965 + useMutation: () => useMutation
7966 +});
7967 +module.exports = __toCommonJS(useMutation_exports);
7968 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
7969 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
7970 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
7971 +var import_utils = __webpack_require__(/*! ./utils.cjs */ "../node_modules/@tanstack/react-query/build/modern/utils.cjs");
7972 +function useMutation(options, queryClient) {
7973 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
7974 + const [observer] = React.useState(
7975 + () => new import_query_core.MutationObserver(
7976 + client,
7977 + options
7978 + )
7979 + );
7980 + React.useEffect(() => {
7981 + observer.setOptions(options);
7982 + }, [observer, options]);
7983 + const result = React.useSyncExternalStore(
7984 + React.useCallback(
7985 + (onStoreChange) => observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
7986 + [observer]
7987 + ),
7988 + () => observer.getCurrentResult(),
7989 + () => observer.getCurrentResult()
7990 + );
7991 + const mutate = React.useCallback(
7992 + (variables, mutateOptions) => {
7993 + observer.mutate(variables, mutateOptions).catch(import_utils.noop);
7994 + },
7995 + [observer]
7996 + );
7997 + if (result.error && (0, import_utils.shouldThrowError)(observer.options.throwOnError, [result.error])) {
7998 + throw result.error;
7999 + }
8000 + return { ...result, mutate, mutateAsync: result.mutate };
8001 +}
8002 +// Annotate the CommonJS export names for ESM import in node:
8003 +0 && (0);
8004 +//# sourceMappingURL=useMutation.cjs.map
8005 +
8006 +/***/ }),
8007 +
8008 +/***/ "../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs":
8009 +/*!*******************************************************************************!*\
8010 + !*** ../node_modules/@tanstack/react-query/build/modern/useMutationState.cjs ***!
8011 + \*******************************************************************************/
8012 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8013 +
8014 +"use strict";
8015 +
8016 +"use client";
8017 +var __create = Object.create;
8018 +var __defProp = Object.defineProperty;
8019 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8020 +var __getOwnPropNames = Object.getOwnPropertyNames;
8021 +var __getProtoOf = Object.getPrototypeOf;
8022 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8023 +var __export = (target, all) => {
8024 + for (var name in all)
8025 + __defProp(target, name, { get: all[name], enumerable: true });
8026 +};
8027 +var __copyProps = (to, from, except, desc) => {
8028 + if (from && typeof from === "object" || typeof from === "function") {
8029 + for (let key of __getOwnPropNames(from))
8030 + if (!__hasOwnProp.call(to, key) && key !== except)
8031 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8032 + }
8033 + return to;
8034 +};
8035 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
8036 + // If the importer is in node compatibility mode or this is not an ESM
8037 + // file that has been converted to a CommonJS file using a Babel-
8038 + // compatible transform (i.e. "__esModule" has not been set), then set
8039 + // "default" to the CommonJS "module.exports" for node compatibility.
8040 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
8041 + mod
8042 +));
8043 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8044 +
8045 +// src/useMutationState.ts
8046 +var useMutationState_exports = {};
8047 +__export(useMutationState_exports, {
8048 + useIsMutating: () => useIsMutating,
8049 + useMutationState: () => useMutationState
8050 +});
8051 +module.exports = __toCommonJS(useMutationState_exports);
8052 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
8053 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8054 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
8055 +function useIsMutating(filters, queryClient) {
8056 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
8057 + return useMutationState(
8058 + { filters: { ...filters, status: "pending" } },
8059 + client
8060 + ).length;
8061 +}
8062 +function getResult(mutationCache, options) {
8063 + return mutationCache.findAll(options.filters).map(
8064 + (mutation) => options.select ? options.select(mutation) : mutation.state
8065 + );
8066 +}
8067 +function useMutationState(options = {}, queryClient) {
8068 + const mutationCache = (0, import_QueryClientProvider.useQueryClient)(queryClient).getMutationCache();
8069 + const optionsRef = React.useRef(options);
8070 + const result = React.useRef(null);
8071 + if (!result.current) {
8072 + result.current = getResult(mutationCache, options);
8073 + }
8074 + React.useEffect(() => {
8075 + optionsRef.current = options;
8076 + });
8077 + return React.useSyncExternalStore(
8078 + React.useCallback(
8079 + (onStoreChange) => mutationCache.subscribe(() => {
8080 + const nextResult = (0, import_query_core.replaceEqualDeep)(
8081 + result.current,
8082 + getResult(mutationCache, optionsRef.current)
8083 + );
8084 + if (result.current !== nextResult) {
8085 + result.current = nextResult;
8086 + import_query_core.notifyManager.schedule(onStoreChange);
8087 + }
8088 + }),
8089 + [mutationCache]
8090 + ),
8091 + () => result.current,
8092 + () => result.current
8093 + );
8094 +}
8095 +// Annotate the CommonJS export names for ESM import in node:
8096 +0 && (0);
8097 +//# sourceMappingURL=useMutationState.cjs.map
8098 +
8099 +/***/ }),
8100 +
8101 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs":
8102 +/*!*************************************************************************!*\
8103 + !*** ../node_modules/@tanstack/react-query/build/modern/useQueries.cjs ***!
8104 + \*************************************************************************/
8105 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8106 +
8107 +"use strict";
8108 +
8109 +"use client";
8110 +var __create = Object.create;
8111 +var __defProp = Object.defineProperty;
8112 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8113 +var __getOwnPropNames = Object.getOwnPropertyNames;
8114 +var __getProtoOf = Object.getPrototypeOf;
8115 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8116 +var __export = (target, all) => {
8117 + for (var name in all)
8118 + __defProp(target, name, { get: all[name], enumerable: true });
8119 +};
8120 +var __copyProps = (to, from, except, desc) => {
8121 + if (from && typeof from === "object" || typeof from === "function") {
8122 + for (let key of __getOwnPropNames(from))
8123 + if (!__hasOwnProp.call(to, key) && key !== except)
8124 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8125 + }
8126 + return to;
8127 +};
8128 +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
8129 + // If the importer is in node compatibility mode or this is not an ESM
8130 + // file that has been converted to a CommonJS file using a Babel-
8131 + // compatible transform (i.e. "__esModule" has not been set), then set
8132 + // "default" to the CommonJS "module.exports" for node compatibility.
8133 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
8134 + mod
8135 +));
8136 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8137 +
8138 +// src/useQueries.ts
8139 +var useQueries_exports = {};
8140 +__export(useQueries_exports, {
8141 + useQueries: () => useQueries
8142 +});
8143 +module.exports = __toCommonJS(useQueries_exports);
8144 +var React = __toESM(__webpack_require__(/*! react */ "react"), 1);
8145 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8146 +var import_QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
8147 +var import_isRestoring = __webpack_require__(/*! ./isRestoring.cjs */ "../node_modules/@tanstack/react-query/build/modern/isRestoring.cjs");
8148 +var import_QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.cjs */ "../node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs");
8149 +var import_errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.cjs */ "../node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs");
8150 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8151 +function useQueries({
8152 + queries,
8153 + ...options
8154 +}, queryClient) {
8155 + const client = (0, import_QueryClientProvider.useQueryClient)(queryClient);
8156 + const isRestoring = (0, import_isRestoring.useIsRestoring)();
8157 + const errorResetBoundary = (0, import_QueryErrorResetBoundary.useQueryErrorResetBoundary)();
8158 + const defaultedQueries = React.useMemo(
8159 + () => queries.map((opts) => {
8160 + const defaultedOptions = client.defaultQueryOptions(
8161 + opts
8162 + );
8163 + defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
8164 + return defaultedOptions;
8165 + }),
8166 + [queries, client, isRestoring]
8167 + );
8168 + defaultedQueries.forEach((query) => {
8169 + (0, import_suspense.ensureStaleTime)(query);
8170 + (0, import_errorBoundaryUtils.ensurePreventErrorBoundaryRetry)(query, errorResetBoundary);
8171 + });
8172 + (0, import_errorBoundaryUtils.useClearResetErrorBoundary)(errorResetBoundary);
8173 + const [observer] = React.useState(
8174 + () => new import_query_core.QueriesObserver(
8175 + client,
8176 + defaultedQueries,
8177 + options
8178 + )
8179 + );
8180 + const [optimisticResult, getCombinedResult, trackResult] = observer.getOptimisticResult(
8181 + defaultedQueries,
8182 + options.combine
8183 + );
8184 + React.useSyncExternalStore(
8185 + React.useCallback(
8186 + (onStoreChange) => isRestoring ? () => void 0 : observer.subscribe(import_query_core.notifyManager.batchCalls(onStoreChange)),
8187 + [observer, isRestoring]
8188 + ),
8189 + () => observer.getCurrentResult(),
8190 + () => observer.getCurrentResult()
8191 + );
8192 + React.useEffect(() => {
8193 + observer.setQueries(
8194 + defaultedQueries,
8195 + options,
8196 + {
8197 + listeners: false
8198 + }
8199 + );
8200 + }, [defaultedQueries, options, observer]);
8201 + const shouldAtLeastOneSuspend = optimisticResult.some(
8202 + (result, index) => (0, import_suspense.shouldSuspend)(defaultedQueries[index], result)
8203 + );
8204 + const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => {
8205 + const opts = defaultedQueries[index];
8206 + if (opts) {
8207 + const queryObserver = new import_query_core.QueryObserver(client, opts);
8208 + if ((0, import_suspense.shouldSuspend)(opts, result)) {
8209 + return (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
8210 + } else if ((0, import_suspense.willFetch)(result, isRestoring)) {
8211 + void (0, import_suspense.fetchOptimistic)(opts, queryObserver, errorResetBoundary);
8212 + }
8213 + }
8214 + return [];
8215 + }) : [];
8216 + if (suspensePromises.length > 0) {
8217 + throw Promise.all(suspensePromises);
8218 + }
8219 + const firstSingleResultWhichShouldThrow = optimisticResult.find(
8220 + (result, index) => {
8221 + const query = defaultedQueries[index];
8222 + return query && (0, import_errorBoundaryUtils.getHasError)({
8223 + result,
8224 + errorResetBoundary,
8225 + throwOnError: query.throwOnError,
8226 + query: client.getQueryCache().get(query.queryHash)
8227 + });
8228 + }
8229 + );
8230 + if (firstSingleResultWhichShouldThrow?.error) {
8231 + throw firstSingleResultWhichShouldThrow.error;
8232 + }
8233 + return getCombinedResult(trackResult());
8234 +}
8235 +// Annotate the CommonJS export names for ESM import in node:
8236 +0 && (0);
8237 +//# sourceMappingURL=useQueries.cjs.map
8238 +
8239 +/***/ }),
8240 +
8241 +/***/ "../node_modules/@tanstack/react-query/build/modern/useQuery.cjs":
8242 +/*!***********************************************************************!*\
8243 + !*** ../node_modules/@tanstack/react-query/build/modern/useQuery.cjs ***!
8244 + \***********************************************************************/
8245 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8246 +
8247 +"use strict";
8248 +
8249 +"use client";
8250 +var __defProp = Object.defineProperty;
8251 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8252 +var __getOwnPropNames = Object.getOwnPropertyNames;
8253 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8254 +var __export = (target, all) => {
8255 + for (var name in all)
8256 + __defProp(target, name, { get: all[name], enumerable: true });
8257 +};
8258 +var __copyProps = (to, from, except, desc) => {
8259 + if (from && typeof from === "object" || typeof from === "function") {
8260 + for (let key of __getOwnPropNames(from))
8261 + if (!__hasOwnProp.call(to, key) && key !== except)
8262 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8263 + }
8264 + return to;
8265 +};
8266 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8267 +
8268 +// src/useQuery.ts
8269 +var useQuery_exports = {};
8270 +__export(useQuery_exports, {
8271 + useQuery: () => useQuery
8272 +});
8273 +module.exports = __toCommonJS(useQuery_exports);
8274 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8275 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8276 +function useQuery(options, queryClient) {
8277 + return (0, import_useBaseQuery.useBaseQuery)(options, import_query_core.QueryObserver, queryClient);
8278 +}
8279 +// Annotate the CommonJS export names for ESM import in node:
8280 +0 && (0);
8281 +//# sourceMappingURL=useQuery.cjs.map
8282 +
8283 +/***/ }),
8284 +
8285 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs":
8286 +/*!***************************************************************************************!*\
8287 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs ***!
8288 + \***************************************************************************************/
8289 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8290 +
8291 +"use strict";
8292 +
8293 +"use client";
8294 +var __defProp = Object.defineProperty;
8295 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8296 +var __getOwnPropNames = Object.getOwnPropertyNames;
8297 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8298 +var __export = (target, all) => {
8299 + for (var name in all)
8300 + __defProp(target, name, { get: all[name], enumerable: true });
8301 +};
8302 +var __copyProps = (to, from, except, desc) => {
8303 + if (from && typeof from === "object" || typeof from === "function") {
8304 + for (let key of __getOwnPropNames(from))
8305 + if (!__hasOwnProp.call(to, key) && key !== except)
8306 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8307 + }
8308 + return to;
8309 +};
8310 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8311 +
8312 +// src/useSuspenseInfiniteQuery.ts
8313 +var useSuspenseInfiniteQuery_exports = {};
8314 +__export(useSuspenseInfiniteQuery_exports, {
8315 + useSuspenseInfiniteQuery: () => useSuspenseInfiniteQuery
8316 +});
8317 +module.exports = __toCommonJS(useSuspenseInfiniteQuery_exports);
8318 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8319 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8320 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8321 +function useSuspenseInfiniteQuery(options, queryClient) {
8322 + return (0, import_useBaseQuery.useBaseQuery)(
8323 + {
8324 + ...options,
8325 + enabled: true,
8326 + suspense: true,
8327 + throwOnError: import_suspense.defaultThrowOnError
8328 + },
8329 + import_query_core.InfiniteQueryObserver,
8330 + queryClient
8331 + );
8332 +}
8333 +// Annotate the CommonJS export names for ESM import in node:
8334 +0 && (0);
8335 +//# sourceMappingURL=useSuspenseInfiniteQuery.cjs.map
8336 +
8337 +/***/ }),
8338 +
8339 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs":
8340 +/*!*********************************************************************************!*\
8341 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.cjs ***!
8342 + \*********************************************************************************/
8343 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8344 +
8345 +"use strict";
8346 +
8347 +"use client";
8348 +var __defProp = Object.defineProperty;
8349 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8350 +var __getOwnPropNames = Object.getOwnPropertyNames;
8351 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8352 +var __export = (target, all) => {
8353 + for (var name in all)
8354 + __defProp(target, name, { get: all[name], enumerable: true });
8355 +};
8356 +var __copyProps = (to, from, except, desc) => {
8357 + if (from && typeof from === "object" || typeof from === "function") {
8358 + for (let key of __getOwnPropNames(from))
8359 + if (!__hasOwnProp.call(to, key) && key !== except)
8360 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8361 + }
8362 + return to;
8363 +};
8364 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8365 +
8366 +// src/useSuspenseQueries.ts
8367 +var useSuspenseQueries_exports = {};
8368 +__export(useSuspenseQueries_exports, {
8369 + useSuspenseQueries: () => useSuspenseQueries
8370 +});
8371 +module.exports = __toCommonJS(useSuspenseQueries_exports);
8372 +var import_useQueries = __webpack_require__(/*! ./useQueries.cjs */ "../node_modules/@tanstack/react-query/build/modern/useQueries.cjs");
8373 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8374 +function useSuspenseQueries(options, queryClient) {
8375 + return (0, import_useQueries.useQueries)(
8376 + {
8377 + ...options,
8378 + queries: options.queries.map((query) => ({
8379 + ...query,
8380 + suspense: true,
8381 + throwOnError: import_suspense.defaultThrowOnError,
8382 + enabled: true,
8383 + placeholderData: void 0
8384 + }))
8385 + },
8386 + queryClient
8387 + );
8388 +}
8389 +// Annotate the CommonJS export names for ESM import in node:
8390 +0 && (0);
8391 +//# sourceMappingURL=useSuspenseQueries.cjs.map
8392 +
8393 +/***/ }),
8394 +
8395 +/***/ "../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs":
8396 +/*!*******************************************************************************!*\
8397 + !*** ../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.cjs ***!
8398 + \*******************************************************************************/
8399 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8400 +
8401 +"use strict";
8402 +
8403 +"use client";
8404 +var __defProp = Object.defineProperty;
8405 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8406 +var __getOwnPropNames = Object.getOwnPropertyNames;
8407 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8408 +var __export = (target, all) => {
8409 + for (var name in all)
8410 + __defProp(target, name, { get: all[name], enumerable: true });
8411 +};
8412 +var __copyProps = (to, from, except, desc) => {
8413 + if (from && typeof from === "object" || typeof from === "function") {
8414 + for (let key of __getOwnPropNames(from))
8415 + if (!__hasOwnProp.call(to, key) && key !== except)
8416 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8417 + }
8418 + return to;
8419 +};
8420 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8421 +
8422 +// src/useSuspenseQuery.ts
8423 +var useSuspenseQuery_exports = {};
8424 +__export(useSuspenseQuery_exports, {
8425 + useSuspenseQuery: () => useSuspenseQuery
8426 +});
8427 +module.exports = __toCommonJS(useSuspenseQuery_exports);
8428 +var import_query_core = __webpack_require__(/*! @tanstack/query-core */ "../node_modules/@tanstack/query-core/build/modern/index.cjs");
8429 +var import_useBaseQuery = __webpack_require__(/*! ./useBaseQuery.cjs */ "../node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs");
8430 +var import_suspense = __webpack_require__(/*! ./suspense.cjs */ "../node_modules/@tanstack/react-query/build/modern/suspense.cjs");
8431 +function useSuspenseQuery(options, queryClient) {
8432 + if (true) {
8433 + if (options.queryFn === import_query_core.skipToken) {
8434 + console.error("skipToken is not allowed for useSuspenseQuery");
8435 + }
8436 + }
8437 + return (0, import_useBaseQuery.useBaseQuery)(
8438 + {
8439 + ...options,
8440 + enabled: true,
8441 + suspense: true,
8442 + throwOnError: import_suspense.defaultThrowOnError,
8443 + placeholderData: void 0
8444 + },
8445 + import_query_core.QueryObserver,
8446 + queryClient
8447 + );
8448 +}
8449 +// Annotate the CommonJS export names for ESM import in node:
8450 +0 && (0);
8451 +//# sourceMappingURL=useSuspenseQuery.cjs.map
8452 +
8453 +/***/ }),
8454 +
8455 +/***/ "../node_modules/@tanstack/react-query/build/modern/utils.cjs":
8456 +/*!********************************************************************!*\
8457 + !*** ../node_modules/@tanstack/react-query/build/modern/utils.cjs ***!
8458 + \********************************************************************/
8459 +/***/ ((module) => {
8460 +
8461 +"use strict";
8462 +
8463 +var __defProp = Object.defineProperty;
8464 +var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8465 +var __getOwnPropNames = Object.getOwnPropertyNames;
8466 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8467 +var __export = (target, all) => {
8468 + for (var name in all)
8469 + __defProp(target, name, { get: all[name], enumerable: true });
8470 +};
8471 +var __copyProps = (to, from, except, desc) => {
8472 + if (from && typeof from === "object" || typeof from === "function") {
8473 + for (let key of __getOwnPropNames(from))
8474 + if (!__hasOwnProp.call(to, key) && key !== except)
8475 + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
8476 + }
8477 + return to;
8478 +};
8479 +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8480 +
8481 +// src/utils.ts
8482 +var utils_exports = {};
8483 +__export(utils_exports, {
8484 + noop: () => noop,
8485 + shouldThrowError: () => shouldThrowError
8486 +});
8487 +module.exports = __toCommonJS(utils_exports);
8488 +function shouldThrowError(throwError, params) {
8489 + if (typeof throwError === "function") {
8490 + return throwError(...params);
8491 + }
8492 + return !!throwError;
8493 +}
8494 +function noop() {
8495 +}
8496 +// Annotate the CommonJS export names for ESM import in node:
8497 +0 && (0);
8498 +//# sourceMappingURL=utils.cjs.map
8499 +
8500 +/***/ })
8501 +
8502 +/******/ });
8503 +/************************************************************************/
8504 +/******/ // The module cache
8505 +/******/ var __webpack_module_cache__ = {};
8506 +/******/
8507 +/******/ // The require function
8508 +/******/ function __webpack_require__(moduleId) {
8509 +/******/ // Check if module is in cache
8510 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
8511 +/******/ if (cachedModule !== undefined) {
8512 +/******/ return cachedModule.exports;
8513 +/******/ }
8514 +/******/ // Create a new module (and put it into the cache)
8515 +/******/ var module = __webpack_module_cache__[moduleId] = {
8516 +/******/ // no module.id needed
8517 +/******/ // no module.loaded needed
8518 +/******/ exports: {}
8519 +/******/ };
8520 +/******/
8521 +/******/ // Execute the module function
8522 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
8523 +/******/
8524 +/******/ // Return the exports of the module
8525 +/******/ return module.exports;
8526 +/******/ }
8527 +/******/
8528 +/************************************************************************/
8529 +var __webpack_exports__ = {};
8530 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
8531 +(() => {
8532 +"use strict";
8533 +/*!****************************************************!*\
8534 + !*** ../modules/notifications/assets/js/editor.js ***!
8535 + \****************************************************/
8536 +
8537 +
8538 +var _editorV = __webpack_require__(/*! ./components/editor-v1 */ "../modules/notifications/assets/js/components/editor-v1.js");
8539 +var _editorV2 = __webpack_require__(/*! ./components/editor-v2 */ "../modules/notifications/assets/js/components/editor-v2.js");
8540 +var _window, _window$elementorV;
8541 +if ((_window = window) !== null && _window !== void 0 && (_window$elementorV = _window.elementorV2) !== null && _window$elementorV !== void 0 && _window$elementorV.editorAppBar) {
8542 + (0, _editorV2.editorV2)();
8543 +} else {
8544 + (0, _editorV.editorV1)();
8545 +}
8546 +})();
8547 +
8548 +/******/ })()
8549 +;
1578 8550 //# sourceMappingURL=editor-notifications.js.map