WordPress/wp-includes/js/dist/redux-routine.min.js

9 lines
9.0 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
!function(){"use strict";var t={9025:function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.race=r.join=r.fork=r.promise=void 0;var n=c(e(9681)),u=e(7783),o=c(e(2451));function c(t){return t&&t.__esModule?t:{default:t}}var f=r.promise=function(t,r,e,u,o){return!!n.default.promise(t)&&(t.then(r,o),!0)},a=new Map,i=r.fork=function(t,r,e){if(!n.default.fork(t))return!1;var c=Symbol("fork"),f=(0,o.default)();a.set(c,f),e(t.iterator.apply(null,t.args),(function(t){return f.dispatch(t)}),(function(t){return f.dispatch((0,u.error)(t))}));var i=f.subscribe((function(){i(),a.delete(c)}));return r(c),!0},l=r.join=function(t,r,e,u,o){if(!n.default.join(t))return!1;var c,f=a.get(t.task);return f?c=f.subscribe((function(t){c(),r(t)})):o("join error : task not found"),!0},s=r.race=function(t,r,e,u,o){if(!n.default.race(t))return!1;var c,f=!1,a=function(t,e,n){f||(f=!0,t[e]=n,r(t))},i=function(t){f||o(t)};return n.default.array(t.competitors)?(c=t.competitors.map((function(){return!1})),t.competitors.forEach((function(t,r){e(t,(function(t){return a(c,r,t)}),i)}))):function(){var r=Object.keys(t.competitors).reduce((function(t,r){return t[r]=!1,t}),{});Object.keys(t.competitors).forEach((function(n){e(t.competitors[n],(function(t){return a(r,n,t)}),i)}))}(),!0};r.default=[f,i,l,s,function(t,r){if(!n.default.subscribe(t))return!1;if(!n.default.channel(t.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var e=t.channel.subscribe((function(t){e&&e(),r(t)}));return!0}]},7961:function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.iterator=r.array=r.object=r.error=r.any=void 0;var n,u=e(9681),o=(n=u)&&n.__esModule?n:{default:n};var c=r.any=function(t,r,e,n){return n(t),!0},f=r.error=function(t,r,e,n,u){return!!o.default.error(t)&&(u(t.error),!0)},a=r.object=function(t,r,e,n,u){if(!o.default.all(t)||!o.default.obj(t.value))return!1;var c={},f=Object.keys(t.value),a=0,i=!1;return f.map((function(r){e(t.value[r],(function(t){return function(t,r){i||(c[t]=r,++a===f.length&&n(c))}(r,t)}),(function(t){return function(t,r){i||(i=!0,u(r))}(0,t)}))})),!0},i=r.array=function(t,r,e,n,u){if(!o.default.all(t)||!o.default.array(t.value))return!1;var c=[],f=0,a=!1;return t.value.map((function(r,o){e(r,(function(r){return function(r,e){a||(c[r]=e,++f===t.value.length&&n(c))}(o,r)}),(function(t){return function(t,r){a||(a=!0,u(r))}(0,t)}))})),!0},l=r.iterator=function(t,r,e,n,u){return!!o.default.iterator(t)&&(e(t,r,u),!0)};r.default=[f,l,i,a,c]},2165:function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.cps=r.call=void 0;var n,u=e(9681),o=(n=u)&&n.__esModule?n:{default:n};var c=r.call=function(t,r,e,n,u){if(!o.default.call(t))return!1;try{r(t.func.apply(t.context,t.args))}catch(t){u(t)}return!0},f=r.cps=function(t,r,e,n,u){var c;return!!o.default.cps(t)&&((c=t.func).call.apply(c,[null].concat(function(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}(t.args),[function(t,e){t?u(t):r(e)}])),!0)};r.default=[c,f]},6288:function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0});var n=o(e(7961)),u=o(e(9681));function o(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var r=0,e=Array(t.length);r<t.length;r++)e[r]=t[r];return e}return Array.from(t)}r.default=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],r=[].concat(c(t),c(n.default)),e=function t(e){var n=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],c=function(e){var u=function(t){return function(r){try{var u=t?e.throw(r):e.next(r),f=u.value;if(u.done)return n(f);c(f)}catch(t){return o(t)}}},c=function e(n){r.some((function(r){return r(n,e,t,u(!1),u(!0))}))};u(!1)()},f=u.default.iterator(e)?e:regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))();c(f,n,o)};ret
Editor: Sync changes from the Gutenberg plugin 14.1 release Updated WordPress packages necessary for releasing WordPress 6.1 Beta 1: - @wordpress/a11y@3.17.1 - @wordpress/annotations@2.17.2 - @wordpress/api-fetch@6.14.1 - @wordpress/autop@3.17.1 - @wordpress/babel-plugin-import-jsx-pragma@4.0.1 - @wordpress/babel-plugin-makepot@5.1.1 - @wordpress/babel-preset-default@7.1.1 - @wordpress/base-styles@4.8.1 - @wordpress/blob@3.17.1 - @wordpress/block-directory@3.15.2 - @wordpress/block-editor@10.0.2 - @wordpress/block-library@7.14.2 - @wordpress/block-serialization-default-parser@4.17.1 - @wordpress/block-serialization-spec-parser@4.17.1 - @wordpress/blocks@11.16.2 - @wordpress/browserslist-config@5.0.1 - @wordpress/components@21.0.2 - @wordpress/compose@5.15.2 - @wordpress/core-data@5.0.2 - @wordpress/create-block-tutorial-template@2.5.1 - @wordpress/create-block@4.1.1 - @wordpress/custom-templated-path-webpack-plugin@2.1.3 - @wordpress/customize-widgets@3.14.2 - @wordpress/data-controls@2.17.2 - @wordpress/data@7.1.2 - @wordpress/date@4.17.1 - @wordpress/dependency-extraction-webpack-plugin@4.0.2 - @wordpress/deprecated@3.17.1 - @wordpress/docgen@1.26.1 - @wordpress/dom-ready@3.17.1 - @wordpress/dom@3.17.2 - @wordpress/e2e-test-utils@8.1.1 - @wordpress/e2e-tests@5.1.2 - @wordpress/edit-post@6.14.2 - @wordpress/edit-site@4.14.2 - @wordpress/edit-widgets@4.14.2 - @wordpress/editor@12.16.2 - @wordpress/element@4.15.1 - @wordpress/env@5.2.1 - @wordpress/escape-html@2.17.1 - @wordpress/eslint-plugin@13.1.1 - @wordpress/format-library@3.15.2 - @wordpress/hooks@3.17.1 - @wordpress/html-entities@3.17.1 - @wordpress/i18n@4.17.1 - @wordpress/icons@9.8.1 - @wordpress/interface@4.16.2 - @wordpress/is-shallow-equal@4.17.1 - @wordpress/jest-console@6.0.1 - @wordpress/jest-preset-default@9.0.1 - @wordpress/jest-puppeteer-axe@5.0.1 - @wordpress/keyboard-shortcuts@3.15.2 - @wordpress/keycodes@3.17.1 - @wordpress/lazy-import@1.4.3 - @wordpress/library-export-default-webpack-plugin@2.3.3 - @wordpress/list-reusable-blocks@3.15.2 - @wordpress/media-utils@4.8.1 - @wordpress/notices@3.17.2 - @wordpress/npm-package-json-lint-config@4.2.1 - @wordpress/nux@5.15.2 - @wordpress/plugins@4.15.2 - @wordpress/postcss-plugins-preset@4.1.1 - @wordpress/postcss-themes@5.0.1 - @wordpress/preferences-persistence@1.9.1 - @wordpress/preferences@2.9.2 - @wordpress/prettier-config@2.0.1 - @wordpress/primitives@3.15.1 - @wordpress/priority-queue@2.17.2 - @wordpress/project-management-automation@1.16.1 - @wordpress/react-i18n@3.15.1 - @wordpress/readable-js-assets-webpack-plugin@2.0.1 - @wordpress/redux-routine@4.17.1 - @wordpress/reusable-blocks@3.15.2 - @wordpress/rich-text@5.15.2 - @wordpress/scripts@24.1.2 - @wordpress/server-side-render@3.15.2 - @wordpress/shortcode@3.17.1 - @wordpress/style-engine@1.0.1 - @wordpress/stylelint-config@21.0.1 - @wordpress/token-list@2.17.1 - @wordpress/url@3.18.1 - @wordpress/viewport@4.15.2 - @wordpress/warning@2.17.1 - @wordpress/widgets@2.15.2 - @wordpress/wordcount@3.17.1 Props bernhard-reiter, cbravobernal, czapla, oandregal, isabel_brison, andrewserong, mciampini. See #56467. Built from https://develop.svn.wordpress.org/trunk@54257 git-svn-id: http://core.svn.wordpress.org/trunk@53816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-20 11:43:29 -04:00
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return!1!==o(r=t)&&(void 0===(e=r.constructor)||!1!==o(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))&&"string"==typeof t.type;var r,e,n}function f(t,r){return c(t)&&t.type===r}function a(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const n=Object.entries(t).map((t=>{let[r,e]=t;return(t,n,o,c,a)=>{if(!f(t,r))return!1;const i=e(t);return u(i)?i.then(c,a):c(i),!0}})),o=(t,r)=>!!c(t)&&(e(t),r(),!0);n.push(o);const a=(0,r.create)(n);return t=>new Promise(((r,n)=>a(t,(t=>{c(t)&&e(t),r(t)}),n)))}function i(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=>{const n=a(r,e.dispatch);return r=>e=>t(e)?n(e):r(e)}}}(),(window.wp=window.wp||{}).reduxRoutine=n.default}();