WordPress/wp-includes/js/dist/edit-post.min.js

49 lines
583 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. This also includes: - The removal of the Post Author block. - Renaming build_query_vars_from_query_block function. - Update the block supports. Props gziolo. See #52991. -This line, and those below, will be ignored-- M package-lock.json M package.json M src/wp-includes/assets/script-loader-packages.php M src/wp-includes/block-supports/colors.php AM src/wp-includes/block-supports/elements.php D src/wp-includes/block-supports/padding.php AM src/wp-includes/block-supports/spacing.php M src/wp-includes/block-supports/typography.php M src/wp-includes/blocks/column/block.json M src/wp-includes/blocks/index.php D src/wp-includes/blocks/post-author D src/wp-includes/blocks/post-author.php M src/wp-includes/blocks/post-content.php M src/wp-includes/blocks/post-featured-image.php M src/wp-includes/blocks/query/block.json M src/wp-includes/blocks/query-loop/block.json M src/wp-includes/blocks/query-loop.php M src/wp-includes/blocks/query-pagination/block.json M src/wp-includes/blocks/query-pagination-next.php M src/wp-includes/blocks/query-pagination-numbers.php M src/wp-includes/blocks/site-tagline/block.json M src/wp-includes/blocks/site-title/block.json M src/wp-includes/blocks.php M src/wp-settings.php M tests/phpunit/tests/blocks/block.php M tools/webpack/packages.js Built from https://develop.svn.wordpress.org/trunk@50945 git-svn-id: http://core.svn.wordpress.org/trunk@50554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-21 06:14:23 -04:00
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./node_modules/@wordpress/edit-post/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},"./node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@emotion/memoize/dist/memoize.browser.esm.js"),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|m
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. This also includes: - The removal of the Post Author block. - Renaming build_query_vars_from_query_block function. - Update the block supports. Props gziolo. See #52991. -This line, and those below, will be ignored-- M package-lock.json M package.json M src/wp-includes/assets/script-loader-packages.php M src/wp-includes/block-supports/colors.php AM src/wp-includes/block-supports/elements.php D src/wp-includes/block-supports/padding.php AM src/wp-includes/block-supports/spacing.php M src/wp-includes/block-supports/typography.php M src/wp-includes/blocks/column/block.json M src/wp-includes/blocks/index.php D src/wp-includes/blocks/post-author D src/wp-includes/blocks/post-author.php M src/wp-includes/blocks/post-content.php M src/wp-includes/blocks/post-featured-image.php M src/wp-includes/blocks/query/block.json M src/wp-includes/blocks/query-loop/block.json M src/wp-includes/blocks/query-loop.php M src/wp-includes/blocks/query-pagination/block.json M src/wp-includes/blocks/query-pagination-next.php M src/wp-includes/blocks/query-pagination-numbers.php M src/wp-includes/blocks/site-tagline/block.json M src/wp-includes/blocks/site-title/block.json M src/wp-includes/blocks.php M src/wp-settings.php M tests/phpunit/tests/blocks/block.php M tools/webpack/packages.js Built from https://develop.svn.wordpress.org/trunk@50945 git-svn-id: http://core.svn.wordpress.org/trunk@50554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-21 06:14:23 -04:00
***************************************************************************** */function Q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var W=function(){return(W=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function P(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function N(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}Object.create;var T=r("react"),J=r.n(T),R=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},H={measureLayout:R(["layout","layoutId","drag","_layoutResetTransform"]),animation:R(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:R(["exit"]),drag:R(["drag","dragControls"]),focus:R(["whileFocus"]),hover:R(["whileHover","onHoverStart","onHoverEnd"]),tap:R(["whileTap","onTap","onTapStart","onTapCancel"]),pan:R(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:R(["layout","layoutId"])};var F=Object(T.createContext)({strict:!1}),U=Object.keys(H),X=U.length;var V=Object(T.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),_=Object(T.createContext)({});var $=Object(T.createContext)(null);function ee(e){var t=Object(T.useRef)(null);return null===t.current&&(t.current=e()),t.current}function te(){var e=Object(T.useContext)($);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,o=ie();Object(T.useEffect)((function(){return n(o)}),[]);return!t&&r?[!1,function(){return null==r?void 0:r(o)}]:[!0]}function re(e){return null===e||e.isPresent}var ne=0,oe=function(){return ne++},ie=function(){return ee(oe)},ae=Object(T.createContext)(null),se="undefined"!=typeof window,ue=se?T.useLayoutEffect:T.useEffect;function le(e,t,r,n){var o=Object(T.useContext)(V),i=Object(T.useContext)(F),a=Object(T.useContext)(_).visualElement,s=Object(T.useContext)($),u=function(e){var t=e.layoutId,r=Object(T.useContext)(ae);return r&&void 0!==t?r+"-"+t:t}(r),l=Object(T.useRef)(void 0);n||(n=i.renderer),!l.current&&n&&(l.current=n(e,{visualState:t,parent:a,props:W(W({},r),{layoutId:u}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var c=l.current;return ue((function(){c&&(c.setProps(W(W(W({},o),r),{layoutId:u})),c.isPresent=re(s),c.isPresenceRoot=!a||a.presenceId!==(null==s?void 0:s.id),c.syncRender())})),Object(T.useEffect)((function(){var e;c&&(null===(e=c.animationState)||void 0===e||e.animateChanges())})),ue((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function ce(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ae(e){return Array.isArray(e)}function me(e){return"string"==typeof e||Ae(e)}function de(e,t,r,n,o){var i;return void 0===n&&(n={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t?t(null!=r?r:e.custom,n,o):t}function pe(e,t,r){var n=e.getProps();return de(n,t,null!=r?r:n.custom,function(e){var t={};return e.forEachValue((function(e,r){return t[r]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,r){return t[r]=e.getVelocity()})),t}(e))}function qe(e){var t;return"function"==typeof(null===(t=e.animate)
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. This also includes: - The removal of the Post Author block. - Renaming build_query_vars_from_query_block function. - Update the block supports. Props gziolo. See #52991. -This line, and those below, will be ignored-- M package-lock.json M package.json M src/wp-includes/assets/script-loader-packages.php M src/wp-includes/block-supports/colors.php AM src/wp-includes/block-supports/elements.php D src/wp-includes/block-supports/padding.php AM src/wp-includes/block-supports/spacing.php M src/wp-includes/block-supports/typography.php M src/wp-includes/blocks/column/block.json M src/wp-includes/blocks/index.php D src/wp-includes/blocks/post-author D src/wp-includes/blocks/post-author.php M src/wp-includes/blocks/post-content.php M src/wp-includes/blocks/post-featured-image.php M src/wp-includes/blocks/query/block.json M src/wp-includes/blocks/query-loop/block.json M src/wp-includes/blocks/query-loop.php M src/wp-includes/blocks/query-pagination/block.json M src/wp-includes/blocks/query-pagination-next.php M src/wp-includes/blocks/query-pagination-numbers.php M src/wp-includes/blocks/site-tagline/block.json M src/wp-includes/blocks/site-title/block.json M src/wp-includes/blocks.php M src/wp-settings.php M tests/phpunit/tests/blocks/block.php M tools/webpack/packages.js Built from https://develop.svn.wordpress.org/trunk@50945 git-svn-id: http://core.svn.wordpress.org/trunk@50554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-21 06:14:23 -04:00
***************************************************************************** */var Ye=function(){return(Ye=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;Object.create;var xe=function(e,t){return function(r){return Math.max(Math.min(r,t),e)}},Le=function(e){return e%1?Number(e.toFixed(5)):e},Qe=/(-)?([\d]*\.?[\d])+/g,We=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,De=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Pe(e){return"string"==typeof e}var Ne=function(e){return{test:function(t){return Pe(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},Te=Ne("deg"),Je=Ne("%"),Re=Ne("px"),He=Ne("vh"),Fe=Ne("vw"),Ue=Ye(Ye({},Je),{parse:function(e){return Je.parse(e)/100},transform:function(e){return Je.transform(100*e)}}),Xe={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},Ve=Ye(Ye({},Xe),{transform:xe(0,1)}),_e=Ye(Ye({},Xe),{default:1}),$e=W(W({},Xe),{transform:Math.round}),et={borderWidth:Re,borderTopWidth:Re,borderRightWidth:Re,borderBottomWidth:Re,borderLeftWidth:Re,borderRadius:Re,radius:Re,borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomRightRadius:Re,borderBottomLeftRadius:Re,width:Re,maxWidth:Re,height:Re,maxHeight:Re,size:Re,top:Re,right:Re,bottom:Re,left:Re,padding:Re,paddingTop:Re,paddingRight:Re,paddingBottom:Re,paddingLeft:Re,margin:Re,marginTop:Re,marginRight:Re,marginBottom:Re,marginLeft:Re,rotate:Te,rotateX:Te,rotateY:Te,rotateZ:Te,scale:_e,scaleX:_e,scaleY:_e,scaleZ:_e,skew:Te,skewX:Te,skewY:Te,distance:Re,translateX:Re,translateY:Re,translateZ:Re,x:Re,y:Re,z:Re,perspective:Re,transformPerspective:Re,opacity:Ve,originX:Ue,originY:Ue,originZ:Re,zIndex:$e,fillOpacity:Ve,strokeOpacity:Ve,numOctaves:$e};function tt(e,t,r,n,o,i,a,s){var u,l=e.style,c=e.vars,A=e.transform,m=e.transformKeys,d=e.transformOrigin;m.length=0;var p=!1,q=!1,v=!0;for(var g in t){var h=t[g];if(Ge(g))c[g]=h;else{var b=et[g],O=ke(h,b);if(we(g)){if(p=!0,A[g]=O,m.push(g),!v)continue;h!==(null!==(u=b.default)&&void 0!==u?u:0)&&(v=!1)}else if(Me(g))d[g]=O,q=!0;else if((null==r?void 0:r.isHydrated)&&(null==n?void 0:n.isHydrated)&&ye[g]){var I=ye[g].process(h,n,r),f=ye[g].applyTo;if(f)for(var y=f.length,j=0;j<y;j++)l[f[j]]=I;else l[g]=I}else l[g]=O}}n&&r&&a&&s?(l.transform=a(n.deltaFinal,n.treeScale,p?A:void 0),i&&(l.transform=i(A,l.transform)),l.transformOrigin=s(n)):(p&&(l.transform=function(e,t,r,n){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,l=void 0===u||u,c="";i.sort(Ee);for(var A=!1,m=i.length,d=0;d<m;d++){var p=i[d];c+=(Be[p]||p)+"("+o[p]+") ","z"===p&&(A=!0)}return!A&&s?c+="translateZ(0)":c=c.trim(),n?c=n(o,r?"":c):l&&r&&(c="none"),c}(e,o,v,i)),q&&(l.transformOrigin=function(e){var t=e.originX,r=void 0===t?"50%":t,n=e.originY,o=void 0===n?"50%":n,i=e.originZ;return r+" "+o+" "+(void 0===i?0:i)}(d)))}var rt=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function nt(e,t,r){for(var n in t)Ze(t[n])||ze(n,r)||(e[n]=t[n])}function ot(e,t,r){var n={};return nt(n,e.style||{},e),Object.assign(n,function(e,t,r){var n=e.transformTemplate;return Object(T.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};tt(e,t,void 0,void 0,{enableHardwareAcceleration:!r},n);var o=e.style;return W(W({},e.vars),o)}),[t])}(e,t,r)),e.transformValues&&(n=e.transformValues(n)),n}function it(e,t,r){var n={},o=ot(e,t,r);return Boolean(e.drag)&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),n.style=o,n}var at=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetT
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. This also includes: - The removal of the Post Author block. - Renaming build_query_vars_from_query_block function. - Update the block supports. Props gziolo. See #52991. -This line, and those below, will be ignored-- M package-lock.json M package.json M src/wp-includes/assets/script-loader-packages.php M src/wp-includes/block-supports/colors.php AM src/wp-includes/block-supports/elements.php D src/wp-includes/block-supports/padding.php AM src/wp-includes/block-supports/spacing.php M src/wp-includes/block-supports/typography.php M src/wp-includes/blocks/column/block.json M src/wp-includes/blocks/index.php D src/wp-includes/blocks/post-author D src/wp-includes/blocks/post-author.php M src/wp-includes/blocks/post-content.php M src/wp-includes/blocks/post-featured-image.php M src/wp-includes/blocks/query/block.json M src/wp-includes/blocks/query-loop/block.json M src/wp-includes/blocks/query-loop.php M src/wp-includes/blocks/query-pagination/block.json M src/wp-includes/blocks/query-pagination-next.php M src/wp-includes/blocks/query-pagination-numbers.php M src/wp-includes/blocks/site-tagline/block.json M src/wp-includes/blocks/site-title/block.json M src/wp-includes/blocks.php M src/wp-settings.php M tests/phpunit/tests/blocks/block.php M tools/webpack/packages.js Built from https://develop.svn.wordpress.org/trunk@50945 git-svn-id: http://core.svn.wordpress.org/trunk@50554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-21 06:14:23 -04:00
***************************************************************************** */var ur=function(){return(ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function lr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;Object.create;var cr=function(e,t,r){return Math.min(Math.max(r,e),t)};function Ar(e){var t,r,n=e.duration,o=void 0===n?800:n,i=e.bounce,a=void 0===i?.25:i,s=e.velocity,u=void 0===s?0:s,l=e.mass,c=void 0===l?1:l,A=1-a;A=cr(.05,1,A),o=cr(.01,10,o/1e3),A<1?(t=function(e){var t=e*A,r=t*o;return.001-(t-u)/mr(e,A)*Math.exp(-r)},r=function(e){var r=e*A*o,n=r*u+u,i=Math.pow(A,2)*Math.pow(e,2)*o,a=Math.exp(-r),s=mr(Math.pow(e,2),A);return(.001-t(e)>0?-1:1)*((n-i)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-u)*o+1)-.001},r=function(e){return Math.exp(-e*o)*(o*o*(u-e))});var m=function(e,t,r){for(var n=r,o=1;o<12;o++)n-=e(n)/t(n);return n}(t,r,5/o);if(o*=1e3,isNaN(m))return{stiffness:100,damping:10,duration:o};var d=Math.pow(m,2)*c;return{stiffness:d,damping:2*A*Math.sqrt(c*d),duration:o}}function mr(e,t){return e*Math.sqrt(1-t*t)}var dr=["duration","bounce"],pr=["stiffness","damping","mass"];function qr(e,t){return t.some((function(t){return void 0!==e[t]}))}function vr(e){var t=e.from,r=void 0===t?0:t,n=e.to,o=void 0===n?1:n,i=e.restSpeed,a=void 0===i?2:i,s=e.restDelta,u=lr(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:r},c=function(e){var t=ur({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!qr(e,pr)&&qr(e,dr)){var r=Ar(e);(t=ur(ur(ur({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),A=c.stiffness,m=c.damping,d=c.mass,p=c.velocity,q=c.duration,v=c.isResolvedFromDuration,g=gr,h=gr;function b(){var e=p?-p/1e3:0,t=o-r,n=m/(2*Math.sqrt(A*d)),i=Math.sqrt(A/d)/1e3;if(null!=s||(s=Math.abs(o-r)<=1?.01:.4),n<1){var a=mr(i,n);g=function(r){var s=Math.exp(-n*i*r);return o-s*((e+n*i*t)/a*Math.sin(a*r)+t*Math.cos(a*r))},h=function(r){var o=Math.exp(-n*i*r);return n*i*o*(Math.sin(a*r)*(e+n*i*t)/a+t*Math.cos(a*r))-o*(Math.cos(a*r)*(e+n*i*t)-a*t*Math.sin(a*r))}}else if(1===n)g=function(r){return o-Math.exp(-i*r)*(t+(e+i*t)*r)};else{var u=i*Math.sqrt(n*n-1);g=function(r){var a=Math.exp(-n*i*r),s=Math.min(u*r,300);return o-a*((e+n*i*t)*Math.sinh(s)+u*t*Math.cosh(s))/u}}}return b(),{next:function(e){var t=g(e);if(v)l.done=e>=q;else{var r=1e3*h(e),n=Math.abs(r)<=a,i=Math.abs(o-t)<=s;l.done=n&&i}return l.value=l.done?o:t,l},flipTarget:function(){var e;p=-p,r=(e=[o,r])[0],o=e[1],b()}}}vr.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var gr=function(e){return 0},hr=function(e,t,r){var n=t-e;return 0===n?1:(r-e)/n},br=function(e,t,r){return-r*e+r*t+e},Or=function(e,t){return function(r){return Boolean(Pe(r)&&De.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t))}},Ir=function(e,t,r){return function(n){var o;if(!Pe(n))return n;var i=n.match(Qe),a=i[0],s=i[1],u=i[2],l=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[r]=parseFloat(u),o.alpha=void 0!==l?parseFloat(l):1,o}},fr=xe(0,255),yr=Ye(Ye({},Xe),{transform:function(e){return Math.round(fr(e))}}),jr={test:Or("rgb","red"),parse:Ir("red","green","blue"),transform:function(e){var t=e.red,r=e.green,n=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+yr.transform(t)+", "+yr.transform(r)+", "+yr.transform(n)+", "+Le(Ve.transform(i))+")"}};var Cr={test:Or("#"),parse:function(e){var t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},"./node_modules/process/browser.js":function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,l=[],c=!1,A=-1;function m(){c&&u&&(c=!1,u.length?l=u.concat(l):A=-1,l.length&&d())}function d(){if(!c){var e=s(m);c=!0;for(var t=l.length;t;){for(u=l,l=[];++A<t;)u&&u[A].run();A=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function q(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=q,o.addListener=q,o.once=q,o.off=q,o.removeListener=q,o.removeAllListeners=q,o.emit=q,o.prependListener=q,o.prependOnceListener=q,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"./node_modules/rememo/es/rememo.js":function(e,t,r){"use strict";var n,o;function i(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var r,u;function l(){r=o?new WeakMap:a()}function c(){var r,n,o,i,a,l=arguments.length;for(i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];for(a=t.apply(null,i),(r=u(a)).isUniqueByDependants||(r.lastDependants&&!s(a,r.lastDependants,0)&&r.clear(),r.lastDependants=a),n=r.head;n;){if(s(n.args,i,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,i)},i[0]=null,n.args=i,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=i),u=o?function(e){var t,o,i,s,u,l=r,c=!0;for(t=0;t<e.length;t++){if(o=e[t],!(u=o)||"object"!=typeof u){c=!1;break}l.has(o)?l=l.get(o):(i=new WeakMap,l.set(o,i),l=i)}return l.has(n)||((s=a()).isUniqueByDependants=c,l.set(n,s)),l.get(n)}:function(){return r},c.getDependants=t,c.clear=l,l(),c}},"@wordpress/a11y":function(e,t){e.exports=window.wp.a11y},"@wordpress/block-editor":function(e,t){e.exports=window.wp.blockEditor},"@wordpress/block-library":function(e,t){e.exports=window.wp.blockLibrary},"@wordpress/blocks":function(e,t){e.exports=window.wp.blocks},"@wordpress/components":function(e,t){e.exports=window.wp.components},"@wordpress/compose":function(e,t){e.exports=window.wp.compose},"@wordpress/core-data":function(e,t){e.exports=window.wp.coreData},"@wordpress/data":function(e,t){e.exports=window.wp.data},"@wordpress/data-controls":function(e,t){e.exports=window.wp.dataControls},"@wordpress/editor":function(e,t){e.exports=window.wp.editor},"@wordpress/element":function(e,t){e.exports=w