[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/ -> core-data.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["coreData"] =
   2  /******/ (function(modules) { // webpackBootstrap
   3  /******/     // The module cache
   4  /******/     var installedModules = {};
   5  /******/
   6  /******/     // The require function
   7  /******/ 	function __webpack_require__(moduleId) {
   8  /******/
   9  /******/         // Check if module is in cache
  10  /******/         if(installedModules[moduleId]) {
  11  /******/             return installedModules[moduleId].exports;
  12  /******/         }
  13  /******/         // Create a new module (and put it into the cache)
  14  /******/         var module = installedModules[moduleId] = {
  15  /******/             i: moduleId,
  16  /******/             l: false,
  17  /******/             exports: {}
  18  /******/         };
  19  /******/
  20  /******/         // Execute the module function
  21  /******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22  /******/
  23  /******/         // Flag the module as loaded
  24  /******/         module.l = true;
  25  /******/
  26  /******/         // Return the exports of the module
  27  /******/         return module.exports;
  28  /******/     }
  29  /******/
  30  /******/
  31  /******/     // expose the modules object (__webpack_modules__)
  32  /******/     __webpack_require__.m = modules;
  33  /******/
  34  /******/     // expose the module cache
  35  /******/     __webpack_require__.c = installedModules;
  36  /******/
  37  /******/     // define getter function for harmony exports
  38  /******/     __webpack_require__.d = function(exports, name, getter) {
  39  /******/         if(!__webpack_require__.o(exports, name)) {
  40  /******/             Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41  /******/         }
  42  /******/     };
  43  /******/
  44  /******/     // define __esModule on exports
  45  /******/     __webpack_require__.r = function(exports) {
  46  /******/         if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47  /******/             Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48  /******/         }
  49  /******/         Object.defineProperty(exports, '__esModule', { value: true });
  50  /******/     };
  51  /******/
  52  /******/     // create a fake namespace object
  53  /******/     // mode & 1: value is a module id, require it
  54  /******/     // mode & 2: merge all properties of value into the ns
  55  /******/     // mode & 4: return value when already ns object
  56  /******/     // mode & 8|1: behave like require
  57  /******/     __webpack_require__.t = function(value, mode) {
  58  /******/         if(mode & 1) value = __webpack_require__(value);
  59  /******/         if(mode & 8) return value;
  60  /******/         if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61  /******/         var ns = Object.create(null);
  62  /******/         __webpack_require__.r(ns);
  63  /******/         Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64  /******/         if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65  /******/         return ns;
  66  /******/     };
  67  /******/
  68  /******/     // getDefaultExport function for compatibility with non-harmony modules
  69  /******/     __webpack_require__.n = function(module) {
  70  /******/         var getter = module && module.__esModule ?
  71  /******/ 			function getDefault() { return module['default']; } :
  72  /******/ 			function getModuleExports() { return module; };
  73  /******/         __webpack_require__.d(getter, 'a', getter);
  74  /******/         return getter;
  75  /******/     };
  76  /******/
  77  /******/     // Object.prototype.hasOwnProperty.call
  78  /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79  /******/
  80  /******/     // __webpack_public_path__
  81  /******/     __webpack_require__.p = "";
  82  /******/
  83  /******/
  84  /******/     // Load entry module and return exports
  85  /******/     return __webpack_require__(__webpack_require__.s = "./node_modules/@wordpress/core-data/build-module/index.js");
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
  91  /*!*******************************************************************!*\
  92    !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
  93    \*******************************************************************/
  94  /*! exports provided: default */
  95  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  96  
  97  "use strict";
  98  __webpack_require__.r(__webpack_exports__);
  99  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithHoles; });
 100  function _arrayWithHoles(arr) {
 101    if (Array.isArray(arr)) return arr;
 102  }
 103  
 104  /***/ }),
 105  
 106  /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":
 107  /*!**********************************************************************!*\
 108    !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***!
 109    \**********************************************************************/
 110  /*! exports provided: default */
 111  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 112  
 113  "use strict";
 114  __webpack_require__.r(__webpack_exports__);
 115  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithoutHoles; });
 116  function _arrayWithoutHoles(arr) {
 117    if (Array.isArray(arr)) {
 118      for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
 119        arr2[i] = arr[i];
 120      }
 121  
 122      return arr2;
 123    }
 124  }
 125  
 126  /***/ }),
 127  
 128  /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
 129  /*!*******************************************************************!*\
 130    !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
 131    \*******************************************************************/
 132  /*! exports provided: default */
 133  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 134  
 135  "use strict";
 136  __webpack_require__.r(__webpack_exports__);
 137  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _defineProperty; });
 138  function _defineProperty(obj, key, value) {
 139    if (key in obj) {
 140      Object.defineProperty(obj, key, {
 141        value: value,
 142        enumerable: true,
 143        configurable: true,
 144        writable: true
 145      });
 146    } else {
 147      obj[key] = value;
 148    }
 149  
 150    return obj;
 151  }
 152  
 153  /***/ }),
 154  
 155  /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
 156  /*!********************************************************************!*\
 157    !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
 158    \********************************************************************/
 159  /*! exports provided: default */
 160  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 161  
 162  "use strict";
 163  __webpack_require__.r(__webpack_exports__);
 164  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArray; });
 165  function _iterableToArray(iter) {
 166    if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
 167  }
 168  
 169  /***/ }),
 170  
 171  /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":
 172  /*!*************************************************************************!*\
 173    !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***!
 174    \*************************************************************************/
 175  /*! exports provided: default */
 176  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 177  
 178  "use strict";
 179  __webpack_require__.r(__webpack_exports__);
 180  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArrayLimit; });
 181  function _iterableToArrayLimit(arr, i) {
 182    var _arr = [];
 183    var _n = true;
 184    var _d = false;
 185    var _e = undefined;
 186  
 187    try {
 188      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 189        _arr.push(_s.value);
 190  
 191        if (i && _arr.length === i) break;
 192      }
 193    } catch (err) {
 194      _d = true;
 195      _e = err;
 196    } finally {
 197      try {
 198        if (!_n && _i["return"] != null) _i["return"]();
 199      } finally {
 200        if (_d) throw _e;
 201      }
 202    }
 203  
 204    return _arr;
 205  }
 206  
 207  /***/ }),
 208  
 209  /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
 210  /*!********************************************************************!*\
 211    !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
 212    \********************************************************************/
 213  /*! exports provided: default */
 214  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 215  
 216  "use strict";
 217  __webpack_require__.r(__webpack_exports__);
 218  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _nonIterableRest; });
 219  function _nonIterableRest() {
 220    throw new TypeError("Invalid attempt to destructure non-iterable instance");
 221  }
 222  
 223  /***/ }),
 224  
 225  /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":
 226  /*!**********************************************************************!*\
 227    !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***!
 228    \**********************************************************************/
 229  /*! exports provided: default */
 230  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 231  
 232  "use strict";
 233  __webpack_require__.r(__webpack_exports__);
 234  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _nonIterableSpread; });
 235  function _nonIterableSpread() {
 236    throw new TypeError("Invalid attempt to spread non-iterable instance");
 237  }
 238  
 239  /***/ }),
 240  
 241  /***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js":
 242  /*!*****************************************************************!*\
 243    !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread.js ***!
 244    \*****************************************************************/
 245  /*! exports provided: default */
 246  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 247  
 248  "use strict";
 249  __webpack_require__.r(__webpack_exports__);
 250  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectSpread; });
 251  /* harmony import */ var _defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
 252  
 253  function _objectSpread(target) {
 254    for (var i = 1; i < arguments.length; i++) {
 255      var source = arguments[i] != null ? arguments[i] : {};
 256      var ownKeys = Object.keys(source);
 257  
 258      if (typeof Object.getOwnPropertySymbols === 'function') {
 259        ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
 260          return Object.getOwnPropertyDescriptor(source, sym).enumerable;
 261        }));
 262      }
 263  
 264      ownKeys.forEach(function (key) {
 265        Object(_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]);
 266      });
 267    }
 268  
 269    return target;
 270  }
 271  
 272  /***/ }),
 273  
 274  /***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":
 275  /*!******************************************************************!*\
 276    !*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***!
 277    \******************************************************************/
 278  /*! exports provided: default */
 279  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 280  
 281  "use strict";
 282  __webpack_require__.r(__webpack_exports__);
 283  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _slicedToArray; });
 284  /* harmony import */ var _arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
 285  /* harmony import */ var _iterableToArrayLimit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js");
 286  /* harmony import */ var _nonIterableRest__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nonIterableRest */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
 287  
 288  
 289  
 290  function _slicedToArray(arr, i) {
 291    return Object(_arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArrayLimit__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || Object(_nonIterableRest__WEBPACK_IMPORTED_MODULE_2__["default"])();
 292  }
 293  
 294  /***/ }),
 295  
 296  /***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":
 297  /*!**********************************************************************!*\
 298    !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***!
 299    \**********************************************************************/
 300  /*! exports provided: default */
 301  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 302  
 303  "use strict";
 304  __webpack_require__.r(__webpack_exports__);
 305  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toConsumableArray; });
 306  /* harmony import */ var _arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js");
 307  /* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
 308  /* harmony import */ var _nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nonIterableSpread */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");
 309  
 310  
 311  
 312  function _toConsumableArray(arr) {
 313    return Object(_arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || Object(_nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__["default"])();
 314  }
 315  
 316  /***/ }),
 317  
 318  /***/ "./node_modules/@wordpress/core-data/build-module/actions.js":
 319  /*!*******************************************************************!*\
 320    !*** ./node_modules/@wordpress/core-data/build-module/actions.js ***!
 321    \*******************************************************************/
 322  /*! exports provided: receiveUserQuery, addEntities, receiveEntityRecords, receiveThemeSupportsFromIndex, receiveEmbedPreview */
 323  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 324  
 325  "use strict";
 326  __webpack_require__.r(__webpack_exports__);
 327  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveUserQuery", function() { return receiveUserQuery; });
 328  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEntities", function() { return addEntities; });
 329  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveEntityRecords", function() { return receiveEntityRecords; });
 330  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveThemeSupportsFromIndex", function() { return receiveThemeSupportsFromIndex; });
 331  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveEmbedPreview", function() { return receiveEmbedPreview; });
 332  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
 333  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
 334  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
 335  /* harmony import */ var _queried_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./queried-data */ "./node_modules/@wordpress/core-data/build-module/queried-data/index.js");
 336  
 337  
 338  /**
 339   * External dependencies
 340   */
 341  
 342  /**
 343   * Internal dependencies
 344   */
 345  
 346  
 347  /**
 348   * Returns an action object used in signalling that authors have been received.
 349   *
 350   * @param {string}       queryID Query ID.
 351   * @param {Array|Object} users   Users received.
 352   *
 353   * @return {Object} Action object.
 354   */
 355  
 356  function receiveUserQuery(queryID, users) {
 357    return {
 358      type: 'RECEIVE_USER_QUERY',
 359      users: Object(lodash__WEBPACK_IMPORTED_MODULE_1__["castArray"])(users),
 360      queryID: queryID
 361    };
 362  }
 363  /**
 364   * Returns an action object used in adding new entities.
 365   *
 366   * @param {Array} entities  Entities received.
 367   *
 368   * @return {Object} Action object.
 369   */
 370  
 371  function addEntities(entities) {
 372    return {
 373      type: 'ADD_ENTITIES',
 374      entities: entities
 375    };
 376  }
 377  /**
 378   * Returns an action object used in signalling that entity records have been received.
 379   *
 380   * @param {string}       kind    Kind of the received entity.
 381   * @param {string}       name    Name of the received entity.
 382   * @param {Array|Object} records Records received.
 383   * @param {?Object}      query  Query Object.
 384   *
 385   * @return {Object} Action object.
 386   */
 387  
 388  function receiveEntityRecords(kind, name, records, query) {
 389    var action;
 390  
 391    if (query) {
 392      action = Object(_queried_data__WEBPACK_IMPORTED_MODULE_2__["receiveQueriedItems"])(records, query);
 393    } else {
 394      action = Object(_queried_data__WEBPACK_IMPORTED_MODULE_2__["receiveItems"])(records);
 395    }
 396  
 397    return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, action, {
 398      kind: kind,
 399      name: name
 400    });
 401  }
 402  /**
 403   * Returns an action object used in signalling that the index has been received.
 404   *
 405   * @param {Object} index Index received.
 406   *
 407   * @return {Object} Action object.
 408   */
 409  
 410  function receiveThemeSupportsFromIndex(index) {
 411    return {
 412      type: 'RECEIVE_THEME_SUPPORTS',
 413      themeSupports: index.theme_supports
 414    };
 415  }
 416  /**
 417   * Returns an action object used in signalling that the preview data for
 418   * a given URl has been received.
 419   *
 420   * @param {string}  url      URL to preview the embed for.
 421   * @param {Mixed}   preview  Preview data.
 422   *
 423   * @return {Object} Action object.
 424   */
 425  
 426  function receiveEmbedPreview(url, preview) {
 427    return {
 428      type: 'RECEIVE_EMBED_PREVIEW',
 429      url: url,
 430      preview: preview
 431    };
 432  }
 433  
 434  
 435  /***/ }),
 436  
 437  /***/ "./node_modules/@wordpress/core-data/build-module/controls.js":
 438  /*!********************************************************************!*\
 439    !*** ./node_modules/@wordpress/core-data/build-module/controls.js ***!
 440    \********************************************************************/
 441  /*! exports provided: apiFetch, select, default */
 442  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 443  
 444  "use strict";
 445  __webpack_require__.r(__webpack_exports__);
 446  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "apiFetch", function() { return apiFetch; });
 447  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "select", function() { return select; });
 448  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
 449  /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/api-fetch */ "@wordpress/api-fetch");
 450  /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__);
 451  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
 452  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);
 453  
 454  
 455  /**
 456   * WordPress dependencies
 457   */
 458  
 459  
 460  /**
 461   * Trigger an API Fetch request.
 462   *
 463   * @param {Object} request API Fetch Request Object.
 464   * @return {Object} control descriptor.
 465   */
 466  
 467  function apiFetch(request) {
 468    return {
 469      type: 'API_FETCH',
 470      request: request
 471    };
 472  }
 473  /**
 474   * Calls a selector using the current state.
 475   * @param {string} selectorName Selector name.
 476   * @param  {Array} args         Selector arguments.
 477   *
 478   * @return {Object} control descriptor.
 479   */
 480  
 481  function select(selectorName) {
 482    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
 483      args[_key - 1] = arguments[_key];
 484    }
 485  
 486    return {
 487      type: 'SELECT',
 488      selectorName: selectorName,
 489      args: args
 490    };
 491  }
 492  var controls = {
 493    API_FETCH: function API_FETCH(_ref) {
 494      var request = _ref.request;
 495      return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default()(request);
 496    },
 497    SELECT: function SELECT(_ref2) {
 498      var _selectData;
 499  
 500      var selectorName = _ref2.selectorName,
 501          args = _ref2.args;
 502      return (_selectData = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["select"])('core'))[selectorName].apply(_selectData, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(args));
 503    }
 504  };
 505  /* harmony default export */ __webpack_exports__["default"] = (controls);
 506  
 507  
 508  /***/ }),
 509  
 510  /***/ "./node_modules/@wordpress/core-data/build-module/entities.js":
 511  /*!********************************************************************!*\
 512    !*** ./node_modules/@wordpress/core-data/build-module/entities.js ***!
 513    \********************************************************************/
 514  /*! exports provided: defaultEntities, kinds, getMethodName, getKindEntities */
 515  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 516  
 517  "use strict";
 518  __webpack_require__.r(__webpack_exports__);
 519  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultEntities", function() { return defaultEntities; });
 520  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kinds", function() { return kinds; });
 521  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMethodName", function() { return getMethodName; });
 522  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKindEntities", function() { return getKindEntities; });
 523  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash");
 524  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
 525  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./actions */ "./node_modules/@wordpress/core-data/build-module/actions.js");
 526  /* harmony import */ var _controls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./controls */ "./node_modules/@wordpress/core-data/build-module/controls.js");
 527  var _marked =
 528  /*#__PURE__*/
 529  regeneratorRuntime.mark(loadPostTypeEntities),
 530      _marked2 =
 531  /*#__PURE__*/
 532  regeneratorRuntime.mark(loadTaxonomyEntities),
 533      _marked3 =
 534  /*#__PURE__*/
 535  regeneratorRuntime.mark(getKindEntities);
 536  
 537  /**
 538   * External dependencies
 539   */
 540  
 541  /**
 542   * Internal dependencies
 543   */
 544  
 545  
 546  
 547  var defaultEntities = [{
 548    name: 'postType',
 549    kind: 'root',
 550    key: 'slug',
 551    baseURL: '/wp/v2/types'
 552  }, {
 553    name: 'media',
 554    kind: 'root',
 555    baseURL: '/wp/v2/media',
 556    plural: 'mediaItems'
 557  }, {
 558    name: 'taxonomy',
 559    kind: 'root',
 560    key: 'slug',
 561    baseURL: '/wp/v2/taxonomies',
 562    plural: 'taxonomies'
 563  }];
 564  var kinds = [{
 565    name: 'postType',
 566    loadEntities: loadPostTypeEntities
 567  }, {
 568    name: 'taxonomy',
 569    loadEntities: loadTaxonomyEntities
 570  }];
 571  /**
 572   * Returns the list of post type entities.
 573   *
 574   * @return {Promise} Entities promise
 575   */
 576  
 577  function loadPostTypeEntities() {
 578    var postTypes;
 579    return regeneratorRuntime.wrap(function loadPostTypeEntities$(_context) {
 580      while (1) {
 581        switch (_context.prev = _context.next) {
 582          case 0:
 583            _context.next = 2;
 584            return Object(_controls__WEBPACK_IMPORTED_MODULE_2__["apiFetch"])({
 585              path: '/wp/v2/types?context=edit'
 586            });
 587  
 588          case 2:
 589            postTypes = _context.sent;
 590            return _context.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_0__["map"])(postTypes, function (postType, name) {
 591              return {
 592                kind: 'postType',
 593                baseURL: '/wp/v2/' + postType.rest_base,
 594                name: name
 595              };
 596            }));
 597  
 598          case 4:
 599          case "end":
 600            return _context.stop();
 601        }
 602      }
 603    }, _marked, this);
 604  }
 605  /**
 606   * Returns the list of the taxonomies entities.
 607   *
 608   * @return {Promise} Entities promise
 609   */
 610  
 611  
 612  function loadTaxonomyEntities() {
 613    var taxonomies;
 614    return regeneratorRuntime.wrap(function loadTaxonomyEntities$(_context2) {
 615      while (1) {
 616        switch (_context2.prev = _context2.next) {
 617          case 0:
 618            _context2.next = 2;
 619            return Object(_controls__WEBPACK_IMPORTED_MODULE_2__["apiFetch"])({
 620              path: '/wp/v2/taxonomies?context=edit'
 621            });
 622  
 623          case 2:
 624            taxonomies = _context2.sent;
 625            return _context2.abrupt("return", Object(lodash__WEBPACK_IMPORTED_MODULE_0__["map"])(taxonomies, function (taxonomy, name) {
 626              return {
 627                kind: 'taxonomy',
 628                baseURL: '/wp/v2/' + taxonomy.rest_base,
 629                name: name
 630              };
 631            }));
 632  
 633          case 4:
 634          case "end":
 635            return _context2.stop();
 636        }
 637      }
 638    }, _marked2, this);
 639  }
 640  /**
 641   * Returns the entity's getter method name given its kind and name.
 642   *
 643   * @param {string}  kind      Entity kind.
 644   * @param {string}  name      Entity name.
 645   * @param {string}  prefix    Function prefix.
 646   * @param {boolean} usePlural Whether to use the plural form or not.
 647   *
 648   * @return {string} Method name
 649   */
 650  
 651  
 652  var getMethodName = function getMethodName(kind, name) {
 653    var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'get';
 654    var usePlural = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
 655    var entity = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["find"])(defaultEntities, {
 656      kind: kind,
 657      name: name
 658    });
 659    var kindPrefix = kind === 'root' ? '' : Object(lodash__WEBPACK_IMPORTED_MODULE_0__["upperFirst"])(Object(lodash__WEBPACK_IMPORTED_MODULE_0__["camelCase"])(kind));
 660    var nameSuffix = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["upperFirst"])(Object(lodash__WEBPACK_IMPORTED_MODULE_0__["camelCase"])(name)) + (usePlural ? 's' : '');
 661    var suffix = usePlural && entity.plural ? Object(lodash__WEBPACK_IMPORTED_MODULE_0__["upperFirst"])(Object(lodash__WEBPACK_IMPORTED_MODULE_0__["camelCase"])(entity.plural)) : nameSuffix;
 662    return "".concat(prefix).concat(kindPrefix).concat(suffix);
 663  };
 664  /**
 665   * Loads the kind entities into the store.
 666   *
 667   * @param {string} kind  Kind
 668   *
 669   * @return {Array} Entities
 670   */
 671  
 672  function getKindEntities(kind) {
 673    var entities, kindConfig;
 674    return regeneratorRuntime.wrap(function getKindEntities$(_context3) {
 675      while (1) {
 676        switch (_context3.prev = _context3.next) {
 677          case 0:
 678            _context3.next = 2;
 679            return Object(_controls__WEBPACK_IMPORTED_MODULE_2__["select"])('getEntitiesByKind', kind);
 680  
 681          case 2:
 682            entities = _context3.sent;
 683  
 684            if (!(entities && entities.length !== 0)) {
 685              _context3.next = 5;
 686              break;
 687            }
 688  
 689            return _context3.abrupt("return", entities);
 690  
 691          case 5:
 692            kindConfig = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["find"])(kinds, {
 693              name: kind
 694            });
 695  
 696            if (kindConfig) {
 697              _context3.next = 8;
 698              break;
 699            }
 700  
 701            return _context3.abrupt("return", []);
 702  
 703          case 8:
 704            _context3.next = 10;
 705            return kindConfig.loadEntities();
 706  
 707          case 10:
 708            entities = _context3.sent;
 709            _context3.next = 13;
 710            return Object(_actions__WEBPACK_IMPORTED_MODULE_1__["addEntities"])(entities);
 711  
 712          case 13:
 713            return _context3.abrupt("return", entities);
 714  
 715          case 14:
 716          case "end":
 717            return _context3.stop();
 718        }
 719      }
 720    }, _marked3, this);
 721  }
 722  
 723  
 724  /***/ }),
 725  
 726  /***/ "./node_modules/@wordpress/core-data/build-module/index.js":
 727  /*!*****************************************************************!*\
 728    !*** ./node_modules/@wordpress/core-data/build-module/index.js ***!
 729    \*****************************************************************/
 730  /*! exports provided: default */
 731  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 732  
 733  "use strict";
 734  __webpack_require__.r(__webpack_exports__);
 735  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
 736  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
 737  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
 738  /* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reducer */ "./node_modules/@wordpress/core-data/build-module/reducer.js");
 739  /* harmony import */ var _controls__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./controls */ "./node_modules/@wordpress/core-data/build-module/controls.js");
 740  /* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./selectors */ "./node_modules/@wordpress/core-data/build-module/selectors.js");
 741  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./actions */ "./node_modules/@wordpress/core-data/build-module/actions.js");
 742  /* harmony import */ var _resolvers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./resolvers */ "./node_modules/@wordpress/core-data/build-module/resolvers.js");
 743  /* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities */ "./node_modules/@wordpress/core-data/build-module/entities.js");
 744  /* harmony import */ var _name__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./name */ "./node_modules/@wordpress/core-data/build-module/name.js");
 745  
 746  
 747  /**
 748   * WordPress dependencies
 749   */
 750  
 751  /**
 752   * Internal dependencies
 753   */
 754  
 755  
 756  
 757  
 758  
 759  
 760  
 761  
 762  
 763  var createEntityRecordSelector = function createEntityRecordSelector(source) {
 764    return _entities__WEBPACK_IMPORTED_MODULE_7__["defaultEntities"].reduce(function (result, entity) {
 765      var kind = entity.kind,
 766          name = entity.name;
 767  
 768      result[Object(_entities__WEBPACK_IMPORTED_MODULE_7__["getMethodName"])(kind, name)] = function (state, key) {
 769        return source.getEntityRecord(state, kind, name, key);
 770      };
 771  
 772      result[Object(_entities__WEBPACK_IMPORTED_MODULE_7__["getMethodName"])(kind, name, 'get', true)] = function (state) {
 773        for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
 774          args[_key - 1] = arguments[_key];
 775        }
 776  
 777        return source.getEntityRecords.apply(source, [state, kind, name].concat(args));
 778      };
 779  
 780      return result;
 781    }, {});
 782  };
 783  
 784  var createEntityRecordResolver = function createEntityRecordResolver(source) {
 785    return _entities__WEBPACK_IMPORTED_MODULE_7__["defaultEntities"].reduce(function (result, entity) {
 786      var kind = entity.kind,
 787          name = entity.name;
 788  
 789      result[Object(_entities__WEBPACK_IMPORTED_MODULE_7__["getMethodName"])(kind, name)] = function (key) {
 790        return source.getEntityRecord(kind, name, key);
 791      };
 792  
 793      result[Object(_entities__WEBPACK_IMPORTED_MODULE_7__["getMethodName"])(kind, name, 'get', true)] = function () {
 794        for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
 795          args[_key2] = arguments[_key2];
 796        }
 797  
 798        return source.getEntityRecords.apply(source, [kind, name].concat(args));
 799      };
 800  
 801      return result;
 802    }, {});
 803  };
 804  
 805  var entityResolvers = createEntityRecordResolver(_resolvers__WEBPACK_IMPORTED_MODULE_6__);
 806  var entitySelectors = createEntityRecordSelector(_selectors__WEBPACK_IMPORTED_MODULE_4__);
 807  var store = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__["registerStore"])(_name__WEBPACK_IMPORTED_MODULE_8__["REDUCER_KEY"], {
 808    reducer: _reducer__WEBPACK_IMPORTED_MODULE_2__["default"],
 809    actions: _actions__WEBPACK_IMPORTED_MODULE_5__,
 810    controls: _controls__WEBPACK_IMPORTED_MODULE_3__["default"],
 811    selectors: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _selectors__WEBPACK_IMPORTED_MODULE_4__, entitySelectors),
 812    resolvers: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _resolvers__WEBPACK_IMPORTED_MODULE_6__, entityResolvers)
 813  });
 814  /* harmony default export */ __webpack_exports__["default"] = (store);
 815  
 816  
 817  /***/ }),
 818  
 819  /***/ "./node_modules/@wordpress/core-data/build-module/name.js":
 820  /*!****************************************************************!*\
 821    !*** ./node_modules/@wordpress/core-data/build-module/name.js ***!
 822    \****************************************************************/
 823  /*! exports provided: REDUCER_KEY */
 824  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 825  
 826  "use strict";
 827  __webpack_require__.r(__webpack_exports__);
 828  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REDUCER_KEY", function() { return REDUCER_KEY; });
 829  /**
 830   * The reducer key used by core data in store registration.
 831   * This is defined in a separate file to avoid cycle-dependency
 832   *
 833   * @type {string}
 834   */
 835  var REDUCER_KEY = 'core';
 836  
 837  
 838  /***/ }),
 839  
 840  /***/ "./node_modules/@wordpress/core-data/build-module/queried-data/actions.js":
 841  /*!********************************************************************************!*\
 842    !*** ./node_modules/@wordpress/core-data/build-module/queried-data/actions.js ***!
 843    \********************************************************************************/
 844  /*! exports provided: receiveItems, receiveQueriedItems */
 845  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 846  
 847  "use strict";
 848  __webpack_require__.r(__webpack_exports__);
 849  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveItems", function() { return receiveItems; });
 850  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "receiveQueriedItems", function() { return receiveQueriedItems; });
 851  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
 852  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
 853  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
 854  
 855  
 856  /**
 857   * External dependencies
 858   */
 859  
 860  /**
 861   * Returns an action object used in signalling that items have been received.
 862   *
 863   * @param {Array} items Items received.
 864   *
 865   * @return {Object} Action object.
 866   */
 867  
 868  function receiveItems(items) {
 869    return {
 870      type: 'RECEIVE_ITEMS',
 871      items: Object(lodash__WEBPACK_IMPORTED_MODULE_1__["castArray"])(items)
 872    };
 873  }
 874  /**
 875   * Returns an action object used in signalling that queried data has been
 876   * received.
 877   *
 878   * @param {Array}   items Queried items received.
 879   * @param {?Object} query Optional query object.
 880   *
 881   * @return {Object} Action object.
 882   */
 883  
 884  function receiveQueriedItems(items) {
 885    var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
 886    return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, receiveItems(items), {
 887      query: query
 888    });
 889  }
 890  
 891  
 892  /***/ }),
 893  
 894  /***/ "./node_modules/@wordpress/core-data/build-module/queried-data/get-query-parts.js":
 895  /*!****************************************************************************************!*\
 896    !*** ./node_modules/@wordpress/core-data/build-module/queried-data/get-query-parts.js ***!
 897    \****************************************************************************************/
 898  /*! exports provided: getQueryParts, default */
 899  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 900  
 901  "use strict";
 902  __webpack_require__.r(__webpack_exports__);
 903  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQueryParts", function() { return getQueryParts; });
 904  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
 905  /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url");
 906  /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_1__);
 907  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./node_modules/@wordpress/core-data/build-module/utils/index.js");
 908  
 909  
 910  /**
 911   * WordPress dependencies
 912   */
 913  
 914  /**
 915   * Internal dependencies
 916   */
 917  
 918  
 919  /**
 920   * An object of properties describing a specific query.
 921   *
 922   * @typedef {WPQueriedDataQueryParts}
 923   *
 924   * @property {number} page      The query page (1-based index, default 1).
 925   * @property {number} perPage   Items per page for query (default 10).
 926   * @property {string} stableKey An encoded stable string of all non-pagination
 927   *                              query parameters.
 928   */
 929  
 930  /**
 931   * Given a query object, returns an object of parts, including pagination
 932   * details (`page` and `perPage`, or default values). All other properties are
 933   * encoded into a stable (idempotent) `stableKey` value.
 934   *
 935   * @param {Object} query Optional query object.
 936   *
 937   * @return {WPQueriedDataQueryParts} Query parts.
 938   */
 939  
 940  function getQueryParts(query) {
 941    /**
 942     * @type {WPQueriedDataQueryParts}
 943     */
 944    var parts = {
 945      stableKey: '',
 946      page: 1,
 947      perPage: 10
 948    }; // Ensure stable key by sorting keys. Also more efficient for iterating.
 949  
 950    var keys = Object.keys(query).sort();
 951  
 952    for (var i = 0; i < keys.length; i++) {
 953      var key = keys[i];
 954      var value = query[key];
 955  
 956      switch (key) {
 957        case 'page':
 958          parts[key] = Number(value);
 959          break;
 960  
 961        case 'per_page':
 962          parts.perPage = Number(value);
 963          break;
 964  
 965        default:
 966          // While it could be any deterministic string, for simplicity's
 967          // sake mimic querystring encoding for stable key.
 968          //
 969          // TODO: For consistency with PHP implementation, addQueryArgs
 970          // should accept a key value pair, which may optimize its
 971          // implementation for our use here, vs. iterating an object
 972          // with only a single key.
 973          parts.stableKey += (parts.stableKey ? '&' : '') + Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_1__["addQueryArgs"])('', Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, key, value)).slice(1);
 974      }
 975    }
 976  
 977    return parts;
 978  }
 979  /* harmony default export */ __webpack_exports__["default"] = (Object(_utils__WEBPACK_IMPORTED_MODULE_2__["withWeakMapCache"])(getQueryParts));
 980  
 981  
 982  /***/ }),
 983  
 984  /***/ "./node_modules/@wordpress/core-data/build-module/queried-data/index.js":
 985  /*!******************************************************************************!*\
 986    !*** ./node_modules/@wordpress/core-data/build-module/queried-data/index.js ***!
 987    \******************************************************************************/
 988  /*! exports provided: reducer, receiveItems, receiveQueriedItems, getQueriedItems */
 989  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 990  
 991  "use strict";
 992  __webpack_require__.r(__webpack_exports__);
 993  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./actions */ "./node_modules/@wordpress/core-data/build-module/queried-data/actions.js");
 994  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "receiveItems", function() { return _actions__WEBPACK_IMPORTED_MODULE_0__["receiveItems"]; });
 995  
 996  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "receiveQueriedItems", function() { return _actions__WEBPACK_IMPORTED_MODULE_0__["receiveQueriedItems"]; });
 997  
 998  /* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selectors */ "./node_modules/@wordpress/core-data/build-module/queried-data/selectors.js");
 999  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getQueriedItems", function() { return _selectors__WEBPACK_IMPORTED_MODULE_1__["getQueriedItems"]; });
1000  
1001  /* harmony import */ var _reducer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reducer */ "./node_modules/@wordpress/core-data/build-module/queried-data/reducer.js");
1002  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reducer", function() { return _reducer__WEBPACK_IMPORTED_MODULE_2__["default"]; });
1003  
1004  
1005  
1006  
1007  
1008  
1009  /***/ }),
1010  
1011  /***/ "./node_modules/@wordpress/core-data/build-module/queried-data/reducer.js":
1012  /*!********************************************************************************!*\
1013    !*** ./node_modules/@wordpress/core-data/build-module/queried-data/reducer.js ***!
1014    \********************************************************************************/
1015  /*! exports provided: getMergedItemIds, default */
1016  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1017  
1018  "use strict";
1019  __webpack_require__.r(__webpack_exports__);
1020  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMergedItemIds", function() { return getMergedItemIds; });
1021  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
1022  /* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js");
1023  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "lodash");
1024  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
1025  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./node_modules/@wordpress/core-data/build-module/utils/index.js");
1026  /* harmony import */ var _get_query_parts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get-query-parts */ "./node_modules/@wordpress/core-data/build-module/queried-data/get-query-parts.js");
1027  
1028  
1029  /**
1030   * External dependencies
1031   */
1032  
1033  
1034  /**
1035   * Internal dependencies
1036   */
1037  
1038  
1039  
1040  /**
1041   * Returns a merged array of item IDs, given details of the received paginated
1042   * items. The array is sparse-like with `undefined` entries where holes exist.
1043   *
1044   * @param {?Array<number>} itemIds     Original item IDs (default empty array).
1045   * @param {number[]}       nextItemIds Item IDs to merge.
1046   * @param {number}         page        Page of items merged.
1047   * @param {number}         perPage     Number of items per page.
1048   *
1049   * @return {number[]} Merged array of item IDs.
1050   */
1051  
1052  function getMergedItemIds(itemIds, nextItemIds, page, perPage) {
1053    var nextItemIdsStartIndex = (page - 1) * perPage; // If later page has already been received, default to the larger known
1054    // size of the existing array, else calculate as extending the existing.
1055  
1056    var size = Math.max(itemIds.length, nextItemIdsStartIndex + nextItemIds.length); // Preallocate array since size is known.
1057  
1058    var mergedItemIds = new Array(size);
1059  
1060    for (var i = 0; i < size; i++) {
1061      // Preserve existing item ID except for subset of range of next items.
1062      var isInNextItemsRange = i >= nextItemIdsStartIndex && i < nextItemIdsStartIndex + nextItemIds.length;
1063      mergedItemIds[i] = isInNextItemsRange ? nextItemIds[i - nextItemIdsStartIndex] : itemIds[i];
1064    }
1065  
1066    return mergedItemIds;
1067  }
1068  /**
1069   * Reducer tracking items state, keyed by ID. Items are assumed to be normal,
1070   * where identifiers are common across all queries.
1071   *
1072   * @param {Object} state  Current state.
1073   * @param {Object} action Dispatched action.
1074   *
1075   * @return {Object} Next state.
1076   */
1077  
1078  function items() {
1079    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1080    var action = arguments.length > 1 ? arguments[1] : undefined;
1081  
1082    switch (action.type) {
1083      case 'RECEIVE_ITEMS':
1084        return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, state, Object(lodash__WEBPACK_IMPORTED_MODULE_2__["keyBy"])(action.items, action.key || 'id'));
1085    }
1086  
1087    return state;
1088  }
1089  /**
1090   * Reducer tracking queries state, keyed by stable query key. Each reducer
1091   * query object includes `itemIds` and `requestingPageByPerPage`.
1092   *
1093   * @param {Object} state  Current state.
1094   * @param {Object} action Dispatched action.
1095   *
1096   * @return {Object} Next state.
1097   */
1098  
1099  
1100  var queries = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["flowRight"])([// Limit to matching action type so we don't attempt to replace action on
1101  // an unhandled action.
1102  Object(_utils__WEBPACK_IMPORTED_MODULE_3__["ifMatchingAction"])(function (action) {
1103    return 'query' in action;
1104  }), // Inject query parts into action for use both in `onSubKey` and reducer.
1105  Object(_utils__WEBPACK_IMPORTED_MODULE_3__["replaceAction"])(function (action) {
1106    // `ifMatchingAction` still passes on initialization, where state is
1107    // undefined and a query is not assigned. Avoid attempting to parse
1108    // parts. `onSubKey` will omit by lack of `stableKey`.
1109    if (action.query) {
1110      return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, action, Object(_get_query_parts__WEBPACK_IMPORTED_MODULE_4__["default"])(action.query));
1111    }
1112  
1113    return action;
1114  }), // Queries shape is shared, but keyed by query `stableKey` part. Original
1115  // reducer tracks only a single query object.
1116  Object(_utils__WEBPACK_IMPORTED_MODULE_3__["onSubKey"])('stableKey')])(function () {
1117    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1118    var action = arguments.length > 1 ? arguments[1] : undefined;
1119    var type = action.type,
1120        page = action.page,
1121        perPage = action.perPage,
1122        _action$key = action.key,
1123        key = _action$key === void 0 ? 'id' : _action$key;
1124  
1125    if (type !== 'RECEIVE_ITEMS') {
1126      return state;
1127    }
1128  
1129    return getMergedItemIds(state || [], Object(lodash__WEBPACK_IMPORTED_MODULE_2__["map"])(action.items, key), page, perPage);
1130  });
1131  /* harmony default export */ __webpack_exports__["default"] = (Object(redux__WEBPACK_IMPORTED_MODULE_1__["combineReducers"])({
1132    items: items,
1133    queries: queries
1134  }));
1135  
1136  
1137  /***/ }),
1138  
1139  /***/ "./node_modules/@wordpress/core-data/build-module/queried-data/selectors.js":
1140  /*!**********************************************************************************!*\
1141    !*** ./node_modules/@wordpress/core-data/build-module/queried-data/selectors.js ***!
1142    \**********************************************************************************/
1143  /*! exports provided: getQueriedItems */
1144  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1145  
1146  "use strict";
1147  __webpack_require__.r(__webpack_exports__);
1148  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQueriedItems", function() { return getQueriedItems; });
1149  /* harmony import */ var rememo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rememo */ "./node_modules/rememo/es/rememo.js");
1150  /* harmony import */ var equivalent_key_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! equivalent-key-map */ "./node_modules/equivalent-key-map/equivalent-key-map.js");
1151  /* harmony import */ var equivalent_key_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(equivalent_key_map__WEBPACK_IMPORTED_MODULE_1__);
1152  /* harmony import */ var _get_query_parts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-query-parts */ "./node_modules/@wordpress/core-data/build-module/queried-data/get-query-parts.js");
1153  /**
1154   * External dependencies
1155   */
1156  
1157  
1158  /**
1159   * Internal dependencies
1160   */
1161  
1162  
1163  /**
1164   * Cache of state keys to EquivalentKeyMap where the inner map tracks queries
1165   * to their resulting items set. WeakMap allows garbage collection on expired
1166   * state references.
1167   *
1168   * @type {WeakMap<Object,EquivalentKeyMap>}
1169   */
1170  
1171  var queriedItemsCacheByState = new WeakMap();
1172  /**
1173   * Returns items for a given query, or null if the items are not known.
1174   *
1175   * @param {Object}  state State object.
1176   * @param {?Object} query Optional query.
1177   *
1178   * @return {?Array} Query items.
1179   */
1180  
1181  function getQueriedItemsUncached(state, query) {
1182    var _getQueryParts = Object(_get_query_parts__WEBPACK_IMPORTED_MODULE_2__["default"])(query),
1183        stableKey = _getQueryParts.stableKey,
1184        page = _getQueryParts.page,
1185        perPage = _getQueryParts.perPage;
1186  
1187    if (!state.queries[stableKey]) {
1188      return null;
1189    }
1190  
1191    var itemIds = state.queries[stableKey];
1192  
1193    if (!itemIds) {
1194      return null;
1195    }
1196  
1197    var startOffset = perPage === -1 ? 0 : (page - 1) * perPage;
1198    var endOffset = perPage === -1 ? itemIds.length : Math.min(startOffset + perPage, itemIds.length);
1199    var items = [];
1200  
1201    for (var i = startOffset; i < endOffset; i++) {
1202      var itemId = itemIds[i];
1203      items.push(state.items[itemId]);
1204    }
1205  
1206    return items;
1207  }
1208  /**
1209   * Returns items for a given query, or null if the items are not known. Caches
1210   * result both per state (by reference) and per query (by deep equality).
1211   * The caching approach is intended to be durable to query objects which are
1212   * deeply but not referentially equal, since otherwise:
1213   *
1214   * `getQueriedItems( state, {} ) !== getQueriedItems( state, {} )`
1215   *
1216   * @param {Object}  state State object.
1217   * @param {?Object} query Optional query.
1218   *
1219   * @return {?Array} Query items.
1220   */
1221  
1222  
1223  var getQueriedItems = Object(rememo__WEBPACK_IMPORTED_MODULE_0__["default"])(function (state) {
1224    var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1225    var queriedItemsCache = queriedItemsCacheByState.get(state);
1226  
1227    if (queriedItemsCache) {
1228      var queriedItems = queriedItemsCache.get(query);
1229  
1230      if (queriedItems !== undefined) {
1231        return queriedItems;
1232      }
1233    } else {
1234      queriedItemsCache = new equivalent_key_map__WEBPACK_IMPORTED_MODULE_1___default.a();
1235      queriedItemsCacheByState.set(state, queriedItemsCache);
1236    }
1237  
1238    var items = getQueriedItemsUncached(state, query);
1239    queriedItemsCache.set(query, items);
1240    return items;
1241  });
1242  
1243  
1244  /***/ }),
1245  
1246  /***/ "./node_modules/@wordpress/core-data/build-module/reducer.js":
1247  /*!*******************************************************************!*\
1248    !*** ./node_modules/@wordpress/core-data/build-module/reducer.js ***!
1249    \*******************************************************************/
1250  /*! exports provided: terms, users, taxonomies, themeSupports, entitiesConfig, entities, embedPreviews, default */
1251  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1252  
1253  "use strict";
1254  __webpack_require__.r(__webpack_exports__);
1255  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "terms", function() { return terms; });
1256  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "users", function() { return users; });
1257  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "taxonomies", function() { return taxonomies; });
1258  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "themeSupports", function() { return themeSupports; });
1259  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "entitiesConfig", function() { return entitiesConfig; });
1260  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "entities", function() { return entities; });
1261  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "embedPreviews", function() { return embedPreviews; });
1262  /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
1263  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
1264  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
1265  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
1266  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ "lodash");
1267  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
1268  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
1269  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
1270  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./node_modules/@wordpress/core-data/build-module/utils/index.js");
1271  /* harmony import */ var _queried_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./queried-data */ "./node_modules/@wordpress/core-data/build-module/queried-data/index.js");
1272  /* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./entities */ "./node_modules/@wordpress/core-data/build-module/entities.js");
1273  
1274  
1275  
1276  
1277  
1278  /**
1279   * External dependencies
1280   */
1281  
1282  /**
1283   * WordPress dependencies
1284   */
1285  
1286  
1287  /**
1288   * Internal dependencies
1289   */
1290  
1291  
1292  
1293  
1294  /**
1295   * Reducer managing terms state. Keyed by taxonomy slug, the value is either
1296   * undefined (if no request has been made for given taxonomy), null (if a
1297   * request is in-flight for given taxonomy), or the array of terms for the
1298   * taxonomy.
1299   *
1300   * @param {Object} state  Current state.
1301   * @param {Object} action Dispatched action.
1302   *
1303   * @return {Object} Updated state.
1304   */
1305  
1306  function terms() {
1307    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1308    var action = arguments.length > 1 ? arguments[1] : undefined;
1309  
1310    switch (action.type) {
1311      case 'RECEIVE_TERMS':
1312        return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, state, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, action.taxonomy, action.terms));
1313    }
1314  
1315    return state;
1316  }
1317  /**
1318   * Reducer managing authors state. Keyed by id.
1319   *
1320   * @param {Object} state  Current state.
1321   * @param {Object} action Dispatched action.
1322   *
1323   * @return {Object} Updated state.
1324   */
1325  
1326  function users() {
1327    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
1328      byId: {},
1329      queries: {}
1330    };
1331    var action = arguments.length > 1 ? arguments[1] : undefined;
1332  
1333    switch (action.type) {
1334      case 'RECEIVE_USER_QUERY':
1335        return {
1336          byId: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, state.byId, Object(lodash__WEBPACK_IMPORTED_MODULE_4__["keyBy"])(action.users, 'id')),
1337          queries: Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, state.queries, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, action.queryID, Object(lodash__WEBPACK_IMPORTED_MODULE_4__["map"])(action.users, function (user) {
1338            return user.id;
1339          })))
1340        };
1341    }
1342  
1343    return state;
1344  }
1345  /**
1346   * Reducer managing taxonomies.
1347   *
1348   * @param {Object} state  Current state.
1349   * @param {Object} action Dispatched action.
1350   *
1351   * @return {Object} Updated state.
1352   */
1353  
1354  function taxonomies() {
1355    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
1356    var action = arguments.length > 1 ? arguments[1] : undefined;
1357  
1358    switch (action.type) {
1359      case 'RECEIVE_TAXONOMIES':
1360        return action.taxonomies;
1361    }
1362  
1363    return state;
1364  }
1365  /**
1366   * Reducer managing theme supports data.
1367   *
1368   * @param {Object} state  Current state.
1369   * @param {Object} action Dispatched action.
1370   *
1371   * @return {Object} Updated state.
1372   */
1373  
1374  function themeSupports() {
1375    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1376    var action = arguments.length > 1 ? arguments[1] : undefined;
1377  
1378    switch (action.type) {
1379      case 'RECEIVE_THEME_SUPPORTS':
1380        return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, state, action.themeSupports);
1381    }
1382  
1383    return state;
1384  }
1385  /**
1386   * Higher Order Reducer for a given entity config. It supports:
1387   *
1388   *  - Fetching a record by primary key
1389   *
1390   * @param {Object} entityConfig  Entity config.
1391   *
1392   * @return {Function} Reducer.
1393   */
1394  
1395  function entity(entityConfig) {
1396    return Object(lodash__WEBPACK_IMPORTED_MODULE_4__["flowRight"])([// Limit to matching action type so we don't attempt to replace action on
1397    // an unhandled action.
1398    Object(_utils__WEBPACK_IMPORTED_MODULE_6__["ifMatchingAction"])(function (action) {
1399      return action.name && action.kind && action.name === entityConfig.name && action.kind === entityConfig.kind;
1400    }), // Inject the entity config into the action.
1401    Object(_utils__WEBPACK_IMPORTED_MODULE_6__["replaceAction"])(function (action) {
1402      return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, action, {
1403        key: entityConfig.key || 'id'
1404      });
1405    })])(_queried_data__WEBPACK_IMPORTED_MODULE_7__["reducer"]);
1406  }
1407  /**
1408   * Reducer keeping track of the registered entities.
1409   *
1410   * @param {Object} state  Current state.
1411   * @param {Object} action Dispatched action.
1412   *
1413   * @return {Object} Updated state.
1414   */
1415  
1416  
1417  function entitiesConfig() {
1418    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _entities__WEBPACK_IMPORTED_MODULE_8__["defaultEntities"];
1419    var action = arguments.length > 1 ? arguments[1] : undefined;
1420  
1421    switch (action.type) {
1422      case 'ADD_ENTITIES':
1423        return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(state).concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(action.entities));
1424    }
1425  
1426    return state;
1427  }
1428  /**
1429   * Reducer keeping track of the registered entities config and data.
1430   *
1431   * @param {Object} state  Current state.
1432   * @param {Object} action Dispatched action.
1433   *
1434   * @return {Object} Updated state.
1435   */
1436  
1437  var entities = function entities() {
1438    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1439    var action = arguments.length > 1 ? arguments[1] : undefined;
1440    var newConfig = entitiesConfig(state.config, action); // Generates a dynamic reducer for the entities
1441  
1442    var entitiesDataReducer = state.reducer;
1443  
1444    if (!entitiesDataReducer || newConfig !== state.config) {
1445      var entitiesByKind = Object(lodash__WEBPACK_IMPORTED_MODULE_4__["groupBy"])(newConfig, 'kind');
1446      entitiesDataReducer = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["combineReducers"])(Object.entries(entitiesByKind).reduce(function (memo, _ref) {
1447        var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, 2),
1448            kind = _ref2[0],
1449            subEntities = _ref2[1];
1450  
1451        var kindReducer = Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["combineReducers"])(subEntities.reduce(function (kindMemo, entityConfig) {
1452          return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, kindMemo, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, entityConfig.name, entity(entityConfig)));
1453        }, {}));
1454        memo[kind] = kindReducer;
1455        return memo;
1456      }, {}));
1457    }
1458  
1459    var newData = entitiesDataReducer(state.data, action);
1460  
1461    if (newData === state.data && newConfig === state.config && entitiesDataReducer === state.reducer) {
1462      return state;
1463    }
1464  
1465    return {
1466      reducer: entitiesDataReducer,
1467      data: newData,
1468      config: newConfig
1469    };
1470  };
1471  /**
1472   * Reducer managing embed preview data.
1473   *
1474   * @param {Object} state  Current state.
1475   * @param {Object} action Dispatched action.
1476   *
1477   * @return {Object} Updated state.
1478   */
1479  
1480  function embedPreviews() {
1481    var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1482    var action = arguments.length > 1 ? arguments[1] : undefined;
1483  
1484    switch (action.type) {
1485      case 'RECEIVE_EMBED_PREVIEW':
1486        var url = action.url,
1487            preview = action.preview;
1488        return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_3__["default"])({}, state, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, url, preview));
1489    }
1490  
1491    return state;
1492  }
1493  /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__["combineReducers"])({
1494    terms: terms,
1495    users: users,
1496    taxonomies: taxonomies,
1497    themeSupports: themeSupports,
1498    entities: entities,
1499    embedPreviews: embedPreviews
1500  }));
1501  
1502  
1503  /***/ }),
1504  
1505  /***/ "./node_modules/@wordpress/core-data/build-module/resolvers.js":
1506  /*!*********************************************************************!*\
1507    !*** ./node_modules/@wordpress/core-data/build-module/resolvers.js ***!
1508    \*********************************************************************/
1509  /*! exports provided: getAuthors, getEntityRecord, getEntityRecords, getThemeSupports, getEmbedPreview */
1510  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1511  
1512  "use strict";
1513  __webpack_require__.r(__webpack_exports__);
1514  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAuthors", function() { return getAuthors; });
1515  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntityRecord", function() { return getEntityRecord; });
1516  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntityRecords", function() { return getEntityRecords; });
1517  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeSupports", function() { return getThemeSupports; });
1518  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEmbedPreview", function() { return getEmbedPreview; });
1519  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
1520  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
1521  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
1522  /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/url */ "@wordpress/url");
1523  /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__);
1524  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./actions */ "./node_modules/@wordpress/core-data/build-module/actions.js");
1525  /* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./entities */ "./node_modules/@wordpress/core-data/build-module/entities.js");
1526  /* harmony import */ var _controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./controls */ "./node_modules/@wordpress/core-data/build-module/controls.js");
1527  
1528  
1529  var _marked =
1530  /*#__PURE__*/
1531  regeneratorRuntime.mark(getAuthors),
1532      _marked2 =
1533  /*#__PURE__*/
1534  regeneratorRuntime.mark(getEntityRecord),
1535      _marked3 =
1536  /*#__PURE__*/
1537  regeneratorRuntime.mark(getEntityRecords),
1538      _marked4 =
1539  /*#__PURE__*/
1540  regeneratorRuntime.mark(getThemeSupports),
1541      _marked5 =
1542  /*#__PURE__*/
1543  regeneratorRuntime.mark(getEmbedPreview);
1544  
1545  /**
1546   * External dependencies
1547   */
1548  
1549  /**
1550   * WordPress dependencies
1551   */
1552  
1553  
1554  /**
1555   * Internal dependencies
1556   */
1557  
1558  
1559  
1560  
1561  /**
1562   * Requests authors from the REST API.
1563   */
1564  
1565  function getAuthors() {
1566    var users;
1567    return regeneratorRuntime.wrap(function getAuthors$(_context) {
1568      while (1) {
1569        switch (_context.prev = _context.next) {
1570          case 0:
1571            _context.next = 2;
1572            return Object(_controls__WEBPACK_IMPORTED_MODULE_5__["apiFetch"])({
1573              path: '/wp/v2/users/?who=authors&per_page=-1'
1574            });
1575  
1576          case 2:
1577            users = _context.sent;
1578            _context.next = 5;
1579            return Object(_actions__WEBPACK_IMPORTED_MODULE_3__["receiveUserQuery"])('authors', users);
1580  
1581          case 5:
1582          case "end":
1583            return _context.stop();
1584        }
1585      }
1586    }, _marked, this);
1587  }
1588  /**
1589   * Requests an entity's record from the REST API.
1590   *
1591   * @param {string} kind   Entity kind.
1592   * @param {string} name   Entity name.
1593   * @param {number} key    Record's key
1594   */
1595  
1596  function getEntityRecord(kind, name, key) {
1597    var entities, entity, record;
1598    return regeneratorRuntime.wrap(function getEntityRecord$(_context2) {
1599      while (1) {
1600        switch (_context2.prev = _context2.next) {
1601          case 0:
1602            _context2.next = 2;
1603            return Object(_entities__WEBPACK_IMPORTED_MODULE_4__["getKindEntities"])(kind);
1604  
1605          case 2:
1606            entities = _context2.sent;
1607            entity = Object(lodash__WEBPACK_IMPORTED_MODULE_1__["find"])(entities, {
1608              kind: kind,
1609              name: name
1610            });
1611  
1612            if (entity) {
1613              _context2.next = 6;
1614              break;
1615            }
1616  
1617            return _context2.abrupt("return");
1618  
1619          case 6:
1620            _context2.next = 8;
1621            return Object(_controls__WEBPACK_IMPORTED_MODULE_5__["apiFetch"])({
1622              path: "".concat(entity.baseURL, "/").concat(key, "?context=edit")
1623            });
1624  
1625          case 8:
1626            record = _context2.sent;
1627            _context2.next = 11;
1628            return Object(_actions__WEBPACK_IMPORTED_MODULE_3__["receiveEntityRecords"])(kind, name, record);
1629  
1630          case 11:
1631          case "end":
1632            return _context2.stop();
1633        }
1634      }
1635    }, _marked2, this);
1636  }
1637  /**
1638   * Requests the entity's records from the REST API.
1639   *
1640   * @param {string}  kind   Entity kind.
1641   * @param {string}  name   Entity name.
1642   * @param {Object?} query  Query Object.
1643   */
1644  
1645  function getEntityRecords(kind, name) {
1646    var query,
1647        entities,
1648        entity,
1649        path,
1650        records,
1651        _args3 = arguments;
1652    return regeneratorRuntime.wrap(function getEntityRecords$(_context3) {
1653      while (1) {
1654        switch (_context3.prev = _context3.next) {
1655          case 0:
1656            query = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {};
1657            _context3.next = 3;
1658            return Object(_entities__WEBPACK_IMPORTED_MODULE_4__["getKindEntities"])(kind);
1659  
1660          case 3:
1661            entities = _context3.sent;
1662            entity = Object(lodash__WEBPACK_IMPORTED_MODULE_1__["find"])(entities, {
1663              kind: kind,
1664              name: name
1665            });
1666  
1667            if (entity) {
1668              _context3.next = 7;
1669              break;
1670            }
1671  
1672            return _context3.abrupt("return");
1673  
1674          case 7:
1675            path = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__["addQueryArgs"])(entity.baseURL, Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, query, {
1676              context: 'edit'
1677            }));
1678            _context3.next = 10;
1679            return Object(_controls__WEBPACK_IMPORTED_MODULE_5__["apiFetch"])({
1680              path: path
1681            });
1682  
1683          case 10:
1684            records = _context3.sent;
1685            _context3.next = 13;
1686            return Object(_actions__WEBPACK_IMPORTED_MODULE_3__["receiveEntityRecords"])(kind, name, Object.values(records), query);
1687  
1688          case 13:
1689          case "end":
1690            return _context3.stop();
1691        }
1692      }
1693    }, _marked3, this);
1694  }
1695  /**
1696   * Requests theme supports data from the index.
1697   */
1698  
1699  function getThemeSupports() {
1700    var index;
1701    return regeneratorRuntime.wrap(function getThemeSupports$(_context4) {
1702      while (1) {
1703        switch (_context4.prev = _context4.next) {
1704          case 0:
1705            _context4.next = 2;
1706            return Object(_controls__WEBPACK_IMPORTED_MODULE_5__["apiFetch"])({
1707              path: '/'
1708            });
1709  
1710          case 2:
1711            index = _context4.sent;
1712            _context4.next = 5;
1713            return Object(_actions__WEBPACK_IMPORTED_MODULE_3__["receiveThemeSupportsFromIndex"])(index);
1714  
1715          case 5:
1716          case "end":
1717            return _context4.stop();
1718        }
1719      }
1720    }, _marked4, this);
1721  }
1722  /**
1723   * Requests a preview from the from the Embed API.
1724   *
1725   * @param {string} url   URL to get the preview for.
1726   */
1727  
1728  function getEmbedPreview(url) {
1729    var embedProxyResponse;
1730    return regeneratorRuntime.wrap(function getEmbedPreview$(_context5) {
1731      while (1) {
1732        switch (_context5.prev = _context5.next) {
1733          case 0:
1734            _context5.prev = 0;
1735            _context5.next = 3;
1736            return Object(_controls__WEBPACK_IMPORTED_MODULE_5__["apiFetch"])({
1737              path: Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_2__["addQueryArgs"])('/oembed/1.0/proxy', {
1738                url: url
1739              })
1740            });
1741  
1742          case 3:
1743            embedProxyResponse = _context5.sent;
1744            _context5.next = 6;
1745            return Object(_actions__WEBPACK_IMPORTED_MODULE_3__["receiveEmbedPreview"])(url, embedProxyResponse);
1746  
1747          case 6:
1748            _context5.next = 12;
1749            break;
1750  
1751          case 8:
1752            _context5.prev = 8;
1753            _context5.t0 = _context5["catch"](0);
1754            _context5.next = 12;
1755            return Object(_actions__WEBPACK_IMPORTED_MODULE_3__["receiveEmbedPreview"])(url, false);
1756  
1757          case 12:
1758          case "end":
1759            return _context5.stop();
1760        }
1761      }
1762    }, _marked5, this, [[0, 8]]);
1763  }
1764  
1765  
1766  /***/ }),
1767  
1768  /***/ "./node_modules/@wordpress/core-data/build-module/selectors.js":
1769  /*!*********************************************************************!*\
1770    !*** ./node_modules/@wordpress/core-data/build-module/selectors.js ***!
1771    \*********************************************************************/
1772  /*! exports provided: isRequestingEmbedPreview, getAuthors, getUserQueryResults, getEntitiesByKind, getEntity, getEntityRecord, getEntityRecords, getThemeSupports, getEmbedPreview, isPreviewEmbedFallback */
1773  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1774  
1775  "use strict";
1776  __webpack_require__.r(__webpack_exports__);
1777  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRequestingEmbedPreview", function() { return isRequestingEmbedPreview; });
1778  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAuthors", function() { return getAuthors; });
1779  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserQueryResults", function() { return getUserQueryResults; });
1780  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntitiesByKind", function() { return getEntitiesByKind; });
1781  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntity", function() { return getEntity; });
1782  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntityRecord", function() { return getEntityRecord; });
1783  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEntityRecords", function() { return getEntityRecords; });
1784  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeSupports", function() { return getThemeSupports; });
1785  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEmbedPreview", function() { return getEmbedPreview; });
1786  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPreviewEmbedFallback", function() { return isPreviewEmbedFallback; });
1787  /* harmony import */ var rememo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rememo */ "./node_modules/rememo/es/rememo.js");
1788  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "lodash");
1789  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
1790  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
1791  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);
1792  /* harmony import */ var _name__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./name */ "./node_modules/@wordpress/core-data/build-module/name.js");
1793  /* harmony import */ var _queried_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./queried-data */ "./node_modules/@wordpress/core-data/build-module/queried-data/index.js");
1794  /**
1795   * External dependencies
1796   */
1797  
1798  
1799  /**
1800   * WordPress dependencies
1801   */
1802  
1803  
1804  /**
1805   * Internal dependencies
1806   */
1807  
1808  
1809  
1810  /**
1811   * Returns true if resolution is in progress for the core selector of the given
1812   * name and arguments.
1813   *
1814   * @param {string} selectorName Core data selector name.
1815   * @param {...*}   args         Arguments passed to selector.
1816   *
1817   * @return {boolean} Whether resolution is in progress.
1818   */
1819  
1820  function isResolving(selectorName) {
1821    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1822      args[_key - 1] = arguments[_key];
1823    }
1824  
1825    return Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__["select"])('core/data').isResolving(_name__WEBPACK_IMPORTED_MODULE_3__["REDUCER_KEY"], selectorName, args);
1826  }
1827  /**
1828   * Returns true if a request is in progress for embed preview data, or false
1829   * otherwise.
1830   *
1831   * @param {Object} state Data state.
1832   * @param {string} url   URL the preview would be for.
1833   *
1834   * @return {boolean} Whether a request is in progress for an embed preview.
1835   */
1836  
1837  
1838  function isRequestingEmbedPreview(state, url) {
1839    return isResolving('getEmbedPreview', url);
1840  }
1841  /**
1842   * Returns all available authors.
1843   *
1844   * @param {Object} state Data state.
1845   *
1846   * @return {Array} Authors list.
1847   */
1848  
1849  function getAuthors(state) {
1850    return getUserQueryResults(state, 'authors');
1851  }
1852  /**
1853   * Returns all the users returned by a query ID.
1854   *
1855   * @param {Object} state   Data state.
1856   * @param {string} queryID Query ID.
1857   *
1858   * @return {Array} Users list.
1859   */
1860  
1861  var getUserQueryResults = Object(rememo__WEBPACK_IMPORTED_MODULE_0__["default"])(function (state, queryID) {
1862    var queryResults = state.users.queries[queryID];
1863    return Object(lodash__WEBPACK_IMPORTED_MODULE_1__["map"])(queryResults, function (id) {
1864      return state.users.byId[id];
1865    });
1866  }, function (state, queryID) {
1867    return [state.users.queries[queryID], state.users.byId];
1868  });
1869  /**
1870   * Returns whether the entities for the give kind are loaded.
1871   *
1872   * @param {Object} state   Data state.
1873   * @param {string} kind  Entity kind.
1874   *
1875   * @return {boolean} Whether the entities are loaded
1876   */
1877  
1878  function getEntitiesByKind(state, kind) {
1879    return Object(lodash__WEBPACK_IMPORTED_MODULE_1__["filter"])(state.entities.config, {
1880      kind: kind
1881    });
1882  }
1883  /**
1884   * Returns the entity object given its kind and name.
1885   *
1886   * @param {Object} state   Data state.
1887   * @param {string} kind  Entity kind.
1888   * @param {string} name  Entity name.
1889   *
1890   * @return {Object} Entity
1891   */
1892  
1893  function getEntity(state, kind, name) {
1894    return Object(lodash__WEBPACK_IMPORTED_MODULE_1__["find"])(state.entities.config, {
1895      kind: kind,
1896      name: name
1897    });
1898  }
1899  /**
1900   * Returns the Entity's record object by key.
1901   *
1902   * @param {Object} state  State tree
1903   * @param {string} kind   Entity kind.
1904   * @param {string} name   Entity name.
1905   * @param {number} key    Record's key
1906   *
1907   * @return {Object?} Record.
1908   */
1909  
1910  function getEntityRecord(state, kind, name, key) {
1911    return Object(lodash__WEBPACK_IMPORTED_MODULE_1__["get"])(state.entities.data, [kind, name, 'items', key]);
1912  }
1913  /**
1914   * Returns the Entity's records.
1915   *
1916   * @param {Object}  state  State tree
1917   * @param {string}  kind   Entity kind.
1918   * @param {string}  name   Entity name.
1919   * @param {?Object} query  Optional terms query.
1920   *
1921   * @return {Array} Records.
1922   */
1923  
1924  function getEntityRecords(state, kind, name, query) {
1925    var queriedState = Object(lodash__WEBPACK_IMPORTED_MODULE_1__["get"])(state.entities.data, [kind, name]);
1926  
1927    if (!queriedState) {
1928      return [];
1929    }
1930  
1931    return Object(_queried_data__WEBPACK_IMPORTED_MODULE_4__["getQueriedItems"])(queriedState, query);
1932  }
1933  /**
1934   * Return theme supports data in the index.
1935   *
1936   * @param {Object} state Data state.
1937   *
1938   * @return {*}           Index data.
1939   */
1940  
1941  function getThemeSupports(state) {
1942    return state.themeSupports;
1943  }
1944  /**
1945   * Returns the embed preview for the given URL.
1946   *
1947   * @param {Object} state    Data state.
1948   * @param {string} url      Embedded URL.
1949   *
1950   * @return {*} Undefined if the preview has not been fetched, otherwise, the preview fetched from the embed preview API.
1951   */
1952  
1953  function getEmbedPreview(state, url) {
1954    return state.embedPreviews[url];
1955  }
1956  /**
1957   * Determines if the returned preview is an oEmbed link fallback.
1958   *
1959   * WordPress can be configured to return a simple link to a URL if it is not embeddable.
1960   * We need to be able to determine if a URL is embeddable or not, based on what we
1961   * get back from the oEmbed preview API.
1962   *
1963   * @param {Object} state    Data state.
1964   * @param {string} url      Embedded URL.
1965   *
1966   * @return {booleans} Is the preview for the URL an oEmbed link fallback.
1967   */
1968  
1969  function isPreviewEmbedFallback(state, url) {
1970    var preview = state.embedPreviews[url];
1971    var oEmbedLinkCheck = '<a href="' + url + '">' + url + '</a>';
1972  
1973    if (!preview) {
1974      return false;
1975    }
1976  
1977    return preview.html === oEmbedLinkCheck;
1978  }
1979  
1980  
1981  /***/ }),
1982  
1983  /***/ "./node_modules/@wordpress/core-data/build-module/utils/if-matching-action.js":
1984  /*!************************************************************************************!*\
1985    !*** ./node_modules/@wordpress/core-data/build-module/utils/if-matching-action.js ***!
1986    \************************************************************************************/
1987  /*! exports provided: default */
1988  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1989  
1990  "use strict";
1991  __webpack_require__.r(__webpack_exports__);
1992  /**
1993   * A higher-order reducer creator which invokes the original reducer only if
1994   * the dispatching action matches the given predicate, **OR** if state is
1995   * initializing (undefined).
1996   *
1997   * @param {Function} isMatch Function predicate for allowing reducer call.
1998   *
1999   * @return {Function} Higher-order reducer.
2000   */
2001  var ifMatchingAction = function ifMatchingAction(isMatch) {
2002    return function (reducer) {
2003      return function (state, action) {
2004        if (state === undefined || isMatch(action)) {
2005          return reducer(state, action);
2006        }
2007  
2008        return state;
2009      };
2010    };
2011  };
2012  
2013  /* harmony default export */ __webpack_exports__["default"] = (ifMatchingAction);
2014  
2015  
2016  /***/ }),
2017  
2018  /***/ "./node_modules/@wordpress/core-data/build-module/utils/index.js":
2019  /*!***********************************************************************!*\
2020    !*** ./node_modules/@wordpress/core-data/build-module/utils/index.js ***!
2021    \***********************************************************************/
2022  /*! exports provided: ifMatchingAction, onSubKey, replaceAction, withWeakMapCache */
2023  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2024  
2025  "use strict";
2026  __webpack_require__.r(__webpack_exports__);
2027  /* harmony import */ var _if_matching_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./if-matching-action */ "./node_modules/@wordpress/core-data/build-module/utils/if-matching-action.js");
2028  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ifMatchingAction", function() { return _if_matching_action__WEBPACK_IMPORTED_MODULE_0__["default"]; });
2029  
2030  /* harmony import */ var _on_sub_key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./on-sub-key */ "./node_modules/@wordpress/core-data/build-module/utils/on-sub-key.js");
2031  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "onSubKey", function() { return _on_sub_key__WEBPACK_IMPORTED_MODULE_1__["default"]; });
2032  
2033  /* harmony import */ var _replace_action__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./replace-action */ "./node_modules/@wordpress/core-data/build-module/utils/replace-action.js");
2034  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "replaceAction", function() { return _replace_action__WEBPACK_IMPORTED_MODULE_2__["default"]; });
2035  
2036  /* harmony import */ var _with_weak_map_cache__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./with-weak-map-cache */ "./node_modules/@wordpress/core-data/build-module/utils/with-weak-map-cache.js");
2037  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withWeakMapCache", function() { return _with_weak_map_cache__WEBPACK_IMPORTED_MODULE_3__["default"]; });
2038  
2039  
2040  
2041  
2042  
2043  
2044  
2045  /***/ }),
2046  
2047  /***/ "./node_modules/@wordpress/core-data/build-module/utils/on-sub-key.js":
2048  /*!****************************************************************************!*\
2049    !*** ./node_modules/@wordpress/core-data/build-module/utils/on-sub-key.js ***!
2050    \****************************************************************************/
2051  /*! exports provided: onSubKey, default */
2052  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2053  
2054  "use strict";
2055  __webpack_require__.r(__webpack_exports__);
2056  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onSubKey", function() { return onSubKey; });
2057  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
2058  /* harmony import */ var _babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread */ "./node_modules/@babel/runtime/helpers/esm/objectSpread.js");
2059  
2060  
2061  
2062  /**
2063   * Higher-order reducer creator which creates a combined reducer object, keyed
2064   * by a property on the action object.
2065   *
2066   * @param {string} actionProperty Action property by which to key object.
2067   *
2068   * @return {Function} Higher-order reducer.
2069   */
2070  var onSubKey = function onSubKey(actionProperty) {
2071    return function (reducer) {
2072      return function () {
2073        var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2074        var action = arguments.length > 1 ? arguments[1] : undefined;
2075        // Retrieve subkey from action. Do not track if undefined; useful for cases
2076        // where reducer is scoped by action shape.
2077        var key = action[actionProperty];
2078  
2079        if (key === undefined) {
2080          return state;
2081        } // Avoid updating state if unchanged. Note that this also accounts for a
2082        // reducer which returns undefined on a key which is not yet tracked.
2083  
2084  
2085        var nextKeyState = reducer(state[key], action);
2086  
2087        if (nextKeyState === state[key]) {
2088          return state;
2089        }
2090  
2091        return Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__["default"])({}, state, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, key, nextKeyState));
2092      };
2093    };
2094  };
2095  /* harmony default export */ __webpack_exports__["default"] = (onSubKey);
2096  
2097  
2098  /***/ }),
2099  
2100  /***/ "./node_modules/@wordpress/core-data/build-module/utils/replace-action.js":
2101  /*!********************************************************************************!*\
2102    !*** ./node_modules/@wordpress/core-data/build-module/utils/replace-action.js ***!
2103    \********************************************************************************/
2104  /*! exports provided: default */
2105  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2106  
2107  "use strict";
2108  __webpack_require__.r(__webpack_exports__);
2109  /**
2110   * Higher-order reducer creator which substitutes the action object before
2111   * passing to the original reducer.
2112   *
2113   * @param {Function} replacer Function mapping original action to replacement.
2114   *
2115   * @return {Function} Higher-order reducer.
2116   */
2117  var replaceAction = function replaceAction(replacer) {
2118    return function (reducer) {
2119      return function (state, action) {
2120        return reducer(state, replacer(action));
2121      };
2122    };
2123  };
2124  
2125  /* harmony default export */ __webpack_exports__["default"] = (replaceAction);
2126  
2127  
2128  /***/ }),
2129  
2130  /***/ "./node_modules/@wordpress/core-data/build-module/utils/with-weak-map-cache.js":
2131  /*!*************************************************************************************!*\
2132    !*** ./node_modules/@wordpress/core-data/build-module/utils/with-weak-map-cache.js ***!
2133    \*************************************************************************************/
2134  /*! exports provided: default */
2135  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2136  
2137  "use strict";
2138  __webpack_require__.r(__webpack_exports__);
2139  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash");
2140  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
2141  /**
2142   * External dependencies
2143   */
2144  
2145  /**
2146   * Given a function, returns an enhanced function which caches the result and
2147   * tracks in WeakMap. The result is only cached if the original function is
2148   * passed a valid object-like argument (requirement for WeakMap key).
2149   *
2150   * @param {Function} fn Original function.
2151   *
2152   * @return {Function} Enhanced caching function.
2153   */
2154  
2155  function withWeakMapCache(fn) {
2156    var cache = new WeakMap();
2157    return function (key) {
2158      var value;
2159  
2160      if (cache.has(key)) {
2161        value = cache.get(key);
2162      } else {
2163        value = fn(key); // Can reach here if key is not valid for WeakMap, since `has`
2164        // will return false for invalid key. Since `set` will throw,
2165        // ensure that key is valid before setting into cache.
2166  
2167        if (Object(lodash__WEBPACK_IMPORTED_MODULE_0__["isObjectLike"])(key)) {
2168          cache.set(key, value);
2169        }
2170      }
2171  
2172      return value;
2173    };
2174  }
2175  
2176  /* harmony default export */ __webpack_exports__["default"] = (withWeakMapCache);
2177  
2178  
2179  /***/ }),
2180  
2181  /***/ "./node_modules/equivalent-key-map/equivalent-key-map.js":
2182  /*!***************************************************************!*\
2183    !*** ./node_modules/equivalent-key-map/equivalent-key-map.js ***!
2184    \***************************************************************/
2185  /*! no static exports found */
2186  /***/ (function(module, exports, __webpack_require__) {
2187  
2188  "use strict";
2189  
2190  
2191  function _typeof(obj) {
2192    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2193      _typeof = function (obj) {
2194        return typeof obj;
2195      };
2196    } else {
2197      _typeof = function (obj) {
2198        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2199      };
2200    }
2201  
2202    return _typeof(obj);
2203  }
2204  
2205  function _classCallCheck(instance, Constructor) {
2206    if (!(instance instanceof Constructor)) {
2207      throw new TypeError("Cannot call a class as a function");
2208    }
2209  }
2210  
2211  function _defineProperties(target, props) {
2212    for (var i = 0; i < props.length; i++) {
2213      var descriptor = props[i];
2214      descriptor.enumerable = descriptor.enumerable || false;
2215      descriptor.configurable = true;
2216      if ("value" in descriptor) descriptor.writable = true;
2217      Object.defineProperty(target, descriptor.key, descriptor);
2218    }
2219  }
2220  
2221  function _createClass(Constructor, protoProps, staticProps) {
2222    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2223    if (staticProps) _defineProperties(Constructor, staticProps);
2224    return Constructor;
2225  }
2226  
2227  /**
2228   * Given an instance of EquivalentKeyMap, returns its internal value pair tuple
2229   * for a key, if one exists. The tuple members consist of the last reference
2230   * value for the key (used in efficient subsequent lookups) and the value
2231   * assigned for the key at the leaf node.
2232   *
2233   * @param {EquivalentKeyMap} instance EquivalentKeyMap instance.
2234   * @param {*} key                     The key for which to return value pair.
2235   *
2236   * @return {?Array} Value pair, if exists.
2237   */
2238  function getValuePair(instance, key) {
2239    var _map = instance._map,
2240        _arrayTreeMap = instance._arrayTreeMap,
2241        _objectTreeMap = instance._objectTreeMap; // Map keeps a reference to the last object-like key used to set the
2242    // value, which can be used to shortcut immediately to the value.
2243  
2244    if (_map.has(key)) {
2245      return _map.get(key);
2246    } // Sort keys to ensure stable retrieval from tree.
2247  
2248  
2249    var properties = Object.keys(key).sort(); // Tree by type to avoid conflicts on numeric object keys, empty value.
2250  
2251    var map = Array.isArray(key) ? _arrayTreeMap : _objectTreeMap;
2252  
2253    for (var i = 0; i < properties.length; i++) {
2254      var property = properties[i];
2255      map = map.get(property);
2256  
2257      if (map === undefined) {
2258        return;
2259      }
2260  
2261      var propertyValue = key[property];
2262      map = map.get(propertyValue);
2263  
2264      if (map === undefined) {
2265        return;
2266      }
2267    }
2268  
2269    var valuePair = map.get('_ekm_value');
2270  
2271    if (!valuePair) {
2272      return;
2273    } // If reached, it implies that an object-like key was set with another
2274    // reference, so delete the reference and replace with the current.
2275  
2276  
2277    _map.delete(valuePair[0]);
2278  
2279    valuePair[0] = key;
2280    map.set('_ekm_value', valuePair);
2281  
2282    _map.set(key, valuePair);
2283  
2284    return valuePair;
2285  }
2286  /**
2287   * Variant of a Map object which enables lookup by equivalent (deeply equal)
2288   * object and array keys.
2289   */
2290  
2291  
2292  var EquivalentKeyMap =
2293  /*#__PURE__*/
2294  function () {
2295    /**
2296     * Constructs a new instance of EquivalentKeyMap.
2297     *
2298     * @param {Iterable.<*>} iterable Initial pair of key, value for map.
2299     */
2300    function EquivalentKeyMap(iterable) {
2301      _classCallCheck(this, EquivalentKeyMap);
2302  
2303      this.clear();
2304  
2305      if (iterable instanceof EquivalentKeyMap) {
2306        // Map#forEach is only means of iterating with support for IE11.
2307        var iterablePairs = [];
2308        iterable.forEach(function (value, key) {
2309          iterablePairs.push([key, value]);
2310        });
2311        iterable = iterablePairs;
2312      }
2313  
2314      if (iterable != null) {
2315        for (var i = 0; i < iterable.length; i++) {
2316          this.set(iterable[i][0], iterable[i][1]);
2317        }
2318      }
2319    }
2320    /**
2321     * Accessor property returning the number of elements.
2322     *
2323     * @return {number} Number of elements.
2324     */
2325  
2326  
2327    _createClass(EquivalentKeyMap, [{
2328      key: "set",
2329  
2330      /**
2331       * Add or update an element with a specified key and value.
2332       *
2333       * @param {*} key   The key of the element to add.
2334       * @param {*} value The value of the element to add.
2335       *
2336       * @return {EquivalentKeyMap} Map instance.
2337       */
2338      value: function set(key, value) {
2339        // Shortcut non-object-like to set on internal Map.
2340        if (key === null || _typeof(key) !== 'object') {
2341          this._map.set(key, value);
2342  
2343          return this;
2344        } // Sort keys to ensure stable assignment into tree.
2345  
2346  
2347        var properties = Object.keys(key).sort();
2348        var valuePair = [key, value]; // Tree by type to avoid conflicts on numeric object keys, empty value.
2349  
2350        var map = Array.isArray(key) ? this._arrayTreeMap : this._objectTreeMap;
2351  
2352        for (var i = 0; i < properties.length; i++) {
2353          var property = properties[i];
2354  
2355          if (!map.has(property)) {
2356            map.set(property, new EquivalentKeyMap());
2357          }
2358  
2359          map = map.get(property);
2360          var propertyValue = key[property];
2361  
2362          if (!map.has(propertyValue)) {
2363            map.set(propertyValue, new EquivalentKeyMap());
2364          }
2365  
2366          map = map.get(propertyValue);
2367        } // If an _ekm_value exists, there was already an equivalent key. Before
2368        // overriding, ensure that the old key reference is removed from map to
2369        // avoid memory leak of accumulating equivalent keys. This is, in a
2370        // sense, a poor man's WeakMap, while still enabling iterability.
2371  
2372  
2373        var previousValuePair = map.get('_ekm_value');
2374  
2375        if (previousValuePair) {
2376          this._map.delete(previousValuePair[0]);
2377        }
2378  
2379        map.set('_ekm_value', valuePair);
2380  
2381        this._map.set(key, valuePair);
2382  
2383        return this;
2384      }
2385      /**
2386       * Returns a specified element.
2387       *
2388       * @param {*} key The key of the element to return.
2389       *
2390       * @return {?*} The element associated with the specified key or undefined
2391       *              if the key can't be found.
2392       */
2393  
2394    }, {
2395      key: "get",
2396      value: function get(key) {
2397        // Shortcut non-object-like to get from internal Map.
2398        if (key === null || _typeof(key) !== 'object') {
2399          return this._map.get(key);
2400        }
2401  
2402        var valuePair = getValuePair(this, key);
2403  
2404        if (valuePair) {
2405          return valuePair[1];
2406        }
2407      }
2408      /**
2409       * Returns a boolean indicating whether an element with the specified key
2410       * exists or not.
2411       *
2412       * @param {*} key The key of the element to test for presence.
2413       *
2414       * @return {boolean} Whether an element with the specified key exists.
2415       */
2416  
2417    }, {
2418      key: "has",
2419      value: function has(key) {
2420        if (key === null || _typeof(key) !== 'object') {
2421          return this._map.has(key);
2422        } // Test on the _presence_ of the pair, not its value, as even undefined
2423        // can be a valid member value for a key.
2424  
2425  
2426        return getValuePair(this, key) !== undefined;
2427      }
2428      /**
2429       * Removes the specified element.
2430       *
2431       * @param {*} key The key of the element to remove.
2432       *
2433       * @return {boolean} Returns true if an element existed and has been
2434       *                   removed, or false if the element does not exist.
2435       */
2436  
2437    }, {
2438      key: "delete",
2439      value: function _delete(key) {
2440        if (!this.has(key)) {
2441          return false;
2442        } // This naive implementation will leave orphaned child trees. A better
2443        // implementation should traverse and remove orphans.
2444  
2445  
2446        this.set(key, undefined);
2447        return true;
2448      }
2449      /**
2450       * Executes a provided function once per each key/value pair, in insertion
2451       * order.
2452       *
2453       * @param {Function} callback Function to execute for each element.
2454       * @param {*}        thisArg  Value to use as `this` when executing
2455       *                            `callback`.
2456       */
2457  
2458    }, {
2459      key: "forEach",
2460      value: function forEach(callback) {
2461        var _this = this;
2462  
2463        var thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this;
2464  
2465        this._map.forEach(function (value, key) {
2466          // Unwrap value from object-like value pair.
2467          if (key !== null && _typeof(key) === 'object') {
2468            value = value[1];
2469          }
2470  
2471          callback.call(thisArg, value, key, _this);
2472        });
2473      }
2474      /**
2475       * Removes all elements.
2476       */
2477  
2478    }, {
2479      key: "clear",
2480      value: function clear() {
2481        this._map = new Map();
2482        this._arrayTreeMap = new Map();
2483        this._objectTreeMap = new Map();
2484      }
2485    }, {
2486      key: "size",
2487      get: function get() {
2488        return this._map.size;
2489      }
2490    }]);
2491  
2492    return EquivalentKeyMap;
2493  }();
2494  
2495  module.exports = EquivalentKeyMap;
2496  
2497  
2498  /***/ }),
2499  
2500  /***/ "./node_modules/redux/es/redux.js":
2501  /*!****************************************!*\
2502    !*** ./node_modules/redux/es/redux.js ***!
2503    \****************************************/
2504  /*! exports provided: createStore, combineReducers, bindActionCreators, applyMiddleware, compose, __DO_NOT_USE__ActionTypes */
2505  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2506  
2507  "use strict";
2508  __webpack_require__.r(__webpack_exports__);
2509  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createStore", function() { return createStore; });
2510  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineReducers", function() { return combineReducers; });
2511  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindActionCreators", function() { return bindActionCreators; });
2512  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyMiddleware", function() { return applyMiddleware; });
2513  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return compose; });
2514  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__DO_NOT_USE__ActionTypes", function() { return ActionTypes; });
2515  /* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! symbol-observable */ "./node_modules/redux/node_modules/symbol-observable/es/index.js");
2516  
2517  
2518  /**
2519   * These are private action types reserved by Redux.
2520   * For any unknown actions, you must return the current state.
2521   * If the current state is undefined, you must return the initial state.
2522   * Do not reference these action types directly in your code.
2523   */
2524  var randomString = function randomString() {
2525    return Math.random().toString(36).substring(7).split('').join('.');
2526  };
2527  
2528  var ActionTypes = {
2529    INIT: "@@redux/INIT" + randomString(),
2530    REPLACE: "@@redux/REPLACE" + randomString(),
2531    PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
2532      return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
2533    }
2534  };
2535  
2536  /**
2537   * @param {any} obj The object to inspect.
2538   * @returns {boolean} True if the argument appears to be a plain object.
2539   */
2540  function isPlainObject(obj) {
2541    if (typeof obj !== 'object' || obj === null) return false;
2542    var proto = obj;
2543  
2544    while (Object.getPrototypeOf(proto) !== null) {
2545      proto = Object.getPrototypeOf(proto);
2546    }
2547  
2548    return Object.getPrototypeOf(obj) === proto;
2549  }
2550  
2551  /**
2552   * Creates a Redux store that holds the state tree.
2553   * The only way to change the data in the store is to call `dispatch()` on it.
2554   *
2555   * There should only be a single store in your app. To specify how different
2556   * parts of the state tree respond to actions, you may combine several reducers
2557   * into a single reducer function by using `combineReducers`.
2558   *
2559   * @param {Function} reducer A function that returns the next state tree, given
2560   * the current state tree and the action to handle.
2561   *
2562   * @param {any} [preloadedState] The initial state. You may optionally specify it
2563   * to hydrate the state from the server in universal apps, or to restore a
2564   * previously serialized user session.
2565   * If you use `combineReducers` to produce the root reducer function, this must be
2566   * an object with the same shape as `combineReducers` keys.
2567   *
2568   * @param {Function} [enhancer] The store enhancer. You may optionally specify it
2569   * to enhance the store with third-party capabilities such as middleware,
2570   * time travel, persistence, etc. The only store enhancer that ships with Redux
2571   * is `applyMiddleware()`.
2572   *
2573   * @returns {Store} A Redux store that lets you read the state, dispatch actions
2574   * and subscribe to changes.
2575   */
2576  
2577  function createStore(reducer, preloadedState, enhancer) {
2578    var _ref2;
2579  
2580    if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
2581      throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function');
2582    }
2583  
2584    if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
2585      enhancer = preloadedState;
2586      preloadedState = undefined;
2587    }
2588  
2589    if (typeof enhancer !== 'undefined') {
2590      if (typeof enhancer !== 'function') {
2591        throw new Error('Expected the enhancer to be a function.');
2592      }
2593  
2594      return enhancer(createStore)(reducer, preloadedState);
2595    }
2596  
2597    if (typeof reducer !== 'function') {
2598      throw new Error('Expected the reducer to be a function.');
2599    }
2600  
2601    var currentReducer = reducer;
2602    var currentState = preloadedState;
2603    var currentListeners = [];
2604    var nextListeners = currentListeners;
2605    var isDispatching = false;
2606  
2607    function ensureCanMutateNextListeners() {
2608      if (nextListeners === currentListeners) {
2609        nextListeners = currentListeners.slice();
2610      }
2611    }
2612    /**
2613     * Reads the state tree managed by the store.
2614     *
2615     * @returns {any} The current state tree of your application.
2616     */
2617  
2618  
2619    function getState() {
2620      if (isDispatching) {
2621        throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
2622      }
2623  
2624      return currentState;
2625    }
2626    /**
2627     * Adds a change listener. It will be called any time an action is dispatched,
2628     * and some part of the state tree may potentially have changed. You may then
2629     * call `getState()` to read the current state tree inside the callback.
2630     *
2631     * You may call `dispatch()` from a change listener, with the following
2632     * caveats:
2633     *
2634     * 1. The subscriptions are snapshotted just before every `dispatch()` call.
2635     * If you subscribe or unsubscribe while the listeners are being invoked, this
2636     * will not have any effect on the `dispatch()` that is currently in progress.
2637     * However, the next `dispatch()` call, whether nested or not, will use a more
2638     * recent snapshot of the subscription list.
2639     *
2640     * 2. The listener should not expect to see all state changes, as the state
2641     * might have been updated multiple times during a nested `dispatch()` before
2642     * the listener is called. It is, however, guaranteed that all subscribers
2643     * registered before the `dispatch()` started will be called with the latest
2644     * state by the time it exits.
2645     *
2646     * @param {Function} listener A callback to be invoked on every dispatch.
2647     * @returns {Function} A function to remove this change listener.
2648     */
2649  
2650  
2651    function subscribe(listener) {
2652      if (typeof listener !== 'function') {
2653        throw new Error('Expected the listener to be a function.');
2654      }
2655  
2656      if (isDispatching) {
2657        throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');
2658      }
2659  
2660      var isSubscribed = true;
2661      ensureCanMutateNextListeners();
2662      nextListeners.push(listener);
2663      return function unsubscribe() {
2664        if (!isSubscribed) {
2665          return;
2666        }
2667  
2668        if (isDispatching) {
2669          throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');
2670        }
2671  
2672        isSubscribed = false;
2673        ensureCanMutateNextListeners();
2674        var index = nextListeners.indexOf(listener);
2675        nextListeners.splice(index, 1);
2676      };
2677    }
2678    /**
2679     * Dispatches an action. It is the only way to trigger a state change.
2680     *
2681     * The `reducer` function, used to create the store, will be called with the
2682     * current state tree and the given `action`. Its return value will
2683     * be considered the **next** state of the tree, and the change listeners
2684     * will be notified.
2685     *
2686     * The base implementation only supports plain object actions. If you want to
2687     * dispatch a Promise, an Observable, a thunk, or something else, you need to
2688     * wrap your store creating function into the corresponding middleware. For
2689     * example, see the documentation for the `redux-thunk` package. Even the
2690     * middleware will eventually dispatch plain object actions using this method.
2691     *
2692     * @param {Object} action A plain object representing “what changed”. It is
2693     * a good idea to keep actions serializable so you can record and replay user
2694     * sessions, or use the time travelling `redux-devtools`. An action must have
2695     * a `type` property which may not be `undefined`. It is a good idea to use
2696     * string constants for action types.
2697     *
2698     * @returns {Object} For convenience, the same action object you dispatched.
2699     *
2700     * Note that, if you use a custom middleware, it may wrap `dispatch()` to
2701     * return something else (for example, a Promise you can await).
2702     */
2703  
2704  
2705    function dispatch(action) {
2706      if (!isPlainObject(action)) {
2707        throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
2708      }
2709  
2710      if (typeof action.type === 'undefined') {
2711        throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
2712      }
2713  
2714      if (isDispatching) {
2715        throw new Error('Reducers may not dispatch actions.');
2716      }
2717  
2718      try {
2719        isDispatching = true;
2720        currentState = currentReducer(currentState, action);
2721      } finally {
2722        isDispatching = false;
2723      }
2724  
2725      var listeners = currentListeners = nextListeners;
2726  
2727      for (var i = 0; i < listeners.length; i++) {
2728        var listener = listeners[i];
2729        listener();
2730      }
2731  
2732      return action;
2733    }
2734    /**
2735     * Replaces the reducer currently used by the store to calculate the state.
2736     *
2737     * You might need this if your app implements code splitting and you want to
2738     * load some of the reducers dynamically. You might also need this if you
2739     * implement a hot reloading mechanism for Redux.
2740     *
2741     * @param {Function} nextReducer The reducer for the store to use instead.
2742     * @returns {void}
2743     */
2744  
2745  
2746    function replaceReducer(nextReducer) {
2747      if (typeof nextReducer !== 'function') {
2748        throw new Error('Expected the nextReducer to be a function.');
2749      }
2750  
2751      currentReducer = nextReducer;
2752      dispatch({
2753        type: ActionTypes.REPLACE
2754      });
2755    }
2756    /**
2757     * Interoperability point for observable/reactive libraries.
2758     * @returns {observable} A minimal observable of state changes.
2759     * For more information, see the observable proposal:
2760     * https://github.com/tc39/proposal-observable
2761     */
2762  
2763  
2764    function observable() {
2765      var _ref;
2766  
2767      var outerSubscribe = subscribe;
2768      return _ref = {
2769        /**
2770         * The minimal observable subscription method.
2771         * @param {Object} observer Any object that can be used as an observer.
2772         * The observer object should have a `next` method.
2773         * @returns {subscription} An object with an `unsubscribe` method that can
2774         * be used to unsubscribe the observable from the store, and prevent further
2775         * emission of values from the observable.
2776         */
2777        subscribe: function subscribe(observer) {
2778          if (typeof observer !== 'object' || observer === null) {
2779            throw new TypeError('Expected the observer to be an object.');
2780          }
2781  
2782          function observeState() {
2783            if (observer.next) {
2784              observer.next(getState());
2785            }
2786          }
2787  
2788          observeState();
2789          var unsubscribe = outerSubscribe(observeState);
2790          return {
2791            unsubscribe: unsubscribe
2792          };
2793        }
2794      }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_0__["default"]] = function () {
2795        return this;
2796      }, _ref;
2797    } // When a store is created, an "INIT" action is dispatched so that every
2798    // reducer returns their initial state. This effectively populates
2799    // the initial state tree.
2800  
2801  
2802    dispatch({
2803      type: ActionTypes.INIT
2804    });
2805    return _ref2 = {
2806      dispatch: dispatch,
2807      subscribe: subscribe,
2808      getState: getState,
2809      replaceReducer: replaceReducer
2810    }, _ref2[symbol_observable__WEBPACK_IMPORTED_MODULE_0__["default"]] = observable, _ref2;
2811  }
2812  
2813  /**
2814   * Prints a warning in the console if it exists.
2815   *
2816   * @param {String} message The warning message.
2817   * @returns {void}
2818   */
2819  function warning(message) {
2820    /* eslint-disable no-console */
2821    if (typeof console !== 'undefined' && typeof console.error === 'function') {
2822      console.error(message);
2823    }
2824    /* eslint-enable no-console */
2825  
2826  
2827    try {
2828      // This error was thrown as a convenience so that if you enable
2829      // "break on all exceptions" in your console,
2830      // it would pause the execution at this line.
2831      throw new Error(message);
2832    } catch (e) {} // eslint-disable-line no-empty
2833  
2834  }
2835  
2836  function getUndefinedStateErrorMessage(key, action) {
2837    var actionType = action && action.type;
2838    var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
2839    return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
2840  }
2841  
2842  function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
2843    var reducerKeys = Object.keys(reducers);
2844    var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
2845  
2846    if (reducerKeys.length === 0) {
2847      return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
2848    }
2849  
2850    if (!isPlainObject(inputState)) {
2851      return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
2852    }
2853  
2854    var unexpectedKeys = Object.keys(inputState).filter(function (key) {
2855      return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
2856    });
2857    unexpectedKeys.forEach(function (key) {
2858      unexpectedKeyCache[key] = true;
2859    });
2860    if (action && action.type === ActionTypes.REPLACE) return;
2861  
2862    if (unexpectedKeys.length > 0) {
2863      return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
2864    }
2865  }
2866  
2867  function assertReducerShape(reducers) {
2868    Object.keys(reducers).forEach(function (key) {
2869      var reducer = reducers[key];
2870      var initialState = reducer(undefined, {
2871        type: ActionTypes.INIT
2872      });
2873  
2874      if (typeof initialState === 'undefined') {
2875        throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
2876      }
2877  
2878      if (typeof reducer(undefined, {
2879        type: ActionTypes.PROBE_UNKNOWN_ACTION()
2880      }) === 'undefined') {
2881        throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
2882      }
2883    });
2884  }
2885  /**
2886   * Turns an object whose values are different reducer functions, into a single
2887   * reducer function. It will call every child reducer, and gather their results
2888   * into a single state object, whose keys correspond to the keys of the passed
2889   * reducer functions.
2890   *
2891   * @param {Object} reducers An object whose values correspond to different
2892   * reducer functions that need to be combined into one. One handy way to obtain
2893   * it is to use ES6 `import * as reducers` syntax. The reducers may never return
2894   * undefined for any action. Instead, they should return their initial state
2895   * if the state passed to them was undefined, and the current state for any
2896   * unrecognized action.
2897   *
2898   * @returns {Function} A reducer function that invokes every reducer inside the
2899   * passed object, and builds a state object with the same shape.
2900   */
2901  
2902  
2903  function combineReducers(reducers) {
2904    var reducerKeys = Object.keys(reducers);
2905    var finalReducers = {};
2906  
2907    for (var i = 0; i < reducerKeys.length; i++) {
2908      var key = reducerKeys[i];
2909  
2910      if (true) {
2911        if (typeof reducers[key] === 'undefined') {
2912          warning("No reducer provided for key \"" + key + "\"");
2913        }
2914      }
2915  
2916      if (typeof reducers[key] === 'function') {
2917        finalReducers[key] = reducers[key];
2918      }
2919    }
2920  
2921    var finalReducerKeys = Object.keys(finalReducers);
2922    var unexpectedKeyCache;
2923  
2924    if (true) {
2925      unexpectedKeyCache = {};
2926    }
2927  
2928    var shapeAssertionError;
2929  
2930    try {
2931      assertReducerShape(finalReducers);
2932    } catch (e) {
2933      shapeAssertionError = e;
2934    }
2935  
2936    return function combination(state, action) {
2937      if (state === void 0) {
2938        state = {};
2939      }
2940  
2941      if (shapeAssertionError) {
2942        throw shapeAssertionError;
2943      }
2944  
2945      if (true) {
2946        var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
2947  
2948        if (warningMessage) {
2949          warning(warningMessage);
2950        }
2951      }
2952  
2953      var hasChanged = false;
2954      var nextState = {};
2955  
2956      for (var _i = 0; _i < finalReducerKeys.length; _i++) {
2957        var _key = finalReducerKeys[_i];
2958        var reducer = finalReducers[_key];
2959        var previousStateForKey = state[_key];
2960        var nextStateForKey = reducer(previousStateForKey, action);
2961  
2962        if (typeof nextStateForKey === 'undefined') {
2963          var errorMessage = getUndefinedStateErrorMessage(_key, action);
2964          throw new Error(errorMessage);
2965        }
2966  
2967        nextState[_key] = nextStateForKey;
2968        hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
2969      }
2970  
2971      return hasChanged ? nextState : state;
2972    };
2973  }
2974  
2975  function bindActionCreator(actionCreator, dispatch) {
2976    return function () {
2977      return dispatch(actionCreator.apply(this, arguments));
2978    };
2979  }
2980  /**
2981   * Turns an object whose values are action creators, into an object with the
2982   * same keys, but with every function wrapped into a `dispatch` call so they
2983   * may be invoked directly. This is just a convenience method, as you can call
2984   * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
2985   *
2986   * For convenience, you can also pass a single function as the first argument,
2987   * and get a function in return.
2988   *
2989   * @param {Function|Object} actionCreators An object whose values are action
2990   * creator functions. One handy way to obtain it is to use ES6 `import * as`
2991   * syntax. You may also pass a single function.
2992   *
2993   * @param {Function} dispatch The `dispatch` function available on your Redux
2994   * store.
2995   *
2996   * @returns {Function|Object} The object mimicking the original object, but with
2997   * every action creator wrapped into the `dispatch` call. If you passed a
2998   * function as `actionCreators`, the return value will also be a single
2999   * function.
3000   */
3001  
3002  
3003  function bindActionCreators(actionCreators, dispatch) {
3004    if (typeof actionCreators === 'function') {
3005      return bindActionCreator(actionCreators, dispatch);
3006    }
3007  
3008    if (typeof actionCreators !== 'object' || actionCreators === null) {
3009      throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
3010    }
3011  
3012    var keys = Object.keys(actionCreators);
3013    var boundActionCreators = {};
3014  
3015    for (var i = 0; i < keys.length; i++) {
3016      var key = keys[i];
3017      var actionCreator = actionCreators[key];
3018  
3019      if (typeof actionCreator === 'function') {
3020        boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
3021      }
3022    }
3023  
3024    return boundActionCreators;
3025  }
3026  
3027  function _defineProperty(obj, key, value) {
3028    if (key in obj) {
3029      Object.defineProperty(obj, key, {
3030        value: value,
3031        enumerable: true,
3032        configurable: true,
3033        writable: true
3034      });
3035    } else {
3036      obj[key] = value;
3037    }
3038  
3039    return obj;
3040  }
3041  
3042  function _objectSpread(target) {
3043    for (var i = 1; i < arguments.length; i++) {
3044      var source = arguments[i] != null ? arguments[i] : {};
3045      var ownKeys = Object.keys(source);
3046  
3047      if (typeof Object.getOwnPropertySymbols === 'function') {
3048        ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
3049          return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3050        }));
3051      }
3052  
3053      ownKeys.forEach(function (key) {
3054        _defineProperty(target, key, source[key]);
3055      });
3056    }
3057  
3058    return target;
3059  }
3060  
3061  /**
3062   * Composes single-argument functions from right to left. The rightmost
3063   * function can take multiple arguments as it provides the signature for
3064   * the resulting composite function.
3065   *
3066   * @param {...Function} funcs The functions to compose.
3067   * @returns {Function} A function obtained by composing the argument functions
3068   * from right to left. For example, compose(f, g, h) is identical to doing
3069   * (...args) => f(g(h(...args))).
3070   */
3071  function compose() {
3072    for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
3073      funcs[_key] = arguments[_key];
3074    }
3075  
3076    if (funcs.length === 0) {
3077      return function (arg) {
3078        return arg;
3079      };
3080    }
3081  
3082    if (funcs.length === 1) {
3083      return funcs[0];
3084    }
3085  
3086    return funcs.reduce(function (a, b) {
3087      return function () {
3088        return a(b.apply(void 0, arguments));
3089      };
3090    });
3091  }
3092  
3093  /**
3094   * Creates a store enhancer that applies middleware to the dispatch method
3095   * of the Redux store. This is handy for a variety of tasks, such as expressing
3096   * asynchronous actions in a concise manner, or logging every action payload.
3097   *
3098   * See `redux-thunk` package as an example of the Redux middleware.
3099   *
3100   * Because middleware is potentially asynchronous, this should be the first
3101   * store enhancer in the composition chain.
3102   *
3103   * Note that each middleware will be given the `dispatch` and `getState` functions
3104   * as named arguments.
3105   *
3106   * @param {...Function} middlewares The middleware chain to be applied.
3107   * @returns {Function} A store enhancer applying the middleware.
3108   */
3109  
3110  function applyMiddleware() {
3111    for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
3112      middlewares[_key] = arguments[_key];
3113    }
3114  
3115    return function (createStore) {
3116      return function () {
3117        var store = createStore.apply(void 0, arguments);
3118  
3119        var _dispatch = function dispatch() {
3120          throw new Error("Dispatching while constructing your middleware is not allowed. " + "Other middleware would not be applied to this dispatch.");
3121        };
3122  
3123        var middlewareAPI = {
3124          getState: store.getState,
3125          dispatch: function dispatch() {
3126            return _dispatch.apply(void 0, arguments);
3127          }
3128        };
3129        var chain = middlewares.map(function (middleware) {
3130          return middleware(middlewareAPI);
3131        });
3132        _dispatch = compose.apply(void 0, chain)(store.dispatch);
3133        return _objectSpread({}, store, {
3134          dispatch: _dispatch
3135        });
3136      };
3137    };
3138  }
3139  
3140  /*
3141   * This is a dummy function to check if the function name has been altered by minification.
3142   * If the function has been minified and NODE_ENV !== 'production', warn the user.
3143   */
3144  
3145  function isCrushed() {}
3146  
3147  if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
3148    warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
3149  }
3150  
3151  
3152  
3153  
3154  /***/ }),
3155  
3156  /***/ "./node_modules/redux/node_modules/symbol-observable/es/index.js":
3157  /*!***********************************************************************!*\
3158    !*** ./node_modules/redux/node_modules/symbol-observable/es/index.js ***!
3159    \***********************************************************************/
3160  /*! exports provided: default */
3161  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3162  
3163  "use strict";
3164  __webpack_require__.r(__webpack_exports__);
3165  /* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ponyfill.js */ "./node_modules/redux/node_modules/symbol-observable/es/ponyfill.js");
3166  /* global window */
3167  
3168  
3169  var root;
3170  
3171  if (typeof self !== 'undefined') {
3172    root = self;
3173  } else if (typeof window !== 'undefined') {
3174    root = window;
3175  } else if (typeof global !== 'undefined') {
3176    root = global;
3177  } else if (true) {
3178    root = module;
3179  } else {}
3180  
3181  var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__["default"])(root);
3182  /* harmony default export */ __webpack_exports__["default"] = (result);
3183  
3184  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../../webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))
3185  
3186  /***/ }),
3187  
3188  /***/ "./node_modules/redux/node_modules/symbol-observable/es/ponyfill.js":
3189  /*!**************************************************************************!*\
3190    !*** ./node_modules/redux/node_modules/symbol-observable/es/ponyfill.js ***!
3191    \**************************************************************************/
3192  /*! exports provided: default */
3193  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3194  
3195  "use strict";
3196  __webpack_require__.r(__webpack_exports__);
3197  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return symbolObservablePonyfill; });
3198  function symbolObservablePonyfill(root) {
3199      var result;
3200      var Symbol = root.Symbol;
3201  
3202      if (typeof Symbol === 'function') {
3203          if (Symbol.observable) {
3204              result = Symbol.observable;
3205          } else {
3206              result = Symbol('observable');
3207              Symbol.observable = result;
3208          }
3209      } else {
3210          result = '@@observable';
3211      }
3212  
3213      return result;
3214  };
3215  
3216  
3217  /***/ }),
3218  
3219  /***/ "./node_modules/rememo/es/rememo.js":
3220  /*!******************************************!*\
3221    !*** ./node_modules/rememo/es/rememo.js ***!
3222    \******************************************/
3223  /*! exports provided: default */
3224  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3225  
3226  "use strict";
3227  __webpack_require__.r(__webpack_exports__);
3228  
3229  
3230  var LEAF_KEY, hasWeakMap;
3231  
3232  /**
3233   * Arbitrary value used as key for referencing cache object in WeakMap tree.
3234   *
3235   * @type {Object}
3236   */
3237  LEAF_KEY = {};
3238  
3239  /**
3240   * Whether environment supports WeakMap.
3241   *
3242   * @type {boolean}
3243   */
3244  hasWeakMap = typeof WeakMap !== 'undefined';
3245  
3246  /**
3247   * Returns the first argument as the sole entry in an array.
3248   *
3249   * @param {*} value Value to return.
3250   *
3251   * @return {Array} Value returned as entry in array.
3252   */
3253  function arrayOf( value ) {
3254      return [ value ];
3255  }
3256  
3257  /**
3258   * Returns true if the value passed is object-like, or false otherwise. A value
3259   * is object-like if it can support property assignment, e.g. object or array.
3260   *
3261   * @param {*} value Value to test.
3262   *
3263   * @return {boolean} Whether value is object-like.
3264   */
3265  function isObjectLike( value ) {
3266      return !! value && 'object' === typeof value;
3267  }
3268  
3269  /**
3270   * Creates and returns a new cache object.
3271   *
3272   * @return {Object} Cache object.
3273   */
3274  function createCache() {
3275      var cache = {
3276          clear: function() {
3277              cache.head = null;
3278          },
3279      };
3280  
3281      return cache;
3282  }
3283  
3284  /**
3285   * Returns true if entries within the two arrays are strictly equal by
3286   * reference from a starting index.
3287   *
3288   * @param {Array}  a         First array.
3289   * @param {Array}  b         Second array.
3290   * @param {number} fromIndex Index from which to start comparison.
3291   *
3292   * @return {boolean} Whether arrays are shallowly equal.
3293   */
3294  function isShallowEqual( a, b, fromIndex ) {
3295      var i;
3296  
3297      if ( a.length !== b.length ) {
3298          return false;
3299      }
3300  
3301      for ( i = fromIndex; i < a.length; i++ ) {
3302          if ( a[ i ] !== b[ i ] ) {
3303              return false;
3304          }
3305      }
3306  
3307      return true;
3308  }
3309  
3310  /**
3311   * Returns a memoized selector function. The getDependants function argument is
3312   * called before the memoized selector and is expected to return an immutable
3313   * reference or array of references on which the selector depends for computing
3314   * its own return value. The memoize cache is preserved only as long as those
3315   * dependant references remain the same. If getDependants returns a different
3316   * reference(s), the cache is cleared and the selector value regenerated.
3317   *
3318   * @param {Function} selector      Selector function.
3319   * @param {Function} getDependants Dependant getter returning an immutable
3320   *                                 reference or array of reference used in
3321   *                                 cache bust consideration.
3322   *
3323   * @return {Function} Memoized selector.
3324   */
3325  /* harmony default export */ __webpack_exports__["default"] = (function( selector, getDependants ) {
3326      var rootCache, getCache;
3327  
3328      // Use object source as dependant if getter not provided
3329      if ( ! getDependants ) {
3330          getDependants = arrayOf;
3331      }
3332  
3333      /**
3334       * Returns the root cache. If WeakMap is supported, this is assigned to the
3335       * root WeakMap cache set, otherwise it is a shared instance of the default
3336       * cache object.
3337       *
3338       * @return {(WeakMap|Object)} Root cache object.
3339       */
3340  	function getRootCache() {
3341          return rootCache;
3342      }
3343  
3344      /**
3345       * Returns the cache for a given dependants array. When possible, a WeakMap
3346       * will be used to create a unique cache for each set of dependants. This
3347       * is feasible due to the nature of WeakMap in allowing garbage collection
3348       * to occur on entries where the key object is no longer referenced. Since
3349       * WeakMap requires the key to be an object, this is only possible when the
3350       * dependant is object-like. The root cache is created as a hierarchy where
3351       * each top-level key is the first entry in a dependants set, the value a
3352       * WeakMap where each key is the next dependant, and so on. This continues
3353       * so long as the dependants are object-like. If no dependants are object-
3354       * like, then the cache is shared across all invocations.
3355       *
3356       * @see isObjectLike
3357       *
3358       * @param {Array} dependants Selector dependants.
3359       *
3360       * @return {Object} Cache object.
3361       */
3362  	function getWeakMapCache( dependants ) {
3363          var caches = rootCache,
3364              isUniqueByDependants = true,
3365              i, dependant, map, cache;
3366  
3367          for ( i = 0; i < dependants.length; i++ ) {
3368              dependant = dependants[ i ];
3369  
3370              // Can only compose WeakMap from object-like key.
3371              if ( ! isObjectLike( dependant ) ) {
3372                  isUniqueByDependants = false;
3373                  break;
3374              }
3375  
3376              // Does current segment of cache already have a WeakMap?
3377              if ( caches.has( dependant ) ) {
3378                  // Traverse into nested WeakMap.
3379                  caches = caches.get( dependant );
3380              } else {
3381                  // Create, set, and traverse into a new one.
3382                  map = new WeakMap();
3383                  caches.set( dependant, map );
3384                  caches = map;
3385              }
3386          }
3387  
3388          // We use an arbitrary (but consistent) object as key for the last item
3389          // in the WeakMap to serve as our running cache.
3390          if ( ! caches.has( LEAF_KEY ) ) {
3391              cache = createCache();
3392              cache.isUniqueByDependants = isUniqueByDependants;
3393              caches.set( LEAF_KEY, cache );
3394          }
3395  
3396          return caches.get( LEAF_KEY );
3397      }
3398  
3399      // Assign cache handler by availability of WeakMap
3400      getCache = hasWeakMap ? getWeakMapCache : getRootCache;
3401  
3402      /**
3403       * Resets root memoization cache.
3404       */
3405  	function clear() {
3406          rootCache = hasWeakMap ? new WeakMap() : createCache();
3407      }
3408  
3409      // eslint-disable-next-line jsdoc/check-param-names
3410      /**
3411       * The augmented selector call, considering first whether dependants have
3412       * changed before passing it to underlying memoize function.
3413       *
3414       * @param {Object} source    Source object for derivation.
3415       * @param {...*}   extraArgs Additional arguments to pass to selector.
3416       *
3417       * @return {*} Selector result.
3418       */
3419  	function callSelector( /* source, ...extraArgs */ ) {
3420          var len = arguments.length,
3421              cache, node, i, args, dependants;
3422  
3423          // Create copy of arguments (avoid leaking deoptimization).
3424          args = new Array( len );
3425          for ( i = 0; i < len; i++ ) {
3426              args[ i ] = arguments[ i ];
3427          }
3428  
3429          dependants = getDependants.apply( null, args );
3430          cache = getCache( dependants );
3431  
3432          // If not guaranteed uniqueness by dependants (primitive type or lack
3433          // of WeakMap support), shallow compare against last dependants and, if
3434          // references have changed, destroy cache to recalculate result.
3435          if ( ! cache.isUniqueByDependants ) {
3436              if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) {
3437                  cache.clear();
3438              }
3439  
3440              cache.lastDependants = dependants;
3441          }
3442  
3443          node = cache.head;
3444          while ( node ) {
3445              // Check whether node arguments match arguments
3446              if ( ! isShallowEqual( node.args, args, 1 ) ) {
3447                  node = node.next;
3448                  continue;
3449              }
3450  
3451              // At this point we can assume we've found a match
3452  
3453              // Surface matched node to head if not already
3454              if ( node !== cache.head ) {
3455                  // Adjust siblings to point to each other.
3456                  node.prev.next = node.next;
3457                  if ( node.next ) {
3458                      node.next.prev = node.prev;
3459                  }
3460  
3461                  node.next = cache.head;
3462                  node.prev = null;
3463                  cache.head.prev = node;
3464                  cache.head = node;
3465              }
3466  
3467              // Return immediately
3468              return node.val;
3469          }
3470  
3471          // No cached value found. Continue to insertion phase:
3472  
3473          node = {
3474              // Generate the result from original function
3475              val: selector.apply( null, args ),
3476          };
3477  
3478          // Avoid including the source object in the cache.
3479          args[ 0 ] = null;
3480          node.args = args;
3481  
3482          // Don't need to check whether node is already head, since it would
3483          // have been returned above already if it was
3484  
3485          // Shift existing head down list
3486          if ( cache.head ) {
3487              cache.head.prev = node;
3488              node.next = cache.head;
3489          }
3490  
3491          cache.head = node;
3492  
3493          return node.val;
3494      }
3495  
3496      callSelector.getDependants = getDependants;
3497      callSelector.clear = clear;
3498      clear();
3499  
3500      return callSelector;
3501  });
3502  
3503  
3504  /***/ }),
3505  
3506  /***/ "./node_modules/webpack/buildin/global.js":
3507  /*!***********************************!*\
3508    !*** (webpack)/buildin/global.js ***!
3509    \***********************************/
3510  /*! no static exports found */
3511  /***/ (function(module, exports) {
3512  
3513  var g;
3514  
3515  // This works in non-strict mode
3516  g = (function() {
3517      return this;
3518  })();
3519  
3520  try {
3521      // This works if eval is allowed (see CSP)
3522      g = g || new Function("return this")();
3523  } catch (e) {
3524      // This works if the window reference is available
3525      if (typeof window === "object") g = window;
3526  }
3527  
3528  // g can still be undefined, but nothing to do about it...
3529  // We return undefined, instead of nothing here, so it's
3530  // easier to handle this case. if(!global) { ...}
3531  
3532  module.exports = g;
3533  
3534  
3535  /***/ }),
3536  
3537  /***/ "./node_modules/webpack/buildin/harmony-module.js":
3538  /*!*******************************************!*\
3539    !*** (webpack)/buildin/harmony-module.js ***!
3540    \*******************************************/
3541  /*! no static exports found */
3542  /***/ (function(module, exports) {
3543  
3544  module.exports = function(originalModule) {
3545      if (!originalModule.webpackPolyfill) {
3546          var module = Object.create(originalModule);
3547          // module.parent = undefined by default
3548          if (!module.children) module.children = [];
3549          Object.defineProperty(module, "loaded", {
3550              enumerable: true,
3551              get: function() {
3552                  return module.l;
3553              }
3554          });
3555          Object.defineProperty(module, "id", {
3556              enumerable: true,
3557              get: function() {
3558                  return module.i;
3559              }
3560          });
3561          Object.defineProperty(module, "exports", {
3562              enumerable: true
3563          });
3564          module.webpackPolyfill = 1;
3565      }
3566      return module;
3567  };
3568  
3569  
3570  /***/ }),
3571  
3572  /***/ "@wordpress/api-fetch":
3573  /*!*******************************************!*\
3574    !*** external {"this":["wp","apiFetch"]} ***!
3575    \*******************************************/
3576  /*! no static exports found */
3577  /***/ (function(module, exports) {
3578  
3579  (function() { module.exports = this["wp"]["apiFetch"]; }());
3580  
3581  /***/ }),
3582  
3583  /***/ "@wordpress/data":
3584  /*!***************************************!*\
3585    !*** external {"this":["wp","data"]} ***!
3586    \***************************************/
3587  /*! no static exports found */
3588  /***/ (function(module, exports) {
3589  
3590  (function() { module.exports = this["wp"]["data"]; }());
3591  
3592  /***/ }),
3593  
3594  /***/ "@wordpress/url":
3595  /*!**************************************!*\
3596    !*** external {"this":["wp","url"]} ***!
3597    \**************************************/
3598  /*! no static exports found */
3599  /***/ (function(module, exports) {
3600  
3601  (function() { module.exports = this["wp"]["url"]; }());
3602  
3603  /***/ }),
3604  
3605  /***/ "lodash":
3606  /*!*************************!*\
3607    !*** external "lodash" ***!
3608    \*************************/
3609  /*! no static exports found */
3610  /***/ (function(module, exports) {
3611  
3612  (function() { module.exports = this["lodash"]; }());
3613  
3614  /***/ })
3615  
3616  /******/ });
3617  //# sourceMappingURL=core-data.js.map


Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1