78 /******/ }; |
78 /******/ }; |
79 /******/ })(); |
79 /******/ })(); |
80 /******/ |
80 /******/ |
81 /************************************************************************/ |
81 /************************************************************************/ |
82 var __webpack_exports__ = {}; |
82 var __webpack_exports__ = {}; |
83 // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. |
|
84 (() => { |
|
85 // ESM COMPAT FLAG |
83 // ESM COMPAT FLAG |
86 __webpack_require__.r(__webpack_exports__); |
84 __webpack_require__.r(__webpack_exports__); |
87 |
85 |
88 // EXPORTS |
86 // EXPORTS |
89 __webpack_require__.d(__webpack_exports__, { |
87 __webpack_require__.d(__webpack_exports__, { |
132 useState: () => (/* reexport */ external_React_namespaceObject.useState), |
130 useState: () => (/* reexport */ external_React_namespaceObject.useState), |
133 useSyncExternalStore: () => (/* reexport */ external_React_namespaceObject.useSyncExternalStore), |
131 useSyncExternalStore: () => (/* reexport */ external_React_namespaceObject.useSyncExternalStore), |
134 useTransition: () => (/* reexport */ external_React_namespaceObject.useTransition) |
132 useTransition: () => (/* reexport */ external_React_namespaceObject.useTransition) |
135 }); |
133 }); |
136 |
134 |
137 ;// CONCATENATED MODULE: external "React" |
135 ;// external "React" |
138 const external_React_namespaceObject = window["React"]; |
136 const external_React_namespaceObject = window["React"]; |
139 ;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/create-interpolate-element.js |
137 ;// ./node_modules/@wordpress/element/build-module/create-interpolate-element.js |
140 /** |
138 /** |
141 * Internal dependencies |
139 * Internal dependencies |
142 */ |
140 */ |
143 |
141 |
144 |
142 |
444 } |
442 } |
445 output.push((0,external_React_namespaceObject.cloneElement)(element, null, ...children)); |
443 output.push((0,external_React_namespaceObject.cloneElement)(element, null, ...children)); |
446 } |
444 } |
447 /* harmony default export */ const create_interpolate_element = (createInterpolateElement); |
445 /* harmony default export */ const create_interpolate_element = (createInterpolateElement); |
448 |
446 |
449 ;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/react.js |
447 ;// ./node_modules/@wordpress/element/build-module/react.js |
450 /** |
448 /** |
451 * External dependencies |
449 * External dependencies |
452 */ |
450 */ |
453 // eslint-disable-next-line @typescript-eslint/no-restricted-imports |
451 // eslint-disable-next-line @typescript-eslint/no-restricted-imports |
454 |
452 |
470 * |
468 * |
471 * @typedef {import('react').SyntheticEvent} SyntheticEvent |
469 * @typedef {import('react').SyntheticEvent} SyntheticEvent |
472 */ |
470 */ |
473 |
471 |
474 /** |
472 /** |
475 * Object containing a React synthetic event. |
473 * Object containing a React ref object. |
476 * |
474 * |
477 * @template T |
475 * @template T |
478 * @typedef {import('react').RefObject<T>} RefObject<T> |
476 * @typedef {import('react').RefObject<T>} RefObject<T> |
|
477 */ |
|
478 |
|
479 /** |
|
480 * Object containing a React ref callback. |
|
481 * |
|
482 * @template T |
|
483 * @typedef {import('react').RefCallback<T>} RefCallback<T> |
|
484 */ |
|
485 |
|
486 /** |
|
487 * Object containing a React ref. |
|
488 * |
|
489 * @template T |
|
490 * @typedef {import('react').Ref<T>} Ref<T> |
479 */ |
491 */ |
480 |
492 |
481 /** |
493 /** |
482 * Object that provides utilities for dealing with React children. |
494 * Object that provides utilities for dealing with React children. |
483 */ |
495 */ |
556 * @return {boolean} true if objectToTest is a valid React Element and false otherwise. |
568 * @return {boolean} true if objectToTest is a valid React Element and false otherwise. |
557 */ |
569 */ |
558 |
570 |
559 |
571 |
560 /** |
572 /** |
561 * @see https://reactjs.org/docs/react-api.html#reactmemo |
573 * @see https://react.dev/reference/react/memo |
562 */ |
574 */ |
563 |
575 |
564 |
576 |
565 /** |
577 /** |
566 * Component that activates additional checks and warnings for its descendants. |
578 * Component that activates additional checks and warnings for its descendants. |
567 */ |
579 */ |
568 |
580 |
569 |
581 |
570 /** |
582 /** |
571 * @see https://reactjs.org/docs/hooks-reference.html#usecallback |
583 * @see https://react.dev/reference/react/useCallback |
572 */ |
584 */ |
573 |
585 |
574 |
586 |
575 /** |
587 /** |
576 * @see https://reactjs.org/docs/hooks-reference.html#usecontext |
588 * @see https://react.dev/reference/react/useContext |
577 */ |
589 */ |
578 |
590 |
579 |
591 |
580 /** |
592 /** |
581 * @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue |
593 * @see https://react.dev/reference/react/useDebugValue |
582 */ |
594 */ |
583 |
595 |
584 |
596 |
585 /** |
597 /** |
586 * @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue |
598 * @see https://react.dev/reference/react/useDeferredValue |
587 */ |
599 */ |
588 |
600 |
589 |
601 |
590 /** |
602 /** |
591 * @see https://reactjs.org/docs/hooks-reference.html#useeffect |
603 * @see https://react.dev/reference/react/useEffect |
592 */ |
604 */ |
593 |
605 |
594 |
606 |
595 /** |
607 /** |
596 * @see https://reactjs.org/docs/hooks-reference.html#useid |
608 * @see https://react.dev/reference/react/useId |
597 */ |
609 */ |
598 |
610 |
599 |
611 |
600 /** |
612 /** |
601 * @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle |
613 * @see https://react.dev/reference/react/useImperativeHandle |
602 */ |
614 */ |
603 |
615 |
604 |
616 |
605 /** |
617 /** |
606 * @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect |
618 * @see https://react.dev/reference/react/useInsertionEffect |
607 */ |
619 */ |
608 |
620 |
609 |
621 |
610 /** |
622 /** |
611 * @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect |
623 * @see https://react.dev/reference/react/useLayoutEffect |
612 */ |
624 */ |
613 |
625 |
614 |
626 |
615 /** |
627 /** |
616 * @see https://reactjs.org/docs/hooks-reference.html#usememo |
628 * @see https://react.dev/reference/react/useMemo |
617 */ |
629 */ |
618 |
630 |
619 |
631 |
620 /** |
632 /** |
621 * @see https://reactjs.org/docs/hooks-reference.html#usereducer |
633 * @see https://react.dev/reference/react/useReducer |
622 */ |
634 */ |
623 |
635 |
624 |
636 |
625 /** |
637 /** |
626 * @see https://reactjs.org/docs/hooks-reference.html#useref |
638 * @see https://react.dev/reference/react/useRef |
627 */ |
639 */ |
628 |
640 |
629 |
641 |
630 /** |
642 /** |
631 * @see https://reactjs.org/docs/hooks-reference.html#usestate |
643 * @see https://react.dev/reference/react/useState |
632 */ |
644 */ |
633 |
645 |
634 |
646 |
635 /** |
647 /** |
636 * @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore |
648 * @see https://react.dev/reference/react/useSyncExternalStore |
637 */ |
649 */ |
638 |
650 |
639 |
651 |
640 /** |
652 /** |
641 * @see https://reactjs.org/docs/hooks-reference.html#usetransition |
653 * @see https://react.dev/reference/react/useTransition |
642 */ |
654 */ |
643 |
655 |
644 |
656 |
645 /** |
657 /** |
646 * @see https://reactjs.org/docs/react-api.html#starttransition |
658 * @see https://react.dev/reference/react/startTransition |
647 */ |
659 */ |
648 |
660 |
649 |
661 |
650 /** |
662 /** |
651 * @see https://reactjs.org/docs/react-api.html#reactlazy |
663 * @see https://react.dev/reference/react/lazy |
652 */ |
664 */ |
653 |
665 |
654 |
666 |
655 /** |
667 /** |
656 * @see https://reactjs.org/docs/react-api.html#reactsuspense |
668 * @see https://react.dev/reference/react/Suspense |
657 */ |
669 */ |
658 |
670 |
659 |
671 |
660 /** |
672 /** |
661 * @see https://reactjs.org/docs/react-api.html#reactpurecomponent |
673 * @see https://react.dev/reference/react/PureComponent |
662 */ |
674 */ |
663 |
675 |
664 |
676 |
665 /** |
677 /** |
666 * Concatenate two or more React children objects. |
678 * Concatenate two or more React children objects. |
711 |
723 |
712 // EXTERNAL MODULE: external "ReactDOM" |
724 // EXTERNAL MODULE: external "ReactDOM" |
713 var external_ReactDOM_ = __webpack_require__(5795); |
725 var external_ReactDOM_ = __webpack_require__(5795); |
714 // EXTERNAL MODULE: ./node_modules/react-dom/client.js |
726 // EXTERNAL MODULE: ./node_modules/react-dom/client.js |
715 var client = __webpack_require__(4140); |
727 var client = __webpack_require__(4140); |
716 ;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/react-platform.js |
728 ;// ./node_modules/@wordpress/element/build-module/react-platform.js |
717 /** |
729 /** |
718 * External dependencies |
730 * External dependencies |
719 */ |
731 */ |
720 |
732 |
721 |
733 |
783 * @deprecated since WordPress 6.2.0. Use `root.unmount()` instead. |
795 * @deprecated since WordPress 6.2.0. Use `root.unmount()` instead. |
784 * @see https://react.dev/reference/react-dom/unmountComponentAtNode |
796 * @see https://react.dev/reference/react-dom/unmountComponentAtNode |
785 */ |
797 */ |
786 |
798 |
787 |
799 |
788 ;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/utils.js |
800 ;// ./node_modules/@wordpress/element/build-module/utils.js |
789 /** |
801 /** |
790 * Checks if the provided WP element is empty. |
802 * Checks if the provided WP element is empty. |
791 * |
803 * |
792 * @param {*} element WP element to check. |
804 * @param {*} element WP element to check. |
793 * @return {boolean} True when an element is considered empty. |
805 * @return {boolean} True when an element is considered empty. |
800 return !element.length; |
812 return !element.length; |
801 } |
813 } |
802 return !element; |
814 return !element; |
803 }; |
815 }; |
804 |
816 |
805 ;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/platform.js |
817 ;// ./node_modules/@wordpress/element/build-module/platform.js |
806 /** |
818 /** |
807 * Parts of this source were derived and modified from react-native-web, |
819 * Parts of this source were derived and modified from react-native-web, |
808 * released under the MIT license. |
820 * released under the MIT license. |
809 * |
821 * |
810 * Copyright (c) 2016-present, Nicolas Gallagher. |
822 * Copyright (c) 2016-present, Nicolas Gallagher. |
816 select: spec => 'web' in spec ? spec.web : spec.default, |
828 select: spec => 'web' in spec ? spec.web : spec.default, |
817 isWeb: true |
829 isWeb: true |
818 }; |
830 }; |
819 /** |
831 /** |
820 * Component used to detect the current Platform being used. |
832 * Component used to detect the current Platform being used. |
821 * Use Platform.OS === 'web' to detect if running on web enviroment. |
833 * Use Platform.OS === 'web' to detect if running on web environment. |
822 * |
834 * |
823 * This is the same concept as the React Native implementation. |
835 * This is the same concept as the React Native implementation. |
824 * |
836 * |
825 * @see https://reactnative.dev/docs/platform-specific-code#platform-module |
837 * @see https://reactnative.dev/docs/platform-specific-code#platform-module |
826 * |
838 * |
835 * } ); |
847 * } ); |
836 * ``` |
848 * ``` |
837 */ |
849 */ |
838 /* harmony default export */ const platform = (Platform); |
850 /* harmony default export */ const platform = (Platform); |
839 |
851 |
840 ;// CONCATENATED MODULE: ./node_modules/is-plain-object/dist/is-plain-object.mjs |
852 ;// ./node_modules/is-plain-object/dist/is-plain-object.mjs |
841 /*! |
853 /*! |
842 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> |
854 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> |
843 * |
855 * |
844 * Copyright (c) 2014-2017, Jon Schlinkert. |
856 * Copyright (c) 2014-2017, Jon Schlinkert. |
845 * Released under the MIT License. |
857 * Released under the MIT License. |
871 return true; |
883 return true; |
872 } |
884 } |
873 |
885 |
874 |
886 |
875 |
887 |
876 ;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs |
888 ;// ./node_modules/tslib/tslib.es6.mjs |
877 /****************************************************************************** |
889 /****************************************************************************** |
878 Copyright (c) Microsoft Corporation. |
890 Copyright (c) Microsoft Corporation. |
879 |
891 |
880 Permission to use, copy, modify, and/or distribute this software for any |
892 Permission to use, copy, modify, and/or distribute this software for any |
881 purpose with or without fee is hereby granted. |
893 purpose with or without fee is hereby granted. |
886 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
898 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
887 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
899 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
888 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
900 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
889 PERFORMANCE OF THIS SOFTWARE. |
901 PERFORMANCE OF THIS SOFTWARE. |
890 ***************************************************************************** */ |
902 ***************************************************************************** */ |
891 /* global Reflect, Promise, SuppressedError, Symbol */ |
903 /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ |
892 |
904 |
893 var extendStatics = function(d, b) { |
905 var extendStatics = function(d, b) { |
894 extendStatics = Object.setPrototypeOf || |
906 extendStatics = Object.setPrototypeOf || |
895 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
907 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
896 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; |
908 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; |
997 step((generator = generator.apply(thisArg, _arguments || [])).next()); |
1009 step((generator = generator.apply(thisArg, _arguments || [])).next()); |
998 }); |
1010 }); |
999 } |
1011 } |
1000 |
1012 |
1001 function __generator(thisArg, body) { |
1013 function __generator(thisArg, body) { |
1002 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; |
1014 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); |
1003 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; |
1015 return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; |
1004 function verb(n) { return function (v) { return step([n, v]); }; } |
1016 function verb(n) { return function (v) { return step([n, v]); }; } |
1005 function step(op) { |
1017 function step(op) { |
1006 if (f) throw new TypeError("Generator is already executing."); |
1018 if (f) throw new TypeError("Generator is already executing."); |
1007 while (g && (g = 0, op[0] && (_ = 0)), _) try { |
1019 while (g && (g = 0, op[0] && (_ = 0)), _) try { |
1008 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; |
1020 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; |
1102 } |
1114 } |
1103 |
1115 |
1104 function __asyncGenerator(thisArg, _arguments, generator) { |
1116 function __asyncGenerator(thisArg, _arguments, generator) { |
1105 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
1117 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); |
1106 var g = generator.apply(thisArg, _arguments || []), i, q = []; |
1118 var g = generator.apply(thisArg, _arguments || []), i, q = []; |
1107 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; |
1119 return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; |
1108 function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } |
1120 function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } |
|
1121 function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } |
1109 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } |
1122 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } |
1110 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
1123 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
1111 function fulfill(value) { resume("next", value); } |
1124 function fulfill(value) { resume("next", value); } |
1112 function reject(value) { resume("throw", value); } |
1125 function reject(value) { resume("throw", value); } |
1113 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } |
1126 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } |
1136 Object.defineProperty(o, "default", { enumerable: true, value: v }); |
1149 Object.defineProperty(o, "default", { enumerable: true, value: v }); |
1137 }) : function(o, v) { |
1150 }) : function(o, v) { |
1138 o["default"] = v; |
1151 o["default"] = v; |
1139 }; |
1152 }; |
1140 |
1153 |
|
1154 var ownKeys = function(o) { |
|
1155 ownKeys = Object.getOwnPropertyNames || function (o) { |
|
1156 var ar = []; |
|
1157 for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; |
|
1158 return ar; |
|
1159 }; |
|
1160 return ownKeys(o); |
|
1161 }; |
|
1162 |
1141 function __importStar(mod) { |
1163 function __importStar(mod) { |
1142 if (mod && mod.__esModule) return mod; |
1164 if (mod && mod.__esModule) return mod; |
1143 var result = {}; |
1165 var result = {}; |
1144 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
1166 if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); |
1145 __setModuleDefault(result, mod); |
1167 __setModuleDefault(result, mod); |
1146 return result; |
1168 return result; |
1147 } |
1169 } |
1148 |
1170 |
1149 function __importDefault(mod) { |
1171 function __importDefault(mod) { |
1169 } |
1191 } |
1170 |
1192 |
1171 function __addDisposableResource(env, value, async) { |
1193 function __addDisposableResource(env, value, async) { |
1172 if (value !== null && value !== void 0) { |
1194 if (value !== null && value !== void 0) { |
1173 if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); |
1195 if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); |
1174 var dispose; |
1196 var dispose, inner; |
1175 if (async) { |
1197 if (async) { |
1176 if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); |
1198 if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); |
1177 dispose = value[Symbol.asyncDispose]; |
1199 dispose = value[Symbol.asyncDispose]; |
1178 } |
1200 } |
1179 if (dispose === void 0) { |
1201 if (dispose === void 0) { |
1180 if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); |
1202 if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); |
1181 dispose = value[Symbol.dispose]; |
1203 dispose = value[Symbol.dispose]; |
|
1204 if (async) inner = dispose; |
1182 } |
1205 } |
1183 if (typeof dispose !== "function") throw new TypeError("Object not disposable."); |
1206 if (typeof dispose !== "function") throw new TypeError("Object not disposable."); |
|
1207 if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; |
1184 env.stack.push({ value: value, dispose: dispose, async: async }); |
1208 env.stack.push({ value: value, dispose: dispose, async: async }); |
1185 } |
1209 } |
1186 else if (async) { |
1210 else if (async) { |
1187 env.stack.push({ async: true }); |
1211 env.stack.push({ async: true }); |
1188 } |
1212 } |
1197 function __disposeResources(env) { |
1221 function __disposeResources(env) { |
1198 function fail(e) { |
1222 function fail(e) { |
1199 env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; |
1223 env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; |
1200 env.hasError = true; |
1224 env.hasError = true; |
1201 } |
1225 } |
|
1226 var r, s = 0; |
1202 function next() { |
1227 function next() { |
1203 while (env.stack.length) { |
1228 while (r = env.stack.pop()) { |
1204 var rec = env.stack.pop(); |
|
1205 try { |
1229 try { |
1206 var result = rec.dispose && rec.dispose.call(rec.value); |
1230 if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); |
1207 if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); |
1231 if (r.dispose) { |
|
1232 var result = r.dispose.call(r.value); |
|
1233 if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); |
|
1234 } |
|
1235 else s |= 1; |
1208 } |
1236 } |
1209 catch (e) { |
1237 catch (e) { |
1210 fail(e); |
1238 fail(e); |
1211 } |
1239 } |
1212 } |
1240 } |
|
1241 if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); |
1213 if (env.hasError) throw env.error; |
1242 if (env.hasError) throw env.error; |
1214 } |
1243 } |
1215 return next(); |
1244 return next(); |
|
1245 } |
|
1246 |
|
1247 function __rewriteRelativeImportExtension(path, preserveJsx) { |
|
1248 if (typeof path === "string" && /^\.\.?\//.test(path)) { |
|
1249 return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { |
|
1250 return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); |
|
1251 }); |
|
1252 } |
|
1253 return path; |
1216 } |
1254 } |
1217 |
1255 |
1218 /* harmony default export */ const tslib_es6 = ({ |
1256 /* harmony default export */ const tslib_es6 = ({ |
1219 __extends, |
1257 __extends, |
1220 __assign, |
1258 __assign, |
1221 __rest, |
1259 __rest, |
1222 __decorate, |
1260 __decorate, |
1223 __param, |
1261 __param, |
|
1262 __esDecorate, |
|
1263 __runInitializers, |
|
1264 __propKey, |
|
1265 __setFunctionName, |
1224 __metadata, |
1266 __metadata, |
1225 __awaiter, |
1267 __awaiter, |
1226 __generator, |
1268 __generator, |
1227 __createBinding, |
1269 __createBinding, |
1228 __exportStar, |
1270 __exportStar, |
1241 __classPrivateFieldGet, |
1283 __classPrivateFieldGet, |
1242 __classPrivateFieldSet, |
1284 __classPrivateFieldSet, |
1243 __classPrivateFieldIn, |
1285 __classPrivateFieldIn, |
1244 __addDisposableResource, |
1286 __addDisposableResource, |
1245 __disposeResources, |
1287 __disposeResources, |
|
1288 __rewriteRelativeImportExtension, |
1246 }); |
1289 }); |
1247 |
1290 |
1248 ;// CONCATENATED MODULE: ./node_modules/lower-case/dist.es2015/index.js |
1291 ;// ./node_modules/lower-case/dist.es2015/index.js |
1249 /** |
1292 /** |
1250 * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt |
1293 * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt |
1251 */ |
1294 */ |
1252 var SUPPORTED_LOCALE = { |
1295 var SUPPORTED_LOCALE = { |
1253 tr: { |
1296 tr: { |
1292 */ |
1335 */ |
1293 function lowerCase(str) { |
1336 function lowerCase(str) { |
1294 return str.toLowerCase(); |
1337 return str.toLowerCase(); |
1295 } |
1338 } |
1296 |
1339 |
1297 ;// CONCATENATED MODULE: ./node_modules/no-case/dist.es2015/index.js |
1340 ;// ./node_modules/no-case/dist.es2015/index.js |
1298 |
1341 |
1299 // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). |
1342 // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case"). |
1300 var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; |
1343 var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g]; |
1301 // Remove all non-word characters. |
1344 // Remove all non-word characters. |
1302 var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; |
1345 var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi; |
1324 if (re instanceof RegExp) |
1367 if (re instanceof RegExp) |
1325 return input.replace(re, value); |
1368 return input.replace(re, value); |
1326 return re.reduce(function (input, re) { return input.replace(re, value); }, input); |
1369 return re.reduce(function (input, re) { return input.replace(re, value); }, input); |
1327 } |
1370 } |
1328 |
1371 |
1329 ;// CONCATENATED MODULE: ./node_modules/dot-case/dist.es2015/index.js |
1372 ;// ./node_modules/dot-case/dist.es2015/index.js |
1330 |
1373 |
1331 |
1374 |
1332 function dotCase(input, options) { |
1375 function dotCase(input, options) { |
1333 if (options === void 0) { options = {}; } |
1376 if (options === void 0) { options = {}; } |
1334 return noCase(input, __assign({ delimiter: "." }, options)); |
1377 return noCase(input, __assign({ delimiter: "." }, options)); |
1335 } |
1378 } |
1336 |
1379 |
1337 ;// CONCATENATED MODULE: ./node_modules/param-case/dist.es2015/index.js |
1380 ;// ./node_modules/param-case/dist.es2015/index.js |
1338 |
1381 |
1339 |
1382 |
1340 function paramCase(input, options) { |
1383 function paramCase(input, options) { |
1341 if (options === void 0) { options = {}; } |
1384 if (options === void 0) { options = {}; } |
1342 return dotCase(input, __assign({ delimiter: "-" }, options)); |
1385 return dotCase(input, __assign({ delimiter: "-" }, options)); |
1343 } |
1386 } |
1344 |
1387 |
1345 ;// CONCATENATED MODULE: external ["wp","escapeHtml"] |
1388 ;// external ["wp","escapeHtml"] |
1346 const external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"]; |
1389 const external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"]; |
1347 ;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/raw-html.js |
1390 ;// ./node_modules/@wordpress/element/build-module/raw-html.js |
1348 /** |
1391 /** |
1349 * Internal dependencies |
1392 * Internal dependencies |
1350 */ |
1393 */ |
1351 |
1394 |
1352 |
1395 |
1763 * @param {Object} [legacyContext] Legacy context object. |
1806 * @param {Object} [legacyContext] Legacy context object. |
1764 * |
1807 * |
1765 * @return {string} Serialized element |
1808 * @return {string} Serialized element |
1766 */ |
1809 */ |
1767 function renderComponent(Component, props, context, legacyContext = {}) { |
1810 function renderComponent(Component, props, context, legacyContext = {}) { |
1768 const instance = new ( /** @type {import('react').ComponentClass} */ |
1811 const instance = new (/** @type {import('react').ComponentClass} */ |
1769 Component)(props, legacyContext); |
1812 Component)(props, legacyContext); |
1770 if (typeof |
1813 if (typeof |
1771 // Ignore reason: Current prettier reformats parens and mangles type assertion |
1814 // Ignore reason: Current prettier reformats parens and mangles type assertion |
1772 // prettier-ignore |
1815 // prettier-ignore |
1773 /** @type {{getChildContext?: () => unknown}} */ |
1816 /** @type {{getChildContext?: () => unknown}} */ |