: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Creates a context object containing two components: a provider and consumer.
* @param {Object} defaultValue A default data stored in the context.
* @return {Object} Context object.
* Returns a new element of given type. Type can be either a string tag name or
* another function which itself returns an element.
* @param {?(string|Function)} type Tag name or element creator
* @param {Object} props Element properties, either attribute
* set to apply to DOM node or values to
* pass through to element creator
* @param {...Element} children Descendant elements
* @return {Element} Element.
* Returns an object tracking a reference to a rendered element via its
* `current` property as either a DOMElement or Element, dependent upon the
* type of element rendered with the ref attribute.
* @return {Object} Ref object.
* Component enhancer used to enable passing a ref to its wrapped component.
* Pass a function argument which receives `props` and `ref` as its arguments,
* returning an element using the forwarded ref. The return value is a new
* component which forwards its ref.
* @param {Function} forwarder Function passed `props` and `ref`, expected to
* @return {Component} Enhanced component.
* A component which renders its children without any wrapping element.
* Checks if an object is a valid React Element.
* @param {Object} objectToCheck The object to be checked.
* @return {boolean} true if objectToTest is a valid React Element and false otherwise.
* @see https://reactjs.org/docs/react-api.html#reactmemo
* Component that activates additional checks and warnings for its descendants.
* @see https://reactjs.org/docs/hooks-reference.html#usecallback
* @see https://reactjs.org/docs/hooks-reference.html#usecontext
* @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue
* @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue
* @see https://reactjs.org/docs/hooks-reference.html#useeffect
* @see https://reactjs.org/docs/hooks-reference.html#useid
* @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
* @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect
* @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect
* @see https://reactjs.org/docs/hooks-reference.html#usememo
* @see https://reactjs.org/docs/hooks-reference.html#usereducer
* @see https://reactjs.org/docs/hooks-reference.html#useref
* @see https://reactjs.org/docs/hooks-reference.html#usestate
* @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore
* @see https://reactjs.org/docs/hooks-reference.html#usetransition
* @see https://reactjs.org/docs/react-api.html#starttransition
* @see https://reactjs.org/docs/react-api.html#reactlazy
* @see https://reactjs.org/docs/react-api.html#reactsuspense
* @see https://reactjs.org/docs/react-api.html#reactpurecomponent
* Concatenate two or more React children objects.
* @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate.
* @return {Array} The concatenated value.
function concatChildren(...childrenArguments) {
return childrenArguments.reduce((accumulator, children, i) => {
external_React_namespaceObject.Children.forEach(children, (child, j) => {
if (child && 'string' !== typeof child) {
child = (0,external_React_namespaceObject.cloneElement)(child, {
* Switches the nodeName of all the elements in the children object.
* @param {?Object} children Children object.
* @param {string} nodeName Node name.
* @return {?Object} The updated children object.
function switchChildrenNodeName(children, nodeName) {
return children && external_React_namespaceObject.Children.map(children, (elt, index) => {
if (typeof elt?.valueOf() === 'string') {
return (0,external_React_namespaceObject.createElement)(nodeName, {
return (0,external_React_namespaceObject.createElement)(nodeName, {
// EXTERNAL MODULE: external "ReactDOM"
var external_ReactDOM_ = __webpack_require__(5795);
// EXTERNAL MODULE: ./node_modules/react-dom/client.js
var client = __webpack_require__(4140);
;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/react-platform.js
* Creates a portal into which a component can be rendered.
* @see https://github.com/facebook/react/issues/10309#issuecomment-318433235
* @param {import('react').ReactElement} child Any renderable child, such as an element,
* @param {HTMLElement} container DOM node into which element should be rendered.
* Finds the dom node of a React component.
* @param {import('react').ComponentType} component Component's instance.
* Forces React to flush any updates inside the provided callback synchronously.
* @param {Function} callback Callback to run synchronously.
* Renders a given element into the target DOM node.
* @deprecated since WordPress 6.2.0. Use `createRoot` instead.
* @see https://react.dev/reference/react-dom/render
* Hydrates a given element into the target DOM node.
* @deprecated since WordPress 6.2.0. Use `hydrateRoot` instead.
* @see https://react.dev/reference/react-dom/hydrate
* Creates a new React root for the target DOM node.
* @since 6.2.0 Introduced in WordPress core.
* @see https://react.dev/reference/react-dom/client/createRoot
* Creates a new React root for the target DOM node and hydrates it with a pre-generated markup.
* @since 6.2.0 Introduced in WordPress core.
* @see https://react.dev/reference/react-dom/client/hydrateRoot
* Removes any mounted element from the target DOM node.
* @deprecated since WordPress 6.2.0. Use `root.unmount()` instead.
* @see https://react.dev/reference/react-dom/unmountComponentAtNode
;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/utils.js
* Checks if the provided WP element is empty.
* @param {*} element WP element to check.
* @return {boolean} True when an element is considered empty.
const isEmptyElement = element => {
if (typeof element === 'number') {
if (typeof element?.valueOf() === 'string' || Array.isArray(element)) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/element/build-module/platform.js
* Parts of this source were derived and modified from react-native-web,
* released under the MIT license.
* Copyright (c) 2016-present, Nicolas Gallagher.
* Copyright (c) 2015-present, Facebook, Inc.
select: spec => 'web' in spec ? spec.web : spec.default,
* Component used to detect the current Platform being used.
* Use Platform.OS === 'web' to detect if running on web enviroment.
* This is the same concept as the React Native implementation.
* @see https://reactnative.dev/docs/platform-specific-code#platform-module
* Here is an example of how to use the select method:
* import { Platform } from '@wordpress/element';
* const placeholderLabel = Platform.select( {
* native: __( 'Add media' ),
* web: __( 'Drag images, upload new ones or select files from your library.' ),
/* harmony default export */ const platform = (Platform);
;// CONCATENATED MODULE: ./node_modules/is-plain-object/dist/is-plain-object.mjs
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
return Object.prototype.toString.call(o) === '[object Object]';
function isPlainObject(o) {
if (isObject(o) === false) return false;
// If has modified constructor
if (ctor === undefined) return true;
// If has modified prototype
if (isObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
// Most likely a plain Object
;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
return __assign.apply(this, arguments);
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
for (var i = decorators.length - 1; i >= 0; i--) {
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
if (kind === "accessor") {
if (result === void 0) continue;
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
if (_ = accept(result.get)) descriptor.get = _;
if (_ = accept(result.set)) descriptor.set = _;
if (_ = accept(result.init)) initializers.unshift(_);
else if (_ = accept(result)) {
if (kind === "field") initializers.unshift(_);
else descriptor[key] = _;
if (target) Object.defineProperty(target, contextIn.name, descriptor);
function __runInitializers(thisArg, initializers, value) {
var useValue = arguments.length > 2;
for (var i = 0; i < initializers.length; i++) {
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
return useValue ? value : void 0;
return typeof x === "symbol" ? x : "".concat(x);
function __setFunctionName(f, name, prefix) {
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());