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

2 lines
10 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.reduxRoutine=function(e){var n={};function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)t.d(r,u,function(n){return e[n]}.bind(null,u));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="./node_modules/@wordpress/redux-routine/build-module/index.js")}({"./node_modules/@wordpress/redux-routine/build-module/index.js":function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return l}));var r=t("./node_modules/rungen/dist/index.js"),u=t("lodash"),o=t("./node_modules/is-promise/index.js"),i=t.n(o);function c(e){return Object(u.isPlainObject)(e)&&Object(u.isString)(e.type)}function s(e={},n){const t=Object(u.map)(e,(e,n)=>(t,r,u,o,s)=>{if(a=n,!c(l=t)||l.type!==a)return!1;var l,a;const f=e(t);return i()(f)?f.then(o,s):o(f),!0});t.push((e,t)=>!!c(e)&&(n(e),t(),!0));const o=Object(r.create)(t);return e=>new Promise((t,r)=>o(e,e=>{c(e)&&n(e),t(e)},r))}function l(e={}){return n=>{const t=s(e,n.dispatch);return e=>n=>{return(r=n)&&"function"==typeof r[Symbol.iterator]&&"function"==typeof r.next?t(n):e(n);var r}}}},"./node_modules/is-promise/index.js":function(e,n){function t(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=t,e.exports.default=t},"./node_modules/rungen/dist/controls/async.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.race=n.join=n.fork=n.promise=void 0;var r=i(t("./node_modules/rungen/dist/utils/is.js")),u=t("./node_modules/rungen/dist/utils/helpers.js"),o=i(t("./node_modules/rungen/dist/utils/dispatcher.js"));function i(e){return e&&e.__esModule?e:{default:e}}var c=n.promise=function(e,n,t,u,o){return!!r.default.promise(e)&&(e.then(n,o),!0)},s=new Map,l=n.fork=function(e,n,t){if(!r.default.fork(e))return!1;var i=Symbol("fork"),c=(0,o.default)();s.set(i,c),t(e.iterator.apply(null,e.args),(function(e){return c.dispatch(e)}),(function(e){return c.dispatch((0,u.error)(e))}));var l=c.subscribe((function(){l(),s.delete(i)}));return n(i),!0},a=n.join=function(e,n,t,u,o){if(!r.default.join(e))return!1;var i,c=s.get(e.task);return c?i=c.subscribe((function(e){i(),n(e)})):o("join error : task not found"),!0},f=n.race=function(e,n,t,u,o){if(!r.default.race(e))return!1;var i,c=!1,s=function(e,t,r){c||(c=!0,e[t]=r,n(e))},l=function(e){c||o(e)};return r.default.array(e.competitors)?(i=e.competitors.map((function(){return!1})),e.competitors.forEach((function(e,n){t(e,(function(e){return s(i,n,e)}),l)}))):function(){var n=Object.keys(e.competitors).reduce((function(e,n){return e[n]=!1,e}),{});Object.keys(e.competitors).forEach((function(r){t(e.competitors[r],(function(e){return s(n,r,e)}),l)}))}(),!0};n.default=[c,l,a,f,function(e,n){if(!r.default.subscribe(e))return!1;if(!r.default.channel(e.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var t=e.channel.subscribe((function(e){t&&t(),n(e)}));return!0}]},"./node_modules/rungen/dist/controls/builtin.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.iterator=n.array=n.object=n.error=n.any=void 0;var r,u=t("./node_modules/rungen/dist/utils/is.js"),o=(r=u)&&r.__esModule?r:{default:r};var i=n.any=function(e,n,t,r){return r(e),!0},c=n.error=function(e,n,t,r,u){return!!o.default.error(e)&&(u(e.error),!0)},s=n.object=function(e,n,t,r,u){if(!o.default.all(e)||!o.default.obj(e.v