Build Tools: Update the @wordpress packages.

This brings support for the custom fields meta box to the block editor.

The `webpack` and `copy-webpack-plugin` packages have also been updated.

See #45145.
Fixes #45257.


Built from https://develop.svn.wordpress.org/branches/5.0@43861


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2018-11-03 07:57:54 +00:00
parent c53ad88930
commit 325cb107d1
39 changed files with 117 additions and 45 deletions

View File

@ -208,6 +208,29 @@ if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
} }
} }
// Image sizes.
$image_sizes = get_intermediate_image_sizes();
$image_sizes[] = 'full';
/** This filter is documented in wp-admin/includes/media.php */
$image_size_names = apply_filters(
'image_size_names_choose',
array(
'thumbnail' => __( 'Thumbnail' ),
'medium' => __( 'Medium' ),
'large' => __( 'Large' ),
'full' => __( 'Full Size' ),
)
);
$available_image_sizes = array();
foreach ( $image_sizes as $image_size_slug ) {
$available_image_sizes[] = array(
'slug' => $image_size_slug,
'name' => isset( $image_size_names[ $image_size_slug ] ) ? $image_size_names[ $image_size_slug ] : $image_size_slug,
);
}
// Lock settings. // Lock settings.
$user_id = wp_check_post_lock( $post->ID ); $user_id = wp_check_post_lock( $post->ID );
if ( $user_id ) { if ( $user_id ) {
@ -263,12 +286,17 @@ $editor_settings = array(
'maxUploadFileSize' => $max_upload_size, 'maxUploadFileSize' => $max_upload_size,
'allowedMimeTypes' => get_allowed_mime_types(), 'allowedMimeTypes' => get_allowed_mime_types(),
'styles' => $styles, 'styles' => $styles,
'availableImageSizes' => $available_image_sizes,
'postLock' => $lock_details, 'postLock' => $lock_details,
'postLockUtils' => array( 'postLockUtils' => array(
'nonce' => wp_create_nonce( 'lock-post_' . $post->ID ), 'nonce' => wp_create_nonce( 'lock-post_' . $post->ID ),
'unlockNonce' => wp_create_nonce( 'update-post_' . $post->ID ), 'unlockNonce' => wp_create_nonce( 'update-post_' . $post->ID ),
'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'ajaxUrl' => admin_url( 'admin-ajax.php' ),
), ),
// Whether or not to load the 'postcustom' meta box is stored as a user meta
// field so that we're not always loading its assets.
'enableCustomFields' => (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ),
); );
$autosave = wp_get_post_autosave( $post_ID ); $autosave = wp_get_post_autosave( $post_ID );

View File

@ -1361,7 +1361,10 @@ function register_and_do_post_meta_boxes( $post ) {
add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) );
if ( post_type_supports($post_type, 'custom-fields') ) if ( post_type_supports($post_type, 'custom-fields') )
add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); $screen = get_current_screen();
if ( ! $screen || ! $screen->is_block_editor() || (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ) ) {
add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => false, '__block_editor_compatible_meta_box' => true ) );
}
/** /**
* Fires in the middle of built-in meta box registration. * Fires in the middle of built-in meta box registration.

View File

@ -1958,7 +1958,7 @@ function get_block_categories( $post ) {
array( array(
'slug' => 'common', 'slug' => 'common',
'title' => __( 'Common Blocks' ), 'title' => __( 'Common Blocks' ),
'icon' => 'screenoptions', 'icon' => null,
), ),
array( array(
'slug' => 'formatting', 'slug' => 'formatting',
@ -2060,6 +2060,10 @@ function the_block_editor_meta_boxes() {
<form class="metabox-base-form"> <form class="metabox-base-form">
<?php the_block_editor_meta_box_post_form_hidden_fields( $post ); ?> <?php the_block_editor_meta_box_post_form_hidden_fields( $post ); ?>
</form> </form>
<form id="toggle-custom-fields-form" method="post" action="<?php echo esc_attr( admin_url( 'post.php' ) ); ?>">
<?php wp_nonce_field( 'toggle-custom-fields' ); ?>
<input type="hidden" name="action" value="toggle-custom-fields" />
</form>
<?php foreach ( $locations as $location ) : ?> <?php foreach ( $locations as $location ) : ?>
<form class="metabox-location-<?php echo esc_attr( $location ); ?>"> <form class="metabox-location-<?php echo esc_attr( $location ); ?>">
<div id="poststuff" class="sidebar-open"> <div id="poststuff" class="sidebar-open">
@ -2135,6 +2139,29 @@ function the_block_editor_meta_boxes() {
printf( "<script type='text/javascript'>\n%s\n</script>\n", trim( $script ) ); printf( "<script type='text/javascript'>\n%s\n</script>\n", trim( $script ) );
} }
/**
* If the 'postcustom' meta box is enabled, then we need to perform some
* extra initialization on it.
*/
$enable_custom_fields = (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true );
if ( $enable_custom_fields ) {
$script = "( function( $ ) {
if ( $('#postcustom').length ) {
$( '#the-list' ).wpList( {
addBefore: function( s ) {
s.data += '&post_id=$post->ID';
return s;
},
addAfter: function() {
$('table#list-table').show();
}
});
}
} )( jQuery );";
wp_enqueue_script( 'wp-lists' );
wp_add_inline_script( 'wp-lists', $script );
}
// Reset meta box data. // Reset meta box data.
$wp_meta_boxes = $_original_meta_boxes; $wp_meta_boxes = $_original_meta_boxes;
} }

View File

@ -280,6 +280,18 @@ case 'preview':
wp_redirect($url); wp_redirect($url);
exit(); exit();
case 'toggle-custom-fields':
check_admin_referer( 'toggle-custom-fields' );
$current_user_id = get_current_user_id();
if ( $current_user_id ) {
$enable_custom_fields = (bool) get_user_meta( $current_user_id, 'enable_custom_fields', true );
update_user_meta( $current_user_id, 'enable_custom_fields', ! $enable_custom_fields );
}
wp_safe_redirect( wp_get_referer() );
exit();
default: default:
/** /**
* Fires for a given custom post action request. * Fires for a given custom post action request.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
this.wp=this.wp||{},this.wp.date=function(M){var b={};function z(p){if(b[p])return b[p].exports;var O=b[p]={i:p,l:!1,exports:{}};return M[p].call(O.exports,O,O.exports,z),O.l=!0,O.exports}return z.m=M,z.c=b,z.d=function(M,b,p){z.o(M,b)||Object.defineProperty(M,b,{enumerable:!0,get:p})},z.r=function(M){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},z.t=function(M,b){if(1&b&&(M=z(M)),8&b)return M;if(4&b&&"object"==typeof M&&M&&M.__esModule)return M;var p=Object.create(null);if(z.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:M}),2&b&&"string"!=typeof M)for(var O in M)z.d(p,O,function(b){return M[b]}.bind(null,O));return p},z.n=function(M){var b=M&&M.__esModule?function(){return M.default}:function(){return M};return z.d(b,"a",b),b},z.o=function(M,b){return Object.prototype.hasOwnProperty.call(M,b)},z.p="",z(z.s=262)}({172:function(M,b,z){(M.exports=z(263)).tz.load(z(264))},26:function(M,b){!function(){M.exports=this.moment}()},262:function(M,b,z){"use strict";z.r(b),z.d(b,"setSettings",function(){return c}),z.d(b,"__experimentalGetSettings",function(){return W}),z.d(b,"getSettings",function(){return d}),z.d(b,"moment",function(){return X}),z.d(b,"format",function(){return L}),z.d(b,"date",function(){return f}),z.d(b,"gmdate",function(){return a}),z.d(b,"dateI18n",function(){return N});var p=z(26),O=z.n(p),A=(z(172),z(265),z(30)),q=z.n(A),o={l10n:{locale:"en_US",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:" % s from now",past:"% s ago"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:""}};function c(M){o=M;var b=O.a.locale();O.a.updateLocale(M.l10n.locale,{parentLocale:b,months:M.l10n.months,monthsShort:M.l10n.monthsShort,weekdays:M.l10n.weekdays,weekdaysShort:M.l10n.weekdaysShort,meridiem:function(b,z,p){return b<12?p?M.l10n.meridiem.am:M.l10n.meridiem.AM:p?M.l10n.meridiem.pm:M.l10n.meridiem.PM},longDateFormat:{LT:M.formats.time,LTS:null,L:null,LL:M.formats.date,LLL:M.formats.datetime,LLLL:null},relativeTime:{future:M.l10n.relative.future,past:M.l10n.relative.past,s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}}),O.a.locale(b),R()}function W(){return o}function d(){return q()("wp.date.getSettings",{version:"4.4",alternative:"wp.date.__experimentalGetSettings",plugin:"Gutenberg",hint:"Unstable APIs are strongly discouraged to be used, and are subject to removal without notice."}),o}function R(){O.a.tz.add(O.a.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-o.timezone.offset||0]}))}var X=function(){for(var M=arguments.length,b=new Array(M),z=0;z<M;z++)b[z]=arguments[z];return O.a.tz.apply(O.a,b.concat(["WP"]))},B=60,n={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(M){var b=M.format("D");return M.format("Do").replace(b,"")},w:"d",z:function(M){return""+parseInt(M.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(M){return M.daysInMonth()},L:function(M){return M.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(M){var b=O()(M).utcOffset(60),z=parseInt(b.format("s"),10),p=parseInt(b.format("m"),10),A=parseInt(b.format("H"),10);return parseInt((z+60*p+3600*A)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(M){return M.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(M){var b=M.format("Z"),z="-"===b[0]?-1:1,p=b.substring(1).split(":");return z*(p[0]*B+p[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function L(M){var b,z,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,A=[],q=O()(p);for(b=0;b<M.length;b++)"\\"!==(z=M[b])?z in n?"string"!=typeof n[z]?A.push("["+n[z](q)+"]"):A.push(n[z]):A.push("["+z+"]"):(b++,A.push("["+M[b]+"]"));return A=A.join("[]"),q.format(A)}function f(M){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=o.timezone.offset*B;return L(M,O()(b).utcOffset(z,!0))}function a(M){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return L(M,O()(b).utc())}function N(M){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:o.timezone.offset*B,p=O()(b).utcOffset(z,!0);return p.locale(o.l10n.locale),L(M,p)}R()},263:function(M,b,z){var p,O,A;//! moment-timezone.js this.wp=this.wp||{},this.wp.date=function(M){var b={};function z(p){if(b[p])return b[p].exports;var O=b[p]={i:p,l:!1,exports:{}};return M[p].call(O.exports,O,O.exports,z),O.l=!0,O.exports}return z.m=M,z.c=b,z.d=function(M,b,p){z.o(M,b)||Object.defineProperty(M,b,{enumerable:!0,get:p})},z.r=function(M){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},z.t=function(M,b){if(1&b&&(M=z(M)),8&b)return M;if(4&b&&"object"==typeof M&&M&&M.__esModule)return M;var p=Object.create(null);if(z.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:M}),2&b&&"string"!=typeof M)for(var O in M)z.d(p,O,function(b){return M[b]}.bind(null,O));return p},z.n=function(M){var b=M&&M.__esModule?function(){return M.default}:function(){return M};return z.d(b,"a",b),b},z.o=function(M,b){return Object.prototype.hasOwnProperty.call(M,b)},z.p="",z(z.s=262)}({172:function(M,b,z){(M.exports=z(263)).tz.load(z(264))},26:function(M,b){!function(){M.exports=this.moment}()},262:function(M,b,z){"use strict";z.r(b),z.d(b,"setSettings",function(){return c}),z.d(b,"__experimentalGetSettings",function(){return W}),z.d(b,"getSettings",function(){return d}),z.d(b,"moment",function(){return X}),z.d(b,"format",function(){return L}),z.d(b,"date",function(){return f}),z.d(b,"gmdate",function(){return a}),z.d(b,"dateI18n",function(){return N});var p=z(26),O=z.n(p),A=(z(172),z(265),z(27)),q=z.n(A),o={l10n:{locale:"en_US",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:" % s from now",past:"% s ago"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:""}};function c(M){o=M;var b=O.a.locale();O.a.updateLocale(M.l10n.locale,{parentLocale:b,months:M.l10n.months,monthsShort:M.l10n.monthsShort,weekdays:M.l10n.weekdays,weekdaysShort:M.l10n.weekdaysShort,meridiem:function(b,z,p){return b<12?p?M.l10n.meridiem.am:M.l10n.meridiem.AM:p?M.l10n.meridiem.pm:M.l10n.meridiem.PM},longDateFormat:{LT:M.formats.time,LTS:null,L:null,LL:M.formats.date,LLL:M.formats.datetime,LLLL:null},relativeTime:{future:M.l10n.relative.future,past:M.l10n.relative.past,s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}}),O.a.locale(b),R()}function W(){return o}function d(){return q()("wp.date.getSettings",{version:"4.4",alternative:"wp.date.__experimentalGetSettings",plugin:"Gutenberg",hint:"Unstable APIs are strongly discouraged to be used, and are subject to removal without notice."}),o}function R(){O.a.tz.add(O.a.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-o.timezone.offset||0]}))}var X=function(){for(var M=arguments.length,b=new Array(M),z=0;z<M;z++)b[z]=arguments[z];return O.a.tz.apply(O.a,b.concat(["WP"]))},B=60,n={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(M){var b=M.format("D");return M.format("Do").replace(b,"")},w:"d",z:function(M){return""+parseInt(M.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(M){return M.daysInMonth()},L:function(M){return M.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(M){var b=O()(M).utcOffset(60),z=parseInt(b.format("s"),10),p=parseInt(b.format("m"),10),A=parseInt(b.format("H"),10);return parseInt((z+60*p+3600*A)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(M){return M.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(M){var b=M.format("Z"),z="-"===b[0]?-1:1,p=b.substring(1).split(":");return z*(p[0]*B+p[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function L(M){var b,z,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,A=[],q=O()(p);for(b=0;b<M.length;b++)"\\"!==(z=M[b])?z in n?"string"!=typeof n[z]?A.push("["+n[z](q)+"]"):A.push(n[z]):A.push("["+z+"]"):(b++,A.push("["+M[b]+"]"));return A=A.join("[]"),q.format(A)}function f(M){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=o.timezone.offset*B;return L(M,O()(b).utcOffset(z,!0))}function a(M){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return L(M,O()(b).utc())}function N(M){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:o.timezone.offset*B,p=O()(b).utcOffset(z,!0);return p.locale(o.l10n.locale),L(M,p)}R()},263:function(M,b,z){var p,O,A;//! moment-timezone.js
//! version : 0.5.23 //! version : 0.5.23
//! Copyright (c) JS Foundation and other contributors //! Copyright (c) JS Foundation and other contributors
//! license : MIT //! license : MIT
@ -18,4 +18,4 @@ this.wp=this.wp||{},this.wp.date=function(M){var b={};function z(p){if(b[p])retu
//! Copyright (c) JS Foundation and other contributors //! Copyright (c) JS Foundation and other contributors
//! license : MIT //! license : MIT
//! github.com/moment/moment-timezone //! github.com/moment/moment-timezone
!function(q,o){"use strict";M.exports?M.exports=o(z(172)):(O=[z(26)],void 0===(A="function"==typeof(p=o)?p.apply(b,O):p)||(M.exports=A))}(0,function(M){"use strict";if(!M.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var b="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",z=1e-6;function p(M,p){for(var O="",A=Math.abs(M),q=Math.floor(A),o=function(M,p){for(var O,A=".",q="";p>0;)p-=1,M*=60,O=Math.floor(M+z),A+=b[O],M-=O,O&&(q+=A,A="");return q}(A-q,Math.min(~~p,10));q>0;)O=b[q%60]+O,q=Math.floor(q/60);return M<0&&(O="-"+O),O&&o?O+o:(o||"-"!==O)&&(O||o)||"0"}function O(M){return function(M){if(!M.name)throw new Error("Missing name");if(!M.abbrs)throw new Error("Missing abbrs");if(!M.untils)throw new Error("Missing untils");if(!M.offsets)throw new Error("Missing offsets");if(M.offsets.length!==M.untils.length||M.offsets.length!==M.abbrs.length)throw new Error("Mismatched array lengths")}(M),[M.name,function(M){var b,z,O=0,A=[],q=[],o=[],c={};for(b=0;b<M.abbrs.length;b++)void 0===c[z=M.abbrs[b]+"|"+M.offsets[b]]&&(c[z]=O,A[O]=M.abbrs[b],q[O]=p(Math.round(60*M.offsets[b])/60,1),O++),o[b]=p(c[z],0);return A.join(" ")+"|"+q.join(" ")+"|"+o.join("")}(M),function(M){var b,z=[],O=0;for(b=0;b<M.length-1;b++)z[b]=p(Math.round((M[b]-O)/1e3)/60,1),O=M[b];return z.join(" ")}(M.untils)+function(M){if(!M)return"";if(M<1e3)return"|"+M;var b=String(0|M).length-2;return"|"+Math.round(M/Math.pow(10,b))+"e"+b}(M.population)].join("|")}function A(M,b){var z;if(M.length!==b.length)return!1;for(z=0;z<M.length;z++)if(M[z]!==b[z])return!1;return!0}function q(M,b){return A(M.offsets,b.offsets)&&A(M.abbrs,b.abbrs)&&A(M.untils,b.untils)}function o(M,b){var z=[],p=[];return M.links&&(p=M.links.slice()),function(M,b,z,p){var O,A,o,c,W,d,R=[];for(O=0;O<M.length;O++){for(d=!1,o=M[O],A=0;A<R.length;A++)q(o,c=(W=R[A])[0])&&(o.population>c.population?W.unshift(o):o.population===c.population&&p&&p[o.name]?W.unshift(o):W.push(o),d=!0);d||R.push([o])}for(O=0;O<R.length;O++)for(W=R[O],b.push(W[0]),A=1;A<W.length;A++)z.push(W[0].name+"|"+W[A].name)}(M.zones,z,p,b),{version:M.version,zones:z,links:p.sort()}}function c(M,b,z){var p=Array.prototype.slice,O=function(M,b,z){var p,O,A=0,q=M.length+1;for(z||(z=b),b>z&&(O=b,b=z,z=O),O=0;O<M.length;O++)null!=M[O]&&((p=new Date(M[O]).getUTCFullYear())<b&&(A=O+1),p>z&&(q=Math.min(q,O+1)));return[A,q]}(M.untils,b,z),A=p.apply(M.untils,O);return A[A.length-1]=null,{name:M.name,abbrs:p.apply(M.abbrs,O),untils:A,offsets:p.apply(M.offsets,O),population:M.population}}return M.tz.pack=O,M.tz.packBase60=p,M.tz.createLinks=o,M.tz.filterYears=c,M.tz.filterLinkPack=function(M,b,z,p){var A,q,W=M.zones,d=[];for(A=0;A<W.length;A++)d[A]=c(W[A],b,z);for(q=o({zones:d,links:M.links.slice(),version:M.version},p),A=0;A<q.zones.length;A++)q.zones[A]=O(q.zones[A]);return q},M})},30:function(M,b){!function(){M.exports=this.wp.deprecated}()}}); !function(q,o){"use strict";M.exports?M.exports=o(z(172)):(O=[z(26)],void 0===(A="function"==typeof(p=o)?p.apply(b,O):p)||(M.exports=A))}(0,function(M){"use strict";if(!M.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var b="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",z=1e-6;function p(M,p){for(var O="",A=Math.abs(M),q=Math.floor(A),o=function(M,p){for(var O,A=".",q="";p>0;)p-=1,M*=60,O=Math.floor(M+z),A+=b[O],M-=O,O&&(q+=A,A="");return q}(A-q,Math.min(~~p,10));q>0;)O=b[q%60]+O,q=Math.floor(q/60);return M<0&&(O="-"+O),O&&o?O+o:(o||"-"!==O)&&(O||o)||"0"}function O(M){return function(M){if(!M.name)throw new Error("Missing name");if(!M.abbrs)throw new Error("Missing abbrs");if(!M.untils)throw new Error("Missing untils");if(!M.offsets)throw new Error("Missing offsets");if(M.offsets.length!==M.untils.length||M.offsets.length!==M.abbrs.length)throw new Error("Mismatched array lengths")}(M),[M.name,function(M){var b,z,O=0,A=[],q=[],o=[],c={};for(b=0;b<M.abbrs.length;b++)void 0===c[z=M.abbrs[b]+"|"+M.offsets[b]]&&(c[z]=O,A[O]=M.abbrs[b],q[O]=p(Math.round(60*M.offsets[b])/60,1),O++),o[b]=p(c[z],0);return A.join(" ")+"|"+q.join(" ")+"|"+o.join("")}(M),function(M){var b,z=[],O=0;for(b=0;b<M.length-1;b++)z[b]=p(Math.round((M[b]-O)/1e3)/60,1),O=M[b];return z.join(" ")}(M.untils)+function(M){if(!M)return"";if(M<1e3)return"|"+M;var b=String(0|M).length-2;return"|"+Math.round(M/Math.pow(10,b))+"e"+b}(M.population)].join("|")}function A(M,b){var z;if(M.length!==b.length)return!1;for(z=0;z<M.length;z++)if(M[z]!==b[z])return!1;return!0}function q(M,b){return A(M.offsets,b.offsets)&&A(M.abbrs,b.abbrs)&&A(M.untils,b.untils)}function o(M,b){var z=[],p=[];return M.links&&(p=M.links.slice()),function(M,b,z,p){var O,A,o,c,W,d,R=[];for(O=0;O<M.length;O++){for(d=!1,o=M[O],A=0;A<R.length;A++)q(o,c=(W=R[A])[0])&&(o.population>c.population?W.unshift(o):o.population===c.population&&p&&p[o.name]?W.unshift(o):W.push(o),d=!0);d||R.push([o])}for(O=0;O<R.length;O++)for(W=R[O],b.push(W[0]),A=1;A<W.length;A++)z.push(W[0].name+"|"+W[A].name)}(M.zones,z,p,b),{version:M.version,zones:z,links:p.sort()}}function c(M,b,z){var p=Array.prototype.slice,O=function(M,b,z){var p,O,A=0,q=M.length+1;for(z||(z=b),b>z&&(O=b,b=z,z=O),O=0;O<M.length;O++)null!=M[O]&&((p=new Date(M[O]).getUTCFullYear())<b&&(A=O+1),p>z&&(q=Math.min(q,O+1)));return[A,q]}(M.untils,b,z),A=p.apply(M.untils,O);return A[A.length-1]=null,{name:M.name,abbrs:p.apply(M.abbrs,O),untils:A,offsets:p.apply(M.offsets,O),population:M.population}}return M.tz.pack=O,M.tz.packBase60=p,M.tz.createLinks=o,M.tz.filterYears=c,M.tz.filterLinkPack=function(M,b,z,p){var A,q,W=M.zones,d=[];for(A=0;A<W.length;A++)d[A]=c(W[A],b,z);for(q=o({zones:d,links:M.links.slice(),version:M.version},p),A=0;A<q.zones.length;A++)q.zones[A]=O(q.zones[A]);return q},M})},27:function(M,b){!function(){M.exports=this.wp.deprecated}()}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
this.wp=this.wp||{},this.wp.i18n=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=276)}({276:function(t,e,r){"use strict";r.r(e),r.d(e,"setLocaleData",function(){return c}),r.d(e,"__",function(){return h}),r.d(e,"_x",function(){return p}),r.d(e,"_n",function(){return f}),r.d(e,"_nx",function(){return d}),r.d(e,"sprintf",function(){return g});var n,i=r(97),s=r.n(i),o=r(51),l=r.n(o),a=l()(console.error);function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{"":{}},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";n||(n=new s.a({domain:"default",locale_data:{default:{"":{}}}})),n.options.locale_data[e]=Object.assign({},n.options.locale_data[e],t)}var u=l()(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;try{return(n||c(),n).dcnpgettext(t,e,r,i,s)}catch(t){return a("Jed localization error: \n\n"+t.toString()),r}});function h(t,e){return u(e,void 0,t)}function p(t,e,r){return u(r,e,t)}function f(t,e,r,n){return u(n,void 0,t,e,r)}function d(t,e,r,n,i){return u(i,n,t,e,r)}function g(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return s.a.sprintf.apply(s.a,[t].concat(r))}catch(e){return a("Jed sprintf error: \n\n"+e.toString()),t}}},51:function(t,e,r){t.exports=function(t,e){var r,n,i,s=0;function o(){var e,o,l=n,a=arguments.length;t:for(;l;){if(l.args.length===arguments.length){for(o=0;o<a;o++)if(l.args[o]!==arguments[o]){l=l.next;continue t}return l!==n&&(l===i&&(i=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(e=new Array(a),o=0;o<a;o++)e[o]=arguments[o];return l={args:e,val:t.apply(null,e)},n?(n.prev=l,l.next=n):i=l,s===r?(i=i.prev).next=null:s++,n=l,l.val}return e&&e.maxSize&&(r=e.maxSize),o.clear=function(){n=null,i=null,s=0},o}},97:function(t,e,r){ this.wp=this.wp||{},this.wp.i18n=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=276)}({276:function(t,e,r){"use strict";r.r(e),r.d(e,"setLocaleData",function(){return c}),r.d(e,"__",function(){return h}),r.d(e,"_x",function(){return p}),r.d(e,"_n",function(){return f}),r.d(e,"_nx",function(){return d}),r.d(e,"sprintf",function(){return g});var n,i=r(97),s=r.n(i),o=r(50),l=r.n(o),a=l()(console.error);function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{"":{}},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";n||(n=new s.a({domain:"default",locale_data:{default:{"":{}}}})),n.options.locale_data[e]=Object.assign({},n.options.locale_data[e],t)}var u=l()(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;try{return(n||c(),n).dcnpgettext(t,e,r,i,s)}catch(t){return a("Jed localization error: \n\n"+t.toString()),r}});function h(t,e){return u(e,void 0,t)}function p(t,e,r){return u(r,e,t)}function f(t,e,r,n){return u(n,void 0,t,e,r)}function d(t,e,r,n,i){return u(i,n,t,e,r)}function g(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return s.a.sprintf.apply(s.a,[t].concat(r))}catch(e){return a("Jed sprintf error: \n\n"+e.toString()),t}}},50:function(t,e,r){t.exports=function(t,e){var r,n,i,s=0;function o(){var e,o,l=n,a=arguments.length;t:for(;l;){if(l.args.length===arguments.length){for(o=0;o<a;o++)if(l.args[o]!==arguments[o]){l=l.next;continue t}return l!==n&&(l===i&&(i=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(e=new Array(a),o=0;o<a;o++)e[o]=arguments[o];return l={args:e,val:t.apply(null,e)},n?(n.prev=l,l.next=n):i=l,s===r?(i=i.prev).next=null:s++,n=l,l.val}return e&&e.maxSize&&(r=e.maxSize),o.clear=function(){n=null,i=null,s=0},o}},97:function(t,e,r){
/** /**
* @preserve jed.js https://github.com/SlexAxton/Jed * @preserve jed.js https://github.com/SlexAxton/Jed
*/ */

View File

@ -1 +1 @@
this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=324)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},15:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",function(){return e})},19:function(t,n,r){"use strict";var e=r(32);function u(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n<t.length;n++)r[n]=t[n];return r}}(t)||Object(e.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(n,"a",function(){return u})},2:function(t,n){!function(){t.exports=this.lodash}()},32:function(t,n,r){"use strict";function e(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(n,"a",function(){return e})},324:function(t,n,r){"use strict";r.r(n);var e=r(15),u=r(19),c=r(2),o=r(1);function i(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(c.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",function(){return a}),r.d(n,"TAB",function(){return f}),r.d(n,"ENTER",function(){return l}),r.d(n,"ESCAPE",function(){return d}),r.d(n,"SPACE",function(){return b}),r.d(n,"LEFT",function(){return s}),r.d(n,"UP",function(){return j}),r.d(n,"RIGHT",function(){return O}),r.d(n,"DOWN",function(){return p}),r.d(n,"DELETE",function(){return y}),r.d(n,"F10",function(){return v}),r.d(n,"ALT",function(){return h}),r.d(n,"CTRL",function(){return m}),r.d(n,"COMMAND",function(){return g}),r.d(n,"SHIFT",function(){return S}),r.d(n,"rawShortcut",function(){return w}),r.d(n,"displayShortcutList",function(){return C}),r.d(n,"displayShortcut",function(){return P}),r.d(n,"shortcutAriaLabel",function(){return E}),r.d(n,"isKeyboardEvent",function(){return _});var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(c.mapValues)(A,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return Object(u.a)(t(r)).concat([n.toLowerCase()]).join("+")}}),C=Object(c.mapValues)(A,function(t){return function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=o(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(o).reduce(function(t,n){var r=Object(c.get)(f,n,n);return a?Object(u.a)(t).concat([r]):Object(u.a)(t).concat([r,"+"])},[]),d=Object(c.capitalize)(n);return Object(u.a)(l).concat([d])}}),P=Object(c.mapValues)(C,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}}),E=Object(c.mapValues)(A,function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(o.__)("Comma")),Object(e.a)(r,".",Object(o.__)("Period")),Object(e.a)(r,"`",Object(o.__)("Backtick")),r);return Object(u.a)(t(a)).concat([n]).map(function(t){return Object(c.capitalize)(Object(c.get)(l,t,t))}).join(f?" ":" + ")}}),_=Object(c.mapValues)(A,function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every(function(t){return n["".concat(t,"Key")]})&&(r?n.key===r:Object(c.includes)(u,n.key.toLowerCase()))}})}}); this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=324)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},15:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",function(){return e})},19:function(t,n,r){"use strict";var e=r(33);function u(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n<t.length;n++)r[n]=t[n];return r}}(t)||Object(e.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(n,"a",function(){return u})},2:function(t,n){!function(){t.exports=this.lodash}()},324:function(t,n,r){"use strict";r.r(n);var e=r(15),u=r(19),c=r(2),o=r(1);function i(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).navigator.platform;return-1!==t.indexOf("Mac")||Object(c.includes)(["iPad","iPhone"],t)}r.d(n,"BACKSPACE",function(){return a}),r.d(n,"TAB",function(){return f}),r.d(n,"ENTER",function(){return l}),r.d(n,"ESCAPE",function(){return d}),r.d(n,"SPACE",function(){return b}),r.d(n,"LEFT",function(){return s}),r.d(n,"UP",function(){return j}),r.d(n,"RIGHT",function(){return O}),r.d(n,"DOWN",function(){return p}),r.d(n,"DELETE",function(){return y}),r.d(n,"F10",function(){return v}),r.d(n,"ALT",function(){return h}),r.d(n,"CTRL",function(){return m}),r.d(n,"COMMAND",function(){return g}),r.d(n,"SHIFT",function(){return S}),r.d(n,"rawShortcut",function(){return w}),r.d(n,"displayShortcutList",function(){return C}),r.d(n,"displayShortcut",function(){return P}),r.d(n,"shortcutAriaLabel",function(){return E}),r.d(n,"isKeyboardEvent",function(){return _});var a=8,f=9,l=13,d=27,b=32,s=37,j=38,O=39,p=40,y=46,v=121,h="alt",m="ctrl",g="meta",S="shift",A={primary:function(t){return t()?[g]:[m]},primaryShift:function(t){return t()?[S,g]:[m,S]},primaryAlt:function(t){return t()?[h,g]:[m,h]},secondary:function(t){return t()?[S,h,g]:[m,S,h]},access:function(t){return t()?[m,h]:[S,h]},ctrl:function(){return[m]},alt:function(){return[h]},ctrlShift:function(){return[m,S]},shift:function(){return[S]},shiftAlt:function(){return[S,h]}},w=Object(c.mapValues)(A,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return Object(u.a)(t(r)).concat([n.toLowerCase()]).join("+")}}),C=Object(c.mapValues)(A,function(t){return function(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=o(),f=(r={},Object(e.a)(r,h,a?"⌥":"Alt"),Object(e.a)(r,m,a?"^":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(o).reduce(function(t,n){var r=Object(c.get)(f,n,n);return a?Object(u.a)(t).concat([r]):Object(u.a)(t).concat([r,"+"])},[]),d=Object(c.capitalize)(n);return Object(u.a)(l).concat([d])}}),P=Object(c.mapValues)(C,function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}}),E=Object(c.mapValues)(A,function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,m,"Control"),Object(e.a)(r,h,f?"Option":"Alt"),Object(e.a)(r,",",Object(o.__)("Comma")),Object(e.a)(r,".",Object(o.__)("Period")),Object(e.a)(r,"`",Object(o.__)("Backtick")),r);return Object(u.a)(t(a)).concat([n]).map(function(t){return Object(c.capitalize)(Object(c.get)(l,t,t))}).join(f?" ":" + ")}}),_=Object(c.mapValues)(A,function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e);return!!u.every(function(t){return n["".concat(t,"Key")]})&&(r?n.key===r:Object(c.includes)(u,n.key.toLowerCase()))}})},33:function(t,n,r){"use strict";function e(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(n,"a",function(){return e})}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
this.wp=this.wp||{},this.wp.shortcode=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=298)}({2:function(t,e){!function(){t.exports=this.lodash}()},298:function(t,e,n){"use strict";n.r(e),n.d(e,"next",function(){return u}),n.d(e,"replace",function(){return o}),n.d(e,"string",function(){return c}),n.d(e,"regexp",function(){return s}),n.d(e,"attrs",function(){return a}),n.d(e,"fromMatch",function(){return f});var r=n(2),i=n(51);function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){var r=arguments;return e.replace(s(t),function(t,e,i,u,o,c,s,a){if("["===e&&"]"===a)return t;var l=n(f(r));return l?e+l+a:t})}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()(function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}});function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)(function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,function(t,n){e.set(n,t)}))},{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,function(e,n){t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},51:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o<s;o++)if(c.args[o]!==arguments[o]){c=c.next;continue t}return c!==r&&(c===i&&(i=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(e=new Array(s),o=0;o<s;o++)e[o]=arguments[o];return c={args:e,val:t.apply(null,e)},r?(r.prev=c,c.next=r):i=c,u===n?(i=i.prev).next=null:u++,r=c,c.val}return e&&e.maxSize&&(n=e.maxSize),o.clear=function(){r=null,i=null,u=0},o}}}); this.wp=this.wp||{},this.wp.shortcode=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=298)}({2:function(t,e){!function(){t.exports=this.lodash}()},298:function(t,e,n){"use strict";n.r(e),n.d(e,"next",function(){return u}),n.d(e,"replace",function(){return o}),n.d(e,"string",function(){return c}),n.d(e,"regexp",function(){return s}),n.d(e,"attrs",function(){return a}),n.d(e,"fromMatch",function(){return f});var r=n(2),i=n(50);function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){var r=arguments;return e.replace(s(t),function(t,e,i,u,o,c,s,a){if("["===e&&"]"===a)return t;var l=n(f(r));return l?e+l+a:t})}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()(function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}});function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)(function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,function(t,n){e.set(n,t)}))},{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,function(e,n){t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},50:function(t,e,n){t.exports=function(t,e){var n,r,i,u=0;function o(){var e,o,c=r,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o<s;o++)if(c.args[o]!==arguments[o]){c=c.next;continue t}return c!==r&&(c===i&&(i=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(e=new Array(s),o=0;o<s;o++)e[o]=arguments[o];return c={args:e,val:t.apply(null,e)},r?(r.prev=c,c.next=r):i=c,u===n?(i=i.prev).next=null:u++,r=c,c.val}return e&&e.maxSize&&(n=e.maxSize),o.clear=function(){r=null,i=null,u=0},o}}});

View File

@ -1 +1 @@
this.wp=this.wp||{},this.wp.viewport=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=316)}({19:function(t,e,r){"use strict";var n=r(32);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",function(){return o})},2:function(t,e){!function(){t.exports=this.lodash}()},316:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"setIsMatching",function(){return a});var o={};r.r(o),r.d(o,"isViewportMatch",function(){return s});var i=r(2),c=r(5);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}var f=r(19);function s(t,e){return!!t[Object(i.takeRight)([">="].concat(Object(f.a)(e.split(" "))),2).join(" ")]}Object(c.registerStore)("core/viewport",{reducer:u,actions:n,selectors:o});var p=r(6),d=function(t){return Object(p.createHigherOrderComponent)(Object(c.withSelect)(function(e){return Object(i.mapValues)(t,function(t){return e("core/viewport").isViewportMatch(t)})}),"withViewportMatch")},l=function(t){return Object(p.createHigherOrderComponent)(Object(p.compose)([d({isViewportMatch:t}),Object(p.ifCondition)(function(t){return t.isViewportMatch})]),"ifViewportMatches")};r.d(e,"ifViewportMatches",function(){return l}),r.d(e,"withViewportMatch",function(){return d});var h={"<":"max-width",">=":"min-width"},b=Object(i.debounce)(function(){var t=Object(i.mapValues)(w,function(t){return t.matches});Object(c.dispatch)("core/viewport").setIsMatching(t)},{leading:!0}),w=Object(i.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},function(t,e,r){return Object(i.forEach)(h,function(n,o){var i=window.matchMedia("(".concat(n,": ").concat(e,"px)"));i.addListener(b);var c=[o,r].join(" ");t[c]=i}),t},{});window.addEventListener("orientationchange",b),b()},32:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",function(){return n})},5:function(t,e){!function(){t.exports=this.wp.data}()},6:function(t,e){!function(){t.exports=this.wp.compose}()}}); this.wp=this.wp||{},this.wp.viewport=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=316)}({19:function(t,e,r){"use strict";var n=r(33);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",function(){return o})},2:function(t,e){!function(){t.exports=this.lodash}()},316:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"setIsMatching",function(){return a});var o={};r.r(o),r.d(o,"isViewportMatch",function(){return s});var i=r(2),c=r(5);var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function a(t){return{type:"SET_IS_MATCHING",values:t}}var f=r(19);function s(t,e){return!!t[Object(i.takeRight)([">="].concat(Object(f.a)(e.split(" "))),2).join(" ")]}Object(c.registerStore)("core/viewport",{reducer:u,actions:n,selectors:o});var p=r(6),d=function(t){return Object(p.createHigherOrderComponent)(Object(c.withSelect)(function(e){return Object(i.mapValues)(t,function(t){return e("core/viewport").isViewportMatch(t)})}),"withViewportMatch")},l=function(t){return Object(p.createHigherOrderComponent)(Object(p.compose)([d({isViewportMatch:t}),Object(p.ifCondition)(function(t){return t.isViewportMatch})]),"ifViewportMatches")};r.d(e,"ifViewportMatches",function(){return l}),r.d(e,"withViewportMatch",function(){return d});var h={"<":"max-width",">=":"min-width"},b=Object(i.debounce)(function(){var t=Object(i.mapValues)(w,function(t){return t.matches});Object(c.dispatch)("core/viewport").setIsMatching(t)},{leading:!0}),w=Object(i.reduce)({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},function(t,e,r){return Object(i.forEach)(h,function(n,o){var i=window.matchMedia("(".concat(n,": ").concat(e,"px)"));i.addListener(b);var c=[o,r].join(" ");t[c]=i}),t},{});window.addEventListener("orientationchange",b),b()},33:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",function(){return n})},5:function(t,e){!function(){t.exports=this.wp.data}()},6:function(t,e){!function(){t.exports=this.wp.compose}()}});

View File

@ -237,6 +237,7 @@ function wp_default_packages_scripts( &$scripts ) {
'data' => array( 'data' => array(
'lodash', 'lodash',
'wp-compose', 'wp-compose',
'wp-deprecated',
'wp-element', 'wp-element',
'wp-is-shallow-equal', 'wp-is-shallow-equal',
'wp-polyfill', 'wp-polyfill',
@ -353,6 +354,7 @@ function wp_default_packages_scripts( &$scripts ) {
'lodash', 'lodash',
'wp-blocks', 'wp-blocks',
'wp-data', 'wp-data',
'wp-deprecated',
'wp-escape-html', 'wp-escape-html',
'wp-polyfill', 'wp-polyfill',
), ),

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-beta2-43860'; $wp_version = '5.0-beta2-43861';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.