Editor: update npm packages for 6.4.2.

Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.

Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.

Built from https://develop.svn.wordpress.org/trunk@57109


git-svn-id: http://core.svn.wordpress.org/trunk@56620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
isabel_brison 2023-11-14 00:12:23 +00:00
parent f3a843e952
commit 078ed1a3a6
24 changed files with 364 additions and 201 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -44,11 +44,15 @@ function render_block_core_query( $attributes, $content, $block ) {
$block->block_type->supports['interactivity'] = true;
// Add a div to announce messages using `aria-live`.
$last_div_position = strripos( $content, '</div>' );
$html_tag = 'div';
if ( ! empty( $attributes['tagName'] ) ) {
$html_tag = esc_attr( $attributes['tagName'] );
}
$last_tag_position = strripos( $content, '</' . $html_tag . '>' );
$content = substr_replace(
$content,
'<div
class="wp-block-query__enhanced-pagination-navigation-announce screen-reader-text"
class="screen-reader-text"
aria-live="polite"
data-wp-text="context.core.query.message"
></div>
@ -57,7 +61,7 @@ function render_block_core_query( $attributes, $content, $block ) {
data-wp-class--start-animation="selectors.core.query.startAnimation"
data-wp-class--finish-animation="selectors.core.query.finishAnimation"
></div>',
$last_div_position,
$last_tag_position,
0
);
}

View File

@ -44,4 +44,13 @@
.patterns-create-modal__name-input input[type=text]{
margin:0;
min-height:40px;
}
.patterns-rename-pattern-category-modal__validation-message{
color:#cc1818;
}
@media (min-width:782px){
.patterns-rename-pattern-category-modal__validation-message{
width:320px;
}
}

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}

View File

@ -44,4 +44,13 @@
.patterns-create-modal__name-input input[type=text]{
margin:0;
min-height:40px;
}
.patterns-rename-pattern-category-modal__validation-message{
color:#cc1818;
}
@media (min-width:782px){
.patterns-rename-pattern-category-modal__validation-message{
width:320px;
}
}

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.patterns-menu-items__convert-modal{z-index:1000001}.patterns-menu-items__convert-modal [role=dialog]>[role=document]{width:350px}.patterns-menu-items__convert-modal .patterns-menu-items__convert-modal-categories{min-height:40px;position:relative;width:100%}.patterns-menu-items__convert-modal .components-form-token-field__suggestions-list{background-color:#fff;border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;border-top:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}.patterns-create-modal__name-input input[type=text]{margin:0;min-height:40px}.patterns-rename-pattern-category-modal__validation-message{color:#cc1818}@media (min-width:782px){.patterns-rename-pattern-category-modal__validation-message{width:320px}}

View File

@ -28435,14 +28435,14 @@ function BlockPatternsSyncFilter({
const shouldDisableNonUserSources = getShouldDisableNonUserSources(category);
const patternSyncMenuOptions = (0,external_wp_element_namespaceObject.useMemo)(() => [{
value: SYNC_TYPES.all,
label: (0,external_wp_i18n_namespaceObject.__)('All')
label: (0,external_wp_i18n_namespaceObject._x)('All', 'Option that shows all patterns')
}, {
value: SYNC_TYPES.full,
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that shows all synchronized patterns'),
disabled: shouldDisableSyncFilter
}, {
value: SYNC_TYPES.unsynced,
label: (0,external_wp_i18n_namespaceObject.__)('Not synced'),
label: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Option that shows all patterns that are not synchronized'),
disabled: shouldDisableSyncFilter
}], [shouldDisableSyncFilter]);
const patternSourceMenuOptions = (0,external_wp_element_namespaceObject.useMemo)(() => [{
@ -35204,6 +35204,7 @@ const MediaReplaceFlow = ({
/**
* Internal dependencies
*/
@ -35316,6 +35317,7 @@ function BackgroundImagePanelItem(props) {
title,
url
} = attributes.style?.background?.backgroundImage || {};
const replaceContainerRef = (0,external_wp_element_namespaceObject.useRef)();
const {
mediaUpload
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
@ -35394,16 +35396,18 @@ function BackgroundImagePanelItem(props) {
}
};
}, []);
const hasValue = hasBackgroundImageValue(props);
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
className: "single-column",
hasValue: () => hasBackgroundImageValue(props),
hasValue: () => hasValue,
label: (0,external_wp_i18n_namespaceObject.__)('Background image'),
onDeselect: () => resetBackgroundImage(props),
isShownByDefault: true,
resetAllFilter: resetAllFilter,
panelId: clientId
}, (0,external_wp_element_namespaceObject.createElement)("div", {
className: "block-editor-hooks__background__inspector-media-replace-container"
className: "block-editor-hooks__background__inspector-media-replace-container",
ref: replaceContainerRef
}, (0,external_wp_element_namespaceObject.createElement)(media_replace_flow, {
mediaId: id,
mediaURL: url,
@ -35416,8 +35420,16 @@ function BackgroundImagePanelItem(props) {
url: url
}),
variant: "secondary"
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
onClick: () => resetBackgroundImage(props)
}, hasValue && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
onClick: () => {
const [toggleButton] = external_wp_dom_namespaceObject.focus.tabbable.find(replaceContainerRef.current);
// Focus the toggle button and close the dropdown menu.
// This ensures similar behaviour as to selecting an image, where the dropdown is
// closed and focus is redirected to the dropdown toggle button.
toggleButton?.focus();
toggleButton?.click();
resetBackgroundImage(props);
}
}, (0,external_wp_i18n_namespaceObject.__)('Reset '))), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DropZone, {
onFilesDrop: onFilesDrop,
label: (0,external_wp_i18n_namespaceObject.__)('Drop to upload')
@ -41782,11 +41794,10 @@ function useMultiOriginColorPresets(settings, {
return (0,external_wp_element_namespaceObject.useMemo)(() => [...userPresets, ...themePresets, ...(disableDefault ? filters_panel_EMPTY_ARRAY : defaultPresets)], [disableDefault, userPresets, themePresets, defaultPresets]);
}
function useHasFiltersPanel(settings) {
const hasDuotone = useHasDuotoneControl(settings);
return hasDuotone;
return useHasDuotoneControl(settings);
}
function useHasDuotoneControl(settings) {
return settings.color.customDuotone || settings.color.defaultDuotone;
return settings.color.customDuotone || settings.color.defaultDuotone || settings.color.duotone.length > 0;
}
function FiltersToolsPanel({
resetAllFilter,
@ -41867,8 +41878,6 @@ function FiltersPanel({
};
const hasDuotone = () => !!value?.filter?.duotone;
const resetDuotone = () => setDuotone(undefined);
const disableCustomColors = !settings?.color?.custom;
const disableCustomDuotone = !settings?.color?.customDuotone || colorPalette?.length === 0 && disableCustomColors;
const resetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(previousValue => {
return {
...previousValue,
@ -41917,9 +41926,11 @@ function FiltersPanel({
paddingSize: "medium"
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, null, (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Create a two-tone color effect without losing your original image.')), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.DuotonePicker, {
colorPalette: colorPalette,
duotonePalette: duotonePalette,
disableCustomColors: disableCustomColors,
disableCustomDuotone: disableCustomDuotone,
duotonePalette: duotonePalette
// TODO: Re-enable both when custom colors are supported for block-level styles.
,
disableCustomColors: true,
disableCustomDuotone: true,
value: duotone,
onChange: setDuotone
})))
@ -44419,7 +44430,7 @@ const withBlockRenameControl = (0,external_wp_compose_namespaceObject.createHigh
setAttributes,
isSelected
} = props;
const supportsBlockNaming = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, 'renaming', true);
const supportsBlockNaming = (0,external_wp_blocks_namespaceObject.hasBlockSupport)(name, '__experimentalMetadata', false);
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, isSelected && supportsBlockNaming && (0,external_wp_element_namespaceObject.createElement)(inspector_controls, {
group: "advanced"
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {

File diff suppressed because one or more lines are too long

View File

@ -23670,6 +23670,14 @@ const deprecated_v8 = {
height,
...attributes
}) {
// We need to perform a check here because in cases
// where attributes are added dynamically to blocks,
// block invalidation overrides the isEligible() method
// and forces the migration to run, so it's not guaranteed
// that `behaviors` or `behaviors.lightbox` will be defined.
if (!attributes.behaviors?.lightbox) {
return attributes;
}
const {
behaviors: {
lightbox: {

File diff suppressed because one or more lines are too long

View File

@ -34463,6 +34463,8 @@ var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
var external_wp_richText_namespaceObject = window["wp"]["richText"];
;// CONCATENATED MODULE: external ["wp","a11y"]
var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
;// CONCATENATED MODULE: external ["wp","keycodes"]
var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/strings.js
/**
* External dependencies
@ -37233,11 +37235,40 @@ function useOnClickOutside(ref, handler) {
/**
* Internal dependencies
*/
const getNodeText = node => {
if (node === null) {
return '';
}
switch (typeof node) {
case 'string':
case 'number':
return node.toString();
break;
case 'boolean':
return '';
break;
case 'object':
{
if (node instanceof Array) {
return node.map(getNodeText).join('');
}
if ('props' in node) {
return getNodeText(node.props.children);
}
break;
}
default:
return '';
}
return '';
};
const EMPTY_FILTERED_OPTIONS = [];
function useAutocomplete({
record,
@ -37330,11 +37361,24 @@ function useAutocomplete({
}
switch (event.key) {
case 'ArrowUp':
setSelectedIndex((selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1);
break;
{
const newIndex = (selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1;
setSelectedIndex(newIndex);
// See the related PR as to why this is necessary: https://github.com/WordPress/gutenberg/pull/54902.
if ((0,external_wp_keycodes_namespaceObject.isAppleOS)()) {
(0,external_wp_a11y_namespaceObject.speak)(getNodeText(filteredOptions[newIndex].label), 'assertive');
}
break;
}
case 'ArrowDown':
setSelectedIndex((selectedIndex + 1) % filteredOptions.length);
break;
{
const newIndex = (selectedIndex + 1) % filteredOptions.length;
setSelectedIndex(newIndex);
if ((0,external_wp_keycodes_namespaceObject.isAppleOS)()) {
(0,external_wp_a11y_namespaceObject.speak)(getNodeText(filteredOptions[newIndex].label), 'assertive');
}
break;
}
case 'Escape':
setAutocompleter(null);
setAutocompleterUI(null);
@ -74890,8 +74934,6 @@ const UnconnectedToolsPanelItem = (props, forwardedRef) => {
const component_ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');
/* harmony default export */ var tools_panel_item_component = (component_ToolsPanelItem);
;// CONCATENATED MODULE: external ["wp","keycodes"]
var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-context.js
/**
* WordPress dependencies

File diff suppressed because one or more lines are too long

View File

@ -21402,14 +21402,7 @@ function ScreenBlock({
inheritedValue: inheritedStyleWithLayout,
value: styleWithLayout,
onChange: setStyle,
settings: {
...settings,
color: {
...settings.color,
customDuotone: false //TO FIX: Custom duotone only works on the block level right now
}
},
settings: settings,
includeLayoutControls: true
}), hasImageSettingsPanel && (0,external_wp_element_namespaceObject.createElement)(ImageSettingsPanel, {
onChange: onChangeLightbox,
@ -35975,7 +35968,6 @@ function DuplicateMenuItem({
/**
* WordPress dependencies
*/
@ -35997,6 +35989,27 @@ function DuplicateMenuItem({
/**
* Downloads a file.
* Also used in packages/list-reusable-blocks/src/utils/file.js.
*
* @param {string} fileName File Name.
* @param {string} content File Content.
* @param {string} contentType File mime type.
*/
function grid_item_download(fileName, content, contentType) {
const file = new window.Blob([content], {
type: contentType
});
const a = document.createElement('a');
a.href = URL.createObjectURL(file);
a.download = fileName;
a.style.display = 'none';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
const {
useGlobalStyle: grid_item_useGlobalStyle
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
@ -36066,7 +36079,7 @@ function GridItem({
content: item.patternBlock.content.raw,
syncStatus: item.patternBlock.wp_pattern_sync_status
};
return download_default()(JSON.stringify(json, null, 2), `${paramCase(item.title || item.name)}.json`, 'application/json');
return grid_item_download(`${paramCase(item.title || item.name)}.json`, JSON.stringify(json, null, 2), 'application/json');
};
// Only custom patterns or custom template parts can be renamed or deleted.
@ -36306,9 +36319,9 @@ const {
useHistory: patterns_list_useHistory
} = unlock(external_wp_router_namespaceObject.privateApis);
const SYNC_FILTERS = {
all: (0,external_wp_i18n_namespaceObject.__)('All'),
[PATTERN_SYNC_TYPES.full]: (0,external_wp_i18n_namespaceObject.__)('Synced'),
[PATTERN_SYNC_TYPES.unsynced]: (0,external_wp_i18n_namespaceObject.__)('Not synced')
all: (0,external_wp_i18n_namespaceObject._x)('All', 'Option that shows all patterns'),
[PATTERN_SYNC_TYPES.full]: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that shows all synchronized patterns'),
[PATTERN_SYNC_TYPES.unsynced]: (0,external_wp_i18n_namespaceObject._x)('Not synced', 'Option that shows all patterns that are not synchronized')
};
const SYNC_DESCRIPTIONS = {
all: '',

File diff suppressed because one or more lines are too long

View File

@ -11049,7 +11049,7 @@ function PostSyncStatusModal() {
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalVStack, {
spacing: "5"
}, (0,external_wp_element_namespaceObject.createElement)(ReusableBlocksRenameHint, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
checked: !syncType,
onChange: () => {

File diff suppressed because one or more lines are too long

View File

@ -22,14 +22,14 @@ var preact_module_n,
preact_module_t,
i,
preact_module_o,
r,
preact_module_r,
preact_module_f,
preact_module_e,
preact_module_c = {},
s = [],
a = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
v = Array.isArray;
function h(n, l) {
h = Array.isArray;
function v(n, l) {
for (var u in l) n[u] = l[u];
return n;
}
@ -58,10 +58,10 @@ function d(n, t, i, o, r) {
__e: null,
__d: void 0,
__c: null,
__h: null,
constructor: void 0,
__v: null == r ? ++preact_module_u : r,
__i: -1
__i: -1,
__u: 0
};
return null == r && null != preact_module_l.vnode && preact_module_l.vnode(f), f;
}
@ -70,102 +70,104 @@ function _() {
current: null
};
}
function k(n) {
function g(n) {
return n.children;
}
function m(n, l) {
function b(n, l) {
this.props = n, this.context = l;
}
function b(n, l) {
if (null == l) return n.__ ? b(n.__, n.__i + 1) : null;
function m(n, l) {
if (null == l) return n.__ ? m(n.__, n.__i + 1) : null;
for (var u; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
return "function" == typeof n.type ? b(n) : null;
return "function" == typeof n.type ? m(n) : null;
}
function g(n) {
function k(n) {
var l, u;
if (null != (n = n.__) && null != n.__c) {
for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) {
n.__e = n.__c.base = u.__e;
break;
}
return g(n);
return k(n);
}
}
function w(n) {
(!n.__d && (n.__d = !0) && i.push(n) && !x.__r++ || preact_module_o !== preact_module_l.debounceRendering) && ((preact_module_o = preact_module_l.debounceRendering) || r)(x);
(!n.__d && (n.__d = !0) && i.push(n) && !x.__r++ || preact_module_o !== preact_module_l.debounceRendering) && ((preact_module_o = preact_module_l.debounceRendering) || preact_module_r)(x);
}
function x() {
var n, l, u, t, o, r, e, c, s;
for (i.sort(preact_module_f); n = i.shift();) n.__d && (l = i.length, t = void 0, o = void 0, r = void 0, c = (e = (u = n).__v).__e, (s = u.__P) && (t = [], o = [], (r = h({}, e)).__v = e.__v + 1, z(s, r, e, u.__n, void 0 !== s.ownerSVGElement, null != e.__h ? [c] : null, t, null == c ? b(e) : c, e.__h, o), r.__.__k[r.__i] = r, L(t, r, o), r.__e != c && g(r)), i.length > l && i.sort(preact_module_f));
for (i.sort(preact_module_f); n = i.shift();) n.__d && (l = i.length, t = void 0, r = (o = (u = n).__v).__e, c = [], s = [], (e = u.__P) && ((t = v({}, o)).__v = o.__v + 1, L(e, t, o, u.__n, void 0 !== e.ownerSVGElement, 32 & o.__u ? [r] : null, c, null == r ? m(o) : r, !!(32 & o.__u), s), t.__.__k[t.__i] = t, M(c, t, s), t.__e != r && k(t)), i.length > l && i.sort(preact_module_f));
x.__r = 0;
}
function C(n, l, u, t, i, o, r, f, e, a, h) {
var p,
var v,
p,
y,
d,
_,
m,
g,
w,
x,
C,
$,
D = 0,
H = t && t.__k || s,
I = H.length,
T = I,
j = l.length;
for (u.__k = [], p = 0; p < j; p++) null != (m = u.__k[p] = null == (m = l[p]) || "boolean" == typeof m || "function" == typeof m ? null : m.constructor == String || "number" == typeof m || "bigint" == typeof m ? d(null, m, null, null, m) : v(m) ? d(k, {
children: m
}, null, null, null) : m.__b > 0 ? d(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) ? (m.__ = u, m.__b = u.__b + 1, m.__i = p, -1 === (C = A(m, H, x = p + D, T)) ? _ = preact_module_c : (_ = H[C] || preact_module_c, H[C] = void 0, T--), z(n, m, _, i, o, r, f, e, a, h), g = m.__e, (y = m.ref) && _.ref != y && (_.ref && N(_.ref, null, m), h.push(y, m.__c || g, m)), null == w && null != g && (w = g), ($ = _ === preact_module_c || null === _.__v) ? -1 == C && D-- : C !== x && (C === x + 1 ? D++ : C > x ? T > j - x ? D += C - x : D-- : D = C < x && C == x - 1 ? C - x : 0), x = p + D, "function" == typeof m.type ? (C !== x || _.__k === m.__k ? e = P(m, e, n) : void 0 !== m.__d ? e = m.__d : g && (e = g.nextSibling), m.__d = void 0) : g && (e = C !== x || $ ? S(n, g, e) : g.nextSibling), "function" == typeof u.type && (u.__d = e)) : (_ = H[p]) && null == _.key && _.__e && (_.__e == e && (e = b(_), "function" == typeof u.type && (u.__d = e)), O(_, _, !1), H[p] = null);
for (u.__e = w, p = I; p--;) null != H[p] && ("function" == typeof u.type && null != H[p].__e && H[p].__e == e && (u.__d = H[p].__e.nextSibling), O(H[p], H[p]));
g = t && t.__k || s,
b = l.length;
for (u.__d = e, P(u, l, g), e = u.__d, v = 0; v < b; v++) null != (y = u.__k[v]) && "boolean" != typeof y && "function" != typeof y && (p = -1 === y.__i ? preact_module_c : g[y.__i] || preact_module_c, y.__i = v, L(n, y, p, i, o, r, f, e, a, h), d = y.__e, y.ref && p.ref != y.ref && (p.ref && z(p.ref, null, y), h.push(y.ref, y.__c || d, y)), null == _ && null != d && (_ = d), 65536 & y.__u || p.__k === y.__k ? e = S(y, e, n) : "function" == typeof y.type && void 0 !== y.__d ? e = y.__d : d && (e = d.nextSibling), y.__d = void 0, y.__u &= -196609);
u.__d = e, u.__e = _;
}
function P(n, l, u) {
for (var t, i = n.__k, o = 0; i && o < i.length; o++) (t = i[o]) && (t.__ = n, l = "function" == typeof t.type ? P(t, l, u) : S(u, t.__e, l));
return l;
var t,
i,
o,
r,
f,
e = l.length,
c = u.length,
s = c,
a = 0;
for (n.__k = [], t = 0; t < e; t++) null != (i = n.__k[t] = null == (i = l[t]) || "boolean" == typeof i || "function" == typeof i ? null : "string" == typeof i || "number" == typeof i || "bigint" == typeof i || i.constructor == String ? d(null, i, null, null, i) : h(i) ? d(g, {
children: i
}, null, null, null) : i.__b > 0 ? d(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) ? (i.__ = n, i.__b = n.__b + 1, f = H(i, u, r = t + a, s), i.__i = f, o = null, -1 !== f && (s--, (o = u[f]) && (o.__u |= 131072)), null == o || null === o.__v ? (-1 == f && a--, "function" != typeof i.type && (i.__u |= 65536)) : f !== r && (f === r + 1 ? a++ : f > r ? s > e - r ? a += f - r : a-- : a = f < r && f == r - 1 ? f - r : 0, f !== t + a && (i.__u |= 65536))) : (o = u[t]) && null == o.key && o.__e && (o.__e == n.__d && (n.__d = m(o)), N(o, o, !1), u[t] = null, s--);
if (s) for (t = 0; t < c; t++) null != (o = u[t]) && 0 == (131072 & o.__u) && (o.__e == n.__d && (n.__d = m(o)), N(o, o));
}
function S(n, l, u) {
var t, i;
if ("function" == typeof n.type) {
for (t = n.__k, i = 0; t && i < t.length; i++) t[i] && (t[i].__ = n, l = S(t[i], l, u));
return l;
}
return n.__e != l && (u.insertBefore(n.__e, l || null), l = n.__e), l && l.nextSibling;
}
function $(n, l) {
return l = l || [], null == n || "boolean" == typeof n || (v(n) ? n.some(function (n) {
return l = l || [], null == n || "boolean" == typeof n || (h(n) ? n.some(function (n) {
$(n, l);
}) : l.push(n)), l;
}
function S(n, l, u) {
return l != u && n.insertBefore(l, u || null), l.nextSibling;
}
function A(n, l, u, t) {
function H(n, l, u, t) {
var i = n.key,
o = n.type,
r = u - 1,
f = u + 1,
e = l[u];
if (null === e || e && i == e.key && o === e.type) return u;
if (t > (null != e ? 1 : 0)) for (; r >= 0 || f < l.length;) {
if (t > (null != e && 0 == (131072 & e.__u) ? 1 : 0)) for (; r >= 0 || f < l.length;) {
if (r >= 0) {
if ((e = l[r]) && i == e.key && o === e.type) return r;
if ((e = l[r]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return r;
r--;
}
if (f < l.length) {
if ((e = l[f]) && i == e.key && o === e.type) return f;
if ((e = l[f]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return f;
f++;
}
}
return -1;
}
function D(n, l, u, t, i) {
var o;
for (o in u) "children" === o || "key" === o || o in l || I(n, o, null, u[o], t);
for (o in l) i && "function" != typeof l[o] || "children" === o || "key" === o || "value" === o || "checked" === o || u[o] === l[o] || I(n, o, l[o], u[o], t);
}
function H(n, l, u) {
function I(n, l, u) {
"-" === l[0] ? n.setProperty(l, null == u ? "" : u) : n[l] = null == u ? "" : "number" != typeof u || a.test(l) ? u : u + "px";
}
function I(n, l, u, t, i) {
function T(n, l, u, t, i) {
var o;
n: if ("style" === l) {
if ("string" == typeof u) n.style.cssText = u;else {
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || H(n.style, l, "");
if (u) for (l in u) t && u[l] === t[l] || H(n.style, l, u[l]);
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || I(n.style, l, "");
if (u) for (l in u) t && u[l] === t[l] || I(n.style, l, u[l]);
}
} else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/(PointerCapture)$|Capture$/, "$1")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t ? u.u = t.u : (u.u = Date.now(), n.addEventListener(l, o ? j : T, o)) : n.removeEventListener(l, o ? j : T, o);else if ("dangerouslySetInnerHTML" !== l) {
} else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/(PointerCapture)$|Capture$/, "$1")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t ? u.u = t.u : (u.u = Date.now(), n.addEventListener(l, o ? D : A, o)) : n.removeEventListener(l, o ? D : A, o);else {
if (i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && "rowSpan" !== l && "colSpan" !== l && "role" !== l && l in n) try {
n[l] = null == u ? "" : u;
break n;
@ -173,63 +175,63 @@ function I(n, l, u, t, i) {
"function" == typeof u || (null == u || !1 === u && "-" !== l[4] ? n.removeAttribute(l) : n.setAttribute(l, u));
}
}
function T(n) {
function A(n) {
var u = this.l[n.type + !1];
if (n.t) {
if (n.t <= u.u) return;
} else n.t = Date.now();
return u(preact_module_l.event ? preact_module_l.event(n) : n);
}
function j(n) {
function D(n) {
return this.l[n.type + !0](preact_module_l.event ? preact_module_l.event(n) : n);
}
function z(n, u, t, i, o, r, f, e, c, s) {
function L(n, u, t, i, o, r, f, e, c, s) {
var a,
p,
y,
d,
_,
b,
g,
m,
k,
w,
x,
P,
$,
S,
A,
D,
$,
H,
I = u.type;
I,
T,
A = u.type;
if (void 0 !== u.constructor) return null;
null != t.__h && (c = t.__h, e = u.__e = t.__e, u.__h = null, r = [e]), (a = preact_module_l.__b) && a(u);
n: if ("function" == typeof I) try {
if (w = u.props, x = (a = I.contextType) && i[a.__c], P = a ? x ? x.props.value : a.__ : i, t.__c ? g = (p = u.__c = t.__c).__ = p.__E : ("prototype" in I && I.prototype.render ? u.__c = p = new I(w, P) : (u.__c = p = new m(w, P), p.constructor = I, p.render = q), x && x.sub(p), p.props = w, p.state || (p.state = {}), p.context = P, p.__n = i, y = p.__d = !0, p.__h = [], p._sb = []), null == p.__s && (p.__s = p.state), null != I.getDerivedStateFromProps && (p.__s == p.state && (p.__s = h({}, p.__s)), h(p.__s, I.getDerivedStateFromProps(w, p.__s))), d = p.props, _ = p.state, p.__v = u, y) null == I.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
if (null == I.getDerivedStateFromProps && w !== d && null != p.componentWillReceiveProps && p.componentWillReceiveProps(w, P), !p.__e && (null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(w, p.__s, P) || u.__v === t.__v)) {
128 & t.__u && (c = !!(32 & t.__u), r = [e = u.__e = t.__e]), (a = preact_module_l.__b) && a(u);
n: if ("function" == typeof A) try {
if (w = u.props, x = (a = A.contextType) && i[a.__c], P = a ? x ? x.props.value : a.__ : i, t.__c ? k = (p = u.__c = t.__c).__ = p.__E : ("prototype" in A && A.prototype.render ? u.__c = p = new A(w, P) : (u.__c = p = new b(w, P), p.constructor = A, p.render = O), x && x.sub(p), p.props = w, p.state || (p.state = {}), p.context = P, p.__n = i, y = p.__d = !0, p.__h = [], p._sb = []), null == p.__s && (p.__s = p.state), null != A.getDerivedStateFromProps && (p.__s == p.state && (p.__s = v({}, p.__s)), v(p.__s, A.getDerivedStateFromProps(w, p.__s))), d = p.props, _ = p.state, p.__v = u, y) null == A.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
if (null == A.getDerivedStateFromProps && w !== d && null != p.componentWillReceiveProps && p.componentWillReceiveProps(w, P), !p.__e && (null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(w, p.__s, P) || u.__v === t.__v)) {
for (u.__v !== t.__v && (p.props = w, p.state = p.__s, p.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
n && (n.__ = u);
}), $ = 0; $ < p._sb.length; $++) p.__h.push(p._sb[$]);
}), S = 0; S < p._sb.length; S++) p.__h.push(p._sb[S]);
p._sb = [], p.__h.length && f.push(p);
break n;
}
null != p.componentWillUpdate && p.componentWillUpdate(w, p.__s, P), null != p.componentDidUpdate && p.__h.push(function () {
p.componentDidUpdate(d, _, b);
p.componentDidUpdate(d, _, m);
});
}
if (p.context = P, p.props = w, p.__P = n, p.__e = !1, S = preact_module_l.__r, A = 0, "prototype" in I && I.prototype.render) {
for (p.state = p.__s, p.__d = !1, S && S(u), a = p.render(p.props, p.state, p.context), D = 0; D < p._sb.length; D++) p.__h.push(p._sb[D]);
if (p.context = P, p.props = w, p.__P = n, p.__e = !1, $ = preact_module_l.__r, H = 0, "prototype" in A && A.prototype.render) {
for (p.state = p.__s, p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), I = 0; I < p._sb.length; I++) p.__h.push(p._sb[I]);
p._sb = [];
} else do {
p.__d = !1, S && S(u), a = p.render(p.props, p.state, p.context), p.state = p.__s;
} while (p.__d && ++A < 25);
p.state = p.__s, null != p.getChildContext && (i = h(h({}, i), p.getChildContext())), y || null == p.getSnapshotBeforeUpdate || (b = p.getSnapshotBeforeUpdate(d, _)), C(n, v(H = null != a && a.type === k && null == a.key ? a.props.children : a) ? H : [H], u, t, i, o, r, f, e, c, s), p.base = u.__e, u.__h = null, p.__h.length && f.push(p), g && (p.__E = p.__ = null);
p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), p.state = p.__s;
} while (p.__d && ++H < 25);
p.state = p.__s, null != p.getChildContext && (i = v(v({}, i), p.getChildContext())), y || null == p.getSnapshotBeforeUpdate || (m = p.getSnapshotBeforeUpdate(d, _)), C(n, h(T = null != a && a.type === g && null == a.key ? a.props.children : a) ? T : [T], u, t, i, o, r, f, e, c, s), p.base = u.__e, u.__u &= -161, p.__h.length && f.push(p), k && (p.__E = p.__ = null);
} catch (n) {
u.__v = null, c || null != r ? (u.__e = e, u.__h = !!c, r[r.indexOf(e)] = null) : (u.__e = t.__e, u.__k = t.__k), preact_module_l.__e(n, u, t);
} else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = M(t.__e, u, t, i, o, r, f, c, s);
u.__v = null, c || null != r ? (u.__e = e, u.__u |= c ? 160 : 32, r[r.indexOf(e)] = null) : (u.__e = t.__e, u.__k = t.__k), preact_module_l.__e(n, u, t);
} else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = j(t.__e, u, t, i, o, r, f, c, s);
(a = preact_module_l.diffed) && a(u);
}
function L(n, u, t) {
function M(n, u, t) {
u.__d = void 0;
for (var i = 0; i < t.length; i++) N(t[i], t[++i], t[++i]);
for (var i = 0; i < t.length; i++) z(t[i], t[++i], t[++i]);
preact_module_l.__c && preact_module_l.__c(u, n), n.some(function (u) {
try {
n = u.__h, u.__h = [], n.some(function (n) {
@ -240,42 +242,44 @@ function L(n, u, t) {
}
});
}
function M(l, u, t, i, o, r, f, e, s) {
function j(l, u, t, i, o, r, f, e, s) {
var a,
h,
v,
y,
d = t.props,
_ = u.props,
k = u.type,
m = 0;
if ("svg" === k && (o = !0), null != r) for (; m < r.length; m++) if ((a = r[m]) && "setAttribute" in a == !!k && (k ? a.localName === k : 3 === a.nodeType)) {
l = a, r[m] = null;
d,
_,
g,
b,
k = t.props,
w = u.props,
x = u.type;
if ("svg" === x && (o = !0), null != r) for (a = 0; a < r.length; a++) if ((_ = r[a]) && "setAttribute" in _ == !!x && (x ? _.localName === x : 3 === _.nodeType)) {
l = _, r[a] = null;
break;
}
if (null == l) {
if (null === k) return document.createTextNode(_);
l = o ? document.createElementNS("http://www.w3.org/2000/svg", k) : document.createElement(k, _.is && _), r = null, e = !1;
if (null === x) return document.createTextNode(w);
l = o ? document.createElementNS("http://www.w3.org/2000/svg", x) : document.createElement(x, w.is && w), r = null, e = !1;
}
if (null === k) d === _ || e && l.data === _ || (l.data = _);else {
if (r = r && preact_module_n.call(l.childNodes), h = (d = t.props || preact_module_c).dangerouslySetInnerHTML, y = _.dangerouslySetInnerHTML, !e) {
if (null != r) for (d = {}, m = 0; m < l.attributes.length; m++) d[l.attributes[m].name] = l.attributes[m].value;
(y || h) && (y && (h && y.__html == h.__html || y.__html === l.innerHTML) || (l.innerHTML = y && y.__html || ""));
}
if (D(l, _, d, o, e), y) u.__k = [];else if (C(l, v(m = u.props.children) ? m : [m], u, t, i, o && "foreignObject" !== k, r, f, r ? r[0] : t.__k && b(t, 0), e, s), null != r) for (m = r.length; m--;) null != r[m] && p(r[m]);
e || ("value" in _ && void 0 !== (m = _.value) && (m !== l.value || "progress" === k && !m || "option" === k && m !== d.value) && I(l, "value", m, d.value, !1), "checked" in _ && void 0 !== (m = _.checked) && m !== l.checked && I(l, "checked", m, d.checked, !1));
if (null === x) k === w || e && l.data === w || (l.data = w);else {
if (r = r && preact_module_n.call(l.childNodes), k = t.props || preact_module_c, !e && null != r) for (k = {}, a = 0; a < l.attributes.length; a++) k[(_ = l.attributes[a]).name] = _.value;
for (a in k) _ = k[a], "children" == a || ("dangerouslySetInnerHTML" == a ? y = _ : "key" === a || a in w || T(l, a, null, _, o));
for (a in w) _ = w[a], "children" == a ? d = _ : "dangerouslySetInnerHTML" == a ? v = _ : "value" == a ? g = _ : "checked" == a ? b = _ : "key" === a || e && "function" != typeof _ || k[a] === _ || T(l, a, _, k[a], o);
if (v) e || y && (v.__html === y.__html || v.__html === l.innerHTML) || (l.innerHTML = v.__html), u.__k = [];else if (y && (l.innerHTML = ""), C(l, h(d) ? d : [d], u, t, i, o && "foreignObject" !== x, r, f, r ? r[0] : t.__k && m(t, 0), e, s), null != r) for (a = r.length; a--;) null != r[a] && p(r[a]);
e || (a = "value", void 0 !== g && (g !== l[a] || "progress" === x && !g || "option" === x && g !== k[a]) && T(l, a, g, k[a], !1), a = "checked", void 0 !== b && b !== l[a] && T(l, a, b, k[a], !1));
}
return l;
}
function N(n, u, t) {
function z(n, u, t) {
try {
"function" == typeof n ? n(u) : n.current = u;
} catch (n) {
preact_module_l.__e(n, t);
}
}
function O(n, u, t) {
function N(n, u, t) {
var i, o;
if (preact_module_l.unmount && preact_module_l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || N(i, null, u)), null != (i = n.__c)) {
if (preact_module_l.unmount && preact_module_l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || z(i, null, u)), null != (i = n.__c)) {
if (i.componentWillUnmount) try {
i.componentWillUnmount();
} catch (n) {
@ -283,29 +287,29 @@ function O(n, u, t) {
}
i.base = i.__P = null, n.__c = void 0;
}
if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && O(i[o], u, t || "function" != typeof n.type);
if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && N(i[o], u, t || "function" != typeof n.type);
t || null == n.__e || p(n.__e), n.__ = n.__e = n.__d = void 0;
}
function q(n, l, u) {
function O(n, l, u) {
return this.constructor(n, u);
}
function B(u, t, i) {
function q(u, t, i) {
var o, r, f, e;
preact_module_l.__ && preact_module_l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], e = [], z(t, u = (!o && i || t).__k = y(k, null, [u]), r || preact_module_c, preact_module_c, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? preact_module_n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o, e), L(f, u, e);
preact_module_l.__ && preact_module_l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], e = [], L(t, u = (!o && i || t).__k = y(g, null, [u]), r || preact_module_c, preact_module_c, void 0 !== t.ownerSVGElement, !o && i ? [i] : r ? null : t.firstChild ? preact_module_n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o, e), M(f, u, e);
}
function E(n, l) {
B(n, l, E);
function B(n, l) {
q(n, l, B);
}
function F(l, u, t) {
function E(l, u, t) {
var i,
o,
r,
f,
e = h({}, l.props);
e = v({}, l.props);
for (r in l.type && l.type.defaultProps && (f = l.type.defaultProps), u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : e[r] = void 0 === u[r] && void 0 !== f ? f[r] : u[r];
return arguments.length > 2 && (e.children = arguments.length > 3 ? preact_module_n.call(arguments, 2) : t), d(l.type, e, i || l.key, o || l.ref, null);
}
function G(n, l) {
function F(n, l) {
var u = {
__c: l = "__cC" + preact_module_e++,
__: n,
@ -342,12 +346,12 @@ preact_module_n = s.slice, preact_module_l = {
}
}, preact_module_u = 0, preact_module_t = function (n) {
return null != n && null == n.constructor;
}, m.prototype.setState = function (n, l) {
}, b.prototype.setState = function (n, l) {
var u;
u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = h({}, this.state), "function" == typeof n && (n = n(h({}, u), this.props)), n && h(u, n), null != n && this.__v && (l && this._sb.push(l), w(this));
}, m.prototype.forceUpdate = function (n) {
u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = v({}, this.state), "function" == typeof n && (n = n(v({}, u), this.props)), n && v(u, n), null != n && this.__v && (l && this._sb.push(l), w(this));
}, b.prototype.forceUpdate = function (n) {
this.__v && (this.__e = !0, n && this.__h.push(n), w(this));
}, m.prototype.render = k, i = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, preact_module_f = function (n, l) {
}, b.prototype.render = g, i = [], preact_module_r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, preact_module_f = function (n, l) {
return n.__v.__b - l.__v.__b;
}, x.__r = 0, preact_module_e = 0;
@ -1095,7 +1099,7 @@ signals_module_l("__h", function (n, r, i, t) {
if (t < 3 || 9 === t) r.__$f |= 2;
n(r, i, t);
});
m.prototype.shouldComponentUpdate = function (n, r) {
b.prototype.shouldComponentUpdate = function (n, r) {
var i = this.__$u;
if (!(i && void 0 !== i.s || 4 & this.__$f)) return !0;
if (3 & this.__$f) return !0;
@ -1254,7 +1258,7 @@ function Portal(props) {
const _this = this;
const container = props._container;
_this.componentWillUnmount = function () {
B(null, _this._temp);
q(null, _this._temp);
_this._temp = null;
_this._container = null;
};
@ -1294,7 +1298,7 @@ function Portal(props) {
}
// Render our wrapping element into temp.
B(y(ContextProvider, {
q(y(ContextProvider, {
context: _this.context
}, props._vnode), _this._temp);
}
@ -1508,32 +1512,95 @@ const store = ({
;// CONCATENATED MODULE: ./node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
var jsxRuntime_module_r = 0;
function jsxRuntime_module_o(o, e, n, t, f, l) {
var s,
i,
u = {};
for (i in e) "ref" == i ? s = e[i] : u[i] = e[i];
var a = {
type: o,
props: u,
var jsxRuntime_module_t = /["&<]/;
function jsxRuntime_module_n(r) {
if (0 === r.length || !1 === jsxRuntime_module_t.test(r)) return r;
for (var e = 0, n = 0, o = "", f = ""; n < r.length; n++) {
switch (r.charCodeAt(n)) {
case 34:
f = "&quot;";
break;
case 38:
f = "&amp;";
break;
case 60:
f = "&lt;";
break;
default:
continue;
}
n !== e && (o += r.slice(e, n)), o += f, e = n + 1;
}
return n !== e && (o += r.slice(e, n)), o;
}
var jsxRuntime_module_o = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
jsxRuntime_module_f = 0,
jsxRuntime_module_i = Array.isArray;
function jsxRuntime_module_u(e, t, n, o, i, u) {
var a,
c,
p = {};
for (c in t) "ref" == c ? a = t[c] : p[c] = t[c];
var l = {
type: e,
props: p,
key: n,
ref: s,
ref: a,
__k: null,
__: null,
__b: 0,
__e: null,
__d: void 0,
__c: null,
__h: null,
constructor: void 0,
__v: --jsxRuntime_module_r,
__v: --jsxRuntime_module_f,
__i: -1,
__source: f,
__self: l
__u: 0,
__source: i,
__self: u
};
if ("function" == typeof o && (s = o.defaultProps)) for (i in s) void 0 === u[i] && (u[i] = s[i]);
return preact_module_l.vnode && preact_module_l.vnode(a), a;
if ("function" == typeof e && (a = e.defaultProps)) for (c in a) void 0 === p[c] && (p[c] = a[c]);
return preact_module_l.vnode && preact_module_l.vnode(l), l;
}
function jsxRuntime_module_a(r) {
var t = jsxRuntime_module_u(e, {
tpl: r,
exprs: [].slice.call(arguments, 1)
});
return t.key = t.__v, t;
}
var jsxRuntime_module_c = {},
jsxRuntime_module_p = /[A-Z]/g;
function jsxRuntime_module_l(e, t) {
if (r.attr) {
var f = r.attr(e, t);
if ("string" == typeof f) return f;
}
if ("ref" === e || "key" === e) return "";
if ("style" === e && "object" == typeof t) {
var i = "";
for (var u in t) {
var a = t[u];
if (null != a && "" !== a) {
var l = "-" == u[0] ? u : jsxRuntime_module_c[u] || (jsxRuntime_module_c[u] = u.replace(jsxRuntime_module_p, "-$&").toLowerCase()),
_ = ";";
"number" != typeof a || l.startsWith("--") || jsxRuntime_module_o.test(l) || (_ = "px;"), i = i + l + ":" + a + _;
}
}
return e + '="' + i + '"';
}
return null == t || !1 === t || "function" == typeof t || "object" == typeof t ? "" : !0 === t ? e : e + '="' + jsxRuntime_module_n(t) + '"';
}
function jsxRuntime_module_(r) {
if (null == r || "boolean" == typeof r || "function" == typeof r) return null;
if ("object" == typeof r) {
if (void 0 === r.constructor) return r;
if (jsxRuntime_module_i(r)) {
for (var e = 0; e < r.length; e++) r[e] = jsxRuntime_module_(r[e]);
return r;
}
}
return jsxRuntime_module_n("" + r);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/interactivity/src/hooks.js
@ -1575,7 +1642,7 @@ function jsxRuntime_module_o(o, e, n, t, f, l) {
// Main context.
const context = G({});
const context = F({});
// WordPress Directives.
const directiveCallbacks = {};
@ -1711,12 +1778,12 @@ const Directives = ({
}), []);
// Create a fresh copy of the vnode element.
element = F(element, {
element = E(element, {
ref: elemRef
});
// Recursively render the wrapper for the next priority level.
const children = nextPriorityLevels.length > 0 ? jsxRuntime_module_o(Directives, {
const children = nextPriorityLevels.length > 0 ? jsxRuntime_module_u(Directives, {
directives: directives,
priorityLevels: nextPriorityLevels,
element: element,
@ -1773,7 +1840,7 @@ preact_module_l.vnode = vnode => {
const slotsContext = G();
const slotsContext = F();
const Fill = ({
slot,
children
@ -1801,7 +1868,7 @@ const SlotProvider = ({
return (
// TODO: We can change this to use deepsignal once this PR is merged.
// https://github.com/luisherranz/deepsignal/pull/38
jsxRuntime_module_o(slotsContext.Provider, {
jsxRuntime_module_u(slotsContext.Provider, {
value: signals_core_module_a({}),
children: children
})
@ -1865,7 +1932,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
mergeDeepSignals(currentValue.current, newValue, true);
return currentValue.current;
}, [newContext, inheritedValue]);
return jsxRuntime_module_o(Provider, {
return jsxRuntime_module_u(Provider, {
value: currentValue.current,
children: children
});
@ -2097,7 +2164,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
}) => {
// Preserve the initial inner HTML.
const cached = hooks_module_F(() => innerHTML, []);
return jsxRuntime_module_o(Type, {
return jsxRuntime_module_u(Type, {
dangerouslySetInnerHTML: {
__html: cached
},
@ -2137,27 +2204,27 @@ const mergeDeepSignals = (target, source, overwrite) => {
const name = typeof slot === 'string' ? slot : slot.name;
const position = slot.position || 'children';
if (position === 'before') {
return jsxRuntime_module_o(k, {
children: [jsxRuntime_module_o(Slot, {
return jsxRuntime_module_u(g, {
children: [jsxRuntime_module_u(Slot, {
name: name
}), children]
});
}
if (position === 'after') {
return jsxRuntime_module_o(k, {
children: [children, jsxRuntime_module_o(Slot, {
return jsxRuntime_module_u(g, {
children: [children, jsxRuntime_module_u(Slot, {
name: name
})]
});
}
if (position === 'replace') {
return jsxRuntime_module_o(Slot, {
return jsxRuntime_module_u(Slot, {
name: name,
children: children
});
}
if (position === 'children') {
element.props.children = jsxRuntime_module_o(Slot, {
element.props.children = jsxRuntime_module_u(Slot, {
name: name,
children: element.props.children
});
@ -2183,7 +2250,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
const slot = evaluate(fill, {
context: contextValue
});
return jsxRuntime_module_o(Fill, {
return jsxRuntime_module_u(Fill, {
slot: slot,
children: children
});
@ -2196,7 +2263,7 @@ const mergeDeepSignals = (target, source, overwrite) => {
props: {
children
}
}) => jsxRuntime_module_o(SlotProvider, {
}) => jsxRuntime_module_u(SlotProvider, {
children: children
}), {
priority: 4
@ -2382,7 +2449,7 @@ const renderRegions = page => {
document.querySelectorAll(`[${attrName}]`).forEach(region => {
const id = region.getAttribute(attrName);
const fragment = getRegionRootFragment(region);
B(page.regions[id], fragment);
q(page.regions[id], fragment);
});
if (page.title) {
document.title = page.title;
@ -2434,7 +2501,7 @@ const init = async () => {
if (!hydratedIslands.has(node)) {
const fragment = getRegionRootFragment(node);
const vdom = toVdom(node);
E(vdom, fragment);
B(vdom, fragment);
}
});

File diff suppressed because one or more lines are too long

View File

@ -477,7 +477,7 @@ function CreatePatternModal({
onChange: setCategoryTerms,
categoryMap: categoryMap
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
checked: syncType === PATTERN_SYNC_TYPES.full,
onChange: () => {

File diff suppressed because one or more lines are too long

View File

@ -382,7 +382,7 @@ function ReusableBlockConvertButton({
onChange: setTitle,
placeholder: (0,external_wp_i18n_namespaceObject.__)('My pattern')
}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, {
label: (0,external_wp_i18n_namespaceObject.__)('Synced'),
label: (0,external_wp_i18n_namespaceObject._x)('Synced', 'Option that makes an individual pattern synchronized'),
help: (0,external_wp_i18n_namespaceObject.__)('Editing the pattern will update it anywhere it is used.'),
checked: !syncType,
onChange: () => {

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-alpha-57108';
$wp_version = '6.5-alpha-57109';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.