Version Description
- Moved
advanced-sidebar-menu
CSS class to block widget wraps. - Introduced
isScreen
helper to make screen conditionals cleaner. - Included "Display each single post's categories" option on the customizer screen.
- Included PHP version in debug information.
- Improved readme.
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 9.0.2 |
Comparing to | |
See all releases |
Code changes from version 9.0.1 to 9.0.2
- advanced-sidebar-menu.php +2 -2
- js/dist/admin.css.map +1 -1
- js/dist/admin.js +1990 -200
- js/dist/admin.js.map +1 -1
- js/dist/admin.min.js +1 -1
- js/dist/manifest.json +1 -1
- languages/advanced-sidebar-menu-de_DE.mo +0 -0
- languages/advanced-sidebar-menu-de_DE.po +4 -4
- languages/advanced-sidebar-menu-es_ES.mo +0 -0
- languages/advanced-sidebar-menu-es_ES.po +4 -4
- languages/advanced-sidebar-menu-fr_FR.mo +0 -0
- languages/advanced-sidebar-menu-fr_FR.po +4 -4
- languages/advanced-sidebar-menu.pot +3 -3
- readme.txt +14 -8
- resources/blocks/category/block.json +1 -1
- resources/blocks/pages/block.json +1 -1
- src/Blocks/Block_Abstract.php +15 -3
- src/Blocks/Categories.php +1 -1
- src/Blocks/Pages.php +1 -1
- src/Debug.php +32 -11
- src/Scripts.php +1 -6
- src/Widget/Category.php +1 -1
- src/Widget/Page.php +1 -1
advanced-sidebar-menu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
|
5 |
* Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
* Author: OnPoint Plugins
|
7 |
-
* Version: 9.0.
|
8 |
* Author URI: https://onpointplugins.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
* Domain Path: /languages/
|
@@ -19,7 +19,7 @@ if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
|
|
19 |
return;
|
20 |
}
|
21 |
|
22 |
-
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '9.0.
|
23 |
define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '9.0.0' );
|
24 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
|
25 |
define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
|
4 |
* Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
|
5 |
* Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
* Author: OnPoint Plugins
|
7 |
+
* Version: 9.0.2
|
8 |
* Author URI: https://onpointplugins.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
* Domain Path: /languages/
|
19 |
return;
|
20 |
}
|
21 |
|
22 |
+
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '9.0.2' );
|
23 |
define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '9.0.0' );
|
24 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
|
25 |
define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
|
js/dist/admin.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"admin.css","mappings":"AAAA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B,eAAe;EACf;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT;AACF;AACA;EACE;AACF,C;ACzCA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,WAAW;EACX;AACF,C;ACVA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/%3Cinput%20css%
|
1 |
+
{"version":3,"file":"admin.css","mappings":"AAAA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B,eAAe;EACf;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT;AACF;AACA;EACE;AACF,C;ACzCA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,WAAW;EACX;AACF,C;ACVA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/%3Cinput%20css%20iALJnA%3E","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/%3Cinput%20css%20Stgdji%3E","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/%3Cinput%20css%20ULcO4g%3E"],"sourcesContent":[".placeholder :global(.components-placeholder__label) {\n /* stylelint-disable-line */\n flex-direction: column;\n width: 100%\n}\n.placeholder :global(.components-placeholder__instructions) {\n display: block !important\n}\n.placeholder :global(.components-placeholder__instructions) {\n /* stylelint-disable-line */\n text-align: center;\n width: 100%\n}\n.placeholder :global(.dashicons) {\n font-size: 30px;\n height: 35px;\n width: 35px\n}\n.placeholder :global(.components-placeholder__fieldset) {\n /* stylelint-disable-line */\n text-align: center\n}\n.error {\n padding: 10px;\n margin: 2px;\n border: 4px double #d63638;\n font-size: 14px;\n font-weight: 600\n}\n.spin-wrap {\n position: relative;\n min-height: 100px\n}\n.spin {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -9px 0 0 -9px\n}\n.spin-content {\n opacity: .2\n}",".wrap ul {\n margin-block-end: 1em\n}\n.wrap li {\n list-style: disc;\n margin: 0 0 0 15px\n}\n.button {\n width: 100%;\n justify-content: center\n}",".error {\n padding: 10px;\n margin: 2px;\n border: 4px double #d63638;\n font-weight: 600\n}"],"names":[],"sourceRoot":""}
|
js/dist/admin.js
CHANGED
@@ -421,9 +421,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
421 |
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__);
|
422 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
423 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);
|
424 |
-
/* harmony import */ var
|
425 |
-
/* harmony import */ var
|
426 |
-
/* harmony import */ var
|
|
|
427 |
/* provided dependency */ var $ = __webpack_require__(/*! jquery */ "jquery");
|
428 |
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
429 |
|
@@ -438,6 +439,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
438 |
|
439 |
|
440 |
|
|
|
441 |
/**
|
442 |
* Sanitize a client id for use as an HTML id.
|
443 |
*
|
@@ -455,14 +457,14 @@ const sanitizeClientId = clientId => {
|
|
455 |
*/
|
456 |
|
457 |
const getSidebarId = clientId => {
|
458 |
-
if ('widgets'
|
459 |
return '';
|
460 |
}
|
461 |
|
462 |
-
const rootId = (0,
|
463 |
|
464 |
if (rootId) {
|
465 |
-
const ParentBlock = (0,
|
466 |
|
467 |
if (ParentBlock[0] && 'core/widget-area' === ParentBlock[0].name) {
|
468 |
return ParentBlock[0]?.attributes?.id;
|
@@ -479,21 +481,21 @@ const getSidebarId = clientId => {
|
|
479 |
|
480 |
|
481 |
const Page = () => /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Placeholder, {
|
482 |
-
className:
|
483 |
icon: 'welcome-widgets-menus',
|
484 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('Advanced Sidebar - Pages', 'advanced-sidebar-menu'),
|
485 |
instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('No preview available', 'advanced-sidebar-menu')
|
486 |
});
|
487 |
|
488 |
const Category = () => /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Placeholder, {
|
489 |
-
className:
|
490 |
icon: 'welcome-widgets-menus',
|
491 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('Advanced Sidebar - Categories', 'advanced-sidebar-menu'),
|
492 |
instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('No preview available', 'advanced-sidebar-menu')
|
493 |
});
|
494 |
|
495 |
const Navigation = () => /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Placeholder, {
|
496 |
-
className:
|
497 |
icon: 'welcome-widgets-menus',
|
498 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('Advanced Sidebar - Navigation', 'advanced-sidebar-menu'),
|
499 |
instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('No preview available', 'advanced-sidebar-menu')
|
@@ -562,11 +564,11 @@ const TriggerWhenLoadingFinished = _ref => {
|
|
562 |
}
|
563 |
|
564 |
return /*#__PURE__*/React.createElement("div", {
|
565 |
-
className:
|
566 |
}, /*#__PURE__*/React.createElement("div", {
|
567 |
-
className:
|
568 |
}, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Spinner, null)), /*#__PURE__*/React.createElement("div", {
|
569 |
-
className:
|
570 |
}, children));
|
571 |
};
|
572 |
|
@@ -580,7 +582,7 @@ const Preview = _ref2 => {
|
|
580 |
|
581 |
if ('' !== _globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error) {
|
582 |
return /*#__PURE__*/React.createElement("div", {
|
583 |
-
className:
|
584 |
dangerouslySetInnerHTML: {
|
585 |
__html: (0,dompurify__WEBPACK_IMPORTED_MODULE_5__.sanitize)(_globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error)
|
586 |
}
|
@@ -634,8 +636,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
634 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
635 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
|
636 |
/* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../InfoPanel */ "./src/gutenberg/blocks/InfoPanel.tsx");
|
637 |
-
/* harmony import */ var
|
638 |
-
/* harmony import */ var
|
|
|
|
|
639 |
|
640 |
|
641 |
|
@@ -664,7 +668,7 @@ const Edit = _ref => {
|
|
664 |
|
665 |
if ('' !== _globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error) {
|
666 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, /*#__PURE__*/React.createElement("div", {
|
667 |
-
className:
|
668 |
dangerouslySetInnerHTML: {
|
669 |
__html: (0,dompurify__WEBPACK_IMPORTED_MODULE_2__.sanitize)(_globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error)
|
670 |
}
|
@@ -685,7 +689,7 @@ const Edit = _ref => {
|
|
685 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, /*#__PURE__*/React.createElement(_components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
686 |
attributes: attributes,
|
687 |
block: name
|
688 |
-
}, ('widgets'
|
689 |
value: attributes.title ?? '',
|
690 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Title', 'advanced-sidebar-menu'),
|
691 |
onChange: title => setAttributes({
|
@@ -697,7 +701,7 @@ const Edit = _ref => {
|
|
697 |
name: name,
|
698 |
setAttributes: setAttributes,
|
699 |
type: taxonomy
|
700 |
-
}, 'post'
|
701 |
/* translators: Selected taxonomy plural label */
|
702 |
, {
|
703 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Display %s on single posts', 'advanced-sidebar-menu'), taxonomy?.labels?.name.toLowerCase() ?? ''),
|
@@ -707,7 +711,7 @@ const Edit = _ref => {
|
|
707 |
single: !!value
|
708 |
});
|
709 |
}
|
710 |
-
}), 'widgets'
|
711 |
/* translators: Selected taxonomy single label */
|
712 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Display each single post\'s %s', 'advanced-sidebar-menu'), taxonomy?.labels?.name.toLowerCase() ?? ''),
|
713 |
value: attributes.new_widget,
|
@@ -760,7 +764,7 @@ const Edit = _ref => {
|
|
760 |
attributes: attributes,
|
761 |
block: _block__WEBPACK_IMPORTED_MODULE_5__.block.id,
|
762 |
clientId: clientId
|
763 |
-
})), /*#__PURE__*/React.createElement(
|
764 |
clientId: clientId
|
765 |
}));
|
766 |
};
|
@@ -888,8 +892,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
888 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
889 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
|
890 |
/* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ "./src/components/ErrorBoundary.tsx");
|
891 |
-
/* harmony import */ var
|
892 |
-
/* harmony import */ var
|
|
|
|
|
893 |
|
894 |
|
895 |
|
@@ -921,7 +927,7 @@ const Edit = _ref => {
|
|
921 |
|
922 |
if ('' !== _globals_config__WEBPACK_IMPORTED_MODULE_7__.CONFIG.error) {
|
923 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, null, /*#__PURE__*/React.createElement("div", {
|
924 |
-
className:
|
925 |
dangerouslySetInnerHTML: {
|
926 |
__html: (0,dompurify__WEBPACK_IMPORTED_MODULE_8__.sanitize)(_globals_config__WEBPACK_IMPORTED_MODULE_7__.CONFIG.error)
|
927 |
}
|
@@ -942,7 +948,7 @@ const Edit = _ref => {
|
|
942 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, null, /*#__PURE__*/React.createElement(_components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
943 |
attributes: attributes,
|
944 |
block: name
|
945 |
-
}, ('widgets'
|
946 |
value: attributes.title ?? '',
|
947 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Title', 'advanced-sidebar-menu'),
|
948 |
onChange: title => setAttributes({
|
@@ -1007,235 +1013,2007 @@ const Edit = _ref => {
|
|
1007 |
attributes: attributes,
|
1008 |
block: _block__WEBPACK_IMPORTED_MODULE_2__.block.id,
|
1009 |
clientId: clientId
|
1010 |
-
})), /*#__PURE__*/React.createElement(
|
1011 |
clientId: clientId
|
1012 |
}));
|
1013 |
};
|
1014 |
|
1015 |
-
/* harmony default export */ __webpack_exports__["default"] = (Edit);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1016 |
|
1017 |
/***/ }),
|
1018 |
|
1019 |
-
/***/ "
|
1020 |
-
|
1021 |
-
!***
|
1022 |
-
|
1023 |
-
/***/ (function(
|
1024 |
|
1025 |
-
|
1026 |
-
__webpack_require__.
|
1027 |
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1028 |
-
/* harmony export */ "block": function() { return /* binding */ block; },
|
1029 |
-
/* harmony export */ "name": function() { return /* binding */ name; },
|
1030 |
-
/* harmony export */ "settings": function() { return /* binding */ settings; }
|
1031 |
-
/* harmony export */ });
|
1032 |
-
/* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ "./src/globals/config.ts");
|
1033 |
-
/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ "./src/gutenberg/blocks/pages/Edit.tsx");
|
1034 |
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./src/gutenberg/helpers.ts");
|
1035 |
-
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
1036 |
-
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
|
1037 |
|
|
|
|
|
1038 |
|
|
|
1039 |
|
1040 |
|
1041 |
-
|
1042 |
-
* Attributes specific to the widget as well as shared
|
1043 |
-
* widget attributes.
|
1044 |
-
*
|
1045 |
-
* @see \Advanced_Sidebar_Menu\Blocks\Block_Abstract::get_all_attributes
|
1046 |
-
* @see \Advanced_Sidebar_Menu\Blocks\Pages::get_attributes
|
1047 |
-
*/
|
1048 |
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1076 |
};
|
1077 |
-
const block = _globals_config__WEBPACK_IMPORTED_MODULE_0__.CONFIG.blocks.pages;
|
1078 |
-
const name = block.id;
|
1079 |
-
const settings = {
|
1080 |
-
title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Advanced Sidebar - Pages', 'advanced-sidebar-menu'),
|
1081 |
-
icon: 'welcome-widgets-menus',
|
1082 |
-
category: 'widgets',
|
1083 |
-
example: {
|
1084 |
-
attributes: EXAMPLE
|
1085 |
-
},
|
1086 |
-
transforms: {
|
1087 |
-
from: [{
|
1088 |
-
type: 'block',
|
1089 |
-
blocks: ['core/legacy-widget'],
|
1090 |
-
isMatch: _ref => {
|
1091 |
-
let {
|
1092 |
-
idBase,
|
1093 |
-
instance
|
1094 |
-
} = _ref;
|
1095 |
|
1096 |
-
if (!instance?.raw) {
|
1097 |
-
// Can't transform if raw instance is not shown in REST API.
|
1098 |
-
return false;
|
1099 |
-
}
|
1100 |
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
|
|
|
|
|
|
|
|
1111 |
};
|
1112 |
|
|
|
1113 |
/***/ }),
|
1114 |
|
1115 |
-
/***/ "
|
1116 |
-
|
1117 |
-
!***
|
1118 |
-
|
1119 |
-
/***/ (function(
|
1120 |
|
1121 |
-
|
1122 |
-
__webpack_require__.r(__webpack_exports__);
|
1123 |
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1124 |
-
/* harmony export */ "transformLegacyWidget": function() { return /* binding */ transformLegacyWidget; }
|
1125 |
-
/* harmony export */ });
|
1126 |
-
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
|
1127 |
-
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
|
1128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1129 |
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1139 |
};
|
1140 |
-
/**
|
1141 |
-
* Translate the widget's "checked" to the boolean
|
1142 |
-
* version used in the block.
|
1143 |
-
*
|
1144 |
-
*/
|
1145 |
|
1146 |
-
const translateLegacyWidget = settings => {
|
1147 |
-
Object.entries(settings).forEach(_ref2 => {
|
1148 |
-
let [key, value] = _ref2;
|
1149 |
|
1150 |
-
|
1151 |
-
settings[key] = true;
|
1152 |
-
}
|
1153 |
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
|
|
|
|
1157 |
|
|
|
1158 |
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
|
|
1164 |
};
|
1165 |
|
|
|
1166 |
/***/ }),
|
1167 |
|
1168 |
-
/***/ "
|
1169 |
-
|
1170 |
-
!***
|
1171 |
-
|
1172 |
-
/***/ (function(module,
|
1173 |
|
1174 |
-
|
1175 |
-
__webpack_require__.
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1181 |
|
1182 |
|
|
|
1183 |
|
|
|
|
|
|
|
|
|
|
|
1184 |
|
1185 |
-
|
1186 |
-
|
1187 |
-
* register and add HMR support to Gutenberg related items.
|
1188 |
-
*
|
1189 |
-
* Will load from specified directory recursively.
|
1190 |
-
*/
|
1191 |
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
|
|
|
|
|
|
1195 |
|
1196 |
-
window.ADVANCED_SIDEBAR_MENU.ErrorBoundary = _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_2__["default"];
|
1197 |
-
window.ADVANCED_SIDEBAR_MENU.Preview = _blocks_Preview__WEBPACK_IMPORTED_MODULE_0__["default"];
|
1198 |
-
window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = _helpers__WEBPACK_IMPORTED_MODULE_1__.transformLegacyWidget;
|
1199 |
-
});
|
1200 |
|
1201 |
/***/ }),
|
1202 |
|
1203 |
-
/***/ "
|
1204 |
-
|
1205 |
-
!***
|
1206 |
-
|
1207 |
-
/***/ (function(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1208 |
|
1209 |
-
"use strict";
|
1210 |
-
__webpack_require__.r(__webpack_exports__);
|
1211 |
-
// extracted by mini-css-extract-plugin
|
1212 |
-
/* harmony default export */ __webpack_exports__["default"] = ({"wrap":"info-panel__wrap__YT","button":"info-panel__button__PN"});
|
1213 |
|
1214 |
/***/ }),
|
1215 |
|
1216 |
-
/***/ "
|
1217 |
-
|
1218 |
-
!***
|
1219 |
-
|
1220 |
-
/***/ (function(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1221 |
|
1222 |
-
"use strict";
|
1223 |
-
__webpack_require__.r(__webpack_exports__);
|
1224 |
-
// extracted by mini-css-extract-plugin
|
1225 |
-
/* harmony default export */ __webpack_exports__["default"] = ({"error":"edit__error___h"});
|
1226 |
|
1227 |
/***/ }),
|
1228 |
|
1229 |
-
/***/ "
|
1230 |
-
|
1231 |
-
!***
|
1232 |
-
|
1233 |
-
/***/ (function(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1234 |
|
1235 |
"use strict";
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1239 |
|
1240 |
/***/ }),
|
1241 |
|
@@ -3241,6 +5019,18 @@ module.exports = wp.url;
|
|
3241 |
/******/ };
|
3242 |
/******/ }();
|
3243 |
/******/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3244 |
/******/ /* webpack/runtime/harmony module decorator */
|
3245 |
/******/ !function() {
|
3246 |
/******/ __webpack_require__.hmd = function(module) {
|
421 |
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_6__);
|
422 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
423 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);
|
424 |
+
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
|
425 |
+
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__);
|
426 |
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers */ "./src/gutenberg/helpers.ts");
|
427 |
+
/* harmony import */ var _preview_pcss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./preview.pcss */ "./src/gutenberg/blocks/preview.pcss");
|
428 |
/* provided dependency */ var $ = __webpack_require__(/*! jquery */ "jquery");
|
429 |
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
430 |
|
439 |
|
440 |
|
441 |
|
442 |
+
|
443 |
/**
|
444 |
* Sanitize a client id for use as an HTML id.
|
445 |
*
|
457 |
*/
|
458 |
|
459 |
const getSidebarId = clientId => {
|
460 |
+
if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_9__.isScreen)(['widgets'])) {
|
461 |
return '';
|
462 |
}
|
463 |
|
464 |
+
const rootId = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.select)('core/block-editor').getBlockRootClientId(clientId);
|
465 |
|
466 |
if (rootId) {
|
467 |
+
const ParentBlock = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.select)('core/block-editor').getBlocksByClientId([rootId]);
|
468 |
|
469 |
if (ParentBlock[0] && 'core/widget-area' === ParentBlock[0].name) {
|
470 |
return ParentBlock[0]?.attributes?.id;
|
481 |
|
482 |
|
483 |
const Page = () => /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Placeholder, {
|
484 |
+
className: _preview_pcss__WEBPACK_IMPORTED_MODULE_10__["default"].placeholder,
|
485 |
icon: 'welcome-widgets-menus',
|
486 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('Advanced Sidebar - Pages', 'advanced-sidebar-menu'),
|
487 |
instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('No preview available', 'advanced-sidebar-menu')
|
488 |
});
|
489 |
|
490 |
const Category = () => /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Placeholder, {
|
491 |
+
className: _preview_pcss__WEBPACK_IMPORTED_MODULE_10__["default"].placeholder,
|
492 |
icon: 'welcome-widgets-menus',
|
493 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('Advanced Sidebar - Categories', 'advanced-sidebar-menu'),
|
494 |
instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('No preview available', 'advanced-sidebar-menu')
|
495 |
});
|
496 |
|
497 |
const Navigation = () => /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Placeholder, {
|
498 |
+
className: _preview_pcss__WEBPACK_IMPORTED_MODULE_10__["default"].placeholder,
|
499 |
icon: 'welcome-widgets-menus',
|
500 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('Advanced Sidebar - Navigation', 'advanced-sidebar-menu'),
|
501 |
instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__.__)('No preview available', 'advanced-sidebar-menu')
|
564 |
}
|
565 |
|
566 |
return /*#__PURE__*/React.createElement("div", {
|
567 |
+
className: _preview_pcss__WEBPACK_IMPORTED_MODULE_10__["default"].spinWrap
|
568 |
}, /*#__PURE__*/React.createElement("div", {
|
569 |
+
className: _preview_pcss__WEBPACK_IMPORTED_MODULE_10__["default"].spin
|
570 |
}, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Spinner, null)), /*#__PURE__*/React.createElement("div", {
|
571 |
+
className: _preview_pcss__WEBPACK_IMPORTED_MODULE_10__["default"].spinContent
|
572 |
}, children));
|
573 |
};
|
574 |
|
582 |
|
583 |
if ('' !== _globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error) {
|
584 |
return /*#__PURE__*/React.createElement("div", {
|
585 |
+
className: _preview_pcss__WEBPACK_IMPORTED_MODULE_10__["default"].error,
|
586 |
dangerouslySetInnerHTML: {
|
587 |
__html: (0,dompurify__WEBPACK_IMPORTED_MODULE_5__.sanitize)(_globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error)
|
588 |
}
|
636 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
637 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
|
638 |
/* harmony import */ var _InfoPanel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../InfoPanel */ "./src/gutenberg/blocks/InfoPanel.tsx");
|
639 |
+
/* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ "./src/gutenberg/SideLoad.tsx");
|
640 |
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ "./src/gutenberg/helpers.ts");
|
641 |
+
/* harmony import */ var _pages_edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../pages/edit.pcss */ "./src/gutenberg/blocks/pages/edit.pcss");
|
642 |
+
|
643 |
|
644 |
|
645 |
|
668 |
|
669 |
if ('' !== _globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error) {
|
670 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, /*#__PURE__*/React.createElement("div", {
|
671 |
+
className: _pages_edit_pcss__WEBPACK_IMPORTED_MODULE_13__["default"].error,
|
672 |
dangerouslySetInnerHTML: {
|
673 |
__html: (0,dompurify__WEBPACK_IMPORTED_MODULE_2__.sanitize)(_globals_config__WEBPACK_IMPORTED_MODULE_1__.CONFIG.error)
|
674 |
}
|
689 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, /*#__PURE__*/React.createElement(_components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
690 |
attributes: attributes,
|
691 |
block: name
|
692 |
+
}, (0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isScreen)(['widgets', 'site-editor', 'customize']) && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.PanelBody, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.TextControl, {
|
693 |
value: attributes.title ?? '',
|
694 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Title', 'advanced-sidebar-menu'),
|
695 |
onChange: title => setAttributes({
|
701 |
name: name,
|
702 |
setAttributes: setAttributes,
|
703 |
type: taxonomy
|
704 |
+
}, (0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isScreen)(['post']) && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.CheckboxControl
|
705 |
/* translators: Selected taxonomy plural label */
|
706 |
, {
|
707 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Display %s on single posts', 'advanced-sidebar-menu'), taxonomy?.labels?.name.toLowerCase() ?? ''),
|
711 |
single: !!value
|
712 |
});
|
713 |
}
|
714 |
+
}), (0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isScreen)(['widgets', 'customize']) && attributes.single && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.SelectControl, {
|
715 |
/* translators: Selected taxonomy single label */
|
716 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.sprintf)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Display each single post\'s %s', 'advanced-sidebar-menu'), taxonomy?.labels?.name.toLowerCase() ?? ''),
|
717 |
value: attributes.new_widget,
|
764 |
attributes: attributes,
|
765 |
block: _block__WEBPACK_IMPORTED_MODULE_5__.block.id,
|
766 |
clientId: clientId
|
767 |
+
})), /*#__PURE__*/React.createElement(_SideLoad__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
768 |
clientId: clientId
|
769 |
}));
|
770 |
};
|
892 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
893 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
|
894 |
/* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../components/ErrorBoundary */ "./src/components/ErrorBoundary.tsx");
|
895 |
+
/* harmony import */ var _SideLoad__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../SideLoad */ "./src/gutenberg/SideLoad.tsx");
|
896 |
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers */ "./src/gutenberg/helpers.ts");
|
897 |
+
/* harmony import */ var _edit_pcss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./edit.pcss */ "./src/gutenberg/blocks/pages/edit.pcss");
|
898 |
+
|
899 |
|
900 |
|
901 |
|
927 |
|
928 |
if ('' !== _globals_config__WEBPACK_IMPORTED_MODULE_7__.CONFIG.error) {
|
929 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, null, /*#__PURE__*/React.createElement("div", {
|
930 |
+
className: _edit_pcss__WEBPACK_IMPORTED_MODULE_13__["default"].error,
|
931 |
dangerouslySetInnerHTML: {
|
932 |
__html: (0,dompurify__WEBPACK_IMPORTED_MODULE_8__.sanitize)(_globals_config__WEBPACK_IMPORTED_MODULE_7__.CONFIG.error)
|
933 |
}
|
948 |
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, null, /*#__PURE__*/React.createElement(_components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
949 |
attributes: attributes,
|
950 |
block: name
|
951 |
+
}, (0,_helpers__WEBPACK_IMPORTED_MODULE_12__.isScreen)(['widgets', 'site-editor', 'customize']) && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelBody, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, {
|
952 |
value: attributes.title ?? '',
|
953 |
label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Title', 'advanced-sidebar-menu'),
|
954 |
onChange: title => setAttributes({
|
1013 |
attributes: attributes,
|
1014 |
block: _block__WEBPACK_IMPORTED_MODULE_2__.block.id,
|
1015 |
clientId: clientId
|
1016 |
+
})), /*#__PURE__*/React.createElement(_SideLoad__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
1017 |
clientId: clientId
|
1018 |
}));
|
1019 |
};
|
1020 |
|
1021 |
+
/* harmony default export */ __webpack_exports__["default"] = (Edit);
|
1022 |
+
|
1023 |
+
/***/ }),
|
1024 |
+
|
1025 |
+
/***/ "./src/gutenberg/blocks/pages/block.tsx":
|
1026 |
+
/*!**********************************************!*\
|
1027 |
+
!*** ./src/gutenberg/blocks/pages/block.tsx ***!
|
1028 |
+
\**********************************************/
|
1029 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1030 |
+
|
1031 |
+
"use strict";
|
1032 |
+
__webpack_require__.r(__webpack_exports__);
|
1033 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1034 |
+
/* harmony export */ "block": function() { return /* binding */ block; },
|
1035 |
+
/* harmony export */ "name": function() { return /* binding */ name; },
|
1036 |
+
/* harmony export */ "settings": function() { return /* binding */ settings; }
|
1037 |
+
/* harmony export */ });
|
1038 |
+
/* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../globals/config */ "./src/globals/config.ts");
|
1039 |
+
/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Edit */ "./src/gutenberg/blocks/pages/Edit.tsx");
|
1040 |
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./src/gutenberg/helpers.ts");
|
1041 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
1042 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
|
1043 |
+
|
1044 |
+
|
1045 |
+
|
1046 |
+
|
1047 |
+
/**
|
1048 |
+
* Attributes specific to the widget as well as shared
|
1049 |
+
* widget attributes.
|
1050 |
+
*
|
1051 |
+
* @see \Advanced_Sidebar_Menu\Blocks\Block_Abstract::get_all_attributes
|
1052 |
+
* @see \Advanced_Sidebar_Menu\Blocks\Pages::get_attributes
|
1053 |
+
*/
|
1054 |
+
|
1055 |
+
/**
|
1056 |
+
* Attributes used for the example preview.
|
1057 |
+
* Combines some PRO and basic attributes.
|
1058 |
+
* The PRO attributes will only be sent if PRO is active.
|
1059 |
+
*/
|
1060 |
+
const EXAMPLE = {
|
1061 |
+
include_parent: true,
|
1062 |
+
include_childless_parent: true,
|
1063 |
+
display_all: true,
|
1064 |
+
levels: '2',
|
1065 |
+
apply_current_page_styles_to_parent: true,
|
1066 |
+
apply_current_page_parent_styles_to_parent: true,
|
1067 |
+
block_style: true,
|
1068 |
+
border: true,
|
1069 |
+
border_color: '#333',
|
1070 |
+
bullet_style: 'none',
|
1071 |
+
parent_page_color: '#fff',
|
1072 |
+
parent_page_bg_color: '#666',
|
1073 |
+
child_page_color: '#fff',
|
1074 |
+
child_page_bg_color: '#666',
|
1075 |
+
grandchild_page_color: '#282828',
|
1076 |
+
grandchild_page_bg_color: '#989898',
|
1077 |
+
grandchild_page_font_weight: 'bold',
|
1078 |
+
current_page_color: '#0cc4c6',
|
1079 |
+
current_page_bg_color: '#282828',
|
1080 |
+
current_page_font_weight: 'normal',
|
1081 |
+
current_page_parent_bg_color: '#333'
|
1082 |
+
};
|
1083 |
+
const block = _globals_config__WEBPACK_IMPORTED_MODULE_0__.CONFIG.blocks.pages;
|
1084 |
+
const name = block.id;
|
1085 |
+
const settings = {
|
1086 |
+
title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Advanced Sidebar - Pages', 'advanced-sidebar-menu'),
|
1087 |
+
icon: 'welcome-widgets-menus',
|
1088 |
+
category: 'widgets',
|
1089 |
+
example: {
|
1090 |
+
attributes: EXAMPLE
|
1091 |
+
},
|
1092 |
+
transforms: {
|
1093 |
+
from: [{
|
1094 |
+
type: 'block',
|
1095 |
+
blocks: ['core/legacy-widget'],
|
1096 |
+
isMatch: _ref => {
|
1097 |
+
let {
|
1098 |
+
idBase,
|
1099 |
+
instance
|
1100 |
+
} = _ref;
|
1101 |
+
|
1102 |
+
if (!instance?.raw) {
|
1103 |
+
// Can't transform if raw instance is not shown in REST API.
|
1104 |
+
return false;
|
1105 |
+
}
|
1106 |
+
|
1107 |
+
return 'advanced_sidebar_menu' === idBase;
|
1108 |
+
},
|
1109 |
+
transform: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.transformLegacyWidget)(name)
|
1110 |
+
}]
|
1111 |
+
},
|
1112 |
+
// `attributes` are registered server side because we use ServerSideRender.
|
1113 |
+
// `supports` are registered server side for easy overrides.
|
1114 |
+
edit: props => /*#__PURE__*/React.createElement(_Edit__WEBPACK_IMPORTED_MODULE_1__["default"], props),
|
1115 |
+
save: () => null,
|
1116 |
+
apiVersion: 2
|
1117 |
+
};
|
1118 |
+
|
1119 |
+
/***/ }),
|
1120 |
+
|
1121 |
+
/***/ "./src/gutenberg/helpers.ts":
|
1122 |
+
/*!**********************************!*\
|
1123 |
+
!*** ./src/gutenberg/helpers.ts ***!
|
1124 |
+
\**********************************/
|
1125 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1126 |
+
|
1127 |
+
"use strict";
|
1128 |
+
__webpack_require__.r(__webpack_exports__);
|
1129 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1130 |
+
/* harmony export */ "isScreen": function() { return /* binding */ isScreen; },
|
1131 |
+
/* harmony export */ "transformLegacyWidget": function() { return /* binding */ transformLegacyWidget; }
|
1132 |
+
/* harmony export */ });
|
1133 |
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/modules/es.array.includes.js");
|
1134 |
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
|
1135 |
+
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
|
1136 |
+
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__);
|
1137 |
+
/* harmony import */ var _globals_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../globals/config */ "./src/globals/config.ts");
|
1138 |
+
|
1139 |
+
|
1140 |
+
|
1141 |
+
|
1142 |
+
/**
|
1143 |
+
* Are we on one of the provided screens?
|
1144 |
+
*/
|
1145 |
+
const isScreen = screens => {
|
1146 |
+
return screens.includes(_globals_config__WEBPACK_IMPORTED_MODULE_2__.CONFIG.currentScreen);
|
1147 |
+
};
|
1148 |
+
/**
|
1149 |
+
* Transform a legacy widget to the matching block.
|
1150 |
+
*
|
1151 |
+
*/
|
1152 |
+
|
1153 |
+
const transformLegacyWidget = name => _ref => {
|
1154 |
+
let {
|
1155 |
+
instance
|
1156 |
+
} = _ref;
|
1157 |
+
return [(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.createBlock)(name, translateLegacyWidget(instance.raw))];
|
1158 |
+
};
|
1159 |
+
/**
|
1160 |
+
* Translate the widget's "checked" to the boolean
|
1161 |
+
* version used in the block.
|
1162 |
+
*
|
1163 |
+
*/
|
1164 |
+
|
1165 |
+
const translateLegacyWidget = settings => {
|
1166 |
+
Object.entries(settings).forEach(_ref2 => {
|
1167 |
+
let [key, value] = _ref2;
|
1168 |
+
|
1169 |
+
if ('checked' === value) {
|
1170 |
+
settings[key] = true;
|
1171 |
+
}
|
1172 |
+
|
1173 |
+
if ('object' === typeof value) {
|
1174 |
+
translateLegacyWidget(settings[key]);
|
1175 |
+
} // Old widgets used to use "0" for some defaults.
|
1176 |
+
|
1177 |
+
|
1178 |
+
if ('0' === value) {
|
1179 |
+
delete settings[key];
|
1180 |
+
}
|
1181 |
+
});
|
1182 |
+
return settings;
|
1183 |
+
};
|
1184 |
+
|
1185 |
+
/***/ }),
|
1186 |
+
|
1187 |
+
/***/ "./src/gutenberg/index.ts":
|
1188 |
+
/*!********************************!*\
|
1189 |
+
!*** ./src/gutenberg/index.ts ***!
|
1190 |
+
\********************************/
|
1191 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1192 |
+
|
1193 |
+
"use strict";
|
1194 |
+
__webpack_require__.r(__webpack_exports__);
|
1195 |
+
/* harmony import */ var _lipemat_js_boilerplate_gutenberg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @lipemat/js-boilerplate-gutenberg */ "./.yarn/__virtual__/@lipemat-js-boilerplate-gutenberg-virtual-6ce9f74a52/0/cache/@lipemat-js-boilerplate-gutenberg-npm-2.9.5-b01ffe5a8b-6d75996942.zip/node_modules/@lipemat/js-boilerplate-gutenberg/dist/index.module.js");
|
1196 |
+
/* harmony import */ var _blocks_Preview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blocks/Preview */ "./src/gutenberg/blocks/Preview.tsx");
|
1197 |
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "./src/gutenberg/helpers.ts");
|
1198 |
+
/* harmony import */ var _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/ErrorBoundary */ "./src/components/ErrorBoundary.tsx");
|
1199 |
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
1200 |
+
|
1201 |
+
|
1202 |
+
|
1203 |
+
|
1204 |
+
/**
|
1205 |
+
* Use our custom autoloader to automatically require,
|
1206 |
+
* register and add HMR support to Gutenberg related items.
|
1207 |
+
*
|
1208 |
+
* Will load from specified directory recursively.
|
1209 |
+
*/
|
1210 |
+
|
1211 |
+
/* harmony default export */ __webpack_exports__["default"] = (() => {
|
1212 |
+
// Load all blocks
|
1213 |
+
(0,_lipemat_js_boilerplate_gutenberg__WEBPACK_IMPORTED_MODULE_3__.autoloadBlocks)(() => __webpack_require__("./src/gutenberg/blocks sync recursive block\\.tsx$"), module); // Expose helpers and Preview component to window, so we can use them in PRO.
|
1214 |
+
|
1215 |
+
window.ADVANCED_SIDEBAR_MENU.ErrorBoundary = _components_ErrorBoundary__WEBPACK_IMPORTED_MODULE_2__["default"];
|
1216 |
+
window.ADVANCED_SIDEBAR_MENU.Preview = _blocks_Preview__WEBPACK_IMPORTED_MODULE_0__["default"];
|
1217 |
+
window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = _helpers__WEBPACK_IMPORTED_MODULE_1__.transformLegacyWidget;
|
1218 |
+
});
|
1219 |
+
|
1220 |
+
/***/ }),
|
1221 |
+
|
1222 |
+
/***/ "./src/gutenberg/blocks/info-panel.pcss":
|
1223 |
+
/*!**********************************************!*\
|
1224 |
+
!*** ./src/gutenberg/blocks/info-panel.pcss ***!
|
1225 |
+
\**********************************************/
|
1226 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1227 |
+
|
1228 |
+
"use strict";
|
1229 |
+
__webpack_require__.r(__webpack_exports__);
|
1230 |
+
// extracted by mini-css-extract-plugin
|
1231 |
+
/* harmony default export */ __webpack_exports__["default"] = ({"wrap":"info-panel__wrap__YT","button":"info-panel__button__PN"});
|
1232 |
+
|
1233 |
+
/***/ }),
|
1234 |
+
|
1235 |
+
/***/ "./src/gutenberg/blocks/pages/edit.pcss":
|
1236 |
+
/*!**********************************************!*\
|
1237 |
+
!*** ./src/gutenberg/blocks/pages/edit.pcss ***!
|
1238 |
+
\**********************************************/
|
1239 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1240 |
+
|
1241 |
+
"use strict";
|
1242 |
+
__webpack_require__.r(__webpack_exports__);
|
1243 |
+
// extracted by mini-css-extract-plugin
|
1244 |
+
/* harmony default export */ __webpack_exports__["default"] = ({"error":"edit__error___h"});
|
1245 |
+
|
1246 |
+
/***/ }),
|
1247 |
+
|
1248 |
+
/***/ "./src/gutenberg/blocks/preview.pcss":
|
1249 |
+
/*!*******************************************!*\
|
1250 |
+
!*** ./src/gutenberg/blocks/preview.pcss ***!
|
1251 |
+
\*******************************************/
|
1252 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1253 |
+
|
1254 |
+
"use strict";
|
1255 |
+
__webpack_require__.r(__webpack_exports__);
|
1256 |
+
// extracted by mini-css-extract-plugin
|
1257 |
+
/* harmony default export */ __webpack_exports__["default"] = ({"placeholder":"preview__placeholder__QP","error":"preview__error__xF","spin-wrap":"preview__spin-wrap__Jr","spinWrap":"preview__spin-wrap__Jr","spin":"preview__spin__A4","spin-content":"preview__spin-content__Yg","spinContent":"preview__spin-content__Yg"});
|
1258 |
+
|
1259 |
+
/***/ }),
|
1260 |
+
|
1261 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/a-callable.js":
|
1262 |
+
/*!***************************************************************************************************************!*\
|
1263 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/a-callable.js ***!
|
1264 |
+
\***************************************************************************************************************/
|
1265 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1266 |
+
|
1267 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
1268 |
+
var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/try-to-string.js");
|
1269 |
+
|
1270 |
+
var $TypeError = TypeError;
|
1271 |
+
|
1272 |
+
// `Assert: IsCallable(argument) is true`
|
1273 |
+
module.exports = function (argument) {
|
1274 |
+
if (isCallable(argument)) return argument;
|
1275 |
+
throw $TypeError(tryToString(argument) + ' is not a function');
|
1276 |
+
};
|
1277 |
+
|
1278 |
+
|
1279 |
+
/***/ }),
|
1280 |
+
|
1281 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/add-to-unscopables.js":
|
1282 |
+
/*!***********************************************************************************************************************!*\
|
1283 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/add-to-unscopables.js ***!
|
1284 |
+
\***********************************************************************************************************************/
|
1285 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1286 |
+
|
1287 |
+
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/well-known-symbol.js");
|
1288 |
+
var create = __webpack_require__(/*! ../internals/object-create */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-create.js");
|
1289 |
+
var defineProperty = (__webpack_require__(/*! ../internals/object-define-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js").f);
|
1290 |
+
|
1291 |
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
1292 |
+
var ArrayPrototype = Array.prototype;
|
1293 |
+
|
1294 |
+
// Array.prototype[@@unscopables]
|
1295 |
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1296 |
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
1297 |
+
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
1298 |
+
configurable: true,
|
1299 |
+
value: create(null)
|
1300 |
+
});
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
// add a key to Array.prototype[@@unscopables]
|
1304 |
+
module.exports = function (key) {
|
1305 |
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
1306 |
+
};
|
1307 |
+
|
1308 |
+
|
1309 |
+
/***/ }),
|
1310 |
+
|
1311 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/an-object.js":
|
1312 |
+
/*!**************************************************************************************************************!*\
|
1313 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/an-object.js ***!
|
1314 |
+
\**************************************************************************************************************/
|
1315 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1316 |
+
|
1317 |
+
var isObject = __webpack_require__(/*! ../internals/is-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js");
|
1318 |
+
|
1319 |
+
var $String = String;
|
1320 |
+
var $TypeError = TypeError;
|
1321 |
+
|
1322 |
+
// `Assert: Type(argument) is Object`
|
1323 |
+
module.exports = function (argument) {
|
1324 |
+
if (isObject(argument)) return argument;
|
1325 |
+
throw $TypeError($String(argument) + ' is not an object');
|
1326 |
+
};
|
1327 |
+
|
1328 |
+
|
1329 |
+
/***/ }),
|
1330 |
+
|
1331 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/array-includes.js":
|
1332 |
+
/*!*******************************************************************************************************************!*\
|
1333 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/array-includes.js ***!
|
1334 |
+
\*******************************************************************************************************************/
|
1335 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1336 |
+
|
1337 |
+
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-indexed-object.js");
|
1338 |
+
var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-absolute-index.js");
|
1339 |
+
var lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/length-of-array-like.js");
|
1340 |
+
|
1341 |
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
1342 |
+
var createMethod = function (IS_INCLUDES) {
|
1343 |
+
return function ($this, el, fromIndex) {
|
1344 |
+
var O = toIndexedObject($this);
|
1345 |
+
var length = lengthOfArrayLike(O);
|
1346 |
+
var index = toAbsoluteIndex(fromIndex, length);
|
1347 |
+
var value;
|
1348 |
+
// Array#includes uses SameValueZero equality algorithm
|
1349 |
+
// eslint-disable-next-line no-self-compare -- NaN check
|
1350 |
+
if (IS_INCLUDES && el != el) while (length > index) {
|
1351 |
+
value = O[index++];
|
1352 |
+
// eslint-disable-next-line no-self-compare -- NaN check
|
1353 |
+
if (value != value) return true;
|
1354 |
+
// Array#indexOf ignores holes, Array#includes - not
|
1355 |
+
} else for (;length > index; index++) {
|
1356 |
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
1357 |
+
} return !IS_INCLUDES && -1;
|
1358 |
+
};
|
1359 |
+
};
|
1360 |
+
|
1361 |
+
module.exports = {
|
1362 |
+
// `Array.prototype.includes` method
|
1363 |
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
1364 |
+
includes: createMethod(true),
|
1365 |
+
// `Array.prototype.indexOf` method
|
1366 |
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
1367 |
+
indexOf: createMethod(false)
|
1368 |
+
};
|
1369 |
+
|
1370 |
+
|
1371 |
+
/***/ }),
|
1372 |
+
|
1373 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/classof-raw.js":
|
1374 |
+
/*!****************************************************************************************************************!*\
|
1375 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/classof-raw.js ***!
|
1376 |
+
\****************************************************************************************************************/
|
1377 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1378 |
+
|
1379 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
1380 |
+
|
1381 |
+
var toString = uncurryThis({}.toString);
|
1382 |
+
var stringSlice = uncurryThis(''.slice);
|
1383 |
+
|
1384 |
+
module.exports = function (it) {
|
1385 |
+
return stringSlice(toString(it), 8, -1);
|
1386 |
+
};
|
1387 |
+
|
1388 |
+
|
1389 |
+
/***/ }),
|
1390 |
+
|
1391 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/copy-constructor-properties.js":
|
1392 |
+
/*!********************************************************************************************************************************!*\
|
1393 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/copy-constructor-properties.js ***!
|
1394 |
+
\********************************************************************************************************************************/
|
1395 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1396 |
+
|
1397 |
+
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js");
|
1398 |
+
var ownKeys = __webpack_require__(/*! ../internals/own-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/own-keys.js");
|
1399 |
+
var getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-descriptor.js");
|
1400 |
+
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js");
|
1401 |
+
|
1402 |
+
module.exports = function (target, source, exceptions) {
|
1403 |
+
var keys = ownKeys(source);
|
1404 |
+
var defineProperty = definePropertyModule.f;
|
1405 |
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
1406 |
+
for (var i = 0; i < keys.length; i++) {
|
1407 |
+
var key = keys[i];
|
1408 |
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
1409 |
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
1410 |
+
}
|
1411 |
+
}
|
1412 |
+
};
|
1413 |
+
|
1414 |
+
|
1415 |
+
/***/ }),
|
1416 |
+
|
1417 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-non-enumerable-property.js":
|
1418 |
+
/*!***********************************************************************************************************************************!*\
|
1419 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-non-enumerable-property.js ***!
|
1420 |
+
\***********************************************************************************************************************************/
|
1421 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1422 |
+
|
1423 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
1424 |
+
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js");
|
1425 |
+
var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-property-descriptor.js");
|
1426 |
+
|
1427 |
+
module.exports = DESCRIPTORS ? function (object, key, value) {
|
1428 |
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
1429 |
+
} : function (object, key, value) {
|
1430 |
+
object[key] = value;
|
1431 |
+
return object;
|
1432 |
+
};
|
1433 |
+
|
1434 |
+
|
1435 |
+
/***/ }),
|
1436 |
+
|
1437 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-property-descriptor.js":
|
1438 |
+
/*!*******************************************************************************************************************************!*\
|
1439 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-property-descriptor.js ***!
|
1440 |
+
\*******************************************************************************************************************************/
|
1441 |
+
/***/ (function(module) {
|
1442 |
+
|
1443 |
+
module.exports = function (bitmap, value) {
|
1444 |
+
return {
|
1445 |
+
enumerable: !(bitmap & 1),
|
1446 |
+
configurable: !(bitmap & 2),
|
1447 |
+
writable: !(bitmap & 4),
|
1448 |
+
value: value
|
1449 |
+
};
|
1450 |
+
};
|
1451 |
+
|
1452 |
+
|
1453 |
+
/***/ }),
|
1454 |
+
|
1455 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-built-in.js":
|
1456 |
+
/*!********************************************************************************************************************!*\
|
1457 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-built-in.js ***!
|
1458 |
+
\********************************************************************************************************************/
|
1459 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1460 |
+
|
1461 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
1462 |
+
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js");
|
1463 |
+
var makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/make-built-in.js");
|
1464 |
+
var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-global-property.js");
|
1465 |
+
|
1466 |
+
module.exports = function (O, key, value, options) {
|
1467 |
+
if (!options) options = {};
|
1468 |
+
var simple = options.enumerable;
|
1469 |
+
var name = options.name !== undefined ? options.name : key;
|
1470 |
+
if (isCallable(value)) makeBuiltIn(value, name, options);
|
1471 |
+
if (options.global) {
|
1472 |
+
if (simple) O[key] = value;
|
1473 |
+
else defineGlobalProperty(key, value);
|
1474 |
+
} else {
|
1475 |
+
try {
|
1476 |
+
if (!options.unsafe) delete O[key];
|
1477 |
+
else if (O[key]) simple = true;
|
1478 |
+
} catch (error) { /* empty */ }
|
1479 |
+
if (simple) O[key] = value;
|
1480 |
+
else definePropertyModule.f(O, key, {
|
1481 |
+
value: value,
|
1482 |
+
enumerable: false,
|
1483 |
+
configurable: !options.nonConfigurable,
|
1484 |
+
writable: !options.nonWritable
|
1485 |
+
});
|
1486 |
+
} return O;
|
1487 |
+
};
|
1488 |
+
|
1489 |
+
|
1490 |
+
/***/ }),
|
1491 |
+
|
1492 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-global-property.js":
|
1493 |
+
/*!***************************************************************************************************************************!*\
|
1494 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-global-property.js ***!
|
1495 |
+
\***************************************************************************************************************************/
|
1496 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1497 |
+
|
1498 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
1499 |
+
|
1500 |
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
1501 |
+
var defineProperty = Object.defineProperty;
|
1502 |
+
|
1503 |
+
module.exports = function (key, value) {
|
1504 |
+
try {
|
1505 |
+
defineProperty(global, key, { value: value, configurable: true, writable: true });
|
1506 |
+
} catch (error) {
|
1507 |
+
global[key] = value;
|
1508 |
+
} return value;
|
1509 |
+
};
|
1510 |
+
|
1511 |
+
|
1512 |
+
/***/ }),
|
1513 |
+
|
1514 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js":
|
1515 |
+
/*!****************************************************************************************************************!*\
|
1516 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js ***!
|
1517 |
+
\****************************************************************************************************************/
|
1518 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1519 |
+
|
1520 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
1521 |
+
|
1522 |
+
// Detect IE8's incomplete defineProperty implementation
|
1523 |
+
module.exports = !fails(function () {
|
1524 |
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
1525 |
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
1526 |
+
});
|
1527 |
+
|
1528 |
+
|
1529 |
+
/***/ }),
|
1530 |
+
|
1531 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/document-create-element.js":
|
1532 |
+
/*!****************************************************************************************************************************!*\
|
1533 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/document-create-element.js ***!
|
1534 |
+
\****************************************************************************************************************************/
|
1535 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1536 |
+
|
1537 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
1538 |
+
var isObject = __webpack_require__(/*! ../internals/is-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js");
|
1539 |
+
|
1540 |
+
var document = global.document;
|
1541 |
+
// typeof document.createElement is 'object' in old IE
|
1542 |
+
var EXISTS = isObject(document) && isObject(document.createElement);
|
1543 |
+
|
1544 |
+
module.exports = function (it) {
|
1545 |
+
return EXISTS ? document.createElement(it) : {};
|
1546 |
+
};
|
1547 |
+
|
1548 |
+
|
1549 |
+
/***/ }),
|
1550 |
+
|
1551 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-user-agent.js":
|
1552 |
+
/*!**********************************************************************************************************************!*\
|
1553 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-user-agent.js ***!
|
1554 |
+
\**********************************************************************************************************************/
|
1555 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1556 |
+
|
1557 |
+
var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-built-in.js");
|
1558 |
+
|
1559 |
+
module.exports = getBuiltIn('navigator', 'userAgent') || '';
|
1560 |
+
|
1561 |
+
|
1562 |
+
/***/ }),
|
1563 |
+
|
1564 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-v8-version.js":
|
1565 |
+
/*!**********************************************************************************************************************!*\
|
1566 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-v8-version.js ***!
|
1567 |
+
\**********************************************************************************************************************/
|
1568 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1569 |
+
|
1570 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
1571 |
+
var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-user-agent.js");
|
1572 |
+
|
1573 |
+
var process = global.process;
|
1574 |
+
var Deno = global.Deno;
|
1575 |
+
var versions = process && process.versions || Deno && Deno.version;
|
1576 |
+
var v8 = versions && versions.v8;
|
1577 |
+
var match, version;
|
1578 |
+
|
1579 |
+
if (v8) {
|
1580 |
+
match = v8.split('.');
|
1581 |
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
1582 |
+
// but their correct versions are not interesting for us
|
1583 |
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
1584 |
+
}
|
1585 |
+
|
1586 |
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
1587 |
+
// so check `userAgent` even if `.v8` exists, but 0
|
1588 |
+
if (!version && userAgent) {
|
1589 |
+
match = userAgent.match(/Edge\/(\d+)/);
|
1590 |
+
if (!match || match[1] >= 74) {
|
1591 |
+
match = userAgent.match(/Chrome\/(\d+)/);
|
1592 |
+
if (match) version = +match[1];
|
1593 |
+
}
|
1594 |
+
}
|
1595 |
+
|
1596 |
+
module.exports = version;
|
1597 |
+
|
1598 |
+
|
1599 |
+
/***/ }),
|
1600 |
+
|
1601 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/enum-bug-keys.js":
|
1602 |
+
/*!******************************************************************************************************************!*\
|
1603 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/enum-bug-keys.js ***!
|
1604 |
+
\******************************************************************************************************************/
|
1605 |
+
/***/ (function(module) {
|
1606 |
+
|
1607 |
+
// IE8- don't enum bug keys
|
1608 |
+
module.exports = [
|
1609 |
+
'constructor',
|
1610 |
+
'hasOwnProperty',
|
1611 |
+
'isPrototypeOf',
|
1612 |
+
'propertyIsEnumerable',
|
1613 |
+
'toLocaleString',
|
1614 |
+
'toString',
|
1615 |
+
'valueOf'
|
1616 |
+
];
|
1617 |
+
|
1618 |
+
|
1619 |
+
/***/ }),
|
1620 |
+
|
1621 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/export.js":
|
1622 |
+
/*!***********************************************************************************************************!*\
|
1623 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/export.js ***!
|
1624 |
+
\***********************************************************************************************************/
|
1625 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1626 |
+
|
1627 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
1628 |
+
var getOwnPropertyDescriptor = (__webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-descriptor.js").f);
|
1629 |
+
var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-non-enumerable-property.js");
|
1630 |
+
var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-built-in.js");
|
1631 |
+
var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-global-property.js");
|
1632 |
+
var copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/copy-constructor-properties.js");
|
1633 |
+
var isForced = __webpack_require__(/*! ../internals/is-forced */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-forced.js");
|
1634 |
+
|
1635 |
+
/*
|
1636 |
+
options.target - name of the target object
|
1637 |
+
options.global - target is the global object
|
1638 |
+
options.stat - export as static methods of target
|
1639 |
+
options.proto - export as prototype methods of target
|
1640 |
+
options.real - real prototype method for the `pure` version
|
1641 |
+
options.forced - export even if the native feature is available
|
1642 |
+
options.bind - bind methods to the target, required for the `pure` version
|
1643 |
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
1644 |
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
1645 |
+
options.sham - add a flag to not completely full polyfills
|
1646 |
+
options.enumerable - export as enumerable property
|
1647 |
+
options.dontCallGetSet - prevent calling a getter on target
|
1648 |
+
options.name - the .name of the function if it does not match the key
|
1649 |
+
*/
|
1650 |
+
module.exports = function (options, source) {
|
1651 |
+
var TARGET = options.target;
|
1652 |
+
var GLOBAL = options.global;
|
1653 |
+
var STATIC = options.stat;
|
1654 |
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
1655 |
+
if (GLOBAL) {
|
1656 |
+
target = global;
|
1657 |
+
} else if (STATIC) {
|
1658 |
+
target = global[TARGET] || defineGlobalProperty(TARGET, {});
|
1659 |
+
} else {
|
1660 |
+
target = (global[TARGET] || {}).prototype;
|
1661 |
+
}
|
1662 |
+
if (target) for (key in source) {
|
1663 |
+
sourceProperty = source[key];
|
1664 |
+
if (options.dontCallGetSet) {
|
1665 |
+
descriptor = getOwnPropertyDescriptor(target, key);
|
1666 |
+
targetProperty = descriptor && descriptor.value;
|
1667 |
+
} else targetProperty = target[key];
|
1668 |
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
1669 |
+
// contained in target
|
1670 |
+
if (!FORCED && targetProperty !== undefined) {
|
1671 |
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
1672 |
+
copyConstructorProperties(sourceProperty, targetProperty);
|
1673 |
+
}
|
1674 |
+
// add a flag to not completely full polyfills
|
1675 |
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
1676 |
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
1677 |
+
}
|
1678 |
+
defineBuiltIn(target, key, sourceProperty, options);
|
1679 |
+
}
|
1680 |
+
};
|
1681 |
+
|
1682 |
+
|
1683 |
+
/***/ }),
|
1684 |
+
|
1685 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js":
|
1686 |
+
/*!**********************************************************************************************************!*\
|
1687 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js ***!
|
1688 |
+
\**********************************************************************************************************/
|
1689 |
+
/***/ (function(module) {
|
1690 |
+
|
1691 |
+
module.exports = function (exec) {
|
1692 |
+
try {
|
1693 |
+
return !!exec();
|
1694 |
+
} catch (error) {
|
1695 |
+
return true;
|
1696 |
+
}
|
1697 |
+
};
|
1698 |
+
|
1699 |
+
|
1700 |
+
/***/ }),
|
1701 |
+
|
1702 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-bind-native.js":
|
1703 |
+
/*!*************************************************************************************************************************!*\
|
1704 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-bind-native.js ***!
|
1705 |
+
\*************************************************************************************************************************/
|
1706 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1707 |
+
|
1708 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
1709 |
+
|
1710 |
+
module.exports = !fails(function () {
|
1711 |
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
1712 |
+
var test = (function () { /* empty */ }).bind();
|
1713 |
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
1714 |
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
1715 |
+
});
|
1716 |
+
|
1717 |
+
|
1718 |
+
/***/ }),
|
1719 |
+
|
1720 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-call.js":
|
1721 |
+
/*!******************************************************************************************************************!*\
|
1722 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-call.js ***!
|
1723 |
+
\******************************************************************************************************************/
|
1724 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1725 |
+
|
1726 |
+
var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-bind-native.js");
|
1727 |
+
|
1728 |
+
var call = Function.prototype.call;
|
1729 |
+
|
1730 |
+
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
1731 |
+
return call.apply(call, arguments);
|
1732 |
+
};
|
1733 |
+
|
1734 |
+
|
1735 |
+
/***/ }),
|
1736 |
+
|
1737 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-name.js":
|
1738 |
+
/*!******************************************************************************************************************!*\
|
1739 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-name.js ***!
|
1740 |
+
\******************************************************************************************************************/
|
1741 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1742 |
+
|
1743 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
1744 |
+
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js");
|
1745 |
+
|
1746 |
+
var FunctionPrototype = Function.prototype;
|
1747 |
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
1748 |
+
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
1749 |
+
|
1750 |
+
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
1751 |
+
// additional protection from minified / mangled / dropped function names
|
1752 |
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
1753 |
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
1754 |
+
|
1755 |
+
module.exports = {
|
1756 |
+
EXISTS: EXISTS,
|
1757 |
+
PROPER: PROPER,
|
1758 |
+
CONFIGURABLE: CONFIGURABLE
|
1759 |
+
};
|
1760 |
+
|
1761 |
+
|
1762 |
+
/***/ }),
|
1763 |
+
|
1764 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js":
|
1765 |
+
/*!**************************************************************************************************************************!*\
|
1766 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js ***!
|
1767 |
+
\**************************************************************************************************************************/
|
1768 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1769 |
+
|
1770 |
+
var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-bind-native.js");
|
1771 |
+
|
1772 |
+
var FunctionPrototype = Function.prototype;
|
1773 |
+
var bind = FunctionPrototype.bind;
|
1774 |
+
var call = FunctionPrototype.call;
|
1775 |
+
var uncurryThis = NATIVE_BIND && bind.bind(call, call);
|
1776 |
+
|
1777 |
+
module.exports = NATIVE_BIND ? function (fn) {
|
1778 |
+
return fn && uncurryThis(fn);
|
1779 |
+
} : function (fn) {
|
1780 |
+
return fn && function () {
|
1781 |
+
return call.apply(fn, arguments);
|
1782 |
+
};
|
1783 |
+
};
|
1784 |
+
|
1785 |
+
|
1786 |
+
/***/ }),
|
1787 |
+
|
1788 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-built-in.js":
|
1789 |
+
/*!*****************************************************************************************************************!*\
|
1790 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-built-in.js ***!
|
1791 |
+
\*****************************************************************************************************************/
|
1792 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1793 |
+
|
1794 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
1795 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
1796 |
+
|
1797 |
+
var aFunction = function (argument) {
|
1798 |
+
return isCallable(argument) ? argument : undefined;
|
1799 |
+
};
|
1800 |
+
|
1801 |
+
module.exports = function (namespace, method) {
|
1802 |
+
return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
|
1803 |
+
};
|
1804 |
+
|
1805 |
+
|
1806 |
+
/***/ }),
|
1807 |
+
|
1808 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-method.js":
|
1809 |
+
/*!***************************************************************************************************************!*\
|
1810 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-method.js ***!
|
1811 |
+
\***************************************************************************************************************/
|
1812 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1813 |
+
|
1814 |
+
var aCallable = __webpack_require__(/*! ../internals/a-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/a-callable.js");
|
1815 |
+
|
1816 |
+
// `GetMethod` abstract operation
|
1817 |
+
// https://tc39.es/ecma262/#sec-getmethod
|
1818 |
+
module.exports = function (V, P) {
|
1819 |
+
var func = V[P];
|
1820 |
+
return func == null ? undefined : aCallable(func);
|
1821 |
+
};
|
1822 |
+
|
1823 |
+
|
1824 |
+
/***/ }),
|
1825 |
+
|
1826 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js":
|
1827 |
+
/*!***********************************************************************************************************!*\
|
1828 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js ***!
|
1829 |
+
\***********************************************************************************************************/
|
1830 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1831 |
+
|
1832 |
+
var check = function (it) {
|
1833 |
+
return it && it.Math == Math && it;
|
1834 |
+
};
|
1835 |
+
|
1836 |
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
1837 |
+
module.exports =
|
1838 |
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
1839 |
+
check(typeof globalThis == 'object' && globalThis) ||
|
1840 |
+
check(typeof window == 'object' && window) ||
|
1841 |
+
// eslint-disable-next-line no-restricted-globals -- safe
|
1842 |
+
check(typeof self == 'object' && self) ||
|
1843 |
+
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
|
1844 |
+
// eslint-disable-next-line no-new-func -- fallback
|
1845 |
+
(function () { return this; })() || Function('return this')();
|
1846 |
+
|
1847 |
+
|
1848 |
+
/***/ }),
|
1849 |
+
|
1850 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js":
|
1851 |
+
/*!*********************************************************************************************************************!*\
|
1852 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js ***!
|
1853 |
+
\*********************************************************************************************************************/
|
1854 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1855 |
+
|
1856 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
1857 |
+
var toObject = __webpack_require__(/*! ../internals/to-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-object.js");
|
1858 |
+
|
1859 |
+
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
1860 |
+
|
1861 |
+
// `HasOwnProperty` abstract operation
|
1862 |
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
1863 |
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
1864 |
+
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
1865 |
+
return hasOwnProperty(toObject(it), key);
|
1866 |
+
};
|
1867 |
+
|
1868 |
+
|
1869 |
+
/***/ }),
|
1870 |
+
|
1871 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/hidden-keys.js":
|
1872 |
+
/*!****************************************************************************************************************!*\
|
1873 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/hidden-keys.js ***!
|
1874 |
+
\****************************************************************************************************************/
|
1875 |
+
/***/ (function(module) {
|
1876 |
+
|
1877 |
+
module.exports = {};
|
1878 |
+
|
1879 |
+
|
1880 |
+
/***/ }),
|
1881 |
+
|
1882 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/html.js":
|
1883 |
+
/*!*********************************************************************************************************!*\
|
1884 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/html.js ***!
|
1885 |
+
\*********************************************************************************************************/
|
1886 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1887 |
+
|
1888 |
+
var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-built-in.js");
|
1889 |
+
|
1890 |
+
module.exports = getBuiltIn('document', 'documentElement');
|
1891 |
+
|
1892 |
+
|
1893 |
+
/***/ }),
|
1894 |
+
|
1895 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ie8-dom-define.js":
|
1896 |
+
/*!*******************************************************************************************************************!*\
|
1897 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ie8-dom-define.js ***!
|
1898 |
+
\*******************************************************************************************************************/
|
1899 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1900 |
+
|
1901 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
1902 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
1903 |
+
var createElement = __webpack_require__(/*! ../internals/document-create-element */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/document-create-element.js");
|
1904 |
+
|
1905 |
+
// Thanks to IE8 for its funny defineProperty
|
1906 |
+
module.exports = !DESCRIPTORS && !fails(function () {
|
1907 |
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
1908 |
+
return Object.defineProperty(createElement('div'), 'a', {
|
1909 |
+
get: function () { return 7; }
|
1910 |
+
}).a != 7;
|
1911 |
+
});
|
1912 |
+
|
1913 |
+
|
1914 |
+
/***/ }),
|
1915 |
+
|
1916 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/indexed-object.js":
|
1917 |
+
/*!*******************************************************************************************************************!*\
|
1918 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/indexed-object.js ***!
|
1919 |
+
\*******************************************************************************************************************/
|
1920 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1921 |
+
|
1922 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
1923 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
1924 |
+
var classof = __webpack_require__(/*! ../internals/classof-raw */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/classof-raw.js");
|
1925 |
+
|
1926 |
+
var $Object = Object;
|
1927 |
+
var split = uncurryThis(''.split);
|
1928 |
+
|
1929 |
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
1930 |
+
module.exports = fails(function () {
|
1931 |
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
1932 |
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
1933 |
+
return !$Object('z').propertyIsEnumerable(0);
|
1934 |
+
}) ? function (it) {
|
1935 |
+
return classof(it) == 'String' ? split(it, '') : $Object(it);
|
1936 |
+
} : $Object;
|
1937 |
+
|
1938 |
+
|
1939 |
+
/***/ }),
|
1940 |
+
|
1941 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/inspect-source.js":
|
1942 |
+
/*!*******************************************************************************************************************!*\
|
1943 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/inspect-source.js ***!
|
1944 |
+
\*******************************************************************************************************************/
|
1945 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1946 |
+
|
1947 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
1948 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
1949 |
+
var store = __webpack_require__(/*! ../internals/shared-store */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-store.js");
|
1950 |
+
|
1951 |
+
var functionToString = uncurryThis(Function.toString);
|
1952 |
+
|
1953 |
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
1954 |
+
if (!isCallable(store.inspectSource)) {
|
1955 |
+
store.inspectSource = function (it) {
|
1956 |
+
return functionToString(it);
|
1957 |
+
};
|
1958 |
+
}
|
1959 |
+
|
1960 |
+
module.exports = store.inspectSource;
|
1961 |
+
|
1962 |
+
|
1963 |
+
/***/ }),
|
1964 |
+
|
1965 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/internal-state.js":
|
1966 |
+
/*!*******************************************************************************************************************!*\
|
1967 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/internal-state.js ***!
|
1968 |
+
\*******************************************************************************************************************/
|
1969 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1970 |
+
|
1971 |
+
var NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/native-weak-map */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-weak-map.js");
|
1972 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
1973 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
1974 |
+
var isObject = __webpack_require__(/*! ../internals/is-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js");
|
1975 |
+
var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-non-enumerable-property.js");
|
1976 |
+
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js");
|
1977 |
+
var shared = __webpack_require__(/*! ../internals/shared-store */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-store.js");
|
1978 |
+
var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-key.js");
|
1979 |
+
var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/hidden-keys.js");
|
1980 |
+
|
1981 |
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
1982 |
+
var TypeError = global.TypeError;
|
1983 |
+
var WeakMap = global.WeakMap;
|
1984 |
+
var set, get, has;
|
1985 |
+
|
1986 |
+
var enforce = function (it) {
|
1987 |
+
return has(it) ? get(it) : set(it, {});
|
1988 |
+
};
|
1989 |
+
|
1990 |
+
var getterFor = function (TYPE) {
|
1991 |
+
return function (it) {
|
1992 |
+
var state;
|
1993 |
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
1994 |
+
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
1995 |
+
} return state;
|
1996 |
+
};
|
1997 |
+
};
|
1998 |
+
|
1999 |
+
if (NATIVE_WEAK_MAP || shared.state) {
|
2000 |
+
var store = shared.state || (shared.state = new WeakMap());
|
2001 |
+
var wmget = uncurryThis(store.get);
|
2002 |
+
var wmhas = uncurryThis(store.has);
|
2003 |
+
var wmset = uncurryThis(store.set);
|
2004 |
+
set = function (it, metadata) {
|
2005 |
+
if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
2006 |
+
metadata.facade = it;
|
2007 |
+
wmset(store, it, metadata);
|
2008 |
+
return metadata;
|
2009 |
+
};
|
2010 |
+
get = function (it) {
|
2011 |
+
return wmget(store, it) || {};
|
2012 |
+
};
|
2013 |
+
has = function (it) {
|
2014 |
+
return wmhas(store, it);
|
2015 |
+
};
|
2016 |
+
} else {
|
2017 |
+
var STATE = sharedKey('state');
|
2018 |
+
hiddenKeys[STATE] = true;
|
2019 |
+
set = function (it, metadata) {
|
2020 |
+
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
2021 |
+
metadata.facade = it;
|
2022 |
+
createNonEnumerableProperty(it, STATE, metadata);
|
2023 |
+
return metadata;
|
2024 |
+
};
|
2025 |
+
get = function (it) {
|
2026 |
+
return hasOwn(it, STATE) ? it[STATE] : {};
|
2027 |
+
};
|
2028 |
+
has = function (it) {
|
2029 |
+
return hasOwn(it, STATE);
|
2030 |
+
};
|
2031 |
+
}
|
2032 |
+
|
2033 |
+
module.exports = {
|
2034 |
+
set: set,
|
2035 |
+
get: get,
|
2036 |
+
has: has,
|
2037 |
+
enforce: enforce,
|
2038 |
+
getterFor: getterFor
|
2039 |
+
};
|
2040 |
+
|
2041 |
+
|
2042 |
+
/***/ }),
|
2043 |
+
|
2044 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js":
|
2045 |
+
/*!****************************************************************************************************************!*\
|
2046 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js ***!
|
2047 |
+
\****************************************************************************************************************/
|
2048 |
+
/***/ (function(module) {
|
2049 |
+
|
2050 |
+
// `IsCallable` abstract operation
|
2051 |
+
// https://tc39.es/ecma262/#sec-iscallable
|
2052 |
+
module.exports = function (argument) {
|
2053 |
+
return typeof argument == 'function';
|
2054 |
+
};
|
2055 |
+
|
2056 |
+
|
2057 |
+
/***/ }),
|
2058 |
+
|
2059 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-forced.js":
|
2060 |
+
/*!**************************************************************************************************************!*\
|
2061 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-forced.js ***!
|
2062 |
+
\**************************************************************************************************************/
|
2063 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2064 |
+
|
2065 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
2066 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
2067 |
+
|
2068 |
+
var replacement = /#|\.prototype\./;
|
2069 |
+
|
2070 |
+
var isForced = function (feature, detection) {
|
2071 |
+
var value = data[normalize(feature)];
|
2072 |
+
return value == POLYFILL ? true
|
2073 |
+
: value == NATIVE ? false
|
2074 |
+
: isCallable(detection) ? fails(detection)
|
2075 |
+
: !!detection;
|
2076 |
+
};
|
2077 |
+
|
2078 |
+
var normalize = isForced.normalize = function (string) {
|
2079 |
+
return String(string).replace(replacement, '.').toLowerCase();
|
2080 |
+
};
|
2081 |
+
|
2082 |
+
var data = isForced.data = {};
|
2083 |
+
var NATIVE = isForced.NATIVE = 'N';
|
2084 |
+
var POLYFILL = isForced.POLYFILL = 'P';
|
2085 |
+
|
2086 |
+
module.exports = isForced;
|
2087 |
+
|
2088 |
+
|
2089 |
+
/***/ }),
|
2090 |
+
|
2091 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js":
|
2092 |
+
/*!**************************************************************************************************************!*\
|
2093 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js ***!
|
2094 |
+
\**************************************************************************************************************/
|
2095 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2096 |
+
|
2097 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
2098 |
+
|
2099 |
+
module.exports = function (it) {
|
2100 |
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
2101 |
+
};
|
2102 |
+
|
2103 |
+
|
2104 |
+
/***/ }),
|
2105 |
+
|
2106 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-pure.js":
|
2107 |
+
/*!************************************************************************************************************!*\
|
2108 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-pure.js ***!
|
2109 |
+
\************************************************************************************************************/
|
2110 |
+
/***/ (function(module) {
|
2111 |
+
|
2112 |
+
module.exports = false;
|
2113 |
+
|
2114 |
+
|
2115 |
+
/***/ }),
|
2116 |
+
|
2117 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-symbol.js":
|
2118 |
+
/*!**************************************************************************************************************!*\
|
2119 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-symbol.js ***!
|
2120 |
+
\**************************************************************************************************************/
|
2121 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2122 |
+
|
2123 |
+
var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-built-in.js");
|
2124 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
2125 |
+
var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-is-prototype-of.js");
|
2126 |
+
var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/use-symbol-as-uid.js");
|
2127 |
+
|
2128 |
+
var $Object = Object;
|
2129 |
+
|
2130 |
+
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
2131 |
+
return typeof it == 'symbol';
|
2132 |
+
} : function (it) {
|
2133 |
+
var $Symbol = getBuiltIn('Symbol');
|
2134 |
+
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
2135 |
+
};
|
2136 |
+
|
2137 |
+
|
2138 |
+
/***/ }),
|
2139 |
+
|
2140 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/length-of-array-like.js":
|
2141 |
+
/*!*************************************************************************************************************************!*\
|
2142 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/length-of-array-like.js ***!
|
2143 |
+
\*************************************************************************************************************************/
|
2144 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2145 |
+
|
2146 |
+
var toLength = __webpack_require__(/*! ../internals/to-length */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-length.js");
|
2147 |
+
|
2148 |
+
// `LengthOfArrayLike` abstract operation
|
2149 |
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
2150 |
+
module.exports = function (obj) {
|
2151 |
+
return toLength(obj.length);
|
2152 |
+
};
|
2153 |
+
|
2154 |
+
|
2155 |
+
/***/ }),
|
2156 |
+
|
2157 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/make-built-in.js":
|
2158 |
+
/*!******************************************************************************************************************!*\
|
2159 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/make-built-in.js ***!
|
2160 |
+
\******************************************************************************************************************/
|
2161 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2162 |
+
|
2163 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
2164 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
2165 |
+
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js");
|
2166 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
2167 |
+
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(/*! ../internals/function-name */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-name.js").CONFIGURABLE);
|
2168 |
+
var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/inspect-source.js");
|
2169 |
+
var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/internal-state.js");
|
2170 |
+
|
2171 |
+
var enforceInternalState = InternalStateModule.enforce;
|
2172 |
+
var getInternalState = InternalStateModule.get;
|
2173 |
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
2174 |
+
var defineProperty = Object.defineProperty;
|
2175 |
+
|
2176 |
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
2177 |
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
2178 |
+
});
|
2179 |
+
|
2180 |
+
var TEMPLATE = String(String).split('String');
|
2181 |
+
|
2182 |
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
2183 |
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
2184 |
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
2185 |
+
}
|
2186 |
+
if (options && options.getter) name = 'get ' + name;
|
2187 |
+
if (options && options.setter) name = 'set ' + name;
|
2188 |
+
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
2189 |
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
2190 |
+
else value.name = name;
|
2191 |
+
}
|
2192 |
+
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
2193 |
+
defineProperty(value, 'length', { value: options.arity });
|
2194 |
+
}
|
2195 |
+
try {
|
2196 |
+
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
2197 |
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
2198 |
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
2199 |
+
} else if (value.prototype) value.prototype = undefined;
|
2200 |
+
} catch (error) { /* empty */ }
|
2201 |
+
var state = enforceInternalState(value);
|
2202 |
+
if (!hasOwn(state, 'source')) {
|
2203 |
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
2204 |
+
} return value;
|
2205 |
+
};
|
2206 |
+
|
2207 |
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
2208 |
+
// eslint-disable-next-line no-extend-native -- required
|
2209 |
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
2210 |
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
2211 |
+
}, 'toString');
|
2212 |
+
|
2213 |
+
|
2214 |
+
/***/ }),
|
2215 |
+
|
2216 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/math-trunc.js":
|
2217 |
+
/*!***************************************************************************************************************!*\
|
2218 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/math-trunc.js ***!
|
2219 |
+
\***************************************************************************************************************/
|
2220 |
+
/***/ (function(module) {
|
2221 |
+
|
2222 |
+
var ceil = Math.ceil;
|
2223 |
+
var floor = Math.floor;
|
2224 |
+
|
2225 |
+
// `Math.trunc` method
|
2226 |
+
// https://tc39.es/ecma262/#sec-math.trunc
|
2227 |
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
2228 |
+
module.exports = Math.trunc || function trunc(x) {
|
2229 |
+
var n = +x;
|
2230 |
+
return (n > 0 ? floor : ceil)(n);
|
2231 |
+
};
|
2232 |
+
|
2233 |
+
|
2234 |
+
/***/ }),
|
2235 |
+
|
2236 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-symbol.js":
|
2237 |
+
/*!******************************************************************************************************************!*\
|
2238 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-symbol.js ***!
|
2239 |
+
\******************************************************************************************************************/
|
2240 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2241 |
+
|
2242 |
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
2243 |
+
var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-v8-version.js");
|
2244 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
2245 |
+
|
2246 |
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
2247 |
+
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
2248 |
+
var symbol = Symbol();
|
2249 |
+
// Chrome 38 Symbol has incorrect toString conversion
|
2250 |
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
2251 |
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
2252 |
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
2253 |
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
2254 |
+
});
|
2255 |
+
|
2256 |
+
|
2257 |
+
/***/ }),
|
2258 |
+
|
2259 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-weak-map.js":
|
2260 |
+
/*!********************************************************************************************************************!*\
|
2261 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-weak-map.js ***!
|
2262 |
+
\********************************************************************************************************************/
|
2263 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2264 |
+
|
2265 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
2266 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
2267 |
+
var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/inspect-source.js");
|
2268 |
+
|
2269 |
+
var WeakMap = global.WeakMap;
|
2270 |
+
|
2271 |
+
module.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));
|
2272 |
+
|
2273 |
+
|
2274 |
+
/***/ }),
|
2275 |
+
|
2276 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-create.js":
|
2277 |
+
/*!******************************************************************************************************************!*\
|
2278 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-create.js ***!
|
2279 |
+
\******************************************************************************************************************/
|
2280 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2281 |
+
|
2282 |
+
/* global ActiveXObject -- old IE, WSH */
|
2283 |
+
var anObject = __webpack_require__(/*! ../internals/an-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/an-object.js");
|
2284 |
+
var definePropertiesModule = __webpack_require__(/*! ../internals/object-define-properties */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-properties.js");
|
2285 |
+
var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/enum-bug-keys.js");
|
2286 |
+
var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/hidden-keys.js");
|
2287 |
+
var html = __webpack_require__(/*! ../internals/html */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/html.js");
|
2288 |
+
var documentCreateElement = __webpack_require__(/*! ../internals/document-create-element */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/document-create-element.js");
|
2289 |
+
var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-key.js");
|
2290 |
+
|
2291 |
+
var GT = '>';
|
2292 |
+
var LT = '<';
|
2293 |
+
var PROTOTYPE = 'prototype';
|
2294 |
+
var SCRIPT = 'script';
|
2295 |
+
var IE_PROTO = sharedKey('IE_PROTO');
|
2296 |
+
|
2297 |
+
var EmptyConstructor = function () { /* empty */ };
|
2298 |
+
|
2299 |
+
var scriptTag = function (content) {
|
2300 |
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
2301 |
+
};
|
2302 |
+
|
2303 |
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
2304 |
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
2305 |
+
activeXDocument.write(scriptTag(''));
|
2306 |
+
activeXDocument.close();
|
2307 |
+
var temp = activeXDocument.parentWindow.Object;
|
2308 |
+
activeXDocument = null; // avoid memory leak
|
2309 |
+
return temp;
|
2310 |
+
};
|
2311 |
+
|
2312 |
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
2313 |
+
var NullProtoObjectViaIFrame = function () {
|
2314 |
+
// Thrash, waste and sodomy: IE GC bug
|
2315 |
+
var iframe = documentCreateElement('iframe');
|
2316 |
+
var JS = 'java' + SCRIPT + ':';
|
2317 |
+
var iframeDocument;
|
2318 |
+
iframe.style.display = 'none';
|
2319 |
+
html.appendChild(iframe);
|
2320 |
+
// https://github.com/zloirock/core-js/issues/475
|
2321 |
+
iframe.src = String(JS);
|
2322 |
+
iframeDocument = iframe.contentWindow.document;
|
2323 |
+
iframeDocument.open();
|
2324 |
+
iframeDocument.write(scriptTag('document.F=Object'));
|
2325 |
+
iframeDocument.close();
|
2326 |
+
return iframeDocument.F;
|
2327 |
+
};
|
2328 |
+
|
2329 |
+
// Check for document.domain and active x support
|
2330 |
+
// No need to use active x approach when document.domain is not set
|
2331 |
+
// see https://github.com/es-shims/es5-shim/issues/150
|
2332 |
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
2333 |
+
// avoid IE GC bug
|
2334 |
+
var activeXDocument;
|
2335 |
+
var NullProtoObject = function () {
|
2336 |
+
try {
|
2337 |
+
activeXDocument = new ActiveXObject('htmlfile');
|
2338 |
+
} catch (error) { /* ignore */ }
|
2339 |
+
NullProtoObject = typeof document != 'undefined'
|
2340 |
+
? document.domain && activeXDocument
|
2341 |
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
2342 |
+
: NullProtoObjectViaIFrame()
|
2343 |
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
2344 |
+
var length = enumBugKeys.length;
|
2345 |
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
2346 |
+
return NullProtoObject();
|
2347 |
+
};
|
2348 |
+
|
2349 |
+
hiddenKeys[IE_PROTO] = true;
|
2350 |
+
|
2351 |
+
// `Object.create` method
|
2352 |
+
// https://tc39.es/ecma262/#sec-object.create
|
2353 |
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
2354 |
+
module.exports = Object.create || function create(O, Properties) {
|
2355 |
+
var result;
|
2356 |
+
if (O !== null) {
|
2357 |
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
2358 |
+
result = new EmptyConstructor();
|
2359 |
+
EmptyConstructor[PROTOTYPE] = null;
|
2360 |
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
2361 |
+
result[IE_PROTO] = O;
|
2362 |
+
} else result = NullProtoObject();
|
2363 |
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
2364 |
+
};
|
2365 |
+
|
2366 |
+
|
2367 |
+
/***/ }),
|
2368 |
+
|
2369 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-properties.js":
|
2370 |
+
/*!*****************************************************************************************************************************!*\
|
2371 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-properties.js ***!
|
2372 |
+
\*****************************************************************************************************************************/
|
2373 |
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
2374 |
+
|
2375 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
2376 |
+
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/v8-prototype-define-bug.js");
|
2377 |
+
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js");
|
2378 |
+
var anObject = __webpack_require__(/*! ../internals/an-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/an-object.js");
|
2379 |
+
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-indexed-object.js");
|
2380 |
+
var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys.js");
|
2381 |
+
|
2382 |
+
// `Object.defineProperties` method
|
2383 |
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
2384 |
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
2385 |
+
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
2386 |
+
anObject(O);
|
2387 |
+
var props = toIndexedObject(Properties);
|
2388 |
+
var keys = objectKeys(Properties);
|
2389 |
+
var length = keys.length;
|
2390 |
+
var index = 0;
|
2391 |
+
var key;
|
2392 |
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
2393 |
+
return O;
|
2394 |
+
};
|
2395 |
+
|
2396 |
+
|
2397 |
+
/***/ }),
|
2398 |
+
|
2399 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js":
|
2400 |
+
/*!***************************************************************************************************************************!*\
|
2401 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js ***!
|
2402 |
+
\***************************************************************************************************************************/
|
2403 |
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
2404 |
+
|
2405 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
2406 |
+
var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ie8-dom-define.js");
|
2407 |
+
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/v8-prototype-define-bug.js");
|
2408 |
+
var anObject = __webpack_require__(/*! ../internals/an-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/an-object.js");
|
2409 |
+
var toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-property-key.js");
|
2410 |
+
|
2411 |
+
var $TypeError = TypeError;
|
2412 |
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
2413 |
+
var $defineProperty = Object.defineProperty;
|
2414 |
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
2415 |
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
2416 |
+
var ENUMERABLE = 'enumerable';
|
2417 |
+
var CONFIGURABLE = 'configurable';
|
2418 |
+
var WRITABLE = 'writable';
|
2419 |
+
|
2420 |
+
// `Object.defineProperty` method
|
2421 |
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
2422 |
+
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
2423 |
+
anObject(O);
|
2424 |
+
P = toPropertyKey(P);
|
2425 |
+
anObject(Attributes);
|
2426 |
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
2427 |
+
var current = $getOwnPropertyDescriptor(O, P);
|
2428 |
+
if (current && current[WRITABLE]) {
|
2429 |
+
O[P] = Attributes.value;
|
2430 |
+
Attributes = {
|
2431 |
+
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
2432 |
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
2433 |
+
writable: false
|
2434 |
+
};
|
2435 |
+
}
|
2436 |
+
} return $defineProperty(O, P, Attributes);
|
2437 |
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
2438 |
+
anObject(O);
|
2439 |
+
P = toPropertyKey(P);
|
2440 |
+
anObject(Attributes);
|
2441 |
+
if (IE8_DOM_DEFINE) try {
|
2442 |
+
return $defineProperty(O, P, Attributes);
|
2443 |
+
} catch (error) { /* empty */ }
|
2444 |
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
|
2445 |
+
if ('value' in Attributes) O[P] = Attributes.value;
|
2446 |
+
return O;
|
2447 |
+
};
|
2448 |
+
|
2449 |
+
|
2450 |
+
/***/ }),
|
2451 |
+
|
2452 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-descriptor.js":
|
2453 |
+
/*!***************************************************************************************************************************************!*\
|
2454 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
|
2455 |
+
\***************************************************************************************************************************************/
|
2456 |
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
2457 |
+
|
2458 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
2459 |
+
var call = __webpack_require__(/*! ../internals/function-call */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-call.js");
|
2460 |
+
var propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-property-is-enumerable.js");
|
2461 |
+
var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-property-descriptor.js");
|
2462 |
+
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-indexed-object.js");
|
2463 |
+
var toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-property-key.js");
|
2464 |
+
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js");
|
2465 |
+
var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ie8-dom-define.js");
|
2466 |
+
|
2467 |
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
2468 |
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
2469 |
+
|
2470 |
+
// `Object.getOwnPropertyDescriptor` method
|
2471 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
2472 |
+
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
2473 |
+
O = toIndexedObject(O);
|
2474 |
+
P = toPropertyKey(P);
|
2475 |
+
if (IE8_DOM_DEFINE) try {
|
2476 |
+
return $getOwnPropertyDescriptor(O, P);
|
2477 |
+
} catch (error) { /* empty */ }
|
2478 |
+
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
2479 |
+
};
|
2480 |
+
|
2481 |
+
|
2482 |
+
/***/ }),
|
2483 |
+
|
2484 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-names.js":
|
2485 |
+
/*!**********************************************************************************************************************************!*\
|
2486 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-names.js ***!
|
2487 |
+
\**********************************************************************************************************************************/
|
2488 |
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
2489 |
+
|
2490 |
+
var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys-internal.js");
|
2491 |
+
var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/enum-bug-keys.js");
|
2492 |
+
|
2493 |
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
2494 |
+
|
2495 |
+
// `Object.getOwnPropertyNames` method
|
2496 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
2497 |
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
2498 |
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
2499 |
+
return internalObjectKeys(O, hiddenKeys);
|
2500 |
+
};
|
2501 |
+
|
2502 |
+
|
2503 |
+
/***/ }),
|
2504 |
+
|
2505 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-symbols.js":
|
2506 |
+
/*!************************************************************************************************************************************!*\
|
2507 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-symbols.js ***!
|
2508 |
+
\************************************************************************************************************************************/
|
2509 |
+
/***/ (function(__unused_webpack_module, exports) {
|
2510 |
+
|
2511 |
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
2512 |
+
exports.f = Object.getOwnPropertySymbols;
|
2513 |
+
|
2514 |
+
|
2515 |
+
/***/ }),
|
2516 |
+
|
2517 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-is-prototype-of.js":
|
2518 |
+
/*!***************************************************************************************************************************!*\
|
2519 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-is-prototype-of.js ***!
|
2520 |
+
\***************************************************************************************************************************/
|
2521 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2522 |
+
|
2523 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
2524 |
+
|
2525 |
+
module.exports = uncurryThis({}.isPrototypeOf);
|
2526 |
+
|
2527 |
+
|
2528 |
+
/***/ }),
|
2529 |
+
|
2530 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys-internal.js":
|
2531 |
+
/*!*************************************************************************************************************************!*\
|
2532 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys-internal.js ***!
|
2533 |
+
\*************************************************************************************************************************/
|
2534 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2535 |
+
|
2536 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
2537 |
+
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js");
|
2538 |
+
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-indexed-object.js");
|
2539 |
+
var indexOf = (__webpack_require__(/*! ../internals/array-includes */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/array-includes.js").indexOf);
|
2540 |
+
var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/hidden-keys.js");
|
2541 |
+
|
2542 |
+
var push = uncurryThis([].push);
|
2543 |
+
|
2544 |
+
module.exports = function (object, names) {
|
2545 |
+
var O = toIndexedObject(object);
|
2546 |
+
var i = 0;
|
2547 |
+
var result = [];
|
2548 |
+
var key;
|
2549 |
+
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
|
2550 |
+
// Don't enum bug & hidden keys
|
2551 |
+
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
2552 |
+
~indexOf(result, key) || push(result, key);
|
2553 |
+
}
|
2554 |
+
return result;
|
2555 |
+
};
|
2556 |
+
|
2557 |
+
|
2558 |
+
/***/ }),
|
2559 |
+
|
2560 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys.js":
|
2561 |
+
/*!****************************************************************************************************************!*\
|
2562 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys.js ***!
|
2563 |
+
\****************************************************************************************************************/
|
2564 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2565 |
+
|
2566 |
+
var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys-internal.js");
|
2567 |
+
var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/enum-bug-keys.js");
|
2568 |
+
|
2569 |
+
// `Object.keys` method
|
2570 |
+
// https://tc39.es/ecma262/#sec-object.keys
|
2571 |
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
2572 |
+
module.exports = Object.keys || function keys(O) {
|
2573 |
+
return internalObjectKeys(O, enumBugKeys);
|
2574 |
+
};
|
2575 |
+
|
2576 |
+
|
2577 |
+
/***/ }),
|
2578 |
+
|
2579 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-property-is-enumerable.js":
|
2580 |
+
/*!**********************************************************************************************************************************!*\
|
2581 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-property-is-enumerable.js ***!
|
2582 |
+
\**********************************************************************************************************************************/
|
2583 |
+
/***/ (function(__unused_webpack_module, exports) {
|
2584 |
+
|
2585 |
+
"use strict";
|
2586 |
+
|
2587 |
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
2588 |
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
2589 |
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
2590 |
+
|
2591 |
+
// Nashorn ~ JDK8 bug
|
2592 |
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
2593 |
+
|
2594 |
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
2595 |
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
2596 |
+
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
2597 |
+
var descriptor = getOwnPropertyDescriptor(this, V);
|
2598 |
+
return !!descriptor && descriptor.enumerable;
|
2599 |
+
} : $propertyIsEnumerable;
|
2600 |
+
|
2601 |
+
|
2602 |
+
/***/ }),
|
2603 |
+
|
2604 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ordinary-to-primitive.js":
|
2605 |
+
/*!**************************************************************************************************************************!*\
|
2606 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ordinary-to-primitive.js ***!
|
2607 |
+
\**************************************************************************************************************************/
|
2608 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2609 |
+
|
2610 |
+
var call = __webpack_require__(/*! ../internals/function-call */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-call.js");
|
2611 |
+
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js");
|
2612 |
+
var isObject = __webpack_require__(/*! ../internals/is-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js");
|
2613 |
+
|
2614 |
+
var $TypeError = TypeError;
|
2615 |
+
|
2616 |
+
// `OrdinaryToPrimitive` abstract operation
|
2617 |
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
2618 |
+
module.exports = function (input, pref) {
|
2619 |
+
var fn, val;
|
2620 |
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
2621 |
+
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
2622 |
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
2623 |
+
throw $TypeError("Can't convert object to primitive value");
|
2624 |
+
};
|
2625 |
+
|
2626 |
+
|
2627 |
+
/***/ }),
|
2628 |
+
|
2629 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/own-keys.js":
|
2630 |
+
/*!*************************************************************************************************************!*\
|
2631 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/own-keys.js ***!
|
2632 |
+
\*************************************************************************************************************/
|
2633 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2634 |
+
|
2635 |
+
var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-built-in.js");
|
2636 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
2637 |
+
var getOwnPropertyNamesModule = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-names.js");
|
2638 |
+
var getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-symbols.js");
|
2639 |
+
var anObject = __webpack_require__(/*! ../internals/an-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/an-object.js");
|
2640 |
+
|
2641 |
+
var concat = uncurryThis([].concat);
|
2642 |
+
|
2643 |
+
// all object keys, includes non-enumerable and symbols
|
2644 |
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
2645 |
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
2646 |
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
2647 |
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
2648 |
+
};
|
2649 |
+
|
2650 |
+
|
2651 |
+
/***/ }),
|
2652 |
+
|
2653 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/require-object-coercible.js":
|
2654 |
+
/*!*****************************************************************************************************************************!*\
|
2655 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/require-object-coercible.js ***!
|
2656 |
+
\*****************************************************************************************************************************/
|
2657 |
+
/***/ (function(module) {
|
2658 |
+
|
2659 |
+
var $TypeError = TypeError;
|
2660 |
+
|
2661 |
+
// `RequireObjectCoercible` abstract operation
|
2662 |
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
2663 |
+
module.exports = function (it) {
|
2664 |
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
2665 |
+
return it;
|
2666 |
+
};
|
2667 |
+
|
2668 |
+
|
2669 |
+
/***/ }),
|
2670 |
+
|
2671 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-key.js":
|
2672 |
+
/*!***************************************************************************************************************!*\
|
2673 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-key.js ***!
|
2674 |
+
\***************************************************************************************************************/
|
2675 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2676 |
+
|
2677 |
+
var shared = __webpack_require__(/*! ../internals/shared */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared.js");
|
2678 |
+
var uid = __webpack_require__(/*! ../internals/uid */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/uid.js");
|
2679 |
+
|
2680 |
+
var keys = shared('keys');
|
2681 |
+
|
2682 |
+
module.exports = function (key) {
|
2683 |
+
return keys[key] || (keys[key] = uid(key));
|
2684 |
+
};
|
2685 |
+
|
2686 |
|
2687 |
/***/ }),
|
2688 |
|
2689 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-store.js":
|
2690 |
+
/*!*****************************************************************************************************************!*\
|
2691 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-store.js ***!
|
2692 |
+
\*****************************************************************************************************************/
|
2693 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2694 |
|
2695 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
2696 |
+
var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-global-property.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2697 |
|
2698 |
+
var SHARED = '__core-js_shared__';
|
2699 |
+
var store = global[SHARED] || defineGlobalProperty(SHARED, {});
|
2700 |
|
2701 |
+
module.exports = store;
|
2702 |
|
2703 |
|
2704 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
|
|
|
|
2705 |
|
2706 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared.js":
|
2707 |
+
/*!***********************************************************************************************************!*\
|
2708 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared.js ***!
|
2709 |
+
\***********************************************************************************************************/
|
2710 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2711 |
+
|
2712 |
+
var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-pure.js");
|
2713 |
+
var store = __webpack_require__(/*! ../internals/shared-store */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-store.js");
|
2714 |
+
|
2715 |
+
(module.exports = function (key, value) {
|
2716 |
+
return store[key] || (store[key] = value !== undefined ? value : {});
|
2717 |
+
})('versions', []).push({
|
2718 |
+
version: '3.23.3',
|
2719 |
+
mode: IS_PURE ? 'pure' : 'global',
|
2720 |
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
2721 |
+
license: 'https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE',
|
2722 |
+
source: 'https://github.com/zloirock/core-js'
|
2723 |
+
});
|
2724 |
+
|
2725 |
+
|
2726 |
+
/***/ }),
|
2727 |
+
|
2728 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-absolute-index.js":
|
2729 |
+
/*!**********************************************************************************************************************!*\
|
2730 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-absolute-index.js ***!
|
2731 |
+
\**********************************************************************************************************************/
|
2732 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2733 |
+
|
2734 |
+
var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-integer-or-infinity.js");
|
2735 |
+
|
2736 |
+
var max = Math.max;
|
2737 |
+
var min = Math.min;
|
2738 |
+
|
2739 |
+
// Helper for a popular repeating case of the spec:
|
2740 |
+
// Let integer be ? ToInteger(index).
|
2741 |
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
2742 |
+
module.exports = function (index, length) {
|
2743 |
+
var integer = toIntegerOrInfinity(index);
|
2744 |
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
2745 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2746 |
|
|
|
|
|
|
|
|
|
2747 |
|
2748 |
+
/***/ }),
|
2749 |
+
|
2750 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-indexed-object.js":
|
2751 |
+
/*!**********************************************************************************************************************!*\
|
2752 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-indexed-object.js ***!
|
2753 |
+
\**********************************************************************************************************************/
|
2754 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2755 |
+
|
2756 |
+
// toObject with fallback for non-array-like ES3 strings
|
2757 |
+
var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/indexed-object.js");
|
2758 |
+
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/require-object-coercible.js");
|
2759 |
+
|
2760 |
+
module.exports = function (it) {
|
2761 |
+
return IndexedObject(requireObjectCoercible(it));
|
2762 |
};
|
2763 |
|
2764 |
+
|
2765 |
/***/ }),
|
2766 |
|
2767 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-integer-or-infinity.js":
|
2768 |
+
/*!***************************************************************************************************************************!*\
|
2769 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-integer-or-infinity.js ***!
|
2770 |
+
\***************************************************************************************************************************/
|
2771 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2772 |
|
2773 |
+
var trunc = __webpack_require__(/*! ../internals/math-trunc */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/math-trunc.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
2774 |
|
2775 |
+
// `ToIntegerOrInfinity` abstract operation
|
2776 |
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
2777 |
+
module.exports = function (argument) {
|
2778 |
+
var number = +argument;
|
2779 |
+
// eslint-disable-next-line no-self-compare -- NaN check
|
2780 |
+
return number !== number || number === 0 ? 0 : trunc(number);
|
2781 |
+
};
|
2782 |
|
2783 |
+
|
2784 |
+
/***/ }),
|
2785 |
+
|
2786 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-length.js":
|
2787 |
+
/*!**************************************************************************************************************!*\
|
2788 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-length.js ***!
|
2789 |
+
\**************************************************************************************************************/
|
2790 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2791 |
+
|
2792 |
+
var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-integer-or-infinity.js");
|
2793 |
+
|
2794 |
+
var min = Math.min;
|
2795 |
+
|
2796 |
+
// `ToLength` abstract operation
|
2797 |
+
// https://tc39.es/ecma262/#sec-tolength
|
2798 |
+
module.exports = function (argument) {
|
2799 |
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
2800 |
};
|
|
|
|
|
|
|
|
|
|
|
2801 |
|
|
|
|
|
|
|
2802 |
|
2803 |
+
/***/ }),
|
|
|
|
|
2804 |
|
2805 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-object.js":
|
2806 |
+
/*!**************************************************************************************************************!*\
|
2807 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-object.js ***!
|
2808 |
+
\**************************************************************************************************************/
|
2809 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2810 |
|
2811 |
+
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/require-object-coercible.js");
|
2812 |
|
2813 |
+
var $Object = Object;
|
2814 |
+
|
2815 |
+
// `ToObject` abstract operation
|
2816 |
+
// https://tc39.es/ecma262/#sec-toobject
|
2817 |
+
module.exports = function (argument) {
|
2818 |
+
return $Object(requireObjectCoercible(argument));
|
2819 |
};
|
2820 |
|
2821 |
+
|
2822 |
/***/ }),
|
2823 |
|
2824 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-primitive.js":
|
2825 |
+
/*!*****************************************************************************************************************!*\
|
2826 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-primitive.js ***!
|
2827 |
+
\*****************************************************************************************************************/
|
2828 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2829 |
|
2830 |
+
var call = __webpack_require__(/*! ../internals/function-call */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-call.js");
|
2831 |
+
var isObject = __webpack_require__(/*! ../internals/is-object */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js");
|
2832 |
+
var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-symbol.js");
|
2833 |
+
var getMethod = __webpack_require__(/*! ../internals/get-method */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-method.js");
|
2834 |
+
var ordinaryToPrimitive = __webpack_require__(/*! ../internals/ordinary-to-primitive */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ordinary-to-primitive.js");
|
2835 |
+
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/well-known-symbol.js");
|
2836 |
+
|
2837 |
+
var $TypeError = TypeError;
|
2838 |
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
2839 |
+
|
2840 |
+
// `ToPrimitive` abstract operation
|
2841 |
+
// https://tc39.es/ecma262/#sec-toprimitive
|
2842 |
+
module.exports = function (input, pref) {
|
2843 |
+
if (!isObject(input) || isSymbol(input)) return input;
|
2844 |
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
2845 |
+
var result;
|
2846 |
+
if (exoticToPrim) {
|
2847 |
+
if (pref === undefined) pref = 'default';
|
2848 |
+
result = call(exoticToPrim, input, pref);
|
2849 |
+
if (!isObject(result) || isSymbol(result)) return result;
|
2850 |
+
throw $TypeError("Can't convert object to primitive value");
|
2851 |
+
}
|
2852 |
+
if (pref === undefined) pref = 'number';
|
2853 |
+
return ordinaryToPrimitive(input, pref);
|
2854 |
+
};
|
2855 |
|
2856 |
|
2857 |
+
/***/ }),
|
2858 |
|
2859 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-property-key.js":
|
2860 |
+
/*!********************************************************************************************************************!*\
|
2861 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-property-key.js ***!
|
2862 |
+
\********************************************************************************************************************/
|
2863 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2864 |
|
2865 |
+
var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-primitive.js");
|
2866 |
+
var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-symbol.js");
|
|
|
|
|
|
|
|
|
2867 |
|
2868 |
+
// `ToPropertyKey` abstract operation
|
2869 |
+
// https://tc39.es/ecma262/#sec-topropertykey
|
2870 |
+
module.exports = function (argument) {
|
2871 |
+
var key = toPrimitive(argument, 'string');
|
2872 |
+
return isSymbol(key) ? key : key + '';
|
2873 |
+
};
|
2874 |
|
|
|
|
|
|
|
|
|
2875 |
|
2876 |
/***/ }),
|
2877 |
|
2878 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/try-to-string.js":
|
2879 |
+
/*!******************************************************************************************************************!*\
|
2880 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/try-to-string.js ***!
|
2881 |
+
\******************************************************************************************************************/
|
2882 |
+
/***/ (function(module) {
|
2883 |
+
|
2884 |
+
var $String = String;
|
2885 |
+
|
2886 |
+
module.exports = function (argument) {
|
2887 |
+
try {
|
2888 |
+
return $String(argument);
|
2889 |
+
} catch (error) {
|
2890 |
+
return 'Object';
|
2891 |
+
}
|
2892 |
+
};
|
2893 |
|
|
|
|
|
|
|
|
|
2894 |
|
2895 |
/***/ }),
|
2896 |
|
2897 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/uid.js":
|
2898 |
+
/*!********************************************************************************************************!*\
|
2899 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/uid.js ***!
|
2900 |
+
\********************************************************************************************************/
|
2901 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2902 |
+
|
2903 |
+
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js");
|
2904 |
+
|
2905 |
+
var id = 0;
|
2906 |
+
var postfix = Math.random();
|
2907 |
+
var toString = uncurryThis(1.0.toString);
|
2908 |
+
|
2909 |
+
module.exports = function (key) {
|
2910 |
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
2911 |
+
};
|
2912 |
|
|
|
|
|
|
|
|
|
2913 |
|
2914 |
/***/ }),
|
2915 |
|
2916 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/use-symbol-as-uid.js":
|
2917 |
+
/*!**********************************************************************************************************************!*\
|
2918 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/use-symbol-as-uid.js ***!
|
2919 |
+
\**********************************************************************************************************************/
|
2920 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2921 |
+
|
2922 |
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
2923 |
+
var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/native-symbol */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-symbol.js");
|
2924 |
+
|
2925 |
+
module.exports = NATIVE_SYMBOL
|
2926 |
+
&& !Symbol.sham
|
2927 |
+
&& typeof Symbol.iterator == 'symbol';
|
2928 |
+
|
2929 |
+
|
2930 |
+
/***/ }),
|
2931 |
+
|
2932 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/v8-prototype-define-bug.js":
|
2933 |
+
/*!****************************************************************************************************************************!*\
|
2934 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/v8-prototype-define-bug.js ***!
|
2935 |
+
\****************************************************************************************************************************/
|
2936 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2937 |
+
|
2938 |
+
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js");
|
2939 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
2940 |
+
|
2941 |
+
// V8 ~ Chrome 36-
|
2942 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
2943 |
+
module.exports = DESCRIPTORS && fails(function () {
|
2944 |
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
2945 |
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
2946 |
+
value: 42,
|
2947 |
+
writable: false
|
2948 |
+
}).prototype != 42;
|
2949 |
+
});
|
2950 |
+
|
2951 |
+
|
2952 |
+
/***/ }),
|
2953 |
+
|
2954 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/well-known-symbol.js":
|
2955 |
+
/*!**********************************************************************************************************************!*\
|
2956 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/well-known-symbol.js ***!
|
2957 |
+
\**********************************************************************************************************************/
|
2958 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2959 |
+
|
2960 |
+
var global = __webpack_require__(/*! ../internals/global */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js");
|
2961 |
+
var shared = __webpack_require__(/*! ../internals/shared */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared.js");
|
2962 |
+
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js");
|
2963 |
+
var uid = __webpack_require__(/*! ../internals/uid */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/uid.js");
|
2964 |
+
var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/native-symbol */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-symbol.js");
|
2965 |
+
var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/use-symbol-as-uid.js");
|
2966 |
+
|
2967 |
+
var WellKnownSymbolsStore = shared('wks');
|
2968 |
+
var Symbol = global.Symbol;
|
2969 |
+
var symbolFor = Symbol && Symbol['for'];
|
2970 |
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
|
2971 |
+
|
2972 |
+
module.exports = function (name) {
|
2973 |
+
if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
2974 |
+
var description = 'Symbol.' + name;
|
2975 |
+
if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {
|
2976 |
+
WellKnownSymbolsStore[name] = Symbol[name];
|
2977 |
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
2978 |
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
2979 |
+
} else {
|
2980 |
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
2981 |
+
}
|
2982 |
+
} return WellKnownSymbolsStore[name];
|
2983 |
+
};
|
2984 |
+
|
2985 |
+
|
2986 |
+
/***/ }),
|
2987 |
+
|
2988 |
+
/***/ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/modules/es.array.includes.js":
|
2989 |
+
/*!********************************************************************************************************************!*\
|
2990 |
+
!*** ./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/modules/es.array.includes.js ***!
|
2991 |
+
\********************************************************************************************************************/
|
2992 |
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
2993 |
|
2994 |
"use strict";
|
2995 |
+
|
2996 |
+
var $ = __webpack_require__(/*! ../internals/export */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/export.js");
|
2997 |
+
var $includes = (__webpack_require__(/*! ../internals/array-includes */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/array-includes.js").includes);
|
2998 |
+
var fails = __webpack_require__(/*! ../internals/fails */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js");
|
2999 |
+
var addToUnscopables = __webpack_require__(/*! ../internals/add-to-unscopables */ "./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/add-to-unscopables.js");
|
3000 |
+
|
3001 |
+
// FF99+ bug
|
3002 |
+
var BROKEN_ON_SPARSE = fails(function () {
|
3003 |
+
return !Array(1).includes();
|
3004 |
+
});
|
3005 |
+
|
3006 |
+
// `Array.prototype.includes` method
|
3007 |
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
3008 |
+
$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
3009 |
+
includes: function includes(el /* , fromIndex = 0 */) {
|
3010 |
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
3011 |
+
}
|
3012 |
+
});
|
3013 |
+
|
3014 |
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
3015 |
+
addToUnscopables('includes');
|
3016 |
+
|
3017 |
|
3018 |
/***/ }),
|
3019 |
|
5019 |
/******/ };
|
5020 |
/******/ }();
|
5021 |
/******/
|
5022 |
+
/******/ /* webpack/runtime/global */
|
5023 |
+
/******/ !function() {
|
5024 |
+
/******/ __webpack_require__.g = (function() {
|
5025 |
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
5026 |
+
/******/ try {
|
5027 |
+
/******/ return this || new Function('return this')();
|
5028 |
+
/******/ } catch (e) {
|
5029 |
+
/******/ if (typeof window === 'object') return window;
|
5030 |
+
/******/ }
|
5031 |
+
/******/ })();
|
5032 |
+
/******/ }();
|
5033 |
+
/******/
|
5034 |
/******/ /* webpack/runtime/harmony module decorator */
|
5035 |
/******/ !function() {
|
5036 |
/******/ __webpack_require__.hmd = function(module) {
|
js/dist/admin.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"admin.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA2Y,aAAa,oCAAoC,YAAY,mBAAmB,KAAK,mBAAmB,sEAAsE,SAAS,wBAAwB,aAAa,cAAc,4BAA4B,cAAc,qBAAqB,aAAa,kBAAkB,cAAc,oBAAoB,gBAAgB,+BAA+B,GAAG,2DAA2D,aAAa,IAAI,YAAY,IAAI,qBAAqB,EAAE,GAAG,mBAAmB,KAAK,aAAa,2DAA2D,iGAAiG,cAAc,GAAG,aAAa,oDAAoD,oBAAoB,wDAAwD,oFAAoF,yBAAyB,cAAc,GAAG,gBAAgB,iCAAiC,mBAAmB,OAAO,4BAA4B,mDAAC,gDAAgD,uBAAuB,iCAAiC,QAAQ,EAAE,qBAAqB,OAAO,6BAA6B,mDAAC,gCAAgC,mGAAmG,EAAE,yCAAyC,8BAA8B,OAAO,IAAI,sBAAsB,eAAe,wCAAwC,QAAQ,eAAe,sBAAsB,mBAAmB,6DAA6D,SAAS,YAAY,0BAA0B,2EAA2E,oBAAoB,YAAY,kBAAkB,QAAQ,WAAW,sCAAsC,SAAS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;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA6F,aAAa;AAC1G;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6EAA6E,eAAe;AAC5F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,k/BAAk/B;;AAEl/B;AACA,wYAAwY;AACxY;AACA;AACA;;AAEA;AACA,gTAAgT;AAChT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA8B,EAAE,iBAAiB,EAAE,MAAM;;AAEzD;AACA,sDAAsD;;AAEtD,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,aAAa,UAAU;AACvB,cAAc,oBAAoB;AAClC;AACA;;;AAGA;AACA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C;AAC1C;;AAEA;AACA,0CAA0C;AAC1C;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,sBAAsB;AACxC,kBAAkB,SAAS;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,6CAA6C;AAC7C;;AAEA;AACA,2CAA2C;AAC3C;;AAEA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA,sKAAsK;;AAEtK;AACA;AACA,QAAQ;AACR;;AAEA,wDAAwD;AACxD,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;AAC9D,sDAAsD;AACtD,sDAAsD;AACtD;AACA,uDAAuD;;AAEvD,uDAAuD;;AAEvD,sEAAsE;;AAEtE,4DAA4D;;AAE5D,oDAAoD;;AAEpD,4CAA4C;;AAE5C,8DAA8D;;AAE9D,8DAA8D;;AAE9D,4CAA4C;;AAE5C,iDAAiD;;AAEjD,iDAAiD;;AAEjD,wCAAwC;;AAExC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA,kCAAkC;AAClC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,QAAQ;AACR;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA,oDAAoD;AACpD,6CAA6C,yDAAyD;AACtG;AACA;AACA;;AAEA,kDAAkD;AAClD;AACA;AACA;;AAEA,kCAAkC;AAClC;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA,gBAAgB,SAAS;AACzB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA,2CAA2C;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;;AAGA;AACA;AACA,UAAU;AACV;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;;AAGA;AACA;AACA,UAAU;AACV;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;;;AAGA;AACA,QAAQ;AACR;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;;;AAGA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB;;;AAGA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;;AAEA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA,YAAY;AACZ,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,UAAU;AAC1B;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,UAAU,WAAW;AACrB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B,gBAAgB,UAAU;AAC1B;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB,gBAAgB,QAAQ;AACxB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,iBAAiB,SAAS;AAC1B;;;AAGA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA,yCAAyC,QAAQ;AACjD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;;;AAG5C,wFAAwF,+DAA+D;AACvJ;AACA;AACA;AACA;AACA;AACA,uTAAuT;AACvT;AACA;AACA;;AAEA,QAAQ,wCAAwC,sFAAsF,oKAAoK,qHAAqH,mBAAmB;AAClb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sCAAsC;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6CAA6C;;AAE7C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;;;AAGA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,aAAa;AAC5B,eAAe,QAAQ;AACvB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;;;AAGA;AACA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,UAAU;AACzB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,CAAC;AACD;;;;;;;;;;;AC7mDA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE,EAAE,OAAO;AAC5C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB,WAAW,UAAU;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C,YAAY;AACtD,cAAc,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AaC,IAAb,CAAmB,OAAnB,EAA4B,MAAM;IACjCR,+EAAA;EACA,CAFD;AAGA,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/@lipemat-js-boilerplate-gutenberg-virtual-6ce9f74a52/0/cache/@lipemat-js-boilerplate-gutenberg-npm-2.9.5-b01ffe5a8b-6d75996942.zip/node_modules/@lipemat/js-boilerplate-gutenberg/dist/index.module.js","webpack://@onpointplugins/advanced-sidebar-menu/./src/components/ErrorBoundary.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/globals/config.ts","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/SideLoad.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/Display.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/InfoPanel.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/Preview.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/categories/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/categories/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/helpers.ts","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/index.ts","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/info-panel.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/edit.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/preview.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/dompurify-npm-2.3.10-6db07a88c6-ee343876b4.zip/node_modules/dompurify/dist/purify.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-string-replace-npm-1.1.0-9af2371852-5df67fbdb4.zip/node_modules/react-string-replace/index.js","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/ sync block\\.tsx$","webpack://@onpointplugins/advanced-sidebar-menu/external var \"React\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"jQuery\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"lodash\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.apiFetch\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blockEditor\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blocks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.components\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.data\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.hooks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.htmlEntities\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.i18n\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.plugins\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.serverSideRender\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.url\"","webpack://@onpointplugins/advanced-sidebar-menu/webpack/bootstrap","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/compat get default export","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/define property getters","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/harmony module decorator","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/hasOwnProperty shorthand","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/make namespace object","webpack://@onpointplugins/advanced-sidebar-menu/./src/admin.js"],"sourcesContent":["import e from\"@wordpress/api-fetch\";import{__ as t}from\"@wordpress/i18n\";import{addQueryArgs as n}from\"@wordpress/url\";import{registerBlockType as r,unregisterBlockType as o}from\"@wordpress/blocks\";import{registerPlugin as i,unregisterPlugin as u}from\"@wordpress/plugins\";import{select as s,dispatch as c,useDispatch as a,useSelect as d}from\"@wordpress/data\";import{useCallback as f}from\"react\";function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l,v,h=[];function m(e){return h.push(e),h.length-1}function w(e){return delete h[e],h}function g(){return void 0!==v}function b(e){E(),v=m(function(e){function t(e,n){var r=e.headers,o=void 0===r?{}:r;for(var i in o)\"x-wp-nonce\"===i.toLowerCase()&&delete o[i];return n(p({},e,{headers:p({},o,{\"X-WP-Nonce\":t.nonce})}))}return t.nonce=e,t}(e))}function P(){void 0!==v&&(w(v),v=void 0),void 0===l&&(l=m(function(e,t){if(void 0!==e.headers)for(var n in e.headers)\"x-wp-nonce\"===n.toLowerCase()&&delete e.headers[n];return t(e,t)}))}function E(){void 0!==v&&w(v),void 0!==l&&w(l),v=void 0,l=void 0}var y=function(e,t){return void 0===t&&(t=!0),Promise.resolve(function(e,t){return void 0===t&&(t=!0),t?204===e.status?null:e.json?e.json():Promise.reject(e):e}(e,t)).catch(function(e){return T(e,t)})};function T(e,n){if(void 0===n&&(n=!0),!n)throw e;return function(e){var n={code:\"invalid_json\",message:t(\"The response is not a valid JSON response.\")};if(!e||!e.json)throw n;return e.json().catch(function(){throw n})}(e).then(function(e){var n={code:\"unknown_error\",message:t(\"An unknown error occurred.\")};throw\"rest_cookie_invalid_nonce\"===e.code&&g()&&(e.code=\"external_rest_cookie_invalid_nonce\"),e||n})}var k,_=[\"url\",\"path\",\"data\",\"parse\"],j={Accept:\"application/json, */*;q=0.1\"},x={credentials:\"include\"},O=function(e){if(e.status>=200&&e.status<300)return e;throw e},B=function(e){var n=function e(t,n){return function(r){return void 0===n[t]?r:(0,n[t])(r,t===n.length-1?function(e){return e}:e(t+1,n))}}(0,h.filter(Boolean))(p({},x,e)),r=n.url,o=n.path,i=n.data,u=n.parse,s=void 0===u||u,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(n,_),a=n.body,d=n.headers;return d=p({},j,d),i&&(a=JSON.stringify(i),d[\"Content-Type\"]=\"application/json\"),window.fetch(r||o,p({},c,{body:a,headers:d})).then(function(e){return Promise.resolve(e).then(O).catch(function(e){return T(e,s)}).then(function(e){return y(e,s)})},function(){throw{code:\"fetch_error\",message:t(\"You are probably offline.\")}})},C=function(e,t,n){return Promise.resolve(A(e,t,n,!1)).then(function(e){return Promise.resolve(y(e)).then(function(t){return{items:t,totalPages:parseInt(e.headers.get(\"X-WP-TotalPages\")||\"1\"),totalItems:parseInt(e.headers.get(\"X-WP-Total\")||\"0\")}})})},A=function(t,r,o,i){void 0===i&&(i=!0);try{return Promise.resolve(e(void 0===o||\"GET\"===r?{method:r,parse:i,path:n(t,o)}:{data:o,method:r,parse:i,path:t}))}catch(e){return Promise.reject(e)}};function G(e){return{create:function(t){return A(e,\"POST\",t)},delete:function(t){return A(e+=\"/\"+t,\"DELETE\",{force:!0})},get:function(t){return A(e,\"GET\",t)},getById:function(t,n){return A(e+=\"/\"+t,\"GET\",n)},getWithPagination:function(t){return C(e,\"GET\",t)},trash:function(t){return A(e+=\"/\"+t,\"DELETE\")},update:function(t){return A(e+=\"/\"+t.id,\"PATCH\",t)}}}function L(t){var n={};return[\"categories\",\"comments\",\"blocks\",\"media\",\"menus\",\"menu-locations\",\"menu-items\",\"statuses\",\"pages\",\"posts\",\"tags\",\"taxonomies\",\"types\",\"search\"].map(function(e){return n[e]=function(){return G(\"/wp/v2/\"+e)}}),n.menuLocations=function(){return G(\"/wp/v2/menu-locations\")},n.menuItems=function(){return G(\"/wp/v2/menu-items\")},n.users=function(){var e=G(\"/wp/v2/users\");return e.delete=function(e,t){return void 0===t&&(t=!1),A(\"/wp/v2/users/\"+e,\"DELETE\",{force:!0,reassign:t})},e},n.applicationPasswords=function(){return{create:function(e,t){return A(\"/wp/v2/users/\"+e+\"/application-passwords\",\"POST\",t)},delete:function(e,t){return A(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"DELETE\")},get:function(e){return A(\"/wp/v2/users/\"+e+\"/application-passwords\",\"GET\")},getById:function(e,t){return A(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"GET\")},introspect:function(e){return A(\"/wp/v2/users/\"+e+\"/application-passwords/introspect\",\"GET\")},update:function(e,t,n){return A(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"PUT\",n)}}},n.settings=function(){return{get:function(){return A(\"/wp/v2/settings\",\"GET\")},update:function(e){return A(\"/wp/v2/settings\",\"POST\",e)}}},void 0!==t&&Object.keys(t).map(function(e){return n[e]=t[e]}),e.setFetchHandler(B),n}function R(){w(k)}function I(t,n){k&&w(k),k=m(e.createRootURLMiddleware(t.replace(/\\/$/,\"\")+\"/\")),window.location.hostname&&new URL(t).hostname===window.location.hostname?E():void 0!==n?b(n):g()||P()}var S,D=function(r){return Promise.resolve(function(o,i){try{var u=Promise.resolve(e({path:\"/\",method:\"GET\"})).then(function(e){return e.authentication[\"application-passwords\"]?n(e.authentication[\"application-passwords\"].endpoints.authorization,r):{code:\"application_passwords_disabled\",message:t(\"Application passwords are not enabled on this site.\"),data:null}})}catch(e){return e}return u&&u.then?u.then(void 0,function(e){return e}):u}())};function M(){return void 0!==S}function W(){void 0!==S&&(w(S),S=void 0)}function N(e,t){W(),S=m(function(n,r){var o=n.headers;return r(p({},n,{headers:p({},void 0===o?{}:o,{Authorization:\"Basic \"+btoa(e+\":\"+t)})}),r)})}var U=function(e,t){z({afterReload:q,beforeReload:J,getContext:e,pluginModule:t,register:r,unregister:o,type:\"block\"})},X=function(e,t){z({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:i,unregister:u,type:\"plugin\"})},z=function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,u=e.unregister,s=e.type,c={},a=function(){n();var e=r();if(e){var o=[];return e.keys().forEach(function(t){var n=e(t);n.exclude||n!==c[t]&&(c[n.name+\"-\"+s]&&u(n.name),i(n.name,n.settings),o.push(n.name),c[n.name+\"-\"+s]=n)}),t(o),e}},d=a();o.hot&&null!=d&&d.id&&o.hot.accept(d.id,a)},H=null,J=function(){H=s(\"core/block-editor\").getSelectedBlockClientId(),c(\"core/block-editor\").clearSelectedBlock()},q=function(e){void 0===e&&(e=[]),s(\"core/block-editor\").getBlocks().forEach(function(t){var n=t.clientId;e.includes(t.name)&&c(\"core/block-editor\").selectBlock(n)}),H?c(\"core/block-editor\").selectBlock(H):c(\"core/block-editor\").clearSelectedBlock(),H=null};function F(e){var t=a(\"core/editor\").editPost,n=d(function(e){return{previous:e(\"core/editor\").getCurrentPostAttribute(\"meta\"),current:e(\"core/editor\").getEditedPostAttribute(\"meta\")}}),r=e?n.current[e]:n.current,o=e?n.previous[e]:n.previous,i=f(function(n){var r;e&&t({meta:(r={},r[e]=n,r)})},[t,e]),u=f(function(e,n){var r;t({meta:(r={},r[e]=n,r)})},[t]);return e?[r,i,o]:[r,u,o]}function Y(e){var t=a(\"core/editor\").editPost,n=d(function(t){var n=t(\"core\").getTaxonomy(e);return n?{taxonomy:n,current:t(\"core/editor\").getEditedPostAttribute(n.rest_base),previous:t(\"core/editor\").getCurrentPostAttribute(n.rest_base)}:{current:[],previous:[]}}),r=f(function(e){try{var r;return Promise.resolve(n.taxonomy?t(((r={})[n.taxonomy.rest_base]=e,r)):void 0)}catch(e){return Promise.reject(e)}},[n,t]);return[n.current,r,n.previous]}export{m as addMiddleware,z as autoload,U as autoloadBlocks,X as autoloadPlugins,W as clearApplicationPassword,P as clearNonce,G as createMethods,B as defaultFetchHandler,A as doRequest,C as doRequestWithPagination,N as enableApplicationPassword,D as getAuthorizationUrl,M as hasApplicationPassword,g as hasExternalNonce,w as removeMiddleware,E as restoreNonce,R as restoreRootURL,b as setNonce,I as setRootURL,F as usePostMeta,Y as useTerms,L as wpapi};\n//# sourceMappingURL=index.module.js.map\n","import {Component, ErrorInfo} from 'react';\nimport {CONFIG} from '../globals/config';\nimport {addQueryArgs} from '@wordpress/url';\nimport {sanitize} from 'dompurify';\n\n/**\n * Wrap any component in me, which may throw errors, and I will\n * prevent the entire UI from disappearing.\n *\n * Custom version special to Advanced Sidebar Menu with links to\n * support as well as debugging information.\n *\n * @link https://reactjs.org/docs/error-boundaries.html#introducing-error-boundaries\n */\nclass ErrorBoundary extends Component<{ attributes: Record<string, any>, block: string }, { hasError: boolean, error: Error | null }> {\n\tconstructor( props ) {\n\t\tsuper( props );\n\t\tthis.state = {\n\t\t\thasError: false,\n\t\t\terror: null,\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromError() {\n\t\t// Update state, so the next render will show the fallback UI.\n\t\treturn {\n\t\t\thasError: true,\n\t\t};\n\t}\n\n\t/**\n\t * Log information about the error when it happens.\n\t *\n\t * @notice Will log \"Error: A cross-origin error was thrown. React doesn't have\n\t * access to the actual error object in development\" in React development\n\t * mode but provides full error info in React production.\n\t */\n\tcomponentDidCatch( error: Error, info: ErrorInfo ) {\n\t\tconsole.log( '%cError caught by the Advanced Sidebar ErrorBoundary!', 'color:orange; font-size: large; font-weight: bold' );\n\t\tconsole.log( this.props );\n\t\tconsole.log( error );\n\t\tconsole.log( info );\n\t\tthis.setState( {\n\t\t\terror,\n\t\t} );\n\t}\n\n\trender() {\n\t\tif ( this.state.hasError ) {\n\t\t\tif ( ! CONFIG.siteInfo.scriptDebug ) {\n\t\t\t\treturn ( <div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a href={addQueryArgs( sanitize( window.location.href ), {'script-debug': true}, )}>\n\t\t\t\t\t\t\tenable script debug\n\t\t\t\t\t\t</a>:\n\t\t\t\t\t</p>\n\t\t\t\t</div> );\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a target=\"_blank\" href={CONFIG.support} rel=\"noreferrer\">\n\t\t\t\t\t\t\tcreate a support request\n\t\t\t\t\t\t</a> with the following:\n\t\t\t\t\t</p>\n\t\t\t\t\t<ol>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe <a\n\t\t\t\t\t\t\t\thref={'https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/'}\n\t\t\t\t\t\t\t\ttarget={'_blank'} rel=\"noreferrer\">\n\t\t\t\t\t\t\t\tlogs from your browser console.\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe following information.\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ol>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tborder: '2px groove',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\toverflowWrap: 'break-word',\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Message</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.message}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Block</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.block}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Attributes</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( this.props.attributes )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Site Info</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( CONFIG.siteInfo )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Stack</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.stack}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default ErrorBoundary;\n","import {ComponentClass, FunctionComponent} from 'react';\nimport {TransformLegacy} from '../gutenberg/helpers';\n\ninterface JSConfig {\n\tblocks: {\n\t\tcategories: {\n\t\t\tid: string;\n\t\t};\n\t\tpages: {\n\t\t\tid: string;\n\t\t};\n\t\tnavigation?: {\n\t\t\tid: string;\n\t\t}\n\t};\n\tcategories: {\n\t\tdisplayEach: { [ value: string ]: string };\n\t};\n\tcurrentScreen: 'site-editor' | 'widgets' | 'post' | 'customize';\n\tdocs: {\n\t\tpage: string;\n\t\tcategory: string;\n\t};\n\terror: false | string;\n\tErrorBoundary: ComponentClass<{ attributes: Record<string, any>, block: string }>;\n\tfeatures: Array<string>;\n\tisPro: boolean;\n\tpages: {\n\t\torderBy: { [ value: string ]: string };\n\t};\n\tPreview: FunctionComponent<any>;\n\tsiteInfo: {\n\t\tbasic: string;\n\t\tpro: string;\n\t\tscriptDebug: boolean;\n\t\twordpress: string;\n\t};\n\tsupport: string;\n\ttransformLegacyWidget: TransformLegacy;\n}\n\n\ndeclare global {\n\tinterface Window {\n\t\tADVANCED_SIDEBAR_MENU: JSConfig;\n\t\t__TEST__?: boolean;\n\t}\n}\n\nexport const CONFIG: JSConfig = window.ADVANCED_SIDEBAR_MENU || ( {} as JSConfig );\n","import {withFilters} from '@wordpress/components';\nimport {select} from '@wordpress/data';\nimport {isEmpty} from 'lodash';\n\ntype Props = {\n\tclientId: string;\n};\n\nlet firstClientId = '';\n/**\n * The customizer area does not include a `PluginArea` component,\n * so our slot fills do not load.\n *\n * We can use filters, but the Fills double up each time\n * another block is added to the page.\n *\n * Track the clientId of the first block we add the Fill to\n * and only return the Fill for that block. The rest of the blocks\n * inherit the Fill from the first block via their Slots.\n */\nconst SideLoad = ( {clientId, children} ) => {\n\tif ( ! isEmpty( firstClientId ) && clientId !== firstClientId ) {\n\t\t// Make sure block still exists.\n\t\tif ( -1 !== select( 'core/block-editor' ).getBlockIndex( firstClientId ) ) {\n\t\t\treturn null;\n\t\t}\n\t}\n\tfirstClientId = clientId;\n\treturn children ?? null;\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.side-load' )( SideLoad );\n","import {CheckboxControl, PanelBody, Slot} from '@wordpress/components';\nimport {CONFIG} from '../../globals/config';\nimport type {Attr as PageAttr} from './pages/block';\nimport type {Attr as CategoryAttr} from './categories/block';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {range} from 'lodash';\nimport reactStringReplace from 'react-string-replace';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport ErrorBoundary from '../../components/ErrorBoundary';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {PropsWithChildren} from 'react';\n\n\nexport type DisplayOptions = {\n\tdisplay_all: boolean;\n\tinclude_childless_parent: boolean;\n\tinclude_parent: boolean;\n\tlevels: number;\n}\n\nexport type FillProps =\n\tPick<BlockEditProps<PageAttr | CategoryAttr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type | Taxonomy }\n\ntype Props = PropsWithChildren<{\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type | Taxonomy;\n\tname: string;\n\tclientId: string;\n}>;\n\nconst checkboxes: { [attr in keyof Partial<DisplayOptions>]: string } = {\n\t/* translators: Selected taxonomy single label */\n\tinclude_parent: __( 'Display the highest level parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy single label */\n\tinclude_childless_parent: __( 'Display menu when there is only the parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy plural label */\n\tdisplay_all: __( 'Always display child %s', 'advanced-sidebar-menu' ),\n};\n\n/**\n * Display Options shared between widgets.\n *\n * 1. Display the highest level parent page.\n * 2. Display menu when there is only the parent page.\n * 3. Always display child pages.\n * 5. Display levels of child pages.\n *\n */\nconst Display = ( {\n\tattributes,\n\tsetAttributes,\n\ttype,\n\tname,\n\tclientId,\n\tchildren,\n}: Props ) => {\n\tconst showLevels = ( CONFIG.blocks.pages.id === name && CONFIG.isPro ) || attributes.display_all;\n\n\tconst fillProps: FillProps = {\n\t\ttype,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn (\n\t\t<PanelBody title={__( 'Display', 'advanced-sidebar-menu' )}>\n\t\t\t{Object.keys( checkboxes ).map( item => {\n\t\t\t\tlet label = type?.labels?.singular_name.toLowerCase() ?? '';\n\t\t\t\tif ( 'display_all' === item ) {\n\t\t\t\t\tlabel = type?.labels?.name.toLowerCase() ?? '';\n\t\t\t\t}\n\t\t\t\treturn <CheckboxControl\n\t\t\t\t\tkey={item}\n\t\t\t\t\t//eslint-disable-next-line @wordpress/valid-sprintf\n\t\t\t\t\tlabel={sprintf( checkboxes[ item ], label )}\n\t\t\t\t\tchecked={!! attributes[ item ]}\n\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ item ]: !! value,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}}\n\t\t\t\t/>;\n\t\t\t} )}\n\t\t\t{showLevels && <div className={'components-base-control'}>\n\t\t\t\t{/* translators: {select html input}, {post type plural label} */\n\t\t\t\t\treactStringReplace( __( 'Display %1$s levels of child %2$s', 'advanced-sidebar-menu' ).replace( '%2$s', type?.labels?.name.toLowerCase() ?? '' ), '%1$s',\n\t\t\t\t\t\t() => (\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tkey={'levels'}\n\t\t\t\t\t\t\t\tvalue={attributes.levels}\n\t\t\t\t\t\t\t\tonChange={ev => setAttributes( {levels: parseInt( ev.target.value )} )}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<option value=\"100\">\n\t\t\t\t\t\t\t\t\t{__( '- All -', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t{range( 1, 10 ).map( n => <option key={n} value={n}>\n\t\t\t\t\t\t\t\t\t{n}\n\t\t\t\t\t\t\t\t</option> )}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t) )}\n\t\t\t</div>}\n\n\t\t\t{children}\n\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t{CONFIG.blocks.pages.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t\t{CONFIG.blocks.categories.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t</ErrorBoundary>\n\n\t\t</PanelBody>\n\t);\n};\n\nexport default Display;\n","import {CONFIG} from '../../globals/config';\nimport {Button, PanelBody, withFilters} from '@wordpress/components';\nimport {InspectorControls} from '@wordpress/block-editor';\nimport {decodeEntities} from '@wordpress/html-entities';\nimport {__} from '@wordpress/i18n';\n\nimport styles from './info-panel.pcss';\n\ntype Props = {\n\tclientId: string;\n};\n\nconst InfoPanel = ( {}: Props ) => {\n\treturn ( <InspectorControls>\n\t\t<PanelBody\n\t\t\ttitle={__( 'Advanced Sidebar Menu PRO', 'advanced-sidebar-menu' )}\n\t\t\tclassName={styles.wrap}\n\t\t>\n\t\t\t<ul>\n\t\t\t\t{CONFIG.features.map( feature =>\n\t\t\t\t\t<li key={feature}>{decodeEntities( feature )}</li> )}\n\t\t\t\t<li>\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-more&utm_campaign=gopro&utm_medium=wp-dash\"\n\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\tstyle={{textDecoration: 'none'}}\n\t\t\t\t\t\trel=\"noreferrer\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{__( 'So much more…', 'advanced-sidebar-menu' )}\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<Button\n\t\t\t\tclassName={styles.button}\n\t\t\t\thref={'https://onpointplugins.com/product/advanced-sidebar-menu-pro/?trigger_buy_now=1&utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash'}\n\t\t\t\ttarget={'_blank'}\n\t\t\t\trel={'noreferrer'}\n\t\t\t\tisPrimary\n\t\t\t>\n\t\t\t\t{__( 'Upgrade', 'advanced-sidebar-menu' )}\n\t\t\t</Button>\n\t\t</PanelBody>\n\t</InspectorControls> );\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.info-panel' )( InfoPanel );\n","import {ReactElement, useEffect} from 'react';\nimport {CONFIG} from '../../globals/config';\nimport ServerSideRender from '@wordpress/server-side-render';\nimport {Placeholder, Spinner} from '@wordpress/components';\nimport {useBlockProps} from '@wordpress/block-editor';\nimport {sanitize} from 'dompurify';\nimport {doAction} from '@wordpress/hooks';\nimport {__} from '@wordpress/i18n';\n\nimport styles from './preview.pcss';\nimport {select} from '@wordpress/data';\n\nexport type PreviewOptions = {\n\tisServerSideRenderRequest: boolean;\n\tclientId: string;\n\tsidebarId: string;\n}\n\ntype Props<A> = {\n\tattributes: A;\n\tblock: string;\n\tclientId: string;\n};\n\n/**\n * Sanitize a client id for use as an HTML id.\n *\n * Must not start with a `-` or a digit.\n *\n */\nexport const sanitizeClientId = ( clientId: string ): string => {\n\treturn clientId.replace( /^([\\d-])/, '_$1' );\n};\n\n/**\n * If we are in the widgets' area, the block is wrapped in\n * a \"sidebar\" block. We retrieve the id to pass along with\n * the request to use the `widget_args` within the preview.\n *\n */\nconst getSidebarId = ( clientId: string ): string => {\n\tif ( 'widgets' !== CONFIG.currentScreen ) {\n\t\treturn '';\n\t}\n\tconst rootId = select( 'core/block-editor' ).getBlockRootClientId( clientId );\n\tif ( rootId ) {\n\t\tconst ParentBlock = select( 'core/block-editor' ).getBlocksByClientId( [ rootId ] );\n\t\tif ( ParentBlock[ 0 ] && 'core/widget-area' === ParentBlock[ 0 ].name ) {\n\t\t\treturn ParentBlock[ 0 ]?.attributes?.id;\n\t\t}\n\t}\n\n\treturn '';\n};\n\n/**\n * @notice Must use static constants, or the ServerSide requests\n * will fire anytime something on the page is changed\n * because the component re-renders.\n */\nconst Page = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={'welcome-widgets-menus'}\n\tlabel={__( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Category = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={'welcome-widgets-menus'}\n\tlabel={__( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Navigation = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={'welcome-widgets-menus'}\n\tlabel={__( 'Advanced Sidebar - Navigation', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\n/**\n * @notice The styles will not display for the preview\n * in the block inserter sidebar when Webpack\n * is enabled because the iframe has a late init.\n *\n */\nconst placeholder = ( block ): () => ReactElement => {\n\tswitch ( block ) {\n\t\tcase CONFIG.blocks.pages.id:\n\t\t\treturn Page;\n\t\tcase CONFIG.blocks.categories.id:\n\t\t\treturn Category;\n\t\tcase CONFIG.blocks.navigation?.id:\n\t\t\treturn Navigation;\n\t}\n\treturn () => <></>;\n};\n\n\n/**\n * Same as the `DefaultLoadingResponsePlaceholder` except we trigger\n * an action when the loading component is unmounted to allow\n * components to hook into when ServerSideRender has finished loading.\n *\n * @notice Using a constant to prevent reload on every content change.\n *\n */\nconst TriggerWhenLoadingFinished = ( {\n\tchildren,\n\tattributes = {\n\t\tclientId: '',\n\t},\n} ) => {\n\tuseEffect( () => {\n\t\t// Call action when the loading component unmounts because loading is finished.\n\t\treturn () => {\n\t\t\t// Give the preview a chance to load on WP 5.8.\n\t\t\tsetTimeout( () => {\n\t\t\t\t$( '[data-preview=\"' + `${attributes.clientId}` + '\"]' )\n\t\t\t\t\t.find( 'a' )\n\t\t\t\t\t.on( 'click', ev => ev.preventDefault() );\n\n\t\t\t\tdoAction( 'advanced-sidebar-menu.blocks.preview.loading-finished', {\n\t\t\t\t\tvalues: attributes,\n\t\t\t\t\tclientId: attributes.clientId,\n\t\t\t\t} );\n\t\t\t}, 100 );\n\t\t};\n\t} );\n\n\t/**\n\t * ServerSideRender returns a <RawHTML /> filled with an error object when fetch fails.\n\t *\n\t * We throw an error, so our `ErrorBoundary` will catch it, otherwise we end up\n\t * with a \"React objects may not be used as children\" error, which means nothing.\n\t */\n\tif ( children?.props?.children?.errorMsg ) {\n\t\tthrow new Error( children?.props?.children?.errorMsg ?? 'Failed' );\n\t}\n\n\treturn (\n\t\t<div className={styles.spinWrap}>\n\t\t\t<div className={styles.spin}>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t\t<div className={styles.spinContent}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\n\nconst Preview = <A, >( {attributes, block, clientId}: Props<A> ) => {\n\tconst blockProps = useBlockProps();\n\n\tif ( '' !== CONFIG.error ) {\n\t\treturn <div\n\t\t\tclassName={styles.error}\n\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />;\n\t}\n\n\n\tconst sanitizedClientId = sanitizeClientId( clientId );\n\n\t// Prevent styles from doubling up as they are already added via render in PHP.\n\tdelete blockProps.style;\n\n\treturn (\n\t\t<div {...blockProps} data-preview={sanitizedClientId}>\n\t\t\t<ServerSideRender<A & PreviewOptions>\n\t\t\t\tEmptyResponsePlaceholder={placeholder( block )}\n\t\t\t\tLoadingResponsePlaceholder={TriggerWhenLoadingFinished}\n\t\t\t\tattributes={{\n\t\t\t\t\t...attributes,\n\t\t\t\t\t// Send custom attribute to determine server side renders.\n\t\t\t\t\tisServerSideRenderRequest: true,\n\t\t\t\t\tclientId: sanitizedClientId,\n\t\t\t\t\tsidebarId: getSidebarId( clientId ),\n\t\t\t\t}}\n\t\t\t\tblock={block}\n\t\t\t\thttpMethod={'POST'}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Preview;\n","import {useSelect} from '@wordpress/data';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport Preview from '../Preview';\nimport {Attr, block} from './block';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport Display from '../Display';\nimport {\n\tCheckboxControl,\n\tPanelBody,\n\tSelectControl,\n\tSlot,\n\tTextControl,\n} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport InfoPanel from '../InfoPanel';\n\nimport styles from '../pages/edit.pcss';\nimport SideLoad from '../../SideLoad';\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Taxonomy }\n\ntype Props = BlockEditProps<Attr>;\n\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst taxonomy: Taxonomy | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getTaxonomy( attributes.taxonomy ?? 'category' );\n\t\treturn type ?? select( 'core' ).getTaxonomy( 'category' );\n\t}, [ attributes.taxonomy ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: taxonomy,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t{( 'widgets' === CONFIG.currentScreen || 'site-editor' === CONFIG.currentScreen || 'customize' === CONFIG.currentScreen ) &&\n\t\t\t\t\t<PanelBody>\n\t\t\t\t\t\t<TextControl\n\t\t\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t\t\t</PanelBody>}\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={taxonomy}\n\t\t\t\t>\n\t\t\t\t\t{/* Not offering \"Display categories on single posts\"\n\t\t when editing a post because this must be true, or\n\t\t the block won't display.\n\n\t\t We default the attribute to `true` if we are editing\n\t\t a post during register of block attributes. */}\n\t\t\t\t\t{'post' !== CONFIG.currentScreen && <CheckboxControl\n\t\t\t\t\t\t/* translators: Selected taxonomy plural label */\n\t\t\t\t\t\tlabel={sprintf( __( 'Display %s on single posts', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\tchecked={!! attributes.single}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tsingle: !! value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>}\n\t\t\t\t\t{/*\n\t\t\t\t\t\t Only widget screens support this option because we\n\t\t\t\t\t\t have no widget wrap to use on other screens, so they are\n\t\t\t\t\t\t list only. */}\n\t\t\t\t\t{( 'widgets' === CONFIG.currentScreen ) && attributes.single &&\n\t\t\t\t\t\t<SelectControl<'list' | 'widget'>\n\t\t\t\t\t\t\t/* translators: Selected taxonomy single label */\n\t\t\t\t\t\t\tlabel={sprintf( __( 'Display each single post\\'s %s', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\t\tvalue={attributes.new_widget}\n\t\t\t\t\t\t\toptions={Object.entries( CONFIG.categories.displayEach ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\t\t/* eslint-disable-next-line camelcase */\n\t\t\t\t\t\t\tonChange={new_widget => setAttributes( {new_widget} )}\n\t\t\t\t\t\t/>}\n\t\t\t\t</Display>\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<TextControl\n\t\t\t\t\t\t/* translators: Selected post type plural label */\n\t\t\t\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), taxonomy?.labels?.name ?? '' )}\n\t\t\t\t\t\tvalue={attributes.exclude}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\texclude: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.category}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {PreviewOptions} from '../Preview';\nimport {CONFIG} from '../../../globals/config';\nimport {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\tnew_widget: 'widget' | 'list';\n\torder_by: string;\n\tsingle: boolean;\n\ttitle: string;\n} & DisplayOptions & ProRegistered & PreviewOptions;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\ttaxonomy: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\t'display-posts': 'all',\n\t'display-posts/limit': 2,\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tparent_page_bg_color: '#282828',\n\tparent_page_color: '#0cc4c6',\n\tparent_page_font_weight: 'normal',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: '2',\n};\n\n\nexport const block = CONFIG.blocks.categories;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE as any,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( ! instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu_category' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\t// `attributes` are registered server side because we use ServerSideRender.\n\t// `supports` are registered server side for easy overrides.\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 2,\n};\n","import {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport {PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Attr, block} from './block';\nimport Preview from '../Preview';\nimport Display from '../Display';\nimport {useSelect} from '@wordpress/data';\nimport InfoPanel from '../InfoPanel';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\n\nimport styles from './edit.pcss';\nimport SideLoad from '../../SideLoad';\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type }\n\ntype Props = BlockEditProps<Attr>;\n\n/**\n * Pages block content in the editor.\n */\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst postType: Type | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getPostType( attributes.post_type ?? 'page' );\n\t\treturn type ?? select( 'core' ).getPostType( 'page' );\n\t}, [ attributes.post_type ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: postType,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t{( 'widgets' === CONFIG.currentScreen || 'site-editor' === CONFIG.currentScreen || 'customize' === CONFIG.currentScreen ) &&\n\t\t\t\t\t<PanelBody>\n\t\t\t\t\t\t<TextControl\n\t\t\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t\t\t</PanelBody>}\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={postType} />\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={__( 'Order by', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tvalue={attributes.order_by}\n\t\t\t\t\t\tlabelPosition={'side'}\n\t\t\t\t\t\toptions={Object.entries( CONFIG.pages.orderBy ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\torder_by: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\t\t\t\t\t<TextControl\n\t\t\t\t\t\t/* translators: Selected post type plural label */\n\t\t\t\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), postType?.labels?.name ?? '' )}\n\t\t\t\t\t\tvalue={attributes.exclude}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\texclude: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.page}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport {CONFIG} from '../../../globals/config';\nimport Edit from './Edit';\nimport {PreviewOptions} from '../Preview';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\torder_by: string;\n\ttitle: string;\n} & DisplayOptions & ProRegistered & PreviewOptions;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\tpost_type: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\tinclude_parent: true,\n\tinclude_childless_parent: true,\n\tdisplay_all: true,\n\tlevels: '2',\n\tapply_current_page_styles_to_parent: true,\n\tapply_current_page_parent_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tparent_page_color: '#fff',\n\tparent_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tchild_page_bg_color: '#666',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_font_weight: 'bold',\n\tcurrent_page_color: '#0cc4c6',\n\tcurrent_page_bg_color: '#282828',\n\tcurrent_page_font_weight: 'normal',\n\tcurrent_page_parent_bg_color: '#333',\n};\n\nexport const block = CONFIG.blocks.pages;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE as any,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( ! instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\t// `attributes` are registered server side because we use ServerSideRender.\n\t// `supports` are registered server side for easy overrides.\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 2,\n};\n","import {createBlock, CreateBlock} from '@wordpress/blocks';\n\nexport type TransformLegacy = <A>( name: string ) => ( widgetValues: { instance: Record<string, any> } ) => CreateBlock<A>[];\n\n/**\n * Transform a legacy widget to the matching block.\n *\n */\nexport const transformLegacyWidget: TransformLegacy = <A>( name: string ) => ( {instance} ) => {\n\treturn [ createBlock<A>( name, translateLegacyWidget<A>( instance.raw ) ) ];\n};\n\n/**\n * Translate the widget's \"checked\" to the boolean\n * version used in the block.\n *\n */\nconst translateLegacyWidget = <A>( settings ): A => {\n\tObject.entries( settings ).forEach( ( [ key, value ] ) => {\n\t\tif ( 'checked' === value ) {\n\t\t\tsettings[ key ] = true;\n\t\t}\n\t\tif ( 'object' === typeof value ) {\n\t\t\ttranslateLegacyWidget( settings[ key ] );\n\t\t}\n\t\t// Old widgets used to use \"0\" for some defaults.\n\t\tif ( '0' === value ) {\n\t\t\tdelete settings[ key ];\n\t\t}\n\t} );\n\treturn settings;\n};\n","import {autoloadBlocks} from '@lipemat/js-boilerplate-gutenberg';\nimport Preview from './blocks/Preview';\nimport {transformLegacyWidget} from './helpers';\nimport ErrorBoundary from '../components/ErrorBoundary';\n\n/**\n * Use our custom autoloader to automatically require,\n * register and add HMR support to Gutenberg related items.\n *\n * Will load from specified directory recursively.\n */\nexport default () => {\n\t// Load all blocks\n\tautoloadBlocks( () => require.context( './blocks', true, /block\\.tsx$/ ), module );\n\n\t// Expose helpers and Preview component to window, so we can use them in PRO.\n\twindow.ADVANCED_SIDEBAR_MENU.ErrorBoundary = ErrorBoundary;\n\twindow.ADVANCED_SIDEBAR_MENU.Preview = Preview;\n\twindow.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = transformLegacyWidget;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"info-panel__wrap__YT\",\"button\":\"info-panel__button__PN\"};","// extracted by mini-css-extract-plugin\nexport default {\"error\":\"edit__error___h\"};","// extracted by mini-css-extract-plugin\nexport default {\"placeholder\":\"preview__placeholder__QP\",\"error\":\"preview__error__xF\",\"spin-wrap\":\"preview__spin-wrap__Jr\",\"spinWrap\":\"preview__spin-wrap__Jr\",\"spin\":\"preview__spin__A4\",\"spin-content\":\"preview__spin-content__Yg\",\"spinContent\":\"preview__spin-content__Yg\"};","/*! @license DOMPurify 2.3.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.10/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n }\n\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n }\n\n function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n\n function _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n }\n\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n }\n\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n }\n\n function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n }\n\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n }\n\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return _construct(Func, _toConsumableArray(args));\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n var regExpTest = unapply(RegExp.prototype.test);\n var typeErrorCreate = unconstruct(TypeError);\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n /* Add properties to a lookup table */\n\n function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n\n while (l--) {\n var element = array[l];\n\n if (typeof element === 'string') {\n var lcElement = transformCaseFunc(element);\n\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n /* Shallow clone an object */\n\n function clone(object) {\n var newObject = create(null);\n var property;\n\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG\n\n var svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n var mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']); // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n var text = freeze(['#text']);\n\n var html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n var svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n var mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n var MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n\n var ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n var DOCTYPE_NAME = seal(/^html$/i);\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n\n\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if (_typeof(trustedTypes) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n } // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n\n\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html) {\n return html;\n },\n createScriptURL: function createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n\n\n DOMPurify.version = '2.3.10';\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n HTMLFormElement = window.HTMLFormElement,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n var ElementPrototype = Element.prototype;\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n\n var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n var documentMode = {};\n\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;\n var MUSTACHE_EXPR$1 = MUSTACHE_EXPR,\n ERB_EXPR$1 = ERB_EXPR,\n DATA_ATTR$1 = DATA_ATTR,\n ARIA_ATTR$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$1 = IS_ALLOWED_URI;\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray(html$1), _toConsumableArray(svg$1), _toConsumableArray(svgFilters), _toConsumableArray(mathMl$1), _toConsumableArray(text)));\n /* Allowed attribute names */\n\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray(html), _toConsumableArray(svg), _toConsumableArray(mathMl), _toConsumableArray(xml)));\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n\n var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n\n var FORBID_TAGS = null;\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n\n var FORBID_ATTR = null;\n /* Decide if ARIA attributes are okay */\n\n var ALLOW_ARIA_ATTR = true;\n /* Decide if custom data attributes are okay */\n\n var ALLOW_DATA_ATTR = true;\n /* Decide if unknown protocols are okay */\n\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n\n var SAFE_FOR_TEMPLATES = false;\n /* Decide if document with <html>... should be returned */\n\n var WHOLE_DOCUMENT = false;\n /* Track whether config is already set on this instance of DOMPurify. */\n\n var SET_CONFIG = false;\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n\n var FORCE_BODY = false;\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n\n var RETURN_DOM = false;\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n\n var RETURN_DOM_FRAGMENT = false;\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n\n var RETURN_TRUSTED_TYPE = false;\n /* Output should be free from DOM clobbering attacks? */\n\n var SANITIZE_DOM = true;\n /* Keep element content when removing element? */\n\n var KEEP_CONTENT = true;\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n\n var IN_PLACE = false;\n /* Allow usage of profiles like html, svg and mathMl */\n\n var USE_PROFILES = {};\n /* Tags to ignore content of when KEEP_CONTENT is true */\n\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n /* Tags that are safe for data: URIs */\n\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n /* Attributes safe for values like \"javascript:\" */\n\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n /* Parsing of strict XHTML documents */\n\n var PARSER_MEDIA_TYPE;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc;\n /* Keep a reference to config to pass to hooks */\n\n var CONFIG = null;\n /* Ideally, do not touch anything below this line */\n\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n var isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n\n\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n /* Shield configuration object from tampering */\n\n\n if (!cfg || _typeof(cfg) !== 'object') {\n cfg = {};\n }\n /* Shield configuration object from prototype pollution */\n\n\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? function (x) {\n return x;\n } : stringToLowerCase;\n /* Set configuration parameters */\n\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n /* Parse profile info */\n\n\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, _toConsumableArray(text));\n ALLOWED_ATTR = [];\n\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n /* Merge configuration parameters */\n\n\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n /* Add #text in case KEEP_CONTENT is set to true */\n\n\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n\n\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n\n\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n } // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n\n\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n\n var COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n\n var ALL_SVG_TAGS = addToSet({}, svg$1);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n var ALL_MATHML_TAGS = addToSet({}, mathMl$1);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n } // The only way to switch from MathML to SVG is via\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n\n\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n } // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n\n\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n } // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n\n\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n } // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n\n\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n } // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n\n\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n } // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n\n\n return false;\n };\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n\n\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n\n\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name); // We void attribute values for unremovable \"is\"\" attributes\n\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n\n\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc;\n var leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n /* Use createHTMLDocument in case DOMParser is not available */\n\n\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {// Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n /* Work on whole document or just its body */\n\n\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n\n\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n\n\n var _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function');\n };\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n\n\n var _isNode = function _isNode(object) {\n return _typeof(Node) === 'object' ? object instanceof Node : object && _typeof(object) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n\n\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n\n\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content;\n /* Execute a hook if present */\n\n _executeHook('beforeSanitizeElements', currentNode, null);\n /* Check if element is clobbered or can clobber */\n\n\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Check if tagname contains Unicode */\n\n\n if (regExpTest(/[\\u0080-\\uFFFF]/, currentNode.nodeName)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Now let's check the element's type and name */\n\n\n var tagName = transformCaseFunc(currentNode.nodeName);\n /* Execute a hook if present */\n\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n /* Detect mXSS attempts abusing namespace confusion */\n\n\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Mitigate a problem with templates inside select */\n\n\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Remove element if anything forbids its presence */\n\n\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;\n }\n /* Keep content except for bad-listed elements */\n\n\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n\n return true;\n }\n /* Check whether element has a valid namespace */\n\n\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n\n return true;\n }\n\n if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Sanitize element content to be template-safe */\n\n\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$1, ' ');\n content = stringReplace(content, ERB_EXPR$1, ' ');\n\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n\n\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n\n\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if (!value) ; else {\n return false;\n }\n\n return true;\n };\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n\n\n var _basicCustomElementTest = function _basicCustomElementTest(tagName) {\n return tagName.indexOf('-') > 0;\n };\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n\n\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr;\n var value;\n var lcName;\n var l;\n /* Execute a hook if present */\n\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n /* Go backwards over all attributes; safely remove bad ones */\n\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n /* Execute a hook if present */\n\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n /* Remove attribute */\n\n\n _removeAttribute(name, currentNode);\n /* Did the hooks approve of the attribute? */\n\n\n if (!hookEvent.keepAttr) {\n continue;\n }\n /* Work around a security issue in jQuery 3.0 */\n\n\n if (regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n\n continue;\n }\n /* Sanitize attribute content to be template-safe */\n\n\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$1, ' ');\n value = stringReplace(value, ERB_EXPR$1, ' ');\n }\n /* Is `value` valid for this attribute? */\n\n\n var lcTag = transformCaseFunc(currentNode.nodeName);\n\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n /* Handle attributes that require Trusted Types */\n\n\n if (trustedTypesPolicy && _typeof(trustedTypes) === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n /* Handle invalid data-* attribute set by try-catching it */\n\n\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n\n\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode;\n\n var shadowIterator = _createIterator(fragment);\n /* Execute a hook if present */\n\n\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n /* Sanitize tags and elements */\n\n\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n /* Deep shadow DOM detected */\n\n\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n /* Check attributes, sanitize if necessary */\n\n\n _sanitizeAttributes(shadowNode);\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n\n\n DOMPurify.sanitize = function (dirty, cfg) {\n var body;\n var importedNode;\n var currentNode;\n var oldNode;\n var returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n\n IS_EMPTY_INPUT = !dirty;\n\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n /* Stringify, in case dirty is an object */\n\n\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n /* Check we can run. Otherwise fall back or ignore */\n\n\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n /* Assign config vars */\n\n\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n /* Clean up removed elements */\n\n\n DOMPurify.removed = [];\n /* Check if dirty is correctly typed for IN_PLACE */\n\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n var tagName = transformCaseFunc(dirty.nodeName);\n\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n /* Initialize the document to work on */\n\n\n body = _initDocument(dirty);\n /* Check we have a DOM node from the data */\n\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n /* Remove first element node (ours) if FORCE_BODY is set */\n\n\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n /* Get node iterator */\n\n\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n /* Now start iterating over the created document */\n\n\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n /* Sanitize tags and elements */\n\n\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n /* Shadow DOM detected, sanitize it */\n\n\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n /* Check attributes, sanitize if necessary */\n\n\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n /* If we sanitized `dirty` in-place, return it. */\n\n if (IN_PLACE) {\n return dirty;\n }\n /* Return sanitized string or DOM */\n\n\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n /* Serialize doctype if allowed */\n\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n /* Sanitize final string template-safe */\n\n\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n\n\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n\n SET_CONFIG = true;\n };\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n\n\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n\n\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n\n\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n\n\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n\n\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n\n\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","/* eslint-disable vars-on-top, no-var, prefer-template */\nvar isRegExp = function (re) { \n return re instanceof RegExp;\n};\nvar escapeRegExp = function escapeRegExp(string) {\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n};\nvar isString = function (value) {\n return typeof value === 'string';\n};\nvar flatten = function (array) {\n var newArray = [];\n\n array.forEach(function (item) {\n if (Array.isArray(item)) {\n newArray = newArray.concat(item);\n } else {\n newArray.push(item);\n }\n });\n\n return newArray;\n};\n\n/**\n * Given a string, replace every substring that is matched by the `match` regex\n * with the result of calling `fn` on matched substring. The result will be an\n * array with all odd indexed elements containing the replacements. The primary\n * use case is similar to using String.prototype.replace except for React.\n *\n * React will happily render an array as children of a react element, which\n * makes this approach very useful for tasks like surrounding certain text\n * within a string with react elements.\n *\n * Example:\n * matchReplace(\n * 'Emphasize all phone numbers like 884-555-4443.',\n * /([\\d|-]+)/g,\n * (number, i) => <strong key={i}>{number}</strong>\n * );\n * // => ['Emphasize all phone numbers like ', <strong>884-555-4443</strong>, '.'\n *\n * @param {string} str\n * @param {RegExp|str} match Must contain a matching group\n * @param {function} fn\n * @return {array}\n */\nfunction replaceString(str, match, fn) {\n var curCharStart = 0;\n var curCharLen = 0;\n\n if (str === '') {\n return str;\n } else if (!str || !isString(str)) {\n throw new TypeError('First argument to react-string-replace#replaceString must be a string');\n }\n\n var re = match;\n\n if (!isRegExp(re)) {\n re = new RegExp('(' + escapeRegExp(re) + ')', 'gi');\n }\n\n var result = str.split(re);\n\n // Apply fn to all odd elements\n for (var i = 1, length = result.length; i < length; i += 2) {\n /** @see {@link https://github.com/iansinnott/react-string-replace/issues/74} */\n if (result[i] === undefined || result[i - 1] === undefined) {\n console.warn('reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.');\n continue;\n }\n\n curCharLen = result[i].length;\n curCharStart += result[i - 1].length;\n result[i] = fn(result[i], i, curCharStart);\n curCharStart += curCharLen;\n }\n\n return result;\n}\n\nmodule.exports = function reactStringReplace(source, match, fn) {\n if (!Array.isArray(source)) source = [source];\n\n return flatten(source.map(function(x) {\n return isString(x) ? replaceString(x, match, fn) : x;\n }));\n};\n","var map = {\n\t\"./categories/block.tsx\": \"./src/gutenberg/blocks/categories/block.tsx\",\n\t\"./pages/block.tsx\": \"./src/gutenberg/blocks/pages/block.tsx\",\n\t\"gutenberg/blocks/categories/block.tsx\": \"./src/gutenberg/blocks/categories/block.tsx\",\n\t\"gutenberg/blocks/pages/block.tsx\": \"./src/gutenberg/blocks/pages/block.tsx\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"./src/gutenberg/blocks sync recursive block\\\\.tsx$\";","module.exports = React;","module.exports = jQuery;","module.exports = lodash;","module.exports = wp.apiFetch;","module.exports = wp.blockEditor;","module.exports = wp.blocks;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.hooks;","module.exports = wp.htmlEntities;","module.exports = wp.i18n;","module.exports = wp.plugins;","module.exports = wp.serverSideRender;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.hmd = function(module) {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: function() {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","console.log( 'Advanced Sidebar - Loaded' );\n\n/**\n * 1. Blocks can't be lazy loaded, or they will be unavailable\n * intermittently when developing.\n * 2. Theme Customizers must wait until the page is finished loading.\n *\n * @version 1.1.0\n */\nif ( typeof wp.element !== 'undefined' && typeof wp.plugins !== 'undefined' ) {\n\trequire( './gutenberg' ).default();\n} else if ( typeof wp.customize !== 'undefined' ) {\n\twp.customize.bind( 'ready', () => {\n\t\trequire( './gutenberg' ).default();\n\t} );\n}\n"],"names":["Component","CONFIG","addQueryArgs","sanitize","ErrorBoundary","constructor","props","state","hasError","error","getDerivedStateFromError","componentDidCatch","info","console","log","setState","render","siteInfo","scriptDebug","color","window","location","href","support","border","padding","width","overflowWrap","message","block","JSON","stringify","attributes","stack","children","ADVANCED_SIDEBAR_MENU","withFilters","select","isEmpty","firstClientId","SideLoad","clientId","getBlockIndex","CheckboxControl","PanelBody","Slot","__","sprintf","range","reactStringReplace","checkboxes","include_parent","include_childless_parent","display_all","Display","setAttributes","type","name","showLevels","blocks","pages","id","isPro","fillProps","Object","keys","map","item","label","labels","singular_name","toLowerCase","value","replace","levels","ev","parseInt","target","n","categories","Button","InspectorControls","decodeEntities","styles","InfoPanel","wrap","features","feature","textDecoration","button","useEffect","ServerSideRender","Placeholder","Spinner","useBlockProps","doAction","sanitizeClientId","getSidebarId","currentScreen","rootId","getBlockRootClientId","ParentBlock","getBlocksByClientId","Page","placeholder","Category","Navigation","navigation","TriggerWhenLoadingFinished","setTimeout","$","find","on","preventDefault","values","errorMsg","Error","spinWrap","spin","spinContent","Preview","blockProps","__html","sanitizedClientId","style","isServerSideRenderRequest","sidebarId","useSelect","BlockControls","SelectControl","TextControl","Edit","taxonomy","getTaxonomy","title","single","new_widget","entries","displayEach","exclude","docs","category","transformLegacyWidget","EXAMPLE","apply_current_page_parent_styles_to_parent","apply_current_page_styles_to_parent","block_style","border_color","bullet_style","child_page_bg_color","child_page_color","parent_page_bg_color","parent_page_color","parent_page_font_weight","grandchild_page_bg_color","grandchild_page_color","grandchild_page_font_weight","settings","icon","example","transforms","from","isMatch","idBase","instance","raw","transform","edit","save","apiVersion","postType","getPostType","post_type","order_by","orderBy","page","current_page_color","current_page_bg_color","current_page_font_weight","current_page_parent_bg_color","createBlock","translateLegacyWidget","forEach","key","autoloadBlocks","require","context","module","wp","element","plugins","default","customize","bind"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"admin.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA2Y,aAAa,oCAAoC,YAAY,mBAAmB,KAAK,mBAAmB,sEAAsE,SAAS,wBAAwB,aAAa,cAAc,4BAA4B,cAAc,qBAAqB,aAAa,kBAAkB,cAAc,oBAAoB,gBAAgB,+BAA+B,GAAG,2DAA2D,aAAa,IAAI,YAAY,IAAI,qBAAqB,EAAE,GAAG,mBAAmB,KAAK,aAAa,2DAA2D,iGAAiG,cAAc,GAAG,aAAa,oDAAoD,oBAAoB,wDAAwD,oFAAoF,yBAAyB,cAAc,GAAG,gBAAgB,iCAAiC,mBAAmB,OAAO,4BAA4B,mDAAC,gDAAgD,uBAAuB,iCAAiC,QAAQ,EAAE,qBAAqB,OAAO,6BAA6B,mDAAC,gCAAgC,mGAAmG,EAAE,yCAAyC,8BAA8B,OAAO,IAAI,sBAAsB,eAAe,wCAAwC,QAAQ,eAAe,sBAAsB,mBAAmB,6DAA6D,SAAS,YAAY,0BAA0B,2EAA2E,oBAAoB,YAAY,kBAAkB,QAAQ,WAAW,sCAAsC,SAAS,2BAA2B,aAAa,0FAA0F,IAAI,iBAAiB,oBAAoB,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mBAAO,CAAC,wJAAiC;;AAEhE;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,IAAI,wDAAwD;AAC5D;AACA;AACA;AACA,CAAC;;AAED;AACA;;;;;;;;;;;ACpBA;;AAEA;AACA,EAAE,KAA4D;AAC9D,EAAE,CACwG;AAC1G,CAAC,uBAAuB;;AAExB;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,kFAAkF;AAClF;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,2CAA2C,SAAS;;AAEpD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA6F,aAAa;AAC1G;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6EAA6E,eAAe;AAC5F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,k/BAAk/B;;AAEl/B;AACA,wYAAwY;AACxY;AACA;AACA;;AAEA;AACA,gTAAgT;AAChT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA8B,EAAE,iBAAiB,EAAE,MAAM;;AAEzD;AACA,sDAAsD;;AAEtD,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,aAAa,UAAU;AACvB,cAAc,oBAAoB;AAClC;AACA;;;AAGA;AACA;AACA;AACA,MAAM;AACN;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;;AAEN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C;AAC1C;;AAEA;AACA,0CAA0C;AAC1C;AACA;AACA,kBAAkB,sBAAsB;AACxC,kBAAkB,sBAAsB;AACxC,kBAAkB,SAAS;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,6CAA6C;AAC7C;;AAEA;AACA,2CAA2C;AAC3C;;AAEA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA,sKAAsK;;AAEtK;AACA;AACA,QAAQ;AACR;;AAEA,wDAAwD;AACxD,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;AAC9D,sDAAsD;AACtD,sDAAsD;AACtD;AACA,uDAAuD;;AAEvD,uDAAuD;;AAEvD,sEAAsE;;AAEtE,4DAA4D;;AAE5D,oDAAoD;;AAEpD,4CAA4C;;AAE5C,8DAA8D;;AAE9D,8DAA8D;;AAE9D,4CAA4C;;AAE5C,iDAAiD;;AAEjD,iDAAiD;;AAEjD,wCAAwC;;AAExC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA,kCAAkC;AAClC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,QAAQ;AACR;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA,oDAAoD;AACpD,6CAA6C,yDAAyD;AACtG;AACA;AACA;;AAEA,kDAAkD;AAClD;AACA;AACA;;AAEA,kCAAkC;AAClC;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA,gBAAgB,SAAS;AACzB,iBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA,2CAA2C;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;;AAGA;AACA;AACA,UAAU;AACV;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;;;AAGA;AACA;AACA,UAAU;AACV;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU;AACV;;;AAGA;AACA,QAAQ;AACR;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;;;AAGA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB;;;AAGA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR;AACA;AACA;AACA,SAAS;AACT;;AAEA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA,YAAY;AACZ,UAAU;AACV;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,UAAU;AAC1B;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;;AAGA;AACA;;AAEA;AACA;AACA,UAAU,WAAW;AACrB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,UAAU;AAC1B,gBAAgB,UAAU;AAC1B;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB,gBAAgB,SAAS;AACzB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,MAAM;AACtB,gBAAgB,QAAQ;AACxB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,iBAAiB,SAAS;AAC1B;;;AAGA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA,yCAAyC,QAAQ;AACjD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;;;AAG5C,wFAAwF,+DAA+D;AACvJ;AACA;AACA;AACA;AACA;AACA,uTAAuT;AACvT;AACA;AACA;;AAEA,QAAQ,wCAAwC,sFAAsF,oKAAoK,qHAAqH,mBAAmB;AAClb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sCAAsC;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,6CAA6C;;AAE7C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;;;AAGA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,aAAa;AAC5B,eAAe,QAAQ;AACvB;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,QAAQ;AACxB,gBAAgB,SAAS;AACzB;;;AAGA;AACA;AACA;AACA,uBAAuB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,UAAU;AACzB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,CAAC;AACD;;;;;;;;;;;AC7mDA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,EAAE,EAAE,OAAO;AAC5C;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,YAAY;AACvB,WAAW,UAAU;AACrB,YAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0CAA0C,YAAY;AACtD,cAAc,oEAAoE;AAClF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACzBA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCzBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;WCPD;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;WACA;;;;;WCVA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;ACNAjI,OAAO,CAACC,GAAR,CAAa,2BAAb;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,IAAK,OAAOiL,EAAE,CAACC,OAAV,KAAsB,WAAtB,IAAqC,OAAOD,EAAE,CAACE,OAAV,KAAsB,WAAhE,EAA8E;EAC7EL,+EAAA;AACA,CAFD,MAEO,IAAK,OAAOG,EAAE,CAACI,SAAV,KAAwB,WAA7B,EAA2C;EACjDJ,EAAE,CAACI,SAAH,CAAaC,IAAb,CAAmB,OAAnB,EAA4B,MAAM;IACjCR,+EAAA;EACA,CAFD;AAGA,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/__virtual__/@lipemat-js-boilerplate-gutenberg-virtual-6ce9f74a52/0/cache/@lipemat-js-boilerplate-gutenberg-npm-2.9.5-b01ffe5a8b-6d75996942.zip/node_modules/@lipemat/js-boilerplate-gutenberg/dist/index.module.js","webpack://@onpointplugins/advanced-sidebar-menu/./src/components/ErrorBoundary.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/globals/config.ts","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/SideLoad.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/Display.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/InfoPanel.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/Preview.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/categories/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/categories/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/Edit.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/block.tsx","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/helpers.ts","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/index.ts","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/info-panel.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/edit.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/preview.pcss","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/a-callable.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/add-to-unscopables.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/an-object.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/array-includes.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/classof-raw.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/copy-constructor-properties.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-non-enumerable-property.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/create-property-descriptor.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-built-in.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/define-global-property.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/descriptors.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/document-create-element.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-user-agent.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/engine-v8-version.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/enum-bug-keys.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/export.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/fails.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-bind-native.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-call.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-name.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/function-uncurry-this.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-built-in.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/get-method.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/global.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/has-own-property.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/hidden-keys.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/html.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ie8-dom-define.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/indexed-object.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/inspect-source.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/internal-state.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-callable.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-forced.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-object.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-pure.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/is-symbol.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/length-of-array-like.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/make-built-in.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/math-trunc.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-symbol.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/native-weak-map.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-create.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-properties.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-define-property.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-names.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-is-prototype-of.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys-internal.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-keys.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/object-property-is-enumerable.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/ordinary-to-primitive.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/own-keys.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/require-object-coercible.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-key.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared-store.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/shared.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-absolute-index.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-indexed-object.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-integer-or-infinity.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-length.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-object.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-primitive.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/to-property-key.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/try-to-string.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/uid.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/use-symbol-as-uid.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/internals/well-known-symbol.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/core-js-npm-3.23.3-83cb265bcd-f517546388.zip/node_modules/core-js/modules/es.array.includes.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/dompurify-npm-2.3.10-6db07a88c6-ee343876b4.zip/node_modules/dompurify/dist/purify.js","webpack://@onpointplugins/advanced-sidebar-menu/./.yarn/cache/react-string-replace-npm-1.1.0-9af2371852-5df67fbdb4.zip/node_modules/react-string-replace/index.js","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/ sync block\\.tsx$","webpack://@onpointplugins/advanced-sidebar-menu/external var \"React\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"jQuery\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"lodash\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.apiFetch\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blockEditor\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.blocks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.components\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.data\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.hooks\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.htmlEntities\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.i18n\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.plugins\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.serverSideRender\"","webpack://@onpointplugins/advanced-sidebar-menu/external var \"wp.url\"","webpack://@onpointplugins/advanced-sidebar-menu/webpack/bootstrap","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/compat get default export","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/define property getters","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/global","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/harmony module decorator","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/hasOwnProperty shorthand","webpack://@onpointplugins/advanced-sidebar-menu/webpack/runtime/make namespace object","webpack://@onpointplugins/advanced-sidebar-menu/./src/admin.js"],"sourcesContent":["import e from\"@wordpress/api-fetch\";import{__ as t}from\"@wordpress/i18n\";import{addQueryArgs as n}from\"@wordpress/url\";import{registerBlockType as r,unregisterBlockType as o}from\"@wordpress/blocks\";import{registerPlugin as i,unregisterPlugin as u}from\"@wordpress/plugins\";import{select as s,dispatch as c,useDispatch as a,useSelect as d}from\"@wordpress/data\";import{useCallback as f}from\"react\";function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l,v,h=[];function m(e){return h.push(e),h.length-1}function w(e){return delete h[e],h}function g(){return void 0!==v}function b(e){E(),v=m(function(e){function t(e,n){var r=e.headers,o=void 0===r?{}:r;for(var i in o)\"x-wp-nonce\"===i.toLowerCase()&&delete o[i];return n(p({},e,{headers:p({},o,{\"X-WP-Nonce\":t.nonce})}))}return t.nonce=e,t}(e))}function P(){void 0!==v&&(w(v),v=void 0),void 0===l&&(l=m(function(e,t){if(void 0!==e.headers)for(var n in e.headers)\"x-wp-nonce\"===n.toLowerCase()&&delete e.headers[n];return t(e,t)}))}function E(){void 0!==v&&w(v),void 0!==l&&w(l),v=void 0,l=void 0}var y=function(e,t){return void 0===t&&(t=!0),Promise.resolve(function(e,t){return void 0===t&&(t=!0),t?204===e.status?null:e.json?e.json():Promise.reject(e):e}(e,t)).catch(function(e){return T(e,t)})};function T(e,n){if(void 0===n&&(n=!0),!n)throw e;return function(e){var n={code:\"invalid_json\",message:t(\"The response is not a valid JSON response.\")};if(!e||!e.json)throw n;return e.json().catch(function(){throw n})}(e).then(function(e){var n={code:\"unknown_error\",message:t(\"An unknown error occurred.\")};throw\"rest_cookie_invalid_nonce\"===e.code&&g()&&(e.code=\"external_rest_cookie_invalid_nonce\"),e||n})}var k,_=[\"url\",\"path\",\"data\",\"parse\"],j={Accept:\"application/json, */*;q=0.1\"},x={credentials:\"include\"},O=function(e){if(e.status>=200&&e.status<300)return e;throw e},B=function(e){var n=function e(t,n){return function(r){return void 0===n[t]?r:(0,n[t])(r,t===n.length-1?function(e){return e}:e(t+1,n))}}(0,h.filter(Boolean))(p({},x,e)),r=n.url,o=n.path,i=n.data,u=n.parse,s=void 0===u||u,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(n,_),a=n.body,d=n.headers;return d=p({},j,d),i&&(a=JSON.stringify(i),d[\"Content-Type\"]=\"application/json\"),window.fetch(r||o,p({},c,{body:a,headers:d})).then(function(e){return Promise.resolve(e).then(O).catch(function(e){return T(e,s)}).then(function(e){return y(e,s)})},function(){throw{code:\"fetch_error\",message:t(\"You are probably offline.\")}})},C=function(e,t,n){return Promise.resolve(A(e,t,n,!1)).then(function(e){return Promise.resolve(y(e)).then(function(t){return{items:t,totalPages:parseInt(e.headers.get(\"X-WP-TotalPages\")||\"1\"),totalItems:parseInt(e.headers.get(\"X-WP-Total\")||\"0\")}})})},A=function(t,r,o,i){void 0===i&&(i=!0);try{return Promise.resolve(e(void 0===o||\"GET\"===r?{method:r,parse:i,path:n(t,o)}:{data:o,method:r,parse:i,path:t}))}catch(e){return Promise.reject(e)}};function G(e){return{create:function(t){return A(e,\"POST\",t)},delete:function(t){return A(e+=\"/\"+t,\"DELETE\",{force:!0})},get:function(t){return A(e,\"GET\",t)},getById:function(t,n){return A(e+=\"/\"+t,\"GET\",n)},getWithPagination:function(t){return C(e,\"GET\",t)},trash:function(t){return A(e+=\"/\"+t,\"DELETE\")},update:function(t){return A(e+=\"/\"+t.id,\"PATCH\",t)}}}function L(t){var n={};return[\"categories\",\"comments\",\"blocks\",\"media\",\"menus\",\"menu-locations\",\"menu-items\",\"statuses\",\"pages\",\"posts\",\"tags\",\"taxonomies\",\"types\",\"search\"].map(function(e){return n[e]=function(){return G(\"/wp/v2/\"+e)}}),n.menuLocations=function(){return G(\"/wp/v2/menu-locations\")},n.menuItems=function(){return G(\"/wp/v2/menu-items\")},n.users=function(){var e=G(\"/wp/v2/users\");return e.delete=function(e,t){return void 0===t&&(t=!1),A(\"/wp/v2/users/\"+e,\"DELETE\",{force:!0,reassign:t})},e},n.applicationPasswords=function(){return{create:function(e,t){return A(\"/wp/v2/users/\"+e+\"/application-passwords\",\"POST\",t)},delete:function(e,t){return A(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"DELETE\")},get:function(e){return A(\"/wp/v2/users/\"+e+\"/application-passwords\",\"GET\")},getById:function(e,t){return A(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"GET\")},introspect:function(e){return A(\"/wp/v2/users/\"+e+\"/application-passwords/introspect\",\"GET\")},update:function(e,t,n){return A(\"/wp/v2/users/\"+e+\"/application-passwords/\"+t,\"PUT\",n)}}},n.settings=function(){return{get:function(){return A(\"/wp/v2/settings\",\"GET\")},update:function(e){return A(\"/wp/v2/settings\",\"POST\",e)}}},void 0!==t&&Object.keys(t).map(function(e){return n[e]=t[e]}),e.setFetchHandler(B),n}function R(){w(k)}function I(t,n){k&&w(k),k=m(e.createRootURLMiddleware(t.replace(/\\/$/,\"\")+\"/\")),window.location.hostname&&new URL(t).hostname===window.location.hostname?E():void 0!==n?b(n):g()||P()}var S,D=function(r){return Promise.resolve(function(o,i){try{var u=Promise.resolve(e({path:\"/\",method:\"GET\"})).then(function(e){return e.authentication[\"application-passwords\"]?n(e.authentication[\"application-passwords\"].endpoints.authorization,r):{code:\"application_passwords_disabled\",message:t(\"Application passwords are not enabled on this site.\"),data:null}})}catch(e){return e}return u&&u.then?u.then(void 0,function(e){return e}):u}())};function M(){return void 0!==S}function W(){void 0!==S&&(w(S),S=void 0)}function N(e,t){W(),S=m(function(n,r){var o=n.headers;return r(p({},n,{headers:p({},void 0===o?{}:o,{Authorization:\"Basic \"+btoa(e+\":\"+t)})}),r)})}var U=function(e,t){z({afterReload:q,beforeReload:J,getContext:e,pluginModule:t,register:r,unregister:o,type:\"block\"})},X=function(e,t){z({afterReload:function(){},beforeReload:function(){},getContext:e,pluginModule:t,register:i,unregister:u,type:\"plugin\"})},z=function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,i=e.register,u=e.unregister,s=e.type,c={},a=function(){n();var e=r();if(e){var o=[];return e.keys().forEach(function(t){var n=e(t);n.exclude||n!==c[t]&&(c[n.name+\"-\"+s]&&u(n.name),i(n.name,n.settings),o.push(n.name),c[n.name+\"-\"+s]=n)}),t(o),e}},d=a();o.hot&&null!=d&&d.id&&o.hot.accept(d.id,a)},H=null,J=function(){H=s(\"core/block-editor\").getSelectedBlockClientId(),c(\"core/block-editor\").clearSelectedBlock()},q=function(e){void 0===e&&(e=[]),s(\"core/block-editor\").getBlocks().forEach(function(t){var n=t.clientId;e.includes(t.name)&&c(\"core/block-editor\").selectBlock(n)}),H?c(\"core/block-editor\").selectBlock(H):c(\"core/block-editor\").clearSelectedBlock(),H=null};function F(e){var t=a(\"core/editor\").editPost,n=d(function(e){return{previous:e(\"core/editor\").getCurrentPostAttribute(\"meta\"),current:e(\"core/editor\").getEditedPostAttribute(\"meta\")}}),r=e?n.current[e]:n.current,o=e?n.previous[e]:n.previous,i=f(function(n){var r;e&&t({meta:(r={},r[e]=n,r)})},[t,e]),u=f(function(e,n){var r;t({meta:(r={},r[e]=n,r)})},[t]);return e?[r,i,o]:[r,u,o]}function Y(e){var t=a(\"core/editor\").editPost,n=d(function(t){var n=t(\"core\").getTaxonomy(e);return n?{taxonomy:n,current:t(\"core/editor\").getEditedPostAttribute(n.rest_base),previous:t(\"core/editor\").getCurrentPostAttribute(n.rest_base)}:{current:[],previous:[]}}),r=f(function(e){try{var r;return Promise.resolve(n.taxonomy?t(((r={})[n.taxonomy.rest_base]=e,r)):void 0)}catch(e){return Promise.reject(e)}},[n,t]);return[n.current,r,n.previous]}export{m as addMiddleware,z as autoload,U as autoloadBlocks,X as autoloadPlugins,W as clearApplicationPassword,P as clearNonce,G as createMethods,B as defaultFetchHandler,A as doRequest,C as doRequestWithPagination,N as enableApplicationPassword,D as getAuthorizationUrl,M as hasApplicationPassword,g as hasExternalNonce,w as removeMiddleware,E as restoreNonce,R as restoreRootURL,b as setNonce,I as setRootURL,F as usePostMeta,Y as useTerms,L as wpapi};\n//# sourceMappingURL=index.module.js.map\n","import {Component, ErrorInfo} from 'react';\nimport {CONFIG} from '../globals/config';\nimport {addQueryArgs} from '@wordpress/url';\nimport {sanitize} from 'dompurify';\n\n/**\n * Wrap any component in me, which may throw errors, and I will\n * prevent the entire UI from disappearing.\n *\n * Custom version special to Advanced Sidebar Menu with links to\n * support as well as debugging information.\n *\n * @link https://reactjs.org/docs/error-boundaries.html#introducing-error-boundaries\n */\nclass ErrorBoundary extends Component<{ attributes: Record<string, any>, block: string }, { hasError: boolean, error: Error | null }> {\n\tconstructor( props ) {\n\t\tsuper( props );\n\t\tthis.state = {\n\t\t\thasError: false,\n\t\t\terror: null,\n\t\t};\n\t}\n\n\tstatic getDerivedStateFromError() {\n\t\t// Update state, so the next render will show the fallback UI.\n\t\treturn {\n\t\t\thasError: true,\n\t\t};\n\t}\n\n\t/**\n\t * Log information about the error when it happens.\n\t *\n\t * @notice Will log \"Error: A cross-origin error was thrown. React doesn't have\n\t * access to the actual error object in development\" in React development\n\t * mode but provides full error info in React production.\n\t */\n\tcomponentDidCatch( error: Error, info: ErrorInfo ) {\n\t\tconsole.log( '%cError caught by the Advanced Sidebar ErrorBoundary!', 'color:orange; font-size: large; font-weight: bold' );\n\t\tconsole.log( this.props );\n\t\tconsole.log( error );\n\t\tconsole.log( info );\n\t\tthis.setState( {\n\t\t\terror,\n\t\t} );\n\t}\n\n\trender() {\n\t\tif ( this.state.hasError ) {\n\t\t\tif ( ! CONFIG.siteInfo.scriptDebug ) {\n\t\t\t\treturn ( <div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a href={addQueryArgs( sanitize( window.location.href ), {'script-debug': true}, )}>\n\t\t\t\t\t\t\tenable script debug\n\t\t\t\t\t\t</a>:\n\t\t\t\t\t</p>\n\t\t\t\t</div> );\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\t\t\t\t\t<h4 style={{color: 'red'}}>\n\t\t\t\t\t\tSomething went wrong!\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPlease <a target=\"_blank\" href={CONFIG.support} rel=\"noreferrer\">\n\t\t\t\t\t\t\tcreate a support request\n\t\t\t\t\t\t</a> with the following:\n\t\t\t\t\t</p>\n\t\t\t\t\t<ol>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe <a\n\t\t\t\t\t\t\t\thref={'https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/'}\n\t\t\t\t\t\t\t\ttarget={'_blank'} rel=\"noreferrer\">\n\t\t\t\t\t\t\t\tlogs from your browser console.\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\tThe following information.\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ol>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\tborder: '2px groove',\n\t\t\t\t\t\t\tpadding: '10px',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\toverflowWrap: 'break-word',\n\t\t\t\t\t\t}}>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Message</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.message}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Block</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.props.block}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Attributes</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( this.props.attributes )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Site Info</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{JSON.stringify( CONFIG.siteInfo )}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong><em>Stack</em></strong> <br />\n\t\t\t\t\t\t\t<code>\n\t\t\t\t\t\t\t\t{this.state.error?.stack}\n\t\t\t\t\t\t\t</code>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t \n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default ErrorBoundary;\n","import {ComponentClass, FunctionComponent} from 'react';\nimport {TransformLegacy} from '../gutenberg/helpers';\n\nexport type Screen = 'site-editor' | 'widgets' | 'post' | 'customize';\n\ninterface JSConfig {\n\tblocks: {\n\t\tcategories: {\n\t\t\tid: string;\n\t\t};\n\t\tpages: {\n\t\t\tid: string;\n\t\t};\n\t\tnavigation?: {\n\t\t\tid: string;\n\t\t}\n\t};\n\tcategories: {\n\t\tdisplayEach: { [ value: string ]: string };\n\t};\n\tcurrentScreen: Screen;\n\tdocs: {\n\t\tpage: string;\n\t\tcategory: string;\n\t};\n\terror: false | string;\n\tErrorBoundary: ComponentClass<{ attributes: Record<string, any>, block: string }>;\n\tfeatures: Array<string>;\n\tisPro: boolean;\n\tpages: {\n\t\torderBy: { [ value: string ]: string };\n\t};\n\tPreview: FunctionComponent<any>;\n\tsiteInfo: {\n\t\tbasic: string;\n\t\tpro: string;\n\t\tscriptDebug: boolean;\n\t\twordpress: string;\n\t};\n\tsupport: string;\n\ttransformLegacyWidget: TransformLegacy;\n}\n\n\ndeclare global {\n\tinterface Window {\n\t\tADVANCED_SIDEBAR_MENU: JSConfig;\n\t\t__TEST__?: boolean;\n\t}\n}\n\nexport const CONFIG: JSConfig = window.ADVANCED_SIDEBAR_MENU || ( {} as JSConfig );\n","import {withFilters} from '@wordpress/components';\nimport {select} from '@wordpress/data';\nimport {isEmpty} from 'lodash';\n\ntype Props = {\n\tclientId: string;\n};\n\nlet firstClientId = '';\n/**\n * The customizer area does not include a `PluginArea` component,\n * so our slot fills do not load.\n *\n * We can use filters, but the Fills double up each time\n * another block is added to the page.\n *\n * Track the clientId of the first block we add the Fill to\n * and only return the Fill for that block. The rest of the blocks\n * inherit the Fill from the first block via their Slots.\n */\nconst SideLoad = ( {clientId, children} ) => {\n\tif ( ! isEmpty( firstClientId ) && clientId !== firstClientId ) {\n\t\t// Make sure block still exists.\n\t\tif ( -1 !== select( 'core/block-editor' ).getBlockIndex( firstClientId ) ) {\n\t\t\treturn null;\n\t\t}\n\t}\n\tfirstClientId = clientId;\n\treturn children ?? null;\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.side-load' )( SideLoad );\n","import {CheckboxControl, PanelBody, Slot} from '@wordpress/components';\nimport {CONFIG} from '../../globals/config';\nimport type {Attr as PageAttr} from './pages/block';\nimport type {Attr as CategoryAttr} from './categories/block';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport {range} from 'lodash';\nimport reactStringReplace from 'react-string-replace';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport ErrorBoundary from '../../components/ErrorBoundary';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {PropsWithChildren} from 'react';\n\n\nexport type DisplayOptions = {\n\tdisplay_all: boolean;\n\tinclude_childless_parent: boolean;\n\tinclude_parent: boolean;\n\tlevels: number;\n}\n\nexport type FillProps =\n\tPick<BlockEditProps<PageAttr | CategoryAttr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type | Taxonomy }\n\ntype Props = PropsWithChildren<{\n\tattributes: PageAttr | CategoryAttr;\n\tsetAttributes: BlockEditProps<PageAttr | CategoryAttr>['setAttributes'];\n\ttype?: Type | Taxonomy;\n\tname: string;\n\tclientId: string;\n}>;\n\nconst checkboxes: { [attr in keyof Partial<DisplayOptions>]: string } = {\n\t/* translators: Selected taxonomy single label */\n\tinclude_parent: __( 'Display the highest level parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy single label */\n\tinclude_childless_parent: __( 'Display menu when there is only the parent %s', 'advanced-sidebar-menu' ),\n\t/* translators: Selected taxonomy plural label */\n\tdisplay_all: __( 'Always display child %s', 'advanced-sidebar-menu' ),\n};\n\n/**\n * Display Options shared between widgets.\n *\n * 1. Display the highest level parent page.\n * 2. Display menu when there is only the parent page.\n * 3. Always display child pages.\n * 5. Display levels of child pages.\n *\n */\nconst Display = ( {\n\tattributes,\n\tsetAttributes,\n\ttype,\n\tname,\n\tclientId,\n\tchildren,\n}: Props ) => {\n\tconst showLevels = ( CONFIG.blocks.pages.id === name && CONFIG.isPro ) || attributes.display_all;\n\n\tconst fillProps: FillProps = {\n\t\ttype,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn (\n\t\t<PanelBody title={__( 'Display', 'advanced-sidebar-menu' )}>\n\t\t\t{Object.keys( checkboxes ).map( item => {\n\t\t\t\tlet label = type?.labels?.singular_name.toLowerCase() ?? '';\n\t\t\t\tif ( 'display_all' === item ) {\n\t\t\t\t\tlabel = type?.labels?.name.toLowerCase() ?? '';\n\t\t\t\t}\n\t\t\t\treturn <CheckboxControl\n\t\t\t\t\tkey={item}\n\t\t\t\t\t//eslint-disable-next-line @wordpress/valid-sprintf\n\t\t\t\t\tlabel={sprintf( checkboxes[ item ], label )}\n\t\t\t\t\tchecked={!! attributes[ item ]}\n\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t[ item ]: !! value,\n\t\t\t\t\t\t} );\n\t\t\t\t\t}}\n\t\t\t\t/>;\n\t\t\t} )}\n\t\t\t{showLevels && <div className={'components-base-control'}>\n\t\t\t\t{/* translators: {select html input}, {post type plural label} */\n\t\t\t\t\treactStringReplace( __( 'Display %1$s levels of child %2$s', 'advanced-sidebar-menu' ).replace( '%2$s', type?.labels?.name.toLowerCase() ?? '' ), '%1$s',\n\t\t\t\t\t\t() => (\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tkey={'levels'}\n\t\t\t\t\t\t\t\tvalue={attributes.levels}\n\t\t\t\t\t\t\t\tonChange={ev => setAttributes( {levels: parseInt( ev.target.value )} )}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<option value=\"100\">\n\t\t\t\t\t\t\t\t\t{__( '- All -', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t{range( 1, 10 ).map( n => <option key={n} value={n}>\n\t\t\t\t\t\t\t\t\t{n}\n\t\t\t\t\t\t\t\t</option> )}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t) )}\n\t\t\t</div>}\n\n\t\t\t{children}\n\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t{CONFIG.blocks.pages.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t\t{CONFIG.blocks.categories.id === name &&\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/display\"\n\t\t\t\t\t\tfillProps={fillProps} />}\n\t\t\t</ErrorBoundary>\n\n\t\t</PanelBody>\n\t);\n};\n\nexport default Display;\n","import {CONFIG} from '../../globals/config';\nimport {Button, PanelBody, withFilters} from '@wordpress/components';\nimport {InspectorControls} from '@wordpress/block-editor';\nimport {decodeEntities} from '@wordpress/html-entities';\nimport {__} from '@wordpress/i18n';\n\nimport styles from './info-panel.pcss';\n\ntype Props = {\n\tclientId: string;\n};\n\nconst InfoPanel = ( {}: Props ) => {\n\treturn ( <InspectorControls>\n\t\t<PanelBody\n\t\t\ttitle={__( 'Advanced Sidebar Menu PRO', 'advanced-sidebar-menu' )}\n\t\t\tclassName={styles.wrap}\n\t\t>\n\t\t\t<ul>\n\t\t\t\t{CONFIG.features.map( feature =>\n\t\t\t\t\t<li key={feature}>{decodeEntities( feature )}</li> )}\n\t\t\t\t<li>\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-more&utm_campaign=gopro&utm_medium=wp-dash\"\n\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\tstyle={{textDecoration: 'none'}}\n\t\t\t\t\t\trel=\"noreferrer\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{__( 'So much more…', 'advanced-sidebar-menu' )}\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<Button\n\t\t\t\tclassName={styles.button}\n\t\t\t\thref={'https://onpointplugins.com/product/advanced-sidebar-menu-pro/?trigger_buy_now=1&utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash'}\n\t\t\t\ttarget={'_blank'}\n\t\t\t\trel={'noreferrer'}\n\t\t\t\tisPrimary\n\t\t\t>\n\t\t\t\t{__( 'Upgrade', 'advanced-sidebar-menu' )}\n\t\t\t</Button>\n\t\t</PanelBody>\n\t</InspectorControls> );\n};\n\nexport default withFilters<Props>( 'advanced-sidebar-menu.blocks.info-panel' )( InfoPanel );\n","import {ReactElement, useEffect} from 'react';\nimport {CONFIG} from '../../globals/config';\nimport ServerSideRender from '@wordpress/server-side-render';\nimport {Placeholder, Spinner} from '@wordpress/components';\nimport {useBlockProps} from '@wordpress/block-editor';\nimport {sanitize} from 'dompurify';\nimport {doAction} from '@wordpress/hooks';\nimport {__} from '@wordpress/i18n';\nimport {select} from '@wordpress/data';\nimport {isScreen} from '../helpers';\n\nimport styles from './preview.pcss';\n\n\nexport type PreviewOptions = {\n\tisServerSideRenderRequest: boolean;\n\tclientId: string;\n\tsidebarId: string;\n}\n\ntype Props<A> = {\n\tattributes: A;\n\tblock: string;\n\tclientId: string;\n};\n\n/**\n * Sanitize a client id for use as an HTML id.\n *\n * Must not start with a `-` or a digit.\n *\n */\nexport const sanitizeClientId = ( clientId: string ): string => {\n\treturn clientId.replace( /^([\\d-])/, '_$1' );\n};\n\n/**\n * If we are in the widgets' area, the block is wrapped in\n * a \"sidebar\" block. We retrieve the id to pass along with\n * the request to use the `widget_args` within the preview.\n *\n */\nconst getSidebarId = ( clientId: string ): string => {\n\tif ( ! isScreen( [ 'widgets' ] ) ) {\n\t\treturn '';\n\t}\n\tconst rootId = select( 'core/block-editor' ).getBlockRootClientId( clientId );\n\tif ( rootId ) {\n\t\tconst ParentBlock = select( 'core/block-editor' ).getBlocksByClientId( [ rootId ] );\n\t\tif ( ParentBlock[ 0 ] && 'core/widget-area' === ParentBlock[ 0 ].name ) {\n\t\t\treturn ParentBlock[ 0 ]?.attributes?.id;\n\t\t}\n\t}\n\n\treturn '';\n};\n\n/**\n * @notice Must use static constants, or the ServerSide requests\n * will fire anytime something on the page is changed\n * because the component re-renders.\n */\nconst Page = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={'welcome-widgets-menus'}\n\tlabel={__( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Category = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={'welcome-widgets-menus'}\n\tlabel={__( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\nconst Navigation = () => <Placeholder\n\tclassName={styles.placeholder}\n\ticon={'welcome-widgets-menus'}\n\tlabel={__( 'Advanced Sidebar - Navigation', 'advanced-sidebar-menu' )}\n\tinstructions={__( 'No preview available', 'advanced-sidebar-menu' )}\n/>;\n\n/**\n * @notice The styles will not display for the preview\n * in the block inserter sidebar when Webpack\n * is enabled because the iframe has a late init.\n *\n */\nconst placeholder = ( block ): () => ReactElement => {\n\tswitch ( block ) {\n\t\tcase CONFIG.blocks.pages.id:\n\t\t\treturn Page;\n\t\tcase CONFIG.blocks.categories.id:\n\t\t\treturn Category;\n\t\tcase CONFIG.blocks.navigation?.id:\n\t\t\treturn Navigation;\n\t}\n\treturn () => <></>;\n};\n\n\n/**\n * Same as the `DefaultLoadingResponsePlaceholder` except we trigger\n * an action when the loading component is unmounted to allow\n * components to hook into when ServerSideRender has finished loading.\n *\n * @notice Using a constant to prevent reload on every content change.\n *\n */\nconst TriggerWhenLoadingFinished = ( {\n\tchildren,\n\tattributes = {\n\t\tclientId: '',\n\t},\n} ) => {\n\tuseEffect( () => {\n\t\t// Call action when the loading component unmounts because loading is finished.\n\t\treturn () => {\n\t\t\t// Give the preview a chance to load on WP 5.8.\n\t\t\tsetTimeout( () => {\n\t\t\t\t$( '[data-preview=\"' + `${attributes.clientId}` + '\"]' )\n\t\t\t\t\t.find( 'a' )\n\t\t\t\t\t.on( 'click', ev => ev.preventDefault() );\n\n\t\t\t\tdoAction( 'advanced-sidebar-menu.blocks.preview.loading-finished', {\n\t\t\t\t\tvalues: attributes,\n\t\t\t\t\tclientId: attributes.clientId,\n\t\t\t\t} );\n\t\t\t}, 100 );\n\t\t};\n\t} );\n\n\t/**\n\t * ServerSideRender returns a <RawHTML /> filled with an error object when fetch fails.\n\t *\n\t * We throw an error, so our `ErrorBoundary` will catch it, otherwise we end up\n\t * with a \"React objects may not be used as children\" error, which means nothing.\n\t */\n\tif ( children?.props?.children?.errorMsg ) {\n\t\tthrow new Error( children?.props?.children?.errorMsg ?? 'Failed' );\n\t}\n\n\treturn (\n\t\t<div className={styles.spinWrap}>\n\t\t\t<div className={styles.spin}>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t\t<div className={styles.spinContent}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\n\nconst Preview = <A, >( {attributes, block, clientId}: Props<A> ) => {\n\tconst blockProps = useBlockProps();\n\n\tif ( '' !== CONFIG.error ) {\n\t\treturn <div\n\t\t\tclassName={styles.error}\n\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />;\n\t}\n\n\n\tconst sanitizedClientId = sanitizeClientId( clientId );\n\n\t// Prevent styles from doubling up as they are already added via render in PHP.\n\tdelete blockProps.style;\n\n\treturn (\n\t\t<div {...blockProps} data-preview={sanitizedClientId}>\n\t\t\t<ServerSideRender<A & PreviewOptions>\n\t\t\t\tEmptyResponsePlaceholder={placeholder( block )}\n\t\t\t\tLoadingResponsePlaceholder={TriggerWhenLoadingFinished}\n\t\t\t\tattributes={{\n\t\t\t\t\t...attributes,\n\t\t\t\t\t// Send custom attribute to determine server side renders.\n\t\t\t\t\tisServerSideRenderRequest: true,\n\t\t\t\t\tclientId: sanitizedClientId,\n\t\t\t\t\tsidebarId: getSidebarId( clientId ),\n\t\t\t\t}}\n\t\t\t\tblock={block}\n\t\t\t\thttpMethod={'POST'}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default Preview;\n","import {useSelect} from '@wordpress/data';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport Preview from '../Preview';\nimport {Attr, block} from './block';\nimport {Taxonomy} from '@wordpress/api/taxonomies';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport Display from '../Display';\nimport {\n\tCheckboxControl,\n\tPanelBody,\n\tSelectControl,\n\tSlot,\n\tTextControl,\n} from '@wordpress/components';\nimport {__, sprintf} from '@wordpress/i18n';\nimport InfoPanel from '../InfoPanel';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from '../pages/edit.pcss';\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Taxonomy }\n\ntype Props = BlockEditProps<Attr>;\n\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst taxonomy: Taxonomy | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getTaxonomy( attributes.taxonomy ?? 'category' );\n\t\treturn type ?? select( 'core' ).getTaxonomy( 'category' );\n\t}, [ attributes.taxonomy ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: taxonomy,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t\t<TextControl\n\t\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t\t</PanelBody>}\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={taxonomy}\n\t\t\t\t>\n\t\t\t\t\t{/* Not offering \"Display categories on single posts\"\n\t\t when editing a post because this must be true, or\n\t\t the block won't display.\n\n\t\t We default the attribute to `true` if we are editing\n\t\t a post during register of block attributes. */}\n\t\t\t\t\t{isScreen( [ 'post' ] ) && <CheckboxControl\n\t\t\t\t\t\t/* translators: Selected taxonomy plural label */\n\t\t\t\t\t\tlabel={sprintf( __( 'Display %s on single posts', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\tchecked={!! attributes.single}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tsingle: !! value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>}\n\t\t\t\t\t{/*\n\t\t\t\t\t\t Only widget screens support this option because we\n\t\t\t\t\t\t have no widget wrap to use on other screens, so they are\n\t\t\t\t\t\t list only. */}\n\t\t\t\t\t{isScreen( [ 'widgets', 'customize' ] ) && attributes.single &&\n\t\t\t\t\t\t<SelectControl<'list' | 'widget'>\n\t\t\t\t\t\t\t/* translators: Selected taxonomy single label */\n\t\t\t\t\t\t\tlabel={sprintf( __( 'Display each single post\\'s %s', 'advanced-sidebar-menu' ), taxonomy?.labels?.name.toLowerCase() ?? '' )}\n\t\t\t\t\t\t\tvalue={attributes.new_widget}\n\t\t\t\t\t\t\toptions={Object.entries( CONFIG.categories.displayEach ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\t\t/* eslint-disable-next-line camelcase */\n\t\t\t\t\t\t\tonChange={new_widget => setAttributes( {new_widget} )}\n\t\t\t\t\t\t/>}\n\t\t\t\t</Display>\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/categories/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<TextControl\n\t\t\t\t\t\t/* translators: Selected post type plural label */\n\t\t\t\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), taxonomy?.labels?.name ?? '' )}\n\t\t\t\t\t\tvalue={attributes.exclude}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\texclude: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.category}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/categories/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {PreviewOptions} from '../Preview';\nimport {CONFIG} from '../../../globals/config';\nimport {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport Edit from './Edit';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\tnew_widget: 'widget' | 'list';\n\torder_by: string;\n\tsingle: boolean;\n\ttitle: string;\n} & DisplayOptions & ProRegistered & PreviewOptions;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\ttaxonomy: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\t'display-posts': 'all',\n\t'display-posts/limit': 2,\n\tapply_current_page_parent_styles_to_parent: true,\n\tapply_current_page_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tchild_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tparent_page_bg_color: '#282828',\n\tparent_page_color: '#0cc4c6',\n\tparent_page_font_weight: 'normal',\n\tdisplay_all: true,\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_font_weight: 'bold',\n\tinclude_childless_parent: true,\n\tinclude_parent: true,\n\tlevels: '2',\n};\n\n\nexport const block = CONFIG.blocks.categories;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Categories', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE as any,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( ! instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu_category' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\t// `attributes` are registered server side because we use ServerSideRender.\n\t// `supports` are registered server side for easy overrides.\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 2,\n};\n","import {BlockControls, InspectorControls} from '@wordpress/block-editor';\nimport {PanelBody, SelectControl, Slot, TextControl} from '@wordpress/components';\nimport {BlockEditProps} from '@wordpress/blocks';\nimport {Attr, block} from './block';\nimport Preview from '../Preview';\nimport Display from '../Display';\nimport {useSelect} from '@wordpress/data';\nimport InfoPanel from '../InfoPanel';\nimport {CONFIG} from '../../../globals/config';\nimport {sanitize} from 'dompurify';\nimport {__, sprintf} from '@wordpress/i18n';\nimport {Type} from '@wordpress/api/types';\nimport ErrorBoundary from '../../../components/ErrorBoundary';\nimport SideLoad from '../../SideLoad';\nimport {isScreen} from '../../helpers';\n\nimport styles from './edit.pcss';\n\n\nexport type FillProps =\n\tPick<BlockEditProps<Attr>, 'clientId' | 'attributes' | 'setAttributes' | 'name'>\n\t& { type?: Type }\n\ntype Props = BlockEditProps<Attr>;\n\n/**\n * Pages block content in the editor.\n */\nconst Edit = ( {attributes, setAttributes, clientId, name}: Props ) => {\n\tconst postType: Type | undefined = useSelect( select => {\n\t\tconst type = select( 'core' ).getPostType( attributes.post_type ?? 'page' );\n\t\treturn type ?? select( 'core' ).getPostType( 'page' );\n\t}, [ attributes.post_type ] );\n\n\t// We have a version conflict or license error.\n\tif ( '' !== CONFIG.error ) {\n\t\treturn ( <>\n\t\t\t<InspectorControls>\n\t\t\t\t<div\n\t\t\t\t\tclassName={styles.error}\n\t\t\t\t\tdangerouslySetInnerHTML={{__html: sanitize( CONFIG.error )}} />\n\t\t\t</InspectorControls>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</> );\n\t}\n\n\tconst fillProps: FillProps = {\n\t\ttype: postType,\n\t\tattributes,\n\t\tname,\n\t\tsetAttributes,\n\t\tclientId,\n\t};\n\n\treturn ( <>\n\t\t<InspectorControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t{isScreen( [ 'widgets', 'site-editor', 'customize' ] ) && <PanelBody>\n\t\t\t\t\t<TextControl\n\t\t\t\t\t\tvalue={attributes.title ?? ''}\n\t\t\t\t\t\tlabel={__( 'Title', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tonChange={title => setAttributes( {title} )} />\n\t\t\t\t</PanelBody>}\n\t\t\t\t<Display\n\t\t\t\t\tattributes={attributes}\n\t\t\t\t\tclientId={clientId}\n\t\t\t\t\tname={name}\n\t\t\t\t\tsetAttributes={setAttributes}\n\t\t\t\t\ttype={postType} />\n\n\t\t\t\t<div className={'components-panel__body is-opened'}>\n\n\t\t\t\t\t<Slot<FillProps>\n\t\t\t\t\t\tname=\"advanced-sidebar-menu/pages/general\"\n\t\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t\t\t<SelectControl\n\t\t\t\t\t\tlabel={__( 'Order by', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\tvalue={attributes.order_by}\n\t\t\t\t\t\tlabelPosition={'side'}\n\t\t\t\t\t\toptions={Object.entries( CONFIG.pages.orderBy ).map( ( [ value, label ] ) => ( {\n\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t} ) )}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\torder_by: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\t\t\t\t\t<TextControl\n\t\t\t\t\t\t/* translators: Selected post type plural label */\n\t\t\t\t\t\tlabel={sprintf( __( '%s to exclude (ids, comma separated)', 'advanced-sidebar-menu' ), postType?.labels?.name ?? '' )}\n\t\t\t\t\t\tvalue={attributes.exclude}\n\t\t\t\t\t\tonChange={value => {\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\texclude: value,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}} />\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\thref={CONFIG.docs.page}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{__( 'block documentation', 'advanced-sidebar-menu' )}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/inspector\"\n\t\t\t\t\tfillProps={fillProps} />\n\n\t\t\t</ErrorBoundary>\n\t\t</InspectorControls>\n\n\t\t<BlockControls>\n\t\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t\t<Slot<FillProps>\n\t\t\t\t\tname=\"advanced-sidebar-menu/pages/block-controls\"\n\t\t\t\t\tfillProps={fillProps} />\n\t\t\t</ErrorBoundary>\n\t\t</BlockControls>\n\n\t\t<InfoPanel clientId={clientId} />\n\n\t\t<ErrorBoundary attributes={attributes} block={name}>\n\t\t\t<Preview<Attr> attributes={attributes} block={block.id} clientId={clientId} />\n\t\t</ErrorBoundary>\n\n\t\t<SideLoad clientId={clientId} />\n\t</> );\n};\n\nexport default Edit;\n","import {BlockSettings, LegacyWidget} from '@wordpress/blocks';\nimport {CONFIG} from '../../../globals/config';\nimport Edit from './Edit';\nimport {PreviewOptions} from '../Preview';\nimport {DisplayOptions} from '../Display';\nimport {transformLegacyWidget} from '../../helpers';\nimport {__} from '@wordpress/i18n';\n\n/**\n * Attributes specific to the widget as well as shared\n * widget attributes.\n *\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Block_Abstract::get_all_attributes\n * @see \\Advanced_Sidebar_Menu\\Blocks\\Pages::get_attributes\n */\nexport type Attr = {\n\texclude: string;\n\torder_by: string;\n\ttitle: string;\n} & DisplayOptions & ProRegistered & PreviewOptions;\n\n// Options used by basic when available from PRO.\ntype ProRegistered = {\n\tpost_type: string;\n}\n\nexport type setAttributes = ( newValue: {\n\t[attribute in keyof Attr]?: Attr[attribute]\n} ) => void;\n\n\n/**\n * Attributes used for the example preview.\n * Combines some PRO and basic attributes.\n * The PRO attributes will only be sent if PRO is active.\n */\nconst EXAMPLE = {\n\tinclude_parent: true,\n\tinclude_childless_parent: true,\n\tdisplay_all: true,\n\tlevels: '2',\n\tapply_current_page_styles_to_parent: true,\n\tapply_current_page_parent_styles_to_parent: true,\n\tblock_style: true,\n\tborder: true,\n\tborder_color: '#333',\n\tbullet_style: 'none',\n\tparent_page_color: '#fff',\n\tparent_page_bg_color: '#666',\n\tchild_page_color: '#fff',\n\tchild_page_bg_color: '#666',\n\tgrandchild_page_color: '#282828',\n\tgrandchild_page_bg_color: '#989898',\n\tgrandchild_page_font_weight: 'bold',\n\tcurrent_page_color: '#0cc4c6',\n\tcurrent_page_bg_color: '#282828',\n\tcurrent_page_font_weight: 'normal',\n\tcurrent_page_parent_bg_color: '#333',\n};\n\nexport const block = CONFIG.blocks.pages;\n\nexport const name = block.id;\n\nexport const settings: BlockSettings<Attr, '', LegacyWidget<Attr & { title: string }>> = {\n\ttitle: __( 'Advanced Sidebar - Pages', 'advanced-sidebar-menu' ),\n\ticon: 'welcome-widgets-menus',\n\tcategory: 'widgets',\n\texample: {\n\t\tattributes: EXAMPLE as any,\n\t},\n\ttransforms: {\n\t\tfrom: [\n\t\t\t{\n\t\t\t\ttype: 'block',\n\t\t\t\tblocks: [ 'core/legacy-widget' ],\n\t\t\t\tisMatch: ( {idBase, instance} ) => {\n\t\t\t\t\tif ( ! instance?.raw ) {\n\t\t\t\t\t\t// Can't transform if raw instance is not shown in REST API.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn 'advanced_sidebar_menu' === idBase;\n\t\t\t\t},\n\t\t\t\ttransform: transformLegacyWidget<Attr>( name ),\n\t\t\t},\n\t\t],\n\t},\n\t// `attributes` are registered server side because we use ServerSideRender.\n\t// `supports` are registered server side for easy overrides.\n\tedit: props => (\n\t\t<Edit {...props} />\n\t),\n\tsave: () => null,\n\tapiVersion: 2,\n};\n","import {createBlock, CreateBlock} from '@wordpress/blocks';\nimport {CONFIG, Screen} from '../globals/config';\n\nexport type TransformLegacy = <A>( name: string ) => ( widgetValues: { instance: Record<string, any> } ) => CreateBlock<A>[];\n\n/**\n * Are we on one of the provided screens?\n */\nexport const isScreen = ( screens: Array<Screen> ): boolean => {\n\treturn screens.includes( CONFIG.currentScreen );\n};\n\n/**\n * Transform a legacy widget to the matching block.\n *\n */\nexport const transformLegacyWidget: TransformLegacy = <A>( name: string ) => ( {instance} ) => {\n\treturn [ createBlock<A>( name, translateLegacyWidget<A>( instance.raw ) ) ];\n};\n\n/**\n * Translate the widget's \"checked\" to the boolean\n * version used in the block.\n *\n */\nconst translateLegacyWidget = <A>( settings ): A => {\n\tObject.entries( settings ).forEach( ( [ key, value ] ) => {\n\t\tif ( 'checked' === value ) {\n\t\t\tsettings[ key ] = true;\n\t\t}\n\t\tif ( 'object' === typeof value ) {\n\t\t\ttranslateLegacyWidget( settings[ key ] );\n\t\t}\n\t\t// Old widgets used to use \"0\" for some defaults.\n\t\tif ( '0' === value ) {\n\t\t\tdelete settings[ key ];\n\t\t}\n\t} );\n\treturn settings;\n};\n","import {autoloadBlocks} from '@lipemat/js-boilerplate-gutenberg';\nimport Preview from './blocks/Preview';\nimport {transformLegacyWidget} from './helpers';\nimport ErrorBoundary from '../components/ErrorBoundary';\n\n/**\n * Use our custom autoloader to automatically require,\n * register and add HMR support to Gutenberg related items.\n *\n * Will load from specified directory recursively.\n */\nexport default () => {\n\t// Load all blocks\n\tautoloadBlocks( () => require.context( './blocks', true, /block\\.tsx$/ ), module );\n\n\t// Expose helpers and Preview component to window, so we can use them in PRO.\n\twindow.ADVANCED_SIDEBAR_MENU.ErrorBoundary = ErrorBoundary;\n\twindow.ADVANCED_SIDEBAR_MENU.Preview = Preview;\n\twindow.ADVANCED_SIDEBAR_MENU.transformLegacyWidget = transformLegacyWidget;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"wrap\":\"info-panel__wrap__YT\",\"button\":\"info-panel__button__PN\"};","// extracted by mini-css-extract-plugin\nexport default {\"error\":\"edit__error___h\"};","// extracted by mini-css-extract-plugin\nexport default {\"placeholder\":\"preview__placeholder__QP\",\"error\":\"preview__error__xF\",\"spin-wrap\":\"preview__spin-wrap__Jr\",\"spinWrap\":\"preview__spin-wrap__Jr\",\"spin\":\"preview__spin__A4\",\"spin-content\":\"preview__spin-content__Yg\",\"spinContent\":\"preview__spin-content__Yg\"};","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return func == null ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es-x/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es-x/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = uncurryThis(store.get);\n var wmhas = uncurryThis(store.has);\n var wmset = uncurryThis(store.set);\n set = function (it, metadata) {\n if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget(store, it) || {};\n };\n has = function (it) {\n return wmhas(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es-x/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","/* eslint-disable es-x/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es-x/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es-x/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es-x/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.23.3',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es-x/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","/*! @license DOMPurify 2.3.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.10/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, (function () { 'use strict';\n\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n }\n\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n }\n\n function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n\n function _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n }\n\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n }\n\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n }\n\n function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n }\n\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n }\n\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return _construct(Func, _toConsumableArray(args));\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n var regExpTest = unapply(RegExp.prototype.test);\n var typeErrorCreate = unconstruct(TypeError);\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n /* Add properties to a lookup table */\n\n function addToSet(set, array, transformCaseFunc) {\n transformCaseFunc = transformCaseFunc ? transformCaseFunc : stringToLowerCase;\n\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n\n while (l--) {\n var element = array[l];\n\n if (typeof element === 'string') {\n var lcElement = transformCaseFunc(element);\n\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n /* Shallow clone an object */\n\n function clone(object) {\n var newObject = create(null);\n var property;\n\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); // SVG\n\n var svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n var mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']); // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n var text = freeze(['#text']);\n\n var html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n var svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n var mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n var MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n\n var ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n var DOCTYPE_NAME = seal(/^html$/i);\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n\n\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if (_typeof(trustedTypes) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n } // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n\n\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html) {\n return html;\n },\n createScriptURL: function createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n\n\n DOMPurify.version = '2.3.10';\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n HTMLFormElement = window.HTMLFormElement,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n var ElementPrototype = Element.prototype;\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n\n var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n var documentMode = {};\n\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;\n var MUSTACHE_EXPR$1 = MUSTACHE_EXPR,\n ERB_EXPR$1 = ERB_EXPR,\n DATA_ATTR$1 = DATA_ATTR,\n ARIA_ATTR$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$1 = IS_ALLOWED_URI;\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray(html$1), _toConsumableArray(svg$1), _toConsumableArray(svgFilters), _toConsumableArray(mathMl$1), _toConsumableArray(text)));\n /* Allowed attribute names */\n\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray(html), _toConsumableArray(svg), _toConsumableArray(mathMl), _toConsumableArray(xml)));\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n\n var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n\n var FORBID_TAGS = null;\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n\n var FORBID_ATTR = null;\n /* Decide if ARIA attributes are okay */\n\n var ALLOW_ARIA_ATTR = true;\n /* Decide if custom data attributes are okay */\n\n var ALLOW_DATA_ATTR = true;\n /* Decide if unknown protocols are okay */\n\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n\n var SAFE_FOR_TEMPLATES = false;\n /* Decide if document with <html>... should be returned */\n\n var WHOLE_DOCUMENT = false;\n /* Track whether config is already set on this instance of DOMPurify. */\n\n var SET_CONFIG = false;\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n\n var FORCE_BODY = false;\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n\n var RETURN_DOM = false;\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n\n var RETURN_DOM_FRAGMENT = false;\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n\n var RETURN_TRUSTED_TYPE = false;\n /* Output should be free from DOM clobbering attacks? */\n\n var SANITIZE_DOM = true;\n /* Keep element content when removing element? */\n\n var KEEP_CONTENT = true;\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n\n var IN_PLACE = false;\n /* Allow usage of profiles like html, svg and mathMl */\n\n var USE_PROFILES = {};\n /* Tags to ignore content of when KEEP_CONTENT is true */\n\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n /* Tags that are safe for data: URIs */\n\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n /* Attributes safe for values like \"javascript:\" */\n\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n /* Parsing of strict XHTML documents */\n\n var PARSER_MEDIA_TYPE;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc;\n /* Keep a reference to config to pass to hooks */\n\n var CONFIG = null;\n /* Ideally, do not touch anything below this line */\n\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n var isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n\n\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n /* Shield configuration object from tampering */\n\n\n if (!cfg || _typeof(cfg) !== 'object') {\n cfg = {};\n }\n /* Shield configuration object from prototype pollution */\n\n\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? function (x) {\n return x;\n } : stringToLowerCase;\n /* Set configuration parameters */\n\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS, // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n /* Parse profile info */\n\n\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, _toConsumableArray(text));\n ALLOWED_ATTR = [];\n\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n /* Merge configuration parameters */\n\n\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n /* Add #text in case KEEP_CONTENT is set to true */\n\n\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n\n\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n\n\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n } // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n\n\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']); // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n\n var COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n\n var ALL_SVG_TAGS = addToSet({}, svg$1);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n var ALL_MATHML_TAGS = addToSet({}, mathMl$1);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n } // The only way to switch from MathML to SVG is via\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n\n\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n } // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n\n\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n } // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n\n\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n } // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n\n\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n } // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n\n\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n } // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n\n\n return false;\n };\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n\n\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n\n\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name); // We void attribute values for unremovable \"is\"\" attributes\n\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n\n\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc;\n var leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n /* Use createHTMLDocument in case DOMParser is not available */\n\n\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {// Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n /* Work on whole document or just its body */\n\n\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n\n\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n\n\n var _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function');\n };\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n\n\n var _isNode = function _isNode(object) {\n return _typeof(Node) === 'object' ? object instanceof Node : object && _typeof(object) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n\n\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n\n\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content;\n /* Execute a hook if present */\n\n _executeHook('beforeSanitizeElements', currentNode, null);\n /* Check if element is clobbered or can clobber */\n\n\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Check if tagname contains Unicode */\n\n\n if (regExpTest(/[\\u0080-\\uFFFF]/, currentNode.nodeName)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Now let's check the element's type and name */\n\n\n var tagName = transformCaseFunc(currentNode.nodeName);\n /* Execute a hook if present */\n\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n /* Detect mXSS attempts abusing namespace confusion */\n\n\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Mitigate a problem with templates inside select */\n\n\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Remove element if anything forbids its presence */\n\n\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;\n }\n /* Keep content except for bad-listed elements */\n\n\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n\n return true;\n }\n /* Check whether element has a valid namespace */\n\n\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n\n return true;\n }\n\n if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n\n return true;\n }\n /* Sanitize element content to be template-safe */\n\n\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$1, ' ');\n content = stringReplace(content, ERB_EXPR$1, ' ');\n\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n\n\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n\n\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, ''))) ; else if (!value) ; else {\n return false;\n }\n\n return true;\n };\n /**\n * _basicCustomElementCheck\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n * @param {string} tagName name of the tag of the node to sanitize\n */\n\n\n var _basicCustomElementTest = function _basicCustomElementTest(tagName) {\n return tagName.indexOf('-') > 0;\n };\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n\n\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr;\n var value;\n var lcName;\n var l;\n /* Execute a hook if present */\n\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n /* Go backwards over all attributes; safely remove bad ones */\n\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n value = name === 'value' ? attr.value : stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n /* Execute a hook if present */\n\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n /* Remove attribute */\n\n\n _removeAttribute(name, currentNode);\n /* Did the hooks approve of the attribute? */\n\n\n if (!hookEvent.keepAttr) {\n continue;\n }\n /* Work around a security issue in jQuery 3.0 */\n\n\n if (regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n\n continue;\n }\n /* Sanitize attribute content to be template-safe */\n\n\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$1, ' ');\n value = stringReplace(value, ERB_EXPR$1, ' ');\n }\n /* Is `value` valid for this attribute? */\n\n\n var lcTag = transformCaseFunc(currentNode.nodeName);\n\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n /* Handle attributes that require Trusted Types */\n\n\n if (trustedTypesPolicy && _typeof(trustedTypes) === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ; else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n value = trustedTypesPolicy.createHTML(value);\n break;\n\n case 'TrustedScriptURL':\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n /* Handle invalid data-* attribute set by try-catching it */\n\n\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n\n\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode;\n\n var shadowIterator = _createIterator(fragment);\n /* Execute a hook if present */\n\n\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n /* Sanitize tags and elements */\n\n\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n /* Deep shadow DOM detected */\n\n\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n /* Check attributes, sanitize if necessary */\n\n\n _sanitizeAttributes(shadowNode);\n }\n /* Execute a hook if present */\n\n\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n\n\n DOMPurify.sanitize = function (dirty, cfg) {\n var body;\n var importedNode;\n var currentNode;\n var oldNode;\n var returnNode;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n\n IS_EMPTY_INPUT = !dirty;\n\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n /* Stringify, in case dirty is an object */\n\n\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n /* Check we can run. Otherwise fall back or ignore */\n\n\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n /* Assign config vars */\n\n\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n /* Clean up removed elements */\n\n\n DOMPurify.removed = [];\n /* Check if dirty is correctly typed for IN_PLACE */\n\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n var tagName = transformCaseFunc(dirty.nodeName);\n\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n /* Initialize the document to work on */\n\n\n body = _initDocument(dirty);\n /* Check we have a DOM node from the data */\n\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n /* Remove first element node (ours) if FORCE_BODY is set */\n\n\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n /* Get node iterator */\n\n\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n /* Now start iterating over the created document */\n\n\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n /* Sanitize tags and elements */\n\n\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n /* Shadow DOM detected, sanitize it */\n\n\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n /* Check attributes, sanitize if necessary */\n\n\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n /* If we sanitized `dirty` in-place, return it. */\n\n if (IN_PLACE) {\n return dirty;\n }\n /* Return sanitized string or DOM */\n\n\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (ALLOWED_ATTR.shadowroot) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n /* Serialize doctype if allowed */\n\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\\n' + serializedHTML;\n }\n /* Sanitize final string template-safe */\n\n\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n\n\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n\n SET_CONFIG = true;\n };\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n\n\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n\n\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n\n\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n\n\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n\n\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n\n\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","/* eslint-disable vars-on-top, no-var, prefer-template */\nvar isRegExp = function (re) { \n return re instanceof RegExp;\n};\nvar escapeRegExp = function escapeRegExp(string) {\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n};\nvar isString = function (value) {\n return typeof value === 'string';\n};\nvar flatten = function (array) {\n var newArray = [];\n\n array.forEach(function (item) {\n if (Array.isArray(item)) {\n newArray = newArray.concat(item);\n } else {\n newArray.push(item);\n }\n });\n\n return newArray;\n};\n\n/**\n * Given a string, replace every substring that is matched by the `match` regex\n * with the result of calling `fn` on matched substring. The result will be an\n * array with all odd indexed elements containing the replacements. The primary\n * use case is similar to using String.prototype.replace except for React.\n *\n * React will happily render an array as children of a react element, which\n * makes this approach very useful for tasks like surrounding certain text\n * within a string with react elements.\n *\n * Example:\n * matchReplace(\n * 'Emphasize all phone numbers like 884-555-4443.',\n * /([\\d|-]+)/g,\n * (number, i) => <strong key={i}>{number}</strong>\n * );\n * // => ['Emphasize all phone numbers like ', <strong>884-555-4443</strong>, '.'\n *\n * @param {string} str\n * @param {RegExp|str} match Must contain a matching group\n * @param {function} fn\n * @return {array}\n */\nfunction replaceString(str, match, fn) {\n var curCharStart = 0;\n var curCharLen = 0;\n\n if (str === '') {\n return str;\n } else if (!str || !isString(str)) {\n throw new TypeError('First argument to react-string-replace#replaceString must be a string');\n }\n\n var re = match;\n\n if (!isRegExp(re)) {\n re = new RegExp('(' + escapeRegExp(re) + ')', 'gi');\n }\n\n var result = str.split(re);\n\n // Apply fn to all odd elements\n for (var i = 1, length = result.length; i < length; i += 2) {\n /** @see {@link https://github.com/iansinnott/react-string-replace/issues/74} */\n if (result[i] === undefined || result[i - 1] === undefined) {\n console.warn('reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.');\n continue;\n }\n\n curCharLen = result[i].length;\n curCharStart += result[i - 1].length;\n result[i] = fn(result[i], i, curCharStart);\n curCharStart += curCharLen;\n }\n\n return result;\n}\n\nmodule.exports = function reactStringReplace(source, match, fn) {\n if (!Array.isArray(source)) source = [source];\n\n return flatten(source.map(function(x) {\n return isString(x) ? replaceString(x, match, fn) : x;\n }));\n};\n","var map = {\n\t\"./categories/block.tsx\": \"./src/gutenberg/blocks/categories/block.tsx\",\n\t\"./pages/block.tsx\": \"./src/gutenberg/blocks/pages/block.tsx\",\n\t\"gutenberg/blocks/categories/block.tsx\": \"./src/gutenberg/blocks/categories/block.tsx\",\n\t\"gutenberg/blocks/pages/block.tsx\": \"./src/gutenberg/blocks/pages/block.tsx\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"./src/gutenberg/blocks sync recursive block\\\\.tsx$\";","module.exports = React;","module.exports = jQuery;","module.exports = lodash;","module.exports = wp.apiFetch;","module.exports = wp.blockEditor;","module.exports = wp.blocks;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.hooks;","module.exports = wp.htmlEntities;","module.exports = wp.i18n;","module.exports = wp.plugins;","module.exports = wp.serverSideRender;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = function(module) {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: function() {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","console.log( 'Advanced Sidebar - Loaded' );\n\n/**\n * 1. Blocks can't be lazy loaded, or they will be unavailable\n * intermittently when developing.\n * 2. Theme Customizers must wait until the page is finished loading.\n *\n * @version 1.1.0\n */\nif ( typeof wp.element !== 'undefined' && typeof wp.plugins !== 'undefined' ) {\n\trequire( './gutenberg' ).default();\n} else if ( typeof wp.customize !== 'undefined' ) {\n\twp.customize.bind( 'ready', () => {\n\t\trequire( './gutenberg' ).default();\n\t} );\n}\n"],"names":["Component","CONFIG","addQueryArgs","sanitize","ErrorBoundary","constructor","props","state","hasError","error","getDerivedStateFromError","componentDidCatch","info","console","log","setState","render","siteInfo","scriptDebug","color","window","location","href","support","border","padding","width","overflowWrap","message","block","JSON","stringify","attributes","stack","children","ADVANCED_SIDEBAR_MENU","withFilters","select","isEmpty","firstClientId","SideLoad","clientId","getBlockIndex","CheckboxControl","PanelBody","Slot","__","sprintf","range","reactStringReplace","checkboxes","include_parent","include_childless_parent","display_all","Display","setAttributes","type","name","showLevels","blocks","pages","id","isPro","fillProps","Object","keys","map","item","label","labels","singular_name","toLowerCase","value","replace","levels","ev","parseInt","target","n","categories","Button","InspectorControls","decodeEntities","styles","InfoPanel","wrap","features","feature","textDecoration","button","useEffect","ServerSideRender","Placeholder","Spinner","useBlockProps","doAction","isScreen","sanitizeClientId","getSidebarId","rootId","getBlockRootClientId","ParentBlock","getBlocksByClientId","Page","placeholder","Category","Navigation","navigation","TriggerWhenLoadingFinished","setTimeout","$","find","on","preventDefault","values","errorMsg","Error","spinWrap","spin","spinContent","Preview","blockProps","__html","sanitizedClientId","style","isServerSideRenderRequest","sidebarId","useSelect","BlockControls","SelectControl","TextControl","Edit","taxonomy","getTaxonomy","title","single","new_widget","entries","displayEach","exclude","docs","category","transformLegacyWidget","EXAMPLE","apply_current_page_parent_styles_to_parent","apply_current_page_styles_to_parent","block_style","border_color","bullet_style","child_page_bg_color","child_page_color","parent_page_bg_color","parent_page_color","parent_page_font_weight","grandchild_page_bg_color","grandchild_page_color","grandchild_page_font_weight","settings","icon","example","transforms","from","isMatch","idBase","instance","raw","transform","edit","save","apiVersion","postType","getPostType","post_type","order_by","orderBy","page","current_page_color","current_page_bg_color","current_page_font_weight","current_page_parent_bg_color","createBlock","screens","includes","currentScreen","translateLegacyWidget","forEach","key","autoloadBlocks","require","context","module","wp","element","plugins","default","customize","bind"],"sourceRoot":""}
|
js/dist/admin.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see admin.min.js.LICENSE.txt */
|
2 |
-
!function(){var e={941:function(e,t,n){"use strict";var r=n(363),a=n(539),o=n(368),l=n(538);class c extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.log("%cError caught by the Advanced Sidebar ErrorBoundary!","color:orange; font-size: large; font-weight: bold"),console.log(this.props),console.log(e),console.log(t),this.setState({error:e})}render(){return this.state.hasError?a.k.siteInfo.scriptDebug?React.createElement("div",{className:"components-panel__body is-opened"},React.createElement("h4",{style:{color:"red"}},"Something went wrong!"),React.createElement("p",null,"Please ",React.createElement("a",{target:"_blank",href:a.k.support,rel:"noreferrer"},"create a support request")," with the following:"),React.createElement("ol",null,React.createElement("li",null,"The ",React.createElement("a",{href:"https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/",target:"_blank",rel:"noreferrer"},"logs from your browser console.")),React.createElement("li",null,"The following information.")),React.createElement("div",{style:{border:"2px groove",padding:"10px",width:"100%",overflowWrap:"break-word"}},React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Message"))," ",React.createElement("br",null),React.createElement("code",null,this.state.error?.message)),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Block"))," ",React.createElement("br",null),React.createElement("code",null,this.props.block)),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Attributes"))," ",React.createElement("br",null),React.createElement("code",null,JSON.stringify(this.props.attributes))),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Site Info"))," ",React.createElement("br",null),React.createElement("code",null,JSON.stringify(a.k.siteInfo))),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Stack"))," ",React.createElement("br",null),React.createElement("code",null,this.state.error?.stack))),React.createElement("p",null," "),React.createElement("p",null," ")):React.createElement("div",{className:"components-panel__body is-opened"},React.createElement("h4",{style:{color:"red"}},"Something went wrong!"),React.createElement("p",null,"Please ",React.createElement("a",{href:(0,o.addQueryArgs)((0,l.sanitize)(window.location.href),{"script-debug":!0})},"enable script debug"),":")):this.props.children}}t.Z=c},539:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});const r=window.ADVANCED_SIDEBAR_MENU||{}},338:function(e,t,n){"use strict";var r=n(537),a=n(284),o=n(85);let l="";t.Z=(0,r.withFilters)("advanced-sidebar-menu.blocks.side-load")((e=>{let{clientId:t,children:n}=e;return(0,o.isEmpty)(l)||t===l||-1===(0,a.select)("core/block-editor").getBlockIndex(l)?(l=t,n??null):null}))},333:function(e,t,n){"use strict";var r=n(537),a=n(539),o=n(3),l=n(85),c=n(589),i=n.n(c),s=n(941);const u={include_parent:(0,o.__)("Display the highest level parent %s","advanced-sidebar-menu"),include_childless_parent:(0,o.__)("Display menu when there is only the parent %s","advanced-sidebar-menu"),display_all:(0,o.__)("Always display child %s","advanced-sidebar-menu")};t.Z=e=>{let{attributes:t,setAttributes:n,type:c,name:d,clientId:m,children:p}=e;const f=a.k.blocks.pages.id===d&&a.k.isPro||t.display_all,g={type:c,attributes:t,name:d,setAttributes:n,clientId:m};return React.createElement(r.PanelBody,{title:(0,o.__)("Display","advanced-sidebar-menu")},Object.keys(u).map((e=>{let a=c?.labels?.singular_name.toLowerCase()??"";return"display_all"===e&&(a=c?.labels?.name.toLowerCase()??""),React.createElement(r.CheckboxControl,{key:e,label:(0,o.sprintf)(u[e],a),checked:!!t[e],onChange:t=>{n({[e]:!!t})}})})),f&&React.createElement("div",{className:"components-base-control"},i()((0,o.__)("Display %1$s levels of child %2$s","advanced-sidebar-menu").replace("%2$s",c?.labels?.name.toLowerCase()??""),"%1$s",(()=>React.createElement("select",{key:"levels",value:t.levels,onChange:e=>n({levels:parseInt(e.target.value)})},React.createElement("option",{value:"100"},(0,o.__)("- All -","advanced-sidebar-menu")),(0,l.range)(1,10).map((e=>React.createElement("option",{key:e,value:e},e))))))),p,React.createElement(s.Z,{attributes:t,block:d},a.k.blocks.pages.id===d&&React.createElement(r.Slot,{name:"advanced-sidebar-menu/pages/display",fillProps:g}),a.k.blocks.categories.id===d&&React.createElement(r.Slot,{name:"advanced-sidebar-menu/categories/display",fillProps:g})))}},821:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(539),a=n(537),o=n(78),l=wp.htmlEntities,c=n(3),i=(0,a.withFilters)("advanced-sidebar-menu.blocks.info-panel")((e=>{let{}=e;return React.createElement(o.InspectorControls,null,React.createElement(a.PanelBody,{title:(0,c.__)("Advanced Sidebar Menu PRO","advanced-sidebar-menu"),className:"YTpls"},React.createElement("ul",null,r.k.features.map((e=>React.createElement("li",{key:e},(0,l.decodeEntities)(e)))),React.createElement("li",null,React.createElement("a",{href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-more&utm_campaign=gopro&utm_medium=wp-dash",target:"_blank",style:{textDecoration:"none"},rel:"noreferrer"},(0,c.__)("So much more…","advanced-sidebar-menu")))),React.createElement(a.Button,{className:"PNgUV",href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?trigger_buy_now=1&utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash",target:"_blank",rel:"noreferrer",isPrimary:!0},(0,c.__)("Upgrade","advanced-sidebar-menu"))))}))},464:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(363),a=n(539),o=wp.serverSideRender,l=n.n(o),c=n(537),i=n(78),s=n(538),u=wp.hooks,d=n(3),m="QPB_Z",p=n(284),f=n(311);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}const b=e=>{if("widgets"!==a.k.currentScreen)return"";const t=(0,p.select)("core/block-editor").getBlockRootClientId(e);if(t){const e=(0,p.select)("core/block-editor").getBlocksByClientId([t]);if(e[0]&&"core/widget-area"===e[0].name)return e[0]?.attributes?.id}return""},h=()=>React.createElement(c.Placeholder,{className:m,icon:"welcome-widgets-menus",label:(0,d.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),instructions:(0,d.__)("No preview available","advanced-sidebar-menu")}),y=()=>React.createElement(c.Placeholder,{className:m,icon:"welcome-widgets-menus",label:(0,d.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),instructions:(0,d.__)("No preview available","advanced-sidebar-menu")}),_=()=>React.createElement(c.Placeholder,{className:m,icon:"welcome-widgets-menus",label:(0,d.__)("Advanced Sidebar - Navigation","advanced-sidebar-menu"),instructions:(0,d.__)("No preview available","advanced-sidebar-menu")}),v=e=>{switch(e){case a.k.blocks.pages.id:return h;case a.k.blocks.categories.id:return y;case a.k.blocks.navigation?.id:return _}return()=>React.createElement(React.Fragment,null)},E=e=>{let{children:t,attributes:n={clientId:""}}=e;if((0,r.useEffect)((()=>()=>{setTimeout((()=>{f(`[data-preview="${n.clientId}"]`).find("a").on("click",(e=>e.preventDefault())),(0,u.doAction)("advanced-sidebar-menu.blocks.preview.loading-finished",{values:n,clientId:n.clientId})}),100)})),t?.props?.children?.errorMsg)throw new Error(t?.props?.children?.errorMsg??"Failed");return React.createElement("div",{className:"JrCy1"},React.createElement("div",{className:"A45Ny"},React.createElement(c.Spinner,null)),React.createElement("div",{className:"Ygsqf"},t))};var R=e=>{let{attributes:t,block:n,clientId:r}=e;const o=(0,i.useBlockProps)();if(""!==a.k.error)return React.createElement("div",{className:"xF2E_",dangerouslySetInnerHTML:{__html:(0,s.sanitize)(a.k.error)}});const c=(e=>e.replace(/^([\d-])/,"_$1"))(r);return delete o.style,React.createElement("div",g({},o,{"data-preview":c}),React.createElement(l(),{EmptyResponsePlaceholder:v(n),LoadingResponsePlaceholder:E,attributes:{...t,isServerSideRenderRequest:!0,clientId:c,sidebarId:b(r)},block:n,httpMethod:"POST"}))}},125:function(e,t,n){"use strict";n.r(t),n.d(t,{block:function(){return h},name:function(){return y},settings:function(){return _}});var r=n(539),a=n(284),o=n(538),l=n(78),c=n(464),i=n(941),s=n(333),u=n(537),d=n(3),m=n(821),p=n(474),f=n(338),g=e=>{let{attributes:t,setAttributes:n,clientId:g,name:b}=e;const y=(0,a.useSelect)((e=>e("core").getTaxonomy(t.taxonomy??"category")??e("core").getTaxonomy("category")),[t.taxonomy]);if(""!==r.k.error)return React.createElement(React.Fragment,null,React.createElement(l.InspectorControls,null,React.createElement("div",{className:p.Z.error,dangerouslySetInnerHTML:{__html:(0,o.sanitize)(r.k.error)}})),React.createElement(c.Z,{attributes:t,block:h.id,clientId:g}));const _={type:y,attributes:t,name:b,setAttributes:n,clientId:g};return React.createElement(React.Fragment,null,React.createElement(l.InspectorControls,null,React.createElement(i.Z,{attributes:t,block:b},("widgets"===r.k.currentScreen||"site-editor"===r.k.currentScreen||"customize"===r.k.currentScreen)&&React.createElement(u.PanelBody,null,React.createElement(u.TextControl,{value:t.title??"",label:(0,d.__)("Title","advanced-sidebar-menu"),onChange:e=>n({title:e})})),React.createElement(s.Z,{attributes:t,clientId:g,name:b,setAttributes:n,type:y},"post"!==r.k.currentScreen&&React.createElement(u.CheckboxControl,{label:(0,d.sprintf)((0,d.__)("Display %s on single posts","advanced-sidebar-menu"),y?.labels?.name.toLowerCase()??""),checked:!!t.single,onChange:e=>{n({single:!!e})}}),"widgets"===r.k.currentScreen&&t.single&&React.createElement(u.SelectControl,{label:(0,d.sprintf)((0,d.__)("Display each single post's %s","advanced-sidebar-menu"),y?.labels?.name.toLowerCase()??""),value:t.new_widget,options:Object.entries(r.k.categories.displayEach).map((e=>{let[t,n]=e;return{value:t,label:n}})),onChange:e=>n({new_widget:e})})),React.createElement("div",{className:"components-panel__body is-opened"},React.createElement(u.Slot,{name:"advanced-sidebar-menu/categories/general",fillProps:_}),React.createElement(u.TextControl,{label:(0,d.sprintf)((0,d.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),y?.labels?.name??""),value:t.exclude,onChange:e=>{n({exclude:e})}}),React.createElement("p",null,React.createElement("a",{href:r.k.docs.category,target:"_blank",rel:"noopener noreferrer"},(0,d.__)("block documentation","advanced-sidebar-menu")))),React.createElement(u.Slot,{name:"advanced-sidebar-menu/categories/inspector",fillProps:_}))),React.createElement(l.BlockControls,null,React.createElement(i.Z,{attributes:t,block:b},React.createElement(u.Slot,{name:"advanced-sidebar-menu/categories/block-controls",fillProps:_}))),React.createElement(m.Z,{clientId:g}),React.createElement(i.Z,{attributes:t,block:b},React.createElement(c.Z,{attributes:t,block:h.id,clientId:g})),React.createElement(f.Z,{clientId:g}))},b=n(928);const h=r.k.blocks.categories,y=h.id,_={title:(0,d.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{"display-posts":"all","display-posts/limit":2,apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",parent_page_bg_color:"#282828",parent_page_color:"#0cc4c6",parent_page_font_weight:"normal",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:"2"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"advanced_sidebar_menu_category"===t},transform:(0,b.n)(y)}]},edit:e=>React.createElement(g,e),save:()=>null,apiVersion:2}},789:function(e,t,n){"use strict";n.r(t),n.d(t,{block:function(){return h},name:function(){return y},settings:function(){return _}});var r=n(539),a=n(78),o=n(537),l=n(464),c=n(333),i=n(284),s=n(821),u=n(538),d=n(3),m=n(941),p=n(474),f=n(338),g=e=>{let{attributes:t,setAttributes:n,clientId:g,name:b}=e;const y=(0,i.useSelect)((e=>e("core").getPostType(t.post_type??"page")??e("core").getPostType("page")),[t.post_type]);if(""!==r.k.error)return React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement("div",{className:p.Z.error,dangerouslySetInnerHTML:{__html:(0,u.sanitize)(r.k.error)}})),React.createElement(l.Z,{attributes:t,block:h.id,clientId:g}));const _={type:y,attributes:t,name:b,setAttributes:n,clientId:g};return React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(m.Z,{attributes:t,block:b},("widgets"===r.k.currentScreen||"site-editor"===r.k.currentScreen||"customize"===r.k.currentScreen)&&React.createElement(o.PanelBody,null,React.createElement(o.TextControl,{value:t.title??"",label:(0,d.__)("Title","advanced-sidebar-menu"),onChange:e=>n({title:e})})),React.createElement(c.Z,{attributes:t,clientId:g,name:b,setAttributes:n,type:y}),React.createElement("div",{className:"components-panel__body is-opened"},React.createElement(o.Slot,{name:"advanced-sidebar-menu/pages/general",fillProps:_}),React.createElement(o.SelectControl,{label:(0,d.__)("Order by","advanced-sidebar-menu"),value:t.order_by,labelPosition:"side",options:Object.entries(r.k.pages.orderBy).map((e=>{let[t,n]=e;return{value:t,label:n}})),onChange:e=>{n({order_by:e})}}),React.createElement(o.TextControl,{label:(0,d.sprintf)((0,d.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),y?.labels?.name??""),value:t.exclude,onChange:e=>{n({exclude:e})}}),React.createElement("p",null,React.createElement("a",{href:r.k.docs.page,target:"_blank",rel:"noopener noreferrer"},(0,d.__)("block documentation","advanced-sidebar-menu")))),React.createElement(o.Slot,{name:"advanced-sidebar-menu/pages/inspector",fillProps:_}))),React.createElement(a.BlockControls,null,React.createElement(m.Z,{attributes:t,block:b},React.createElement(o.Slot,{name:"advanced-sidebar-menu/pages/block-controls",fillProps:_}))),React.createElement(s.Z,{clientId:g}),React.createElement(m.Z,{attributes:t,block:b},React.createElement(l.Z,{attributes:t,block:h.id,clientId:g})),React.createElement(f.Z,{clientId:g}))},b=n(928);const h=r.k.blocks.pages,y=h.id,_={title:(0,d.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{include_parent:!0,include_childless_parent:!0,display_all:!0,levels:"2",apply_current_page_styles_to_parent:!0,apply_current_page_parent_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",parent_page_color:"#fff",parent_page_bg_color:"#666",child_page_color:"#fff",child_page_bg_color:"#666",grandchild_page_color:"#282828",grandchild_page_bg_color:"#989898",grandchild_page_font_weight:"bold",current_page_color:"#0cc4c6",current_page_bg_color:"#282828",current_page_font_weight:"normal",current_page_parent_bg_color:"#333"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"advanced_sidebar_menu"===t},transform:(0,b.n)(y)}]},edit:e=>React.createElement(g,e),save:()=>null,apiVersion:2}},928:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(378);const a=e=>t=>{let{instance:n}=t;return[(0,r.createBlock)(e,o(n.raw))]},o=e=>(Object.entries(e).forEach((t=>{let[n,r]=t;"checked"===r&&(e[n]=!0),"object"==typeof r&&o(e[n]),"0"===r&&delete e[n]})),e)},171:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}}),wp.apiFetch,n(3),n(368);var r=n(378),a=(wp.plugins,n(284));n(363);var o=null,l=function(){o=(0,a.select)("core/block-editor").getSelectedBlockClientId(),(0,a.dispatch)("core/block-editor").clearSelectedBlock()},c=function(e){void 0===e&&(e=[]),(0,a.select)("core/block-editor").getBlocks().forEach((function(t){var n=t.clientId;e.includes(t.name)&&(0,a.dispatch)("core/block-editor").selectBlock(n)})),o?(0,a.dispatch)("core/block-editor").selectBlock(o):(0,a.dispatch)("core/block-editor").clearSelectedBlock(),o=null},i=n(464),s=n(928),u=n(941);e=n.hmd(e);var d=()=>{(function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,a=e.pluginModule,o=e.register,l=e.unregister,c=e.type,i={},s=function(){n();var e=r();if(e){var a=[];return e.keys().forEach((function(t){var n=e(t);n.exclude||n!==i[t]&&(i[n.name+"-"+c]&&l(n.name),o(n.name,n.settings),a.push(n.name),i[n.name+"-"+c]=n)})),t(a),e}},u=s();a.hot&&null!=u&&u.id&&a.hot.accept(u.id,s)})({afterReload:c,beforeReload:l,getContext:()=>n(267),pluginModule:e,register:r.registerBlockType,unregister:r.unregisterBlockType,type:"block"}),window.ADVANCED_SIDEBAR_MENU.ErrorBoundary=u.Z,window.ADVANCED_SIDEBAR_MENU.Preview=i.Z,window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget=s.n}},474:function(e,t){"use strict";t.Z={error:"_h987"}},538:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,a,o){return r=n()?Reflect.construct:function(e,n,r){var a=[null];a.push.apply(a,n);var o=new(Function.bind.apply(e,a));return r&&t(o,r.prototype),o},r.apply(null,arguments)}function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=Object.hasOwnProperty,c=Object.setPrototypeOf,i=Object.isFrozen,s=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,d=Object.freeze,m=Object.seal,p=Object.create,f="undefined"!=typeof Reflect&&Reflect,g=f.apply,b=f.construct;g||(g=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),m||(m=function(e){return e}),b||(b=function(e,t){return r(e,a(t))});var h,y=x(Array.prototype.forEach),_=x(Array.prototype.pop),v=x(Array.prototype.push),E=x(String.prototype.toLowerCase),R=x(String.prototype.match),k=x(String.prototype.replace),w=x(String.prototype.indexOf),N=x(String.prototype.trim),S=x(RegExp.prototype.test),T=(h=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(h,t)});function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return g(e,t,r)}}function A(e,t,n){n=n||E,c&&c(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var o=n(a);o!==a&&(i(t)||(t[r]=o),a=o)}e[a]=!0}return e}function C(e){var t,n=p(null);for(t in e)g(l,e,[t])&&(n[t]=e[t]);return n}function D(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=s(e)}return function(e){return console.warn("fallback value for",e),null}}var O=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),B=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=d(["#text"]),U=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=m(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=m(/<%[\w\W]*|[\w\W]*%>/gm),W=m(/^data-[\-\w.\u00B7-\uFFFF]/),$=m(/^aria-[\-\w]+$/),q=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=m(/^(?:\w+script|data):/i),Y=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=m(/^html$/i),J=function(){return"undefined"==typeof window?null:window},Q=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,a="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(a)&&(r=n.currentScript.getAttribute(a));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(e){return t(e)};if(r.version="2.3.10",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var o=n.document,l=n.document,c=n.DocumentFragment,i=n.HTMLTemplateElement,s=n.Node,u=n.Element,m=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,g=n.HTMLFormElement,b=n.DOMParser,h=n.trustedTypes,x=u.prototype,X=D(x,"cloneNode"),ee=D(x,"nextSibling"),te=D(x,"childNodes"),ne=D(x,"parentNode");if("function"==typeof i){var re=l.createElement("template");re.content&&re.content.ownerDocument&&(l=re.content.ownerDocument)}var ae=Q(h,o),oe=ae?ae.createHTML(""):"",le=l,ce=le.implementation,ie=le.createNodeIterator,se=le.createDocumentFragment,ue=le.getElementsByTagName,de=o.importNode,me={};try{me=C(l).documentMode?l.documentMode:{}}catch(e){}var pe={};r.isSupported="function"==typeof ne&&ce&&void 0!==ce.createHTMLDocument&&9!==me;var fe,ge,be=Z,he=G,ye=W,_e=$,ve=V,Ee=Y,Re=q,ke=null,we=A({},[].concat(a(O),a(I),a(M),a(P),a(F))),Ne=null,Se=A({},[].concat(a(U),a(z),a(H),a(j))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Ae=null,Ce=!0,De=!0,Oe=!1,Ie=!1,Me=!1,Le=!1,Pe=!1,Be=!1,Fe=!1,Ue=!1,ze=!0,He=!0,je=!1,Ze={},Ge=null,We=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,qe=A({},["audio","video","img","source","image","track"]),Ve=null,Ye=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Xe=Qe,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,at=l.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},lt=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=C(t),fe=fe=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===fe?function(e){return e}:E,ke="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS,ge):we,Ne="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR,ge):Se,Ve="ADD_URI_SAFE_ATTR"in t?A(C(Ye),t.ADD_URI_SAFE_ATTR,ge):Ye,$e="ADD_DATA_URI_TAGS"in t?A(C(qe),t.ADD_DATA_URI_TAGS,ge):qe,Ge="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS,ge):We,xe="FORBID_TAGS"in t?A({},t.FORBID_TAGS,ge):{},Ae="FORBID_ATTR"in t?A({},t.FORBID_ATTR,ge):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Ce=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Pe=t.FORCE_BODY||!1,ze=!1!==t.SANITIZE_DOM,He=!1!==t.KEEP_CONTENT,je=t.IN_PLACE||!1,Re=t.ALLOWED_URI_REGEXP||Re,Xe=t.NAMESPACE||Qe,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(De=!1),Fe&&(Be=!0),Ze&&(ke=A({},a(F)),Ne=[],!0===Ze.html&&(A(ke,O),A(Ne,U)),!0===Ze.svg&&(A(ke,I),A(Ne,z),A(Ne,j)),!0===Ze.svgFilters&&(A(ke,M),A(Ne,z),A(Ne,j)),!0===Ze.mathMl&&(A(ke,P),A(Ne,H),A(Ne,j))),t.ADD_TAGS&&(ke===we&&(ke=C(ke)),A(ke,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Ne===Se&&(Ne=C(Ne)),A(Ne,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&A(Ve,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ge===We&&(Ge=C(Ge)),A(Ge,t.FORBID_CONTENTS,ge)),He&&(ke["#text"]=!0),Me&&A(ke,["html","head","body"]),ke.table&&(A(ke,["tbody"]),delete xe.tbody),d&&d(t),rt=t)},ct=A({},["mi","mo","mn","ms","mtext"]),it=A({},["foreignobject","desc","title","annotation-xml"]),st=A({},["title","style","font","a","script"]),ut=A({},I);A(ut,M),A(ut,L);var dt=A({},P);A(dt,B);var mt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return e.namespaceURI===Je?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(ut[n]):e.namespaceURI===Ke?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Je?"math"===n&&it[r]:Boolean(dt[n]):e.namespaceURI===Qe&&!(t.namespaceURI===Je&&!it[r])&&!(t.namespaceURI===Ke&&!ct[r])&&!dt[n]&&(st[n]||!ut[n])},pt=function(e){v(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},ft=function(e,t){try{v(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(Be||Fe)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){var t,n;if(Pe)e="<remove></remove>"+e;else{var r=R(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=ae?ae.createHTML(e):e;if(Xe===Qe)try{t=(new b).parseFromString(a,fe)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=et?"":a}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(l.createTextNode(n),o.childNodes[0]||null),Xe===Qe?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:o},bt=function(e){return ie.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},ht=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){pe[e]&&y(pe[e],(function(e){e.call(r,t,n,rt)}))},vt=function(e){var t;if(_t("beforeSanitizeElements",e,null),ht(e))return pt(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return pt(e),!0;var n=ge(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:ke}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===n&&S(/<template/i,e.innerHTML))return pt(e),!0;if(!ke[n]||xe[n]){if(!xe[n]&&Rt(n)){if(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}if(He&&!Ge[n]){var a=ne(e)||e.parentNode,o=te(e)||e.childNodes;if(o&&a)for(var l=o.length-1;l>=0;--l)a.insertBefore(X(o[l],!0),ee(e))}return pt(e),!0}return e instanceof u&&!mt(e)?(pt(e),!0):"noscript"!==n&&"noembed"!==n||!S(/<\/no(script|embed)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,t=k(t,be," "),t=k(t,he," "),e.textContent!==t&&(v(r.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(pt(e),!0)},Et=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in l||n in at))return!1;if(De&&!Ae[t]&&S(ye,t));else if(Ce&&S(_e,t));else if(!Ne[t]||Ae[t]){if(!(Rt(e)&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&S(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(Ve[t]);else if(S(Re,k(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!$e[e])if(Oe&&!S(ve,k(n,Ee,"")));else if(n)return!1;return!0},Rt=function(e){return e.indexOf("-")>0},kt=function(t){var n,a,o,l;_t("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};for(l=c.length;l--;){var s=n=c[l],u=s.name,d=s.namespaceURI;if(a="value"===u?n.value:N(n.value),o=ge(u),i.attrName=o,i.attrValue=a,i.keepAttr=!0,i.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,i),a=i.attrValue,!i.forceKeepAttr&&(ft(u,t),i.keepAttr))if(S(/\/>/i,a))ft(u,t);else{Ie&&(a=k(a,be," "),a=k(a,he," "));var m=ge(t.nodeName);if(Et(m,o,a)){if(ae&&"object"===e(h)&&"function"==typeof h.getAttributeType)if(d);else switch(h.getAttributeType(m,o)){case"TrustedHTML":a=ae.createHTML(a);break;case"TrustedScriptURL":a=ae.createScriptURL(a)}try{d?t.setAttributeNS(d,u,a):t.setAttribute(u,a),_(r.removed)}catch(e){}}}}_t("afterSanitizeAttributes",t,null)}},wt=function e(t){var n,r=bt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),vt(n)||(n.content instanceof c&&e(n.content),kt(n));_t("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t,a){var l,i,u,d,m;if((et=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!yt(t)){if("function"!=typeof t.toString)throw T("toString is not a function");if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(yt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Le||lt(a),r.removed=[],"string"==typeof t&&(je=!1),je){if(t.nodeName){var p=ge(t.nodeName);if(!ke[p]||xe[p])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(i=(l=gt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?l=i:l.appendChild(i);else{if(!Be&&!Ie&&!Me&&-1===t.indexOf("<"))return ae&&Ue?ae.createHTML(t):t;if(!(l=gt(t)))return Be?null:Ue?oe:""}l&&Pe&&pt(l.firstChild);for(var f=bt(je?t:l);u=f.nextNode();)3===u.nodeType&&u===d||vt(u)||(u.content instanceof c&&wt(u.content),kt(u),d=u);if(d=null,je)return t;if(Be){if(Fe)for(m=se.call(l.ownerDocument);l.firstChild;)m.appendChild(l.firstChild);else m=l;return Ne.shadowroot&&(m=de.call(o,m,!0)),m}var g=Me?l.outerHTML:l.innerHTML;return Me&&ke["!doctype"]&&l.ownerDocument&&l.ownerDocument.doctype&&l.ownerDocument.doctype.name&&S(K,l.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+l.ownerDocument.doctype.name+">\n"+g),Ie&&(g=k(g,be," "),g=k(g,he," ")),ae&&Ue?ae.createHTML(g):g},r.setConfig=function(e){lt(e),Le=!0},r.clearConfig=function(){rt=null,Le=!1},r.isValidAttribute=function(e,t,n){rt||lt({});var r=ge(e),a=ge(t);return Et(r,a,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],v(pe[e],t))},r.removeHook=function(e){if(pe[e])return _(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},589:function(e){var t=function(e){return"string"==typeof e};e.exports=function(e,n,r){return Array.isArray(e)||(e=[e]),a=e.map((function(e){return t(e)?function(e,n,r){var a=0,o=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var l,c,i,s=n;(function(e){return e instanceof RegExp})(s)||(s=new RegExp("("+(l=s,c=/[\\^$.*+?()[\]{}|]/g,i=RegExp(c.source),(l&&i.test(l)?l.replace(c,"\\$&"):l)+")"),"gi"));for(var u=e.split(s),d=1,m=u.length;d<m;d+=2)void 0!==u[d]&&void 0!==u[d-1]?(o=u[d].length,a+=u[d-1].length,u[d]=r(u[d],d,a),a+=o):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return u}(e,n,r):e})),o=[],a.forEach((function(e){Array.isArray(e)?o=o.concat(e):o.push(e)})),o;var a,o}},267:function(e,t,n){var r={"./categories/block.tsx":125,"./pages/block.tsx":789,"gutenberg/blocks/categories/block.tsx":125,"gutenberg/blocks/pages/block.tsx":789};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=267},363:function(e){"use strict";e.exports=React},311:function(e){"use strict";e.exports=jQuery},85:function(e){"use strict";e.exports=lodash},78:function(e){"use strict";e.exports=wp.blockEditor},378:function(e){"use strict";e.exports=wp.blocks},537:function(e){"use strict";e.exports=wp.components},284:function(e){"use strict";e.exports=wp.data},3:function(e){"use strict";e.exports=wp.i18n},368:function(e){"use strict";e.exports=wp.url}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},console.log("Advanced Sidebar - Loaded"),void 0!==wp.element&&void 0!==wp.plugins?n(171).Z():void 0!==wp.customize&&wp.customize.bind("ready",(()=>{n(171).Z()}))}();
|
1 |
/*! For license information please see admin.min.js.LICENSE.txt */
|
2 |
+
!function(){var e={8941:function(e,t,n){"use strict";var r=n(7363),o=n(539),a=n(1368),i=n(1538);class c extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.log("%cError caught by the Advanced Sidebar ErrorBoundary!","color:orange; font-size: large; font-weight: bold"),console.log(this.props),console.log(e),console.log(t),this.setState({error:e})}render(){return this.state.hasError?o.k.siteInfo.scriptDebug?React.createElement("div",{className:"components-panel__body is-opened"},React.createElement("h4",{style:{color:"red"}},"Something went wrong!"),React.createElement("p",null,"Please ",React.createElement("a",{target:"_blank",href:o.k.support,rel:"noreferrer"},"create a support request")," with the following:"),React.createElement("ol",null,React.createElement("li",null,"The ",React.createElement("a",{href:"https://onpointplugins.com/how-to-retrieve-console-logs-from-your-browser/",target:"_blank",rel:"noreferrer"},"logs from your browser console.")),React.createElement("li",null,"The following information.")),React.createElement("div",{style:{border:"2px groove",padding:"10px",width:"100%",overflowWrap:"break-word"}},React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Message"))," ",React.createElement("br",null),React.createElement("code",null,this.state.error?.message)),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Block"))," ",React.createElement("br",null),React.createElement("code",null,this.props.block)),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Attributes"))," ",React.createElement("br",null),React.createElement("code",null,JSON.stringify(this.props.attributes))),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Site Info"))," ",React.createElement("br",null),React.createElement("code",null,JSON.stringify(o.k.siteInfo))),React.createElement("p",null,React.createElement("strong",null,React.createElement("em",null,"Stack"))," ",React.createElement("br",null),React.createElement("code",null,this.state.error?.stack))),React.createElement("p",null," "),React.createElement("p",null," ")):React.createElement("div",{className:"components-panel__body is-opened"},React.createElement("h4",{style:{color:"red"}},"Something went wrong!"),React.createElement("p",null,"Please ",React.createElement("a",{href:(0,a.addQueryArgs)((0,i.sanitize)(window.location.href),{"script-debug":!0})},"enable script debug"),":")):this.props.children}}t.Z=c},539:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});const r=window.ADVANCED_SIDEBAR_MENU||{}},7338:function(e,t,n){"use strict";var r=n(7537),o=n(3284),a=n(8085);let i="";t.Z=(0,r.withFilters)("advanced-sidebar-menu.blocks.side-load")((e=>{let{clientId:t,children:n}=e;return(0,a.isEmpty)(i)||t===i||-1===(0,o.select)("core/block-editor").getBlockIndex(i)?(i=t,n??null):null}))},2333:function(e,t,n){"use strict";var r=n(7537),o=n(539),a=n(8003),i=n(8085),c=n(9589),l=n.n(c),s=n(8941);const u={include_parent:(0,a.__)("Display the highest level parent %s","advanced-sidebar-menu"),include_childless_parent:(0,a.__)("Display menu when there is only the parent %s","advanced-sidebar-menu"),display_all:(0,a.__)("Always display child %s","advanced-sidebar-menu")};t.Z=e=>{let{attributes:t,setAttributes:n,type:c,name:p,clientId:d,children:f}=e;const m=o.k.blocks.pages.id===p&&o.k.isPro||t.display_all,g={type:c,attributes:t,name:p,setAttributes:n,clientId:d};return React.createElement(r.PanelBody,{title:(0,a.__)("Display","advanced-sidebar-menu")},Object.keys(u).map((e=>{let o=c?.labels?.singular_name.toLowerCase()??"";return"display_all"===e&&(o=c?.labels?.name.toLowerCase()??""),React.createElement(r.CheckboxControl,{key:e,label:(0,a.sprintf)(u[e],o),checked:!!t[e],onChange:t=>{n({[e]:!!t})}})})),m&&React.createElement("div",{className:"components-base-control"},l()((0,a.__)("Display %1$s levels of child %2$s","advanced-sidebar-menu").replace("%2$s",c?.labels?.name.toLowerCase()??""),"%1$s",(()=>React.createElement("select",{key:"levels",value:t.levels,onChange:e=>n({levels:parseInt(e.target.value)})},React.createElement("option",{value:"100"},(0,a.__)("- All -","advanced-sidebar-menu")),(0,i.range)(1,10).map((e=>React.createElement("option",{key:e,value:e},e))))))),f,React.createElement(s.Z,{attributes:t,block:p},o.k.blocks.pages.id===p&&React.createElement(r.Slot,{name:"advanced-sidebar-menu/pages/display",fillProps:g}),o.k.blocks.categories.id===p&&React.createElement(r.Slot,{name:"advanced-sidebar-menu/categories/display",fillProps:g})))}},8821:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(539),o=n(7537),a=n(78),i=wp.htmlEntities,c=n(8003),l=(0,o.withFilters)("advanced-sidebar-menu.blocks.info-panel")((e=>{let{}=e;return React.createElement(a.InspectorControls,null,React.createElement(o.PanelBody,{title:(0,c.__)("Advanced Sidebar Menu PRO","advanced-sidebar-menu"),className:"YTpls"},React.createElement("ul",null,r.k.features.map((e=>React.createElement("li",{key:e},(0,i.decodeEntities)(e)))),React.createElement("li",null,React.createElement("a",{href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=block-more&utm_campaign=gopro&utm_medium=wp-dash",target:"_blank",style:{textDecoration:"none"},rel:"noreferrer"},(0,c.__)("So much more…","advanced-sidebar-menu")))),React.createElement(o.Button,{className:"PNgUV",href:"https://onpointplugins.com/product/advanced-sidebar-menu-pro/?trigger_buy_now=1&utm_source=block-upgrade&utm_campaign=gopro&utm_medium=wp-dash",target:"_blank",rel:"noreferrer",isPrimary:!0},(0,c.__)("Upgrade","advanced-sidebar-menu"))))}))},4464:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(7363),o=n(539),a=wp.serverSideRender,i=n.n(a),c=n(7537),l=n(78),s=n(1538),u=wp.hooks,p=n(8003),d=n(3284),f=n(4928),m="QPB_Z",g=n(5311);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const h=e=>{if(!(0,f.e)(["widgets"]))return"";const t=(0,d.select)("core/block-editor").getBlockRootClientId(e);if(t){const e=(0,d.select)("core/block-editor").getBlocksByClientId([t]);if(e[0]&&"core/widget-area"===e[0].name)return e[0]?.attributes?.id}return""},y=()=>React.createElement(c.Placeholder,{className:m,icon:"welcome-widgets-menus",label:(0,p.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),instructions:(0,p.__)("No preview available","advanced-sidebar-menu")}),v=()=>React.createElement(c.Placeholder,{className:m,icon:"welcome-widgets-menus",label:(0,p.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),instructions:(0,p.__)("No preview available","advanced-sidebar-menu")}),_=()=>React.createElement(c.Placeholder,{className:m,icon:"welcome-widgets-menus",label:(0,p.__)("Advanced Sidebar - Navigation","advanced-sidebar-menu"),instructions:(0,p.__)("No preview available","advanced-sidebar-menu")}),E=e=>{switch(e){case o.k.blocks.pages.id:return y;case o.k.blocks.categories.id:return v;case o.k.blocks.navigation?.id:return _}return()=>React.createElement(React.Fragment,null)},w=e=>{let{children:t,attributes:n={clientId:""}}=e;if((0,r.useEffect)((()=>()=>{setTimeout((()=>{g(`[data-preview="${n.clientId}"]`).find("a").on("click",(e=>e.preventDefault())),(0,u.doAction)("advanced-sidebar-menu.blocks.preview.loading-finished",{values:n,clientId:n.clientId})}),100)})),t?.props?.children?.errorMsg)throw new Error(t?.props?.children?.errorMsg??"Failed");return React.createElement("div",{className:"JrCy1"},React.createElement("div",{className:"A45Ny"},React.createElement(c.Spinner,null)),React.createElement("div",{className:"Ygsqf"},t))};var R=e=>{let{attributes:t,block:n,clientId:r}=e;const a=(0,l.useBlockProps)();if(""!==o.k.error)return React.createElement("div",{className:"xF2E_",dangerouslySetInnerHTML:{__html:(0,s.sanitize)(o.k.error)}});const c=(e=>e.replace(/^([\d-])/,"_$1"))(r);return delete a.style,React.createElement("div",b({},a,{"data-preview":c}),React.createElement(i(),{EmptyResponsePlaceholder:E(n),LoadingResponsePlaceholder:w,attributes:{...t,isServerSideRenderRequest:!0,clientId:c,sidebarId:h(r)},block:n,httpMethod:"POST"}))}},5125:function(e,t,n){"use strict";n.r(t),n.d(t,{block:function(){return h},name:function(){return y},settings:function(){return v}});var r=n(539),o=n(3284),a=n(1538),i=n(78),c=n(4464),l=n(8941),s=n(2333),u=n(7537),p=n(8003),d=n(8821),f=n(7338),m=n(4928),g=n(538),b=e=>{let{attributes:t,setAttributes:n,clientId:b,name:y}=e;const v=(0,o.useSelect)((e=>e("core").getTaxonomy(t.taxonomy??"category")??e("core").getTaxonomy("category")),[t.taxonomy]);if(""!==r.k.error)return React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement("div",{className:g.Z.error,dangerouslySetInnerHTML:{__html:(0,a.sanitize)(r.k.error)}})),React.createElement(c.Z,{attributes:t,block:h.id,clientId:b}));const _={type:v,attributes:t,name:y,setAttributes:n,clientId:b};return React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement(l.Z,{attributes:t,block:y},(0,m.e)(["widgets","site-editor","customize"])&&React.createElement(u.PanelBody,null,React.createElement(u.TextControl,{value:t.title??"",label:(0,p.__)("Title","advanced-sidebar-menu"),onChange:e=>n({title:e})})),React.createElement(s.Z,{attributes:t,clientId:b,name:y,setAttributes:n,type:v},(0,m.e)(["post"])&&React.createElement(u.CheckboxControl,{label:(0,p.sprintf)((0,p.__)("Display %s on single posts","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),checked:!!t.single,onChange:e=>{n({single:!!e})}}),(0,m.e)(["widgets","customize"])&&t.single&&React.createElement(u.SelectControl,{label:(0,p.sprintf)((0,p.__)("Display each single post's %s","advanced-sidebar-menu"),v?.labels?.name.toLowerCase()??""),value:t.new_widget,options:Object.entries(r.k.categories.displayEach).map((e=>{let[t,n]=e;return{value:t,label:n}})),onChange:e=>n({new_widget:e})})),React.createElement("div",{className:"components-panel__body is-opened"},React.createElement(u.Slot,{name:"advanced-sidebar-menu/categories/general",fillProps:_}),React.createElement(u.TextControl,{label:(0,p.sprintf)((0,p.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),v?.labels?.name??""),value:t.exclude,onChange:e=>{n({exclude:e})}}),React.createElement("p",null,React.createElement("a",{href:r.k.docs.category,target:"_blank",rel:"noopener noreferrer"},(0,p.__)("block documentation","advanced-sidebar-menu")))),React.createElement(u.Slot,{name:"advanced-sidebar-menu/categories/inspector",fillProps:_}))),React.createElement(i.BlockControls,null,React.createElement(l.Z,{attributes:t,block:y},React.createElement(u.Slot,{name:"advanced-sidebar-menu/categories/block-controls",fillProps:_}))),React.createElement(d.Z,{clientId:b}),React.createElement(l.Z,{attributes:t,block:y},React.createElement(c.Z,{attributes:t,block:h.id,clientId:b})),React.createElement(f.Z,{clientId:b}))};const h=r.k.blocks.categories,y=h.id,v={title:(0,p.__)("Advanced Sidebar - Categories","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{"display-posts":"all","display-posts/limit":2,apply_current_page_parent_styles_to_parent:!0,apply_current_page_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",child_page_bg_color:"#666",child_page_color:"#fff",parent_page_bg_color:"#282828",parent_page_color:"#0cc4c6",parent_page_font_weight:"normal",display_all:!0,grandchild_page_bg_color:"#989898",grandchild_page_color:"#282828",grandchild_page_font_weight:"bold",include_childless_parent:!0,include_parent:!0,levels:"2"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"advanced_sidebar_menu_category"===t},transform:(0,m.n)(y)}]},edit:e=>React.createElement(b,e),save:()=>null,apiVersion:2}},789:function(e,t,n){"use strict";n.r(t),n.d(t,{block:function(){return h},name:function(){return y},settings:function(){return v}});var r=n(539),o=n(78),a=n(7537),i=n(4464),c=n(2333),l=n(3284),s=n(8821),u=n(1538),p=n(8003),d=n(8941),f=n(7338),m=n(4928),g=n(538),b=e=>{let{attributes:t,setAttributes:n,clientId:b,name:y}=e;const v=(0,l.useSelect)((e=>e("core").getPostType(t.post_type??"page")??e("core").getPostType("page")),[t.post_type]);if(""!==r.k.error)return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,null,React.createElement("div",{className:g.Z.error,dangerouslySetInnerHTML:{__html:(0,u.sanitize)(r.k.error)}})),React.createElement(i.Z,{attributes:t,block:h.id,clientId:b}));const _={type:v,attributes:t,name:y,setAttributes:n,clientId:b};return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,null,React.createElement(d.Z,{attributes:t,block:y},(0,m.e)(["widgets","site-editor","customize"])&&React.createElement(a.PanelBody,null,React.createElement(a.TextControl,{value:t.title??"",label:(0,p.__)("Title","advanced-sidebar-menu"),onChange:e=>n({title:e})})),React.createElement(c.Z,{attributes:t,clientId:b,name:y,setAttributes:n,type:v}),React.createElement("div",{className:"components-panel__body is-opened"},React.createElement(a.Slot,{name:"advanced-sidebar-menu/pages/general",fillProps:_}),React.createElement(a.SelectControl,{label:(0,p.__)("Order by","advanced-sidebar-menu"),value:t.order_by,labelPosition:"side",options:Object.entries(r.k.pages.orderBy).map((e=>{let[t,n]=e;return{value:t,label:n}})),onChange:e=>{n({order_by:e})}}),React.createElement(a.TextControl,{label:(0,p.sprintf)((0,p.__)("%s to exclude (ids, comma separated)","advanced-sidebar-menu"),v?.labels?.name??""),value:t.exclude,onChange:e=>{n({exclude:e})}}),React.createElement("p",null,React.createElement("a",{href:r.k.docs.page,target:"_blank",rel:"noopener noreferrer"},(0,p.__)("block documentation","advanced-sidebar-menu")))),React.createElement(a.Slot,{name:"advanced-sidebar-menu/pages/inspector",fillProps:_}))),React.createElement(o.BlockControls,null,React.createElement(d.Z,{attributes:t,block:y},React.createElement(a.Slot,{name:"advanced-sidebar-menu/pages/block-controls",fillProps:_}))),React.createElement(s.Z,{clientId:b}),React.createElement(d.Z,{attributes:t,block:y},React.createElement(i.Z,{attributes:t,block:h.id,clientId:b})),React.createElement(f.Z,{clientId:b}))};const h=r.k.blocks.pages,y=h.id,v={title:(0,p.__)("Advanced Sidebar - Pages","advanced-sidebar-menu"),icon:"welcome-widgets-menus",category:"widgets",example:{attributes:{include_parent:!0,include_childless_parent:!0,display_all:!0,levels:"2",apply_current_page_styles_to_parent:!0,apply_current_page_parent_styles_to_parent:!0,block_style:!0,border:!0,border_color:"#333",bullet_style:"none",parent_page_color:"#fff",parent_page_bg_color:"#666",child_page_color:"#fff",child_page_bg_color:"#666",grandchild_page_color:"#282828",grandchild_page_bg_color:"#989898",grandchild_page_font_weight:"bold",current_page_color:"#0cc4c6",current_page_bg_color:"#282828",current_page_font_weight:"normal",current_page_parent_bg_color:"#333"}},transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:e=>{let{idBase:t,instance:n}=e;return!!n?.raw&&"advanced_sidebar_menu"===t},transform:(0,m.n)(y)}]},edit:e=>React.createElement(b,e),save:()=>null,apiVersion:2}},4928:function(e,t,n){"use strict";n.d(t,{e:function(){return a},n:function(){return i}}),n(8225);var r=n(378),o=n(539);const a=e=>e.includes(o.k.currentScreen),i=e=>t=>{let{instance:n}=t;return[(0,r.createBlock)(e,c(n.raw))]},c=e=>(Object.entries(e).forEach((t=>{let[n,r]=t;"checked"===r&&(e[n]=!0),"object"==typeof r&&c(e[n]),"0"===r&&delete e[n]})),e)},171:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}}),wp.apiFetch,n(8003),n(1368);var r=n(378),o=(wp.plugins,n(3284));n(7363);var a=null,i=function(){a=(0,o.select)("core/block-editor").getSelectedBlockClientId(),(0,o.dispatch)("core/block-editor").clearSelectedBlock()},c=function(e){void 0===e&&(e=[]),(0,o.select)("core/block-editor").getBlocks().forEach((function(t){var n=t.clientId;e.includes(t.name)&&(0,o.dispatch)("core/block-editor").selectBlock(n)})),a?(0,o.dispatch)("core/block-editor").selectBlock(a):(0,o.dispatch)("core/block-editor").clearSelectedBlock(),a=null},l=n(4464),s=n(4928),u=n(8941);e=n.hmd(e);var p=()=>{(function(e){var t=e.afterReload,n=e.beforeReload,r=e.getContext,o=e.pluginModule,a=e.register,i=e.unregister,c=e.type,l={},s=function(){n();var e=r();if(e){var o=[];return e.keys().forEach((function(t){var n=e(t);n.exclude||n!==l[t]&&(l[n.name+"-"+c]&&i(n.name),a(n.name,n.settings),o.push(n.name),l[n.name+"-"+c]=n)})),t(o),e}},u=s();o.hot&&null!=u&&u.id&&o.hot.accept(u.id,s)})({afterReload:c,beforeReload:i,getContext:()=>n(1267),pluginModule:e,register:r.registerBlockType,unregister:r.unregisterBlockType,type:"block"}),window.ADVANCED_SIDEBAR_MENU.ErrorBoundary=u.Z,window.ADVANCED_SIDEBAR_MENU.Preview=l.Z,window.ADVANCED_SIDEBAR_MENU.transformLegacyWidget=s.n}},538:function(e,t){"use strict";t.Z={error:"_h987"}},2536:function(e,t,n){var r=n(6852),o=n(544),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not a function")}},1913:function(e,t,n){var r=n(7560),o=n(3089),a=n(8310).f,i=r("unscopables"),c=Array.prototype;null==c[i]&&a(c,i,{configurable:!0,value:o(null)}),e.exports=function(e){c[i][e]=!0}},6476:function(e,t,n){var r=n(5635),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(o(e)+" is not an object")}},1408:function(e,t,n){var r=n(5461),o=n(7621),a=n(5373),i=function(e){return function(t,n,i){var c,l=r(t),s=a(l),u=o(i,s);if(e&&n!=n){for(;s>u;)if((c=l[u++])!=c)return!0}else for(;s>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},8039:function(e,t,n){var r=n(7862),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},7513:function(e,t,n){var r=n(1801),o=n(4124),a=n(4918),i=n(8310);e.exports=function(e,t,n){for(var c=o(t),l=i.f,s=a.f,u=0;u<c.length;u++){var p=c[u];r(e,p)||n&&r(n,p)||l(e,p,s(t,p))}}},4534:function(e,t,n){var r=n(2772),o=n(8310),a=n(7102);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},7102:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6260:function(e,t,n){var r=n(6852),o=n(8310),a=n(7100),i=n(8959);e.exports=function(e,t,n,c){c||(c={});var l=c.enumerable,s=void 0!==c.name?c.name:t;if(r(n)&&a(n,s,c),c.global)l?e[t]=n:i(t,n);else{try{c.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return e}},8959:function(e,t,n){var r=n(5394),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},2772:function(e,t,n){var r=n(1310);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4807:function(e,t,n){var r=n(5394),o=n(5635),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},6467:function(e,t,n){var r=n(7225);e.exports=r("navigator","userAgent")||""},409:function(e,t,n){var r,o,a=n(5394),i=n(6467),c=a.process,l=a.Deno,s=c&&c.versions||l&&l.version,u=s&&s.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},2015:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2069:function(e,t,n){var r=n(5394),o=n(4918).f,a=n(4534),i=n(6260),c=n(8959),l=n(7513),s=n(4362);e.exports=function(e,t){var n,u,p,d,f,m=e.target,g=e.global,b=e.stat;if(n=g?r:b?r[m]||c(m,{}):(r[m]||{}).prototype)for(u in t){if(d=t[u],p=e.dontCallGetSet?(f=o(n,u))&&f.value:n[u],!s(g?u:m+(b?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;l(d,p)}(e.sham||p&&p.sham)&&a(d,"sham",!0),i(n,u,d,e)}}},1310:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7739:function(e,t,n){var r=n(1310);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},971:function(e,t,n){var r=n(7739),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},2306:function(e,t,n){var r=n(2772),o=n(1801),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,c=o(a,"name"),l=c&&"something"===function(){}.name,s=c&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:c,PROPER:l,CONFIGURABLE:s}},7862:function(e,t,n){var r=n(7739),o=Function.prototype,a=o.bind,i=o.call,c=r&&a.bind(i,i);e.exports=r?function(e){return e&&c(e)}:function(e){return e&&function(){return i.apply(e,arguments)}}},7225:function(e,t,n){var r=n(5394),o=n(6852),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},4889:function(e,t,n){var r=n(2536);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},5394:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},1801:function(e,t,n){var r=n(7862),o=n(9210),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},8370:function(e){e.exports={}},9285:function(e,t,n){var r=n(7225);e.exports=r("document","documentElement")},2115:function(e,t,n){var r=n(2772),o=n(1310),a=n(4807);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},7491:function(e,t,n){var r=n(7862),o=n(1310),a=n(8039),i=Object,c=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):i(e)}:i},7555:function(e,t,n){var r=n(7862),o=n(6852),a=n(2571),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},754:function(e,t,n){var r,o,a,i=n(9906),c=n(5394),l=n(7862),s=n(5635),u=n(4534),p=n(1801),d=n(2571),f=n(183),m=n(8370),g="Object already initialized",b=c.TypeError,h=c.WeakMap;if(i||d.state){var y=d.state||(d.state=new h),v=l(y.get),_=l(y.has),E=l(y.set);r=function(e,t){if(_(y,e))throw new b(g);return t.facade=e,E(y,e,t),t},o=function(e){return v(y,e)||{}},a=function(e){return _(y,e)}}else{var w=f("state");m[w]=!0,r=function(e,t){if(p(e,w))throw new b(g);return t.facade=e,u(e,w,t),t},o=function(e){return p(e,w)?e[w]:{}},a=function(e){return p(e,w)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw b("Incompatible receiver, "+e+" required");return n}}}},6852:function(e){e.exports=function(e){return"function"==typeof e}},4362:function(e,t,n){var r=n(1310),o=n(6852),a=/#|\.prototype\./,i=function(e,t){var n=l[c(e)];return n==u||n!=s&&(o(t)?r(t):!!t)},c=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=i.data={},s=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},5635:function(e,t,n){var r=n(6852);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},8826:function(e){e.exports=!1},228:function(e,t,n){var r=n(7225),o=n(6852),a=n(7008),i=n(4169),c=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,c(e))}},5373:function(e,t,n){var r=n(5129);e.exports=function(e){return r(e.length)}},7100:function(e,t,n){var r=n(1310),o=n(6852),a=n(1801),i=n(2772),c=n(2306).CONFIGURABLE,l=n(7555),s=n(754),u=s.enforce,p=s.get,d=Object.defineProperty,f=i&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=u(e);return a(r,"source")||(r.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&p(this).source||l(this)}),"toString")},6874:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6490:function(e,t,n){var r=n(409),o=n(1310);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9906:function(e,t,n){var r=n(5394),o=n(6852),a=n(7555),i=r.WeakMap;e.exports=o(i)&&/native code/.test(a(i))},3089:function(e,t,n){var r,o=n(6476),a=n(4958),i=n(2015),c=n(8370),l=n(9285),s=n(4807),u=n(183)("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&r?f(r):((t=s("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):f(r);for(var n=i.length;n--;)delete m.prototype[i[n]];return m()};c[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[u]=e):n=m(),void 0===t?n:a.f(n,t)}},4958:function(e,t,n){var r=n(2772),o=n(7281),a=n(8310),i=n(6476),c=n(5461),l=n(7459);t.f=r&&!o?Object.defineProperties:function(e,t){i(e);for(var n,r=c(t),o=l(t),s=o.length,u=0;s>u;)a.f(e,n=o[u++],r[n]);return e}},8310:function(e,t,n){var r=n(2772),o=n(2115),a=n(7281),i=n(6476),c=n(6866),l=TypeError,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor;t.f=r?a?function(e,t,n){if(i(e),t=c(t),i(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(i(e),t=c(t),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4918:function(e,t,n){var r=n(2772),o=n(971),a=n(1878),i=n(7102),c=n(5461),l=n(6866),s=n(1801),u=n(2115),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=c(e),t=l(t),u)try{return p(e,t)}catch(e){}if(s(e,t))return i(!o(a.f,e,t),e[t])}},2103:function(e,t,n){var r=n(108),o=n(2015).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},3573:function(e,t){t.f=Object.getOwnPropertySymbols},7008:function(e,t,n){var r=n(7862);e.exports=r({}.isPrototypeOf)},108:function(e,t,n){var r=n(7862),o=n(1801),a=n(5461),i=n(1408).indexOf,c=n(8370),l=r([].push);e.exports=function(e,t){var n,r=a(e),s=0,u=[];for(n in r)!o(c,n)&&o(r,n)&&l(u,n);for(;t.length>s;)o(r,n=t[s++])&&(~i(u,n)||l(u,n));return u}},7459:function(e,t,n){var r=n(108),o=n(2015);e.exports=Object.keys||function(e){return r(e,o)}},1878:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7266:function(e,t,n){var r=n(971),o=n(6852),a=n(5635),i=TypeError;e.exports=function(e,t){var n,c;if("string"===t&&o(n=e.toString)&&!a(c=r(n,e)))return c;if(o(n=e.valueOf)&&!a(c=r(n,e)))return c;if("string"!==t&&o(n=e.toString)&&!a(c=r(n,e)))return c;throw i("Can't convert object to primitive value")}},4124:function(e,t,n){var r=n(7225),o=n(7862),a=n(2103),i=n(3573),c=n(6476),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(c(e)),n=i.f;return n?l(t,n(e)):t}},2482:function(e){var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},183:function(e,t,n){var r=n(3831),o=n(1033),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},2571:function(e,t,n){var r=n(5394),o=n(8959),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},3831:function(e,t,n){var r=n(8826),o=n(2571);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})},7621:function(e,t,n){var r=n(6384),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},5461:function(e,t,n){var r=n(7491),o=n(2482);e.exports=function(e){return r(o(e))}},6384:function(e,t,n){var r=n(6874);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},5129:function(e,t,n){var r=n(6384),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},9210:function(e,t,n){var r=n(2482),o=Object;e.exports=function(e){return o(r(e))}},1363:function(e,t,n){var r=n(971),o=n(5635),a=n(228),i=n(4889),c=n(7266),l=n(7560),s=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,l=i(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||a(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},6866:function(e,t,n){var r=n(1363),o=n(228);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},544:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1033:function(e,t,n){var r=n(7862),o=0,a=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},4169:function(e,t,n){var r=n(6490);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7281:function(e,t,n){var r=n(2772),o=n(1310);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7560:function(e,t,n){var r=n(5394),o=n(3831),a=n(1801),i=n(1033),c=n(6490),l=n(4169),s=o("wks"),u=r.Symbol,p=u&&u.for,d=l?u:u&&u.withoutSetter||i;e.exports=function(e){if(!a(s,e)||!c&&"string"!=typeof s[e]){var t="Symbol."+e;c&&a(u,e)?s[e]=u[e]:s[e]=l&&p?p(t):d(t)}return s[e]}},8225:function(e,t,n){"use strict";var r=n(2069),o=n(1408).includes,a=n(1310),i=n(1913);r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},1538:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=Object.hasOwnProperty,c=Object.setPrototypeOf,l=Object.isFrozen,s=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,p=Object.freeze,d=Object.seal,f=Object.create,m="undefined"!=typeof Reflect&&Reflect,g=m.apply,b=m.construct;g||(g=function(e,t,n){return e.apply(t,n)}),p||(p=function(e){return e}),d||(d=function(e){return e}),b||(b=function(e,t){return r(e,o(t))});var h,y=N(Array.prototype.forEach),v=N(Array.prototype.pop),_=N(Array.prototype.push),E=N(String.prototype.toLowerCase),w=N(String.prototype.match),R=N(String.prototype.replace),k=N(String.prototype.indexOf),x=N(String.prototype.trim),S=N(RegExp.prototype.test),T=(h=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(h,t)});function N(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return g(e,t,r)}}function A(e,t,n){n=n||E,c&&c(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(l(t)||(t[r]=a),o=a)}e[o]=!0}return e}function O(e){var t,n=f(null);for(t in e)g(i,e,[t])&&(n[t]=e[t]);return n}function C(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=s(e)}return function(e){return console.warn("fallback value for",e),null}}var I=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),j=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=p(["#text"]),B=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=d(/<%[\w\W]*|[\w\W]*%>/gm),W=d(/^data-[\-\w.\u00B7-\uFFFF]/),$=d(/^aria-[\-\w]+$/),q=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=d(/^(?:\w+script|data):/i),Y=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=d(/^html$/i),X=function(){return"undefined"==typeof window?null:window},J=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.3.10",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,i=n.document,c=n.DocumentFragment,l=n.HTMLTemplateElement,s=n.Node,u=n.Element,d=n.NodeFilter,f=n.NamedNodeMap,m=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,g=n.HTMLFormElement,b=n.DOMParser,h=n.trustedTypes,N=u.prototype,Q=C(N,"cloneNode"),ee=C(N,"nextSibling"),te=C(N,"childNodes"),ne=C(N,"parentNode");if("function"==typeof l){var re=i.createElement("template");re.content&&re.content.ownerDocument&&(i=re.content.ownerDocument)}var oe=J(h,a),ae=oe?oe.createHTML(""):"",ie=i,ce=ie.implementation,le=ie.createNodeIterator,se=ie.createDocumentFragment,ue=ie.getElementsByTagName,pe=a.importNode,de={};try{de=O(i).documentMode?i.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof ne&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var me,ge,be=Z,he=G,ye=W,ve=$,_e=V,Ee=Y,we=q,Re=null,ke=A({},[].concat(o(I),o(D),o(M),o(P),o(F))),xe=null,Se=A({},[].concat(o(B),o(z),o(U),o(H))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Ae=null,Oe=!0,Ce=!0,Ie=!1,De=!1,Me=!1,Le=!1,Pe=!1,je=!1,Fe=!1,Be=!1,ze=!0,Ue=!0,He=!1,Ze={},Ge=null,We=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,qe=A({},["audio","video","img","source","image","track"]),Ve=null,Ye=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Qe=Je,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=i.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=O(t),me=me=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===me?function(e){return e}:E,Re="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS,ge):ke,xe="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR,ge):Se,Ve="ADD_URI_SAFE_ATTR"in t?A(O(Ye),t.ADD_URI_SAFE_ATTR,ge):Ye,$e="ADD_DATA_URI_TAGS"in t?A(O(qe),t.ADD_DATA_URI_TAGS,ge):qe,Ge="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS,ge):We,Ne="FORBID_TAGS"in t?A({},t.FORBID_TAGS,ge):{},Ae="FORBID_ATTR"in t?A({},t.FORBID_ATTR,ge):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,Ce=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,je=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Be=t.RETURN_TRUSTED_TYPE||!1,Pe=t.FORCE_BODY||!1,ze=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,He=t.IN_PLACE||!1,we=t.ALLOWED_URI_REGEXP||we,Qe=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ce=!1),Fe&&(je=!0),Ze&&(Re=A({},o(F)),xe=[],!0===Ze.html&&(A(Re,I),A(xe,B)),!0===Ze.svg&&(A(Re,D),A(xe,z),A(xe,H)),!0===Ze.svgFilters&&(A(Re,M),A(xe,z),A(xe,H)),!0===Ze.mathMl&&(A(Re,P),A(xe,U),A(xe,H))),t.ADD_TAGS&&(Re===ke&&(Re=O(Re)),A(Re,t.ADD_TAGS,ge)),t.ADD_ATTR&&(xe===Se&&(xe=O(xe)),A(xe,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&A(Ve,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ge===We&&(Ge=O(Ge)),A(Ge,t.FORBID_CONTENTS,ge)),Ue&&(Re["#text"]=!0),Me&&A(Re,["html","head","body"]),Re.table&&(A(Re,["tbody"]),delete Ne.tbody),p&&p(t),rt=t)},ct=A({},["mi","mo","mn","ms","mtext"]),lt=A({},["foreignobject","desc","title","annotation-xml"]),st=A({},["title","style","font","a","script"]),ut=A({},D);A(ut,M),A(ut,L);var pt=A({},P);A(pt,j);var dt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(ut[n]):e.namespaceURI===Ke?t.namespaceURI===Je?"math"===n:t.namespaceURI===Xe?"math"===n&<[r]:Boolean(pt[n]):e.namespaceURI===Je&&!(t.namespaceURI===Xe&&!lt[r])&&!(t.namespaceURI===Ke&&!ct[r])&&!pt[n]&&(st[n]||!ut[n])},ft=function(e){_(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},mt=function(e,t){try{_(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(je||Fe)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){var t,n;if(Pe)e="<remove></remove>"+e;else{var r=w(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Qe===Je)try{t=(new b).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Qe===Je?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},bt=function(e){return le.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},ht=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof m)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},vt=function(e,t,n){fe[e]&&y(fe[e],(function(e){e.call(r,t,n,rt)}))},_t=function(e){var t;if(vt("beforeSanitizeElements",e,null),ht(e))return ft(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var n=ge(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:Re}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===n&&S(/<template/i,e.innerHTML))return ft(e),!0;if(!Re[n]||Ne[n]){if(!Ne[n]&&wt(n)){if(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}if(Ue&&!Ge[n]){var o=ne(e)||e.parentNode,a=te(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(Q(a[i],!0),ee(e))}return ft(e),!0}return e instanceof u&&!dt(e)?(ft(e),!0):"noscript"!==n&&"noembed"!==n||!S(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=R(t,be," "),t=R(t,he," "),e.textContent!==t&&(_(r.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(ft(e),!0)},Et=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in i||n in ot))return!1;if(Ce&&!Ae[t]&&S(ye,t));else if(Oe&&S(ve,t));else if(!xe[t]||Ae[t]){if(!(wt(e)&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&S(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&S(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(Ve[t]);else if(S(we,R(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!$e[e])if(Ie&&!S(_e,R(n,Ee,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},Rt=function(t){var n,o,a,i;vt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(i=c.length;i--;){var s=n=c[i],u=s.name,p=s.namespaceURI;if(o="value"===u?n.value:x(n.value),a=ge(u),l.attrName=a,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,vt("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(mt(u,t),l.keepAttr))if(S(/\/>/i,o))mt(u,t);else{De&&(o=R(o,be," "),o=R(o,he," "));var d=ge(t.nodeName);if(Et(d,a,o)){if(oe&&"object"===e(h)&&"function"==typeof h.getAttributeType)if(p);else switch(h.getAttributeType(d,a)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{p?t.setAttributeNS(p,u,o):t.setAttribute(u,o),v(r.removed)}catch(e){}}}}vt("afterSanitizeAttributes",t,null)}},kt=function e(t){var n,r=bt(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),_t(n)||(n.content instanceof c&&e(n.content),Rt(n));vt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t,o){var i,l,u,p,d;if((et=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!yt(t)){if("function"!=typeof t.toString)throw T("toString is not a function");if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(yt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Le||it(o),r.removed=[],"string"==typeof t&&(He=!1),He){if(t.nodeName){var f=ge(t.nodeName);if(!Re[f]||Ne[f])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(l=(i=gt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?i=l:i.appendChild(l);else{if(!je&&!De&&!Me&&-1===t.indexOf("<"))return oe&&Be?oe.createHTML(t):t;if(!(i=gt(t)))return je?null:Be?ae:""}i&&Pe&&ft(i.firstChild);for(var m=bt(He?t:i);u=m.nextNode();)3===u.nodeType&&u===p||_t(u)||(u.content instanceof c&&kt(u.content),Rt(u),p=u);if(p=null,He)return t;if(je){if(Fe)for(d=se.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return xe.shadowroot&&(d=pe.call(a,d,!0)),d}var g=Me?i.outerHTML:i.innerHTML;return Me&&Re["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&S(K,i.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+g),De&&(g=R(g,be," "),g=R(g,he," ")),oe&&Be?oe.createHTML(g):g},r.setConfig=function(e){it(e),Le=!0},r.clearConfig=function(){rt=null,Le=!1},r.isValidAttribute=function(e,t,n){rt||it({});var r=ge(e),o=ge(t);return Et(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],_(fe[e],t))},r.removeHook=function(e){if(fe[e])return v(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}()}()},9589:function(e){var t=function(e){return"string"==typeof e};e.exports=function(e,n,r){return Array.isArray(e)||(e=[e]),o=e.map((function(e){return t(e)?function(e,n,r){var o=0,a=0;if(""===e)return e;if(!e||!t(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i,c,l,s=n;(function(e){return e instanceof RegExp})(s)||(s=new RegExp("("+(i=s,c=/[\\^$.*+?()[\]{}|]/g,l=RegExp(c.source),(i&&l.test(i)?i.replace(c,"\\$&"):i)+")"),"gi"));for(var u=e.split(s),p=1,d=u.length;p<d;p+=2)void 0!==u[p]&&void 0!==u[p-1]?(a=u[p].length,o+=u[p-1].length,u[p]=r(u[p],p,o),o+=a):console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");return u}(e,n,r):e})),a=[],o.forEach((function(e){Array.isArray(e)?a=a.concat(e):a.push(e)})),a;var o,a}},1267:function(e,t,n){var r={"./categories/block.tsx":5125,"./pages/block.tsx":789,"gutenberg/blocks/categories/block.tsx":5125,"gutenberg/blocks/pages/block.tsx":789};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=1267},7363:function(e){"use strict";e.exports=React},5311:function(e){"use strict";e.exports=jQuery},8085:function(e){"use strict";e.exports=lodash},78:function(e){"use strict";e.exports=wp.blockEditor},378:function(e){"use strict";e.exports=wp.blocks},7537:function(e){"use strict";e.exports=wp.components},3284:function(e){"use strict";e.exports=wp.data},8003:function(e){"use strict";e.exports=wp.i18n},1368:function(e){"use strict";e.exports=wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},console.log("Advanced Sidebar - Loaded"),void 0!==wp.element&&void 0!==wp.plugins?n(171).Z():void 0!==wp.customize&&wp.customize.bind("ready",(()=>{n(171).Z()}))}();
|
js/dist/manifest.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
},
|
6 |
"admin.min.js": {
|
7 |
"src": "admin.min.js",
|
8 |
-
"integrity": "sha256-
|
9 |
},
|
10 |
"admin.min.js.LICENSE.txt": {
|
11 |
"src": "admin.min.js.LICENSE.txt",
|
5 |
},
|
6 |
"admin.min.js": {
|
7 |
"src": "admin.min.js",
|
8 |
+
"integrity": "sha256-YMsVMCIrzCf1vVhr/Blf/rUj5XB6FLLlEZy+fciiiSw= sha384-cBk6rhqge1hzuSAu/8KbLh3L6oN4E6GtEI+PQCQv4irANkxmdRqphsFmYkRRQtfJ sha512-lPfUr4TCvVGT3D+Uuq6VtkdryUAEREDczFPtHP8rHdE2zevZ1waE53gPbxX8Hf1Z2aKa18oLSxi9V58gQWtNnQ=="
|
9 |
},
|
10 |
"admin.min.js.LICENSE.txt": {
|
11 |
"src": "admin.min.js.LICENSE.txt",
|
languages/advanced-sidebar-menu-de_DE.mo
CHANGED
Binary file
|
languages/advanced-sidebar-menu-de_DE.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
4 |
-
"POT-Creation-Date: 2022-08-
|
5 |
-
"PO-Revision-Date: 2022-08-
|
6 |
"Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: de_DE\n"
|
@@ -138,7 +138,7 @@ msgstr "Dieser Block erfordert WordPress Version 5.6!"
|
|
138 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
139 |
#: src/Widget/Category.php:52
|
140 |
msgid ""
|
141 |
-
"Creates a menu of all the categories using the child
|
142 |
msgstr ""
|
143 |
"Erstellt ein Menü aller Kategorien, die unter Zugrundelegung der Eltern-Kind-"
|
144 |
"Beziehung"
|
@@ -232,7 +232,7 @@ msgid "In another list in the same widget"
|
|
232 |
msgstr "In einer anderen Liste im selben Widget"
|
233 |
|
234 |
#: src/Widget/Page.php:48
|
235 |
-
msgid "Creates a menu of all the pages using the child
|
236 |
msgstr ""
|
237 |
"Erstellt ein Menü mit allen Seiten, die die Child / Parent-Beziehung "
|
238 |
"verwenden"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
4 |
+
"POT-Creation-Date: 2022-08-22 10:24-0400\n"
|
5 |
+
"PO-Revision-Date: 2022-08-22 10:24-0400\n"
|
6 |
"Last-Translator: Mat Lipe <support@onpointplugins.com>\n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: de_DE\n"
|
138 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
139 |
#: src/Widget/Category.php:52
|
140 |
msgid ""
|
141 |
+
"Creates a menu of all the categories using the parent/child relationship"
|
142 |
msgstr ""
|
143 |
"Erstellt ein Menü aller Kategorien, die unter Zugrundelegung der Eltern-Kind-"
|
144 |
"Beziehung"
|
232 |
msgstr "In einer anderen Liste im selben Widget"
|
233 |
|
234 |
#: src/Widget/Page.php:48
|
235 |
+
msgid "Creates a menu of all the pages using the parent/child relationship"
|
236 |
msgstr ""
|
237 |
"Erstellt ein Menü mit allen Seiten, die die Child / Parent-Beziehung "
|
238 |
"verwenden"
|
languages/advanced-sidebar-menu-es_ES.mo
CHANGED
Binary file
|
languages/advanced-sidebar-menu-es_ES.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
4 |
-
"POT-Creation-Date: 2022-08-
|
5 |
-
"PO-Revision-Date: 2022-08-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: es_ES\n"
|
@@ -138,7 +138,7 @@ msgstr "¡Este bloque requiere WordPress versión 5.6!"
|
|
138 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
139 |
#: src/Widget/Category.php:52
|
140 |
msgid ""
|
141 |
-
"Creates a menu of all the categories using the child
|
142 |
msgstr "Crea un menú de todas las categorías utilizando la relación hijo/padre"
|
143 |
|
144 |
#: src/Blocks/Categories.php:65 src/Blocks/Pages.php:58
|
@@ -226,7 +226,7 @@ msgid "In another list in the same widget"
|
|
226 |
msgstr "En otra lista en el mismo widget"
|
227 |
|
228 |
#: src/Widget/Page.php:48
|
229 |
-
msgid "Creates a menu of all the pages using the child
|
230 |
msgstr "Crea un menú de todas las páginas utilizando la relación hijo/padre"
|
231 |
|
232 |
#: src/Widget/Page.php:115
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
4 |
+
"POT-Creation-Date: 2022-08-22 10:24-0400\n"
|
5 |
+
"PO-Revision-Date: 2022-08-22 10:24-0400\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: es_ES\n"
|
138 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
139 |
#: src/Widget/Category.php:52
|
140 |
msgid ""
|
141 |
+
"Creates a menu of all the categories using the parent/child relationship"
|
142 |
msgstr "Crea un menú de todas las categorías utilizando la relación hijo/padre"
|
143 |
|
144 |
#: src/Blocks/Categories.php:65 src/Blocks/Pages.php:58
|
226 |
msgstr "En otra lista en el mismo widget"
|
227 |
|
228 |
#: src/Widget/Page.php:48
|
229 |
+
msgid "Creates a menu of all the pages using the parent/child relationship"
|
230 |
msgstr "Crea un menú de todas las páginas utilizando la relación hijo/padre"
|
231 |
|
232 |
#: src/Widget/Page.php:115
|
languages/advanced-sidebar-menu-fr_FR.mo
CHANGED
Binary file
|
languages/advanced-sidebar-menu-fr_FR.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
4 |
-
"POT-Creation-Date: 2022-08-
|
5 |
-
"PO-Revision-Date: 2022-08-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: fr_FR\n"
|
@@ -138,7 +138,7 @@ msgstr "Ce bloc nécessite WordPress version 5.6!"
|
|
138 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
139 |
#: src/Widget/Category.php:52
|
140 |
msgid ""
|
141 |
-
"Creates a menu of all the categories using the child
|
142 |
msgstr ""
|
143 |
"Crée un menu de toutes les catégories en utilisant la relation de l'enfant/"
|
144 |
"parent"
|
@@ -229,7 +229,7 @@ msgid "In another list in the same widget"
|
|
229 |
msgstr "Dans une autre liste dans le même widget"
|
230 |
|
231 |
#: src/Widget/Page.php:48
|
232 |
-
msgid "Creates a menu of all the pages using the child
|
233 |
msgstr ""
|
234 |
"Crée un menu de toutes les pages en utilisant la relation enfant/parent"
|
235 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
4 |
+
"POT-Creation-Date: 2022-08-22 10:25-0400\n"
|
5 |
+
"PO-Revision-Date: 2022-08-22 10:25-0400\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: fr_FR\n"
|
138 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
139 |
#: src/Widget/Category.php:52
|
140 |
msgid ""
|
141 |
+
"Creates a menu of all the categories using the parent/child relationship"
|
142 |
msgstr ""
|
143 |
"Crée un menu de toutes les catégories en utilisant la relation de l'enfant/"
|
144 |
"parent"
|
229 |
msgstr "Dans une autre liste dans le même widget"
|
230 |
|
231 |
#: src/Widget/Page.php:48
|
232 |
+
msgid "Creates a menu of all the pages using the parent/child relationship"
|
233 |
msgstr ""
|
234 |
"Crée un menu de toutes les pages en utilisant la relation enfant/parent"
|
235 |
|
languages/advanced-sidebar-menu.pot
CHANGED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"sidebar-menu\n"
|
6 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
7 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
8 |
-
"POT-Creation-Date: 2022-08-
|
9 |
"PO-Revision-Date: 2019-03-05 12:29-0500\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
@@ -140,7 +140,7 @@ msgstr ""
|
|
140 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
141 |
#: src/Widget/Category.php:52
|
142 |
msgid ""
|
143 |
-
"Creates a menu of all the categories using the child
|
144 |
msgstr ""
|
145 |
|
146 |
#: src/Blocks/Categories.php:65 src/Blocks/Pages.php:58
|
@@ -223,7 +223,7 @@ msgid "In another list in the same widget"
|
|
223 |
msgstr ""
|
224 |
|
225 |
#: src/Widget/Page.php:48
|
226 |
-
msgid "Creates a menu of all the pages using the child
|
227 |
msgstr ""
|
228 |
|
229 |
#: src/Widget/Page.php:115
|
5 |
"sidebar-menu\n"
|
6 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
7 |
"Project-Id-Version: Advanced Sidebar Menu\n"
|
8 |
+
"POT-Creation-Date: 2022-08-22 10:24-0400\n"
|
9 |
"PO-Revision-Date: 2019-03-05 12:29-0500\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
140 |
#: src/Blocks/Categories.php:25 src/Blocks/Pages.php:25
|
141 |
#: src/Widget/Category.php:52
|
142 |
msgid ""
|
143 |
+
"Creates a menu of all the categories using the parent/child relationship"
|
144 |
msgstr ""
|
145 |
|
146 |
#: src/Blocks/Categories.php:65 src/Blocks/Pages.php:58
|
223 |
msgstr ""
|
224 |
|
225 |
#: src/Widget/Page.php:48
|
226 |
+
msgid "Creates a menu of all the pages using the parent/child relationship"
|
227 |
msgstr ""
|
228 |
|
229 |
#: src/Widget/Page.php:115
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: block, widget, dynamic, hierarchy, menus, sidebar menu, category, pages, p
|
|
6 |
Requires at least: 5.8.0
|
7 |
Tested up to: 6.0.1
|
8 |
Requires PHP: 7.0.0
|
9 |
-
Stable tag: 9.0.
|
10 |
License: GPLv3 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
@@ -16,7 +16,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
|
16 |
|
17 |
Uses the parent/child relationship of your pages or categories to generate menus based on the current section of your site. Assign a page or category to a parent and this will do the rest for you.
|
18 |
|
19 |
-
Keeps the menu clean and usable. Only related items display so you don't have to worry about keeping a custom menu up to date or displaying links to items that don't belong.
|
20 |
|
21 |
<strong>Check out <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">Advanced Sidebar Menu PRO</a> for more features including accordion menus, menu colors and styles, custom link text, excluding of pages, category ordering, custom post types, custom taxonomies, priority support, and so much more!</strong>
|
22 |
|
@@ -84,12 +84,11 @@ Keeps the menu clean and usable. Only related items display so you don't have to
|
|
84 |
* Option to display the top-level navigation menu items when there are no child items or not viewing a menu item.
|
85 |
* Priority support with access to members only support area.
|
86 |
|
87 |
-
<h3>Translations</h3>
|
88 |
-
|
89 |
-
*
|
90 |
-
*
|
91 |
-
*
|
92 |
-
* Spanish (es_ES)
|
93 |
|
94 |
<h3>Developers</h3>
|
95 |
Developer docs may be found <a target="_blank" href="https://onpointplugins.com/advanced-sidebar-menu/developer-docs/">here</a>.
|
@@ -166,6 +165,13 @@ Yes. Based on whatever page, post or category you are on, the menu will change a
|
|
166 |
|
167 |
|
168 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
= 9.0.0 =
|
170 |
<a href="https://onpointplugins.com/advanced-sidebar-gutenberg-blocks/">Full release notes</a>.
|
171 |
|
6 |
Requires at least: 5.8.0
|
7 |
Tested up to: 6.0.1
|
8 |
Requires PHP: 7.0.0
|
9 |
+
Stable tag: 9.0.2
|
10 |
License: GPLv3 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
16 |
|
17 |
Uses the parent/child relationship of your pages or categories to generate menus based on the current section of your site. Assign a page or category to a parent and this will do the rest for you.
|
18 |
|
19 |
+
Keeps the menu clean and usable. Only related items display, so you don't have to worry about keeping a custom menu up to date or displaying links to items that don't belong.
|
20 |
|
21 |
<strong>Check out <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/">Advanced Sidebar Menu PRO</a> for more features including accordion menus, menu colors and styles, custom link text, excluding of pages, category ordering, custom post types, custom taxonomies, priority support, and so much more!</strong>
|
22 |
|
84 |
* Option to display the top-level navigation menu items when there are no child items or not viewing a menu item.
|
85 |
* Priority support with access to members only support area.
|
86 |
|
87 |
+
<h3>Included Language Translations</h3>
|
88 |
+
* English (en_US).
|
89 |
+
* French (fr_FR).
|
90 |
+
* German (de_DE).
|
91 |
+
* Spanish (es_ES).
|
|
|
92 |
|
93 |
<h3>Developers</h3>
|
94 |
Developer docs may be found <a target="_blank" href="https://onpointplugins.com/advanced-sidebar-menu/developer-docs/">here</a>.
|
165 |
|
166 |
|
167 |
== Changelog ==
|
168 |
+
= 9.0.2 =
|
169 |
+
* Moved `advanced-sidebar-menu` CSS class to block widget wraps.
|
170 |
+
* Introduced `isScreen` helper to make screen conditionals cleaner.
|
171 |
+
* Included "Display each single post's categories" option on the customizer screen.
|
172 |
+
* Included PHP version in debug information.
|
173 |
+
* Improved readme.
|
174 |
+
|
175 |
= 9.0.0 =
|
176 |
<a href="https://onpointplugins.com/advanced-sidebar-gutenberg-blocks/">Full release notes</a>.
|
177 |
|
resources/blocks/category/block.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
"title": "Advanced Sidebar - Categories",
|
6 |
"category": "widgets",
|
7 |
"icon": "welcome-widgets-menus",
|
8 |
-
"description": "Creates a menu of all the categories using the child
|
9 |
"keywords": [
|
10 |
"menu",
|
11 |
"sidebar",
|
5 |
"title": "Advanced Sidebar - Categories",
|
6 |
"category": "widgets",
|
7 |
"icon": "welcome-widgets-menus",
|
8 |
+
"description": "Creates a menu of all the categories using the parent/child relationship",
|
9 |
"keywords": [
|
10 |
"menu",
|
11 |
"sidebar",
|
resources/blocks/pages/block.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
"title": "Advanced Sidebar - Pages",
|
6 |
"category": "widgets",
|
7 |
"icon": "welcome-widgets-menus",
|
8 |
-
"description": "Creates a menu of all the pages using the child
|
9 |
"keywords": [
|
10 |
"menu",
|
11 |
"sidebar",
|
5 |
"title": "Advanced Sidebar - Pages",
|
6 |
"category": "widgets",
|
7 |
"icon": "welcome-widgets-menus",
|
8 |
+
"description": "Creates a menu of all the pages using the parent/child relationship",
|
9 |
"keywords": [
|
10 |
"menu",
|
11 |
"sidebar",
|
src/Blocks/Block_Abstract.php
CHANGED
@@ -287,13 +287,25 @@ abstract class Block_Abstract {
|
|
287 |
}
|
288 |
}
|
289 |
|
290 |
-
$classnames = '
|
291 |
if ( ! empty( $attr['block_style'] ) ) {
|
292 |
$classnames .= ' advanced-sidebar-blocked-style';
|
293 |
}
|
294 |
|
295 |
-
|
296 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
$wrapper_attributes = get_block_wrapper_attributes( [
|
298 |
'class' => \trim( esc_attr( $classnames ) ),
|
299 |
] );
|
287 |
}
|
288 |
}
|
289 |
|
290 |
+
$classnames = '';
|
291 |
if ( ! empty( $attr['block_style'] ) ) {
|
292 |
$classnames .= ' advanced-sidebar-blocked-style';
|
293 |
}
|
294 |
|
295 |
+
if ( ! empty( $this->widget_args['before_widget'] ) ) {
|
296 |
+
// Add main CSS class to widgets wrap.
|
297 |
+
if ( false !== \strpos( $this->widget_args['before_widget'], 'widget_block' ) ) {
|
298 |
+
$this->widget_args['before_widget'] = \str_replace( 'widget_block', 'widget_block advanced-sidebar-menu', $this->widget_args['before_widget'] );
|
299 |
+
} else {
|
300 |
+
$classnames .= ' advanced-sidebar-menu';
|
301 |
+
}
|
302 |
+
// Widgets already have a `<section>` wrap.
|
303 |
+
$wrap = 'div';
|
304 |
+
} else {
|
305 |
+
$classnames .= ' advanced-sidebar-menu';
|
306 |
+
$wrap = 'section';
|
307 |
+
}
|
308 |
+
|
309 |
$wrapper_attributes = get_block_wrapper_attributes( [
|
310 |
'class' => \trim( esc_attr( $classnames ) ),
|
311 |
] );
|
src/Blocks/Categories.php
CHANGED
@@ -22,7 +22,7 @@ class Categories extends Block_Abstract {
|
|
22 |
* @return string
|
23 |
*/
|
24 |
protected function get_description() {
|
25 |
-
return __( 'Creates a menu of all the categories using the child
|
26 |
'advanced-sidebar-menu' );
|
27 |
}
|
28 |
|
22 |
* @return string
|
23 |
*/
|
24 |
protected function get_description() {
|
25 |
+
return __( 'Creates a menu of all the categories using the parent/child relationship',
|
26 |
'advanced-sidebar-menu' );
|
27 |
}
|
28 |
|
src/Blocks/Pages.php
CHANGED
@@ -22,7 +22,7 @@ class Pages extends Block_Abstract {
|
|
22 |
* @return string
|
23 |
*/
|
24 |
protected function get_description() {
|
25 |
-
return __( 'Creates a menu of all the categories using the child
|
26 |
'advanced-sidebar-menu' );
|
27 |
}
|
28 |
|
22 |
* @return string
|
23 |
*/
|
24 |
protected function get_description() {
|
25 |
+
return __( 'Creates a menu of all the categories using the parent/child relationship',
|
26 |
'advanced-sidebar-menu' );
|
27 |
}
|
28 |
|
src/Debug.php
CHANGED
@@ -30,7 +30,7 @@ class Debug {
|
|
30 |
if ( ! empty( $_GET[ self::DEBUG_PARAM ] ) ) { //phpcs:ignore
|
31 |
add_action( 'advanced-sidebar-menu/widget/before-render', [ $this, 'print_instance' ], 1, 2 );
|
32 |
|
33 |
-
if ( is_array( $_GET[ self::DEBUG_PARAM ] ) ) { //phpcs:ignore
|
34 |
add_filter( 'advanced-sidebar-menu/menus/widget-instance', [ $this, 'adjust_widget_settings' ] );
|
35 |
}
|
36 |
}
|
@@ -63,6 +63,34 @@ class Debug {
|
|
63 |
}
|
64 |
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
/**
|
67 |
* Print the widget settings as a JS variable.
|
68 |
*
|
@@ -72,20 +100,13 @@ class Debug {
|
|
72 |
* @return void
|
73 |
*/
|
74 |
public function print_instance( $menu, $widget ) {
|
75 |
-
$data =
|
76 |
-
'version' => ADVANCED_SIDEBAR_BASIC_VERSION,
|
77 |
-
'wp-version' => get_bloginfo( 'version' ),
|
78 |
-
];
|
79 |
-
if ( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) {
|
80 |
-
$data['pro_version'] = ADVANCED_SIDEBAR_MENU_PRO_VERSION;
|
81 |
-
}
|
82 |
-
$data = apply_filters( 'advanced-sidebar-menu/debug/print-instance', $data, $menu, $widget );
|
83 |
?>
|
84 |
-
<script
|
85 |
if ( 'undefined' === typeof ( <?php echo esc_attr( self::DEBUG_PARAM ); ?> ) ) {
|
86 |
var <?php echo esc_attr( self::DEBUG_PARAM ); ?> = <?php echo wp_json_encode( $data ); ?>;
|
87 |
}
|
88 |
-
<?php echo esc_attr( self::DEBUG_PARAM ); ?>[ '<?php echo esc_js( $
|
89 |
</script>
|
90 |
<?php
|
91 |
}
|
30 |
if ( ! empty( $_GET[ self::DEBUG_PARAM ] ) ) { //phpcs:ignore
|
31 |
add_action( 'advanced-sidebar-menu/widget/before-render', [ $this, 'print_instance' ], 1, 2 );
|
32 |
|
33 |
+
if ( \is_array( $_GET[ self::DEBUG_PARAM ] ) ) { //phpcs:ignore
|
34 |
add_filter( 'advanced-sidebar-menu/menus/widget-instance', [ $this, 'adjust_widget_settings' ] );
|
35 |
}
|
36 |
}
|
63 |
}
|
64 |
|
65 |
|
66 |
+
/**
|
67 |
+
* Get information about the current site.
|
68 |
+
*
|
69 |
+
* 1. PHP version.
|
70 |
+
* 2. Plugin version.
|
71 |
+
* 3. WP version.
|
72 |
+
* 4. PRO version.
|
73 |
+
*
|
74 |
+
* @since 9.0.2
|
75 |
+
*
|
76 |
+
* @return array
|
77 |
+
*/
|
78 |
+
public function get_site_info() {
|
79 |
+
$data = [
|
80 |
+
'basic' => ADVANCED_SIDEBAR_BASIC_VERSION,
|
81 |
+
'php' => PHP_VERSION,
|
82 |
+
'pro' => false,
|
83 |
+
'scriptDebug' => Scripts::instance()->is_script_debug_enabled(),
|
84 |
+
'wordpress' => get_bloginfo( 'version' ),
|
85 |
+
];
|
86 |
+
if ( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) {
|
87 |
+
$data['pro'] = ADVANCED_SIDEBAR_MENU_PRO_VERSION;
|
88 |
+
}
|
89 |
+
|
90 |
+
return $data;
|
91 |
+
}
|
92 |
+
|
93 |
+
|
94 |
/**
|
95 |
* Print the widget settings as a JS variable.
|
96 |
*
|
100 |
* @return void
|
101 |
*/
|
102 |
public function print_instance( $menu, $widget ) {
|
103 |
+
$data = apply_filters( 'advanced-sidebar-menu/debug/print-instance', $this->get_site_info(), $menu, $widget );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
?>
|
105 |
+
<script name="<?php echo esc_attr( self::DEBUG_PARAM ); ?>">
|
106 |
if ( 'undefined' === typeof ( <?php echo esc_attr( self::DEBUG_PARAM ); ?> ) ) {
|
107 |
var <?php echo esc_attr( self::DEBUG_PARAM ); ?> = <?php echo wp_json_encode( $data ); ?>;
|
108 |
}
|
109 |
+
<?php echo esc_attr( self::DEBUG_PARAM ); ?>[ '<?php echo esc_js( $menu->args['widget_id'] ); ?>' ] = <?php echo wp_json_encode( $menu->instance ); ?>;
|
110 |
</script>
|
111 |
<?php
|
112 |
}
|
src/Scripts.php
CHANGED
@@ -167,12 +167,7 @@ class Scripts {
|
|
167 |
'pages' => [
|
168 |
'orderBy' => Page::get_order_by_options(),
|
169 |
],
|
170 |
-
'siteInfo' =>
|
171 |
-
'basic' => ADVANCED_SIDEBAR_BASIC_VERSION,
|
172 |
-
'pro' => false,
|
173 |
-
'scriptDebug' => $this->is_script_debug_enabled(),
|
174 |
-
'wordpress' => get_bloginfo( 'version' ),
|
175 |
-
],
|
176 |
'support' => 'https://wordpress.org/support/plugin/advanced-sidebar-menu/#new-topic-0',
|
177 |
] );
|
178 |
}
|
167 |
'pages' => [
|
168 |
'orderBy' => Page::get_order_by_options(),
|
169 |
],
|
170 |
+
'siteInfo' => Debug::instance()->get_site_info(),
|
|
|
|
|
|
|
|
|
|
|
171 |
'support' => 'https://wordpress.org/support/plugin/advanced-sidebar-menu/#new-topic-0',
|
172 |
] );
|
173 |
}
|
src/Widget/Category.php
CHANGED
@@ -49,7 +49,7 @@ class Category extends Widget_Abstract {
|
|
49 |
public function __construct() {
|
50 |
$widget_ops = [
|
51 |
'classname' => 'advanced-sidebar-menu advanced-sidebar-category',
|
52 |
-
'description' => __( 'Creates a menu of all the categories using the child
|
53 |
'show_instance_in_rest' => true,
|
54 |
];
|
55 |
$control_ops = [
|
49 |
public function __construct() {
|
50 |
$widget_ops = [
|
51 |
'classname' => 'advanced-sidebar-menu advanced-sidebar-category',
|
52 |
+
'description' => __( 'Creates a menu of all the categories using the parent/child relationship', 'advanced-sidebar-menu' ),
|
53 |
'show_instance_in_rest' => true,
|
54 |
];
|
55 |
$control_ops = [
|
src/Widget/Page.php
CHANGED
@@ -45,7 +45,7 @@ class Page extends Widget_Abstract {
|
|
45 |
public function __construct() {
|
46 |
$widget_ops = [
|
47 |
'classname' => 'advanced-sidebar-menu',
|
48 |
-
'description' => __( 'Creates a menu of all the pages using the child
|
49 |
'show_instance_in_rest' => true,
|
50 |
];
|
51 |
$control_ops = [
|
45 |
public function __construct() {
|
46 |
$widget_ops = [
|
47 |
'classname' => 'advanced-sidebar-menu',
|
48 |
+
'description' => __( 'Creates a menu of all the pages using the parent/child relationship', 'advanced-sidebar-menu' ),
|
49 |
'show_instance_in_rest' => true,
|
50 |
];
|
51 |
$control_ops = [
|