[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> block-library.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["blockLibrary"] =
   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 = 437);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 0:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = this["wp"]["element"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 1:
  98  /***/ (function(module, exports) {
  99  
 100  (function() { module.exports = this["wp"]["i18n"]; }());
 101  
 102  /***/ }),
 103  
 104  /***/ 10:
 105  /***/ (function(module, exports) {
 106  
 107  (function() { module.exports = this["wp"]["blocks"]; }());
 108  
 109  /***/ }),
 110  
 111  /***/ 100:
 112  /***/ (function(module, exports) {
 113  
 114  (function() { module.exports = this["wp"]["notices"]; }());
 115  
 116  /***/ }),
 117  
 118  /***/ 103:
 119  /***/ (function(module, exports) {
 120  
 121  (function() { module.exports = this["wp"]["autop"]; }());
 122  
 123  /***/ }),
 124  
 125  /***/ 105:
 126  /***/ (function(module, exports, __webpack_require__) {
 127  
 128  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
 129    Copyright (c) 2017 Jed Watson.
 130    Licensed under the MIT License (MIT), see
 131    http://jedwatson.github.io/classnames
 132  */
 133  /* global define */
 134  
 135  (function () {
 136      'use strict';
 137  
 138      var classNames = (function () {
 139          // don't inherit from Object so we can skip hasOwnProperty check later
 140          // http://stackoverflow.com/questions/15518328/creating-js-object-with-object-createnull#answer-21079232
 141  		function StorageObject() {}
 142          StorageObject.prototype = Object.create(null);
 143  
 144  		function _parseArray (resultSet, array) {
 145              var length = array.length;
 146  
 147              for (var i = 0; i < length; ++i) {
 148                  _parse(resultSet, array[i]);
 149              }
 150          }
 151  
 152          var hasOwn = {}.hasOwnProperty;
 153  
 154  		function _parseNumber (resultSet, num) {
 155              resultSet[num] = true;
 156          }
 157  
 158  		function _parseObject (resultSet, object) {
 159              for (var k in object) {
 160                  if (hasOwn.call(object, k)) {
 161                      // set value to false instead of deleting it to avoid changing object structure
 162                      // https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/#de-referencing-misconceptions
 163                      resultSet[k] = !!object[k];
 164                  }
 165              }
 166          }
 167  
 168          var SPACE = /\s+/;
 169  		function _parseString (resultSet, str) {
 170              var array = str.split(SPACE);
 171              var length = array.length;
 172  
 173              for (var i = 0; i < length; ++i) {
 174                  resultSet[array[i]] = true;
 175              }
 176          }
 177  
 178  		function _parse (resultSet, arg) {
 179              if (!arg) return;
 180              var argType = typeof arg;
 181  
 182              // 'foo bar'
 183              if (argType === 'string') {
 184                  _parseString(resultSet, arg);
 185  
 186              // ['foo', 'bar', ...]
 187              } else if (Array.isArray(arg)) {
 188                  _parseArray(resultSet, arg);
 189  
 190              // { 'foo': true, ... }
 191              } else if (argType === 'object') {
 192                  _parseObject(resultSet, arg);
 193  
 194              // '130'
 195              } else if (argType === 'number') {
 196                  _parseNumber(resultSet, arg);
 197              }
 198          }
 199  
 200  		function _classNames () {
 201              // don't leak arguments
 202              // https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments
 203              var len = arguments.length;
 204              var args = Array(len);
 205              for (var i = 0; i < len; i++) {
 206                  args[i] = arguments[i];
 207              }
 208  
 209              var classSet = new StorageObject();
 210              _parseArray(classSet, args);
 211  
 212              var list = [];
 213  
 214              for (var k in classSet) {
 215                  if (classSet[k]) {
 216                      list.push(k)
 217                  }
 218              }
 219  
 220              return list.join(' ');
 221          }
 222  
 223          return _classNames;
 224      })();
 225  
 226      if ( true && module.exports) {
 227          classNames.default = classNames;
 228          module.exports = classNames;
 229      } else if (true) {
 230          // register as 'classnames', consistent with npm package name
 231          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
 232              return classNames;
 233          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
 234                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 235      } else {}
 236  }());
 237  
 238  
 239  /***/ }),
 240  
 241  /***/ 11:
 242  /***/ (function(module, exports, __webpack_require__) {
 243  
 244  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
 245    Copyright (c) 2017 Jed Watson.
 246    Licensed under the MIT License (MIT), see
 247    http://jedwatson.github.io/classnames
 248  */
 249  /* global define */
 250  
 251  (function () {
 252      'use strict';
 253  
 254      var hasOwn = {}.hasOwnProperty;
 255  
 256  	function classNames () {
 257          var classes = [];
 258  
 259          for (var i = 0; i < arguments.length; i++) {
 260              var arg = arguments[i];
 261              if (!arg) continue;
 262  
 263              var argType = typeof arg;
 264  
 265              if (argType === 'string' || argType === 'number') {
 266                  classes.push(arg);
 267              } else if (Array.isArray(arg) && arg.length) {
 268                  var inner = classNames.apply(null, arg);
 269                  if (inner) {
 270                      classes.push(inner);
 271                  }
 272              } else if (argType === 'object') {
 273                  for (var key in arg) {
 274                      if (hasOwn.call(arg, key) && arg[key]) {
 275                          classes.push(key);
 276                      }
 277                  }
 278              }
 279          }
 280  
 281          return classes.join(' ');
 282      }
 283  
 284      if ( true && module.exports) {
 285          classNames.default = classNames;
 286          module.exports = classNames;
 287      } else if (true) {
 288          // register as 'classnames', consistent with npm package name
 289          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
 290              return classNames;
 291          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
 292                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 293      } else {}
 294  }());
 295  
 296  
 297  /***/ }),
 298  
 299  /***/ 12:
 300  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 301  
 302  "use strict";
 303  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
 304  function _assertThisInitialized(self) {
 305    if (self === void 0) {
 306      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
 307    }
 308  
 309    return self;
 310  }
 311  
 312  /***/ }),
 313  
 314  /***/ 13:
 315  /***/ (function(module, exports) {
 316  
 317  (function() { module.exports = this["React"]; }());
 318  
 319  /***/ }),
 320  
 321  /***/ 137:
 322  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 323  
 324  "use strict";
 325  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
 326  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
 327  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
 328  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
 329  
 330  
 331  
 332  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 333  
 334  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 335  
 336  /**
 337   * WordPress dependencies
 338   */
 339   // Disable reason: JSDoc linter doesn't seem to parse the union (`&`) correctly.
 340  
 341  /* eslint-disable jsdoc/valid-types */
 342  
 343  /** @typedef {{icon: JSX.Element, size?: number} & import('react').ComponentPropsWithoutRef<'SVG'>} IconProps */
 344  
 345  /* eslint-enable jsdoc/valid-types */
 346  
 347  /**
 348   * Return an SVG icon.
 349   *
 350   * @param {IconProps} props icon is the SVG component to render
 351   *                          size is a number specifiying the icon size in pixels
 352   *                          Other props will be passed to wrapped SVG component
 353   *
 354   * @return {JSX.Element}  Icon component
 355   */
 356  
 357  function Icon(_ref) {
 358    var icon = _ref.icon,
 359        _ref$size = _ref.size,
 360        size = _ref$size === void 0 ? 24 : _ref$size,
 361        props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]);
 362  
 363    return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({
 364      width: size,
 365      height: size
 366    }, props));
 367  }
 368  
 369  /* harmony default export */ __webpack_exports__["a"] = (Icon);
 370  
 371  
 372  /***/ }),
 373  
 374  /***/ 14:
 375  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 376  
 377  "use strict";
 378  
 379  // EXPORTS
 380  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
 381  
 382  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
 383  var arrayWithHoles = __webpack_require__(38);
 384  
 385  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
 386  function _iterableToArrayLimit(arr, i) {
 387    if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
 388    var _arr = [];
 389    var _n = true;
 390    var _d = false;
 391    var _e = undefined;
 392  
 393    try {
 394      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 395        _arr.push(_s.value);
 396  
 397        if (i && _arr.length === i) break;
 398      }
 399    } catch (err) {
 400      _d = true;
 401      _e = err;
 402    } finally {
 403      try {
 404        if (!_n && _i["return"] != null) _i["return"]();
 405      } finally {
 406        if (_d) throw _e;
 407      }
 408    }
 409  
 410    return _arr;
 411  }
 412  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 413  var unsupportedIterableToArray = __webpack_require__(29);
 414  
 415  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
 416  var nonIterableRest = __webpack_require__(39);
 417  
 418  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
 419  
 420  
 421  
 422  
 423  function _slicedToArray(arr, i) {
 424    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || Object(nonIterableRest["a" /* default */])();
 425  }
 426  
 427  /***/ }),
 428  
 429  /***/ 15:
 430  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 431  
 432  "use strict";
 433  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
 434  /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41);
 435  
 436  function _objectWithoutProperties(source, excluded) {
 437    if (source == null) return {};
 438    var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
 439    var key, i;
 440  
 441    if (Object.getOwnPropertySymbols) {
 442      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
 443  
 444      for (i = 0; i < sourceSymbolKeys.length; i++) {
 445        key = sourceSymbolKeys[i];
 446        if (excluded.indexOf(key) >= 0) continue;
 447        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
 448        target[key] = source[key];
 449      }
 450    }
 451  
 452    return target;
 453  }
 454  
 455  /***/ }),
 456  
 457  /***/ 154:
 458  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 459  
 460  "use strict";
 461  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 462  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 463  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 464  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 465  
 466  
 467  /**
 468   * WordPress dependencies
 469   */
 470  
 471  var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 472    xmlns: "http://www.w3.org/2000/svg",
 473    viewBox: "0 0 24 24"
 474  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 475    d: "M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"
 476  }));
 477  /* harmony default export */ __webpack_exports__["a"] = (check);
 478  
 479  
 480  /***/ }),
 481  
 482  /***/ 16:
 483  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 484  
 485  "use strict";
 486  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
 487  function _getPrototypeOf(o) {
 488    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 489      return o.__proto__ || Object.getPrototypeOf(o);
 490    };
 491    return _getPrototypeOf(o);
 492  }
 493  
 494  /***/ }),
 495  
 496  /***/ 176:
 497  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 498  
 499  "use strict";
 500  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 501  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 502  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 503  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 504  
 505  
 506  /**
 507   * WordPress dependencies
 508   */
 509  
 510  var closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 511    xmlns: "http://www.w3.org/2000/svg",
 512    viewBox: "0 0 24 24"
 513  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 514    d: "M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"
 515  }));
 516  /* harmony default export */ __webpack_exports__["a"] = (closeSmall);
 517  
 518  
 519  /***/ }),
 520  
 521  /***/ 179:
 522  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 523  
 524  "use strict";
 525  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 526  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 527  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 528  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 529  
 530  
 531  /**
 532   * WordPress dependencies
 533   */
 534  
 535  var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 536    xmlns: "http://www.w3.org/2000/svg",
 537    viewBox: "0 0 24 24"
 538  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 539    d: "M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"
 540  }));
 541  /* harmony default export */ __webpack_exports__["a"] = (link);
 542  
 543  
 544  /***/ }),
 545  
 546  /***/ 18:
 547  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 548  
 549  "use strict";
 550  
 551  // EXPORTS
 552  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
 553  
 554  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
 555  var arrayLikeToArray = __webpack_require__(26);
 556  
 557  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
 558  
 559  function _arrayWithoutHoles(arr) {
 560    if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
 561  }
 562  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
 563  var iterableToArray = __webpack_require__(35);
 564  
 565  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 566  var unsupportedIterableToArray = __webpack_require__(29);
 567  
 568  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
 569  function _nonIterableSpread() {
 570    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
 571  }
 572  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
 573  
 574  
 575  
 576  
 577  function _toConsumableArray(arr) {
 578    return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
 579  }
 580  
 581  /***/ }),
 582  
 583  /***/ 19:
 584  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 585  
 586  "use strict";
 587  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 588  function _defineProperties(target, props) {
 589    for (var i = 0; i < props.length; i++) {
 590      var descriptor = props[i];
 591      descriptor.enumerable = descriptor.enumerable || false;
 592      descriptor.configurable = true;
 593      if ("value" in descriptor) descriptor.writable = true;
 594      Object.defineProperty(target, descriptor.key, descriptor);
 595    }
 596  }
 597  
 598  function _createClass(Constructor, protoProps, staticProps) {
 599    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 600    if (staticProps) _defineProperties(Constructor, staticProps);
 601    return Constructor;
 602  }
 603  
 604  /***/ }),
 605  
 606  /***/ 2:
 607  /***/ (function(module, exports) {
 608  
 609  (function() { module.exports = this["lodash"]; }());
 610  
 611  /***/ }),
 612  
 613  /***/ 20:
 614  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 615  
 616  "use strict";
 617  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 618  function _classCallCheck(instance, Constructor) {
 619    if (!(instance instanceof Constructor)) {
 620      throw new TypeError("Cannot call a class as a function");
 621    }
 622  }
 623  
 624  /***/ }),
 625  
 626  /***/ 202:
 627  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 628  
 629  "use strict";
 630  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 631  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 632  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 633  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 634  
 635  
 636  /**
 637   * WordPress dependencies
 638   */
 639  
 640  var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 641    xmlns: "http://www.w3.org/2000/svg",
 642    viewBox: "-2 -2 24 24"
 643  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 644    d: "M16 4h2v9H7v3l-5-4 5-4v3h9V4z"
 645  }));
 646  /* harmony default export */ __webpack_exports__["a"] = (keyboardReturn);
 647  
 648  
 649  /***/ }),
 650  
 651  /***/ 203:
 652  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 653  
 654  "use strict";
 655  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 656  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 657  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 658  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 659  
 660  
 661  /**
 662   * WordPress dependencies
 663   */
 664  
 665  var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 666    xmlns: "http://www.w3.org/2000/svg",
 667    viewBox: "0 0 24 24"
 668  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 669    d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
 670  }));
 671  /* harmony default export */ __webpack_exports__["a"] = (upload);
 672  
 673  
 674  /***/ }),
 675  
 676  /***/ 204:
 677  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 678  
 679  "use strict";
 680  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
 681  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 682  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
 683  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 684  
 685  
 686  /**
 687   * WordPress dependencies
 688   */
 689  
 690  var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 691    xmlns: "http://www.w3.org/2000/svg",
 692    viewBox: "0 0 24 24"
 693  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 694    d: "M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"
 695  }));
 696  /* harmony default export */ __webpack_exports__["a"] = (linkOff);
 697  
 698  
 699  /***/ }),
 700  
 701  /***/ 21:
 702  /***/ (function(module, exports) {
 703  
 704  (function() { module.exports = this["wp"]["keycodes"]; }());
 705  
 706  /***/ }),
 707  
 708  /***/ 22:
 709  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 710  
 711  "use strict";
 712  
 713  // EXPORTS
 714  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _inherits; });
 715  
 716  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
 717  function _setPrototypeOf(o, p) {
 718    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
 719      o.__proto__ = p;
 720      return o;
 721    };
 722  
 723    return _setPrototypeOf(o, p);
 724  }
 725  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
 726  
 727  function _inherits(subClass, superClass) {
 728    if (typeof superClass !== "function" && superClass !== null) {
 729      throw new TypeError("Super expression must either be null or a function");
 730    }
 731  
 732    subClass.prototype = Object.create(superClass && superClass.prototype, {
 733      constructor: {
 734        value: subClass,
 735        writable: true,
 736        configurable: true
 737      }
 738    });
 739    if (superClass) _setPrototypeOf(subClass, superClass);
 740  }
 741  
 742  /***/ }),
 743  
 744  /***/ 23:
 745  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 746  
 747  "use strict";
 748  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
 749  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40);
 750  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
 751  
 752  
 753  function _possibleConstructorReturn(self, call) {
 754    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
 755      return call;
 756    }
 757  
 758    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
 759  }
 760  
 761  /***/ }),
 762  
 763  /***/ 25:
 764  /***/ (function(module, exports) {
 765  
 766  (function() { module.exports = this["wp"]["richText"]; }());
 767  
 768  /***/ }),
 769  
 770  /***/ 26:
 771  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 772  
 773  "use strict";
 774  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
 775  function _arrayLikeToArray(arr, len) {
 776    if (len == null || len > arr.length) len = arr.length;
 777  
 778    for (var i = 0, arr2 = new Array(len); i < len; i++) {
 779      arr2[i] = arr[i];
 780    }
 781  
 782    return arr2;
 783  }
 784  
 785  /***/ }),
 786  
 787  /***/ 266:
 788  /***/ (function(module, exports, __webpack_require__) {
 789  
 790  /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
 791  (function (global, factory) {
 792       true ? module.exports = factory() :
 793      undefined;
 794  }(this, (function () { 'use strict';
 795  
 796  function _classCallCheck(instance, Constructor) {
 797    if (!(instance instanceof Constructor)) {
 798      throw new TypeError("Cannot call a class as a function");
 799    }
 800  }
 801  
 802  function _defineProperties(target, props) {
 803    for (var i = 0; i < props.length; i++) {
 804      var descriptor = props[i];
 805      descriptor.enumerable = descriptor.enumerable || false;
 806      descriptor.configurable = true;
 807      if ("value" in descriptor) descriptor.writable = true;
 808      Object.defineProperty(target, descriptor.key, descriptor);
 809    }
 810  }
 811  
 812  function _createClass(Constructor, protoProps, staticProps) {
 813    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 814    if (staticProps) _defineProperties(Constructor, staticProps);
 815    return Constructor;
 816  }
 817  
 818  function _slicedToArray(arr, i) {
 819    return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
 820  }
 821  
 822  function _arrayWithHoles(arr) {
 823    if (Array.isArray(arr)) return arr;
 824  }
 825  
 826  function _iterableToArrayLimit(arr, i) {
 827    var _arr = [];
 828    var _n = true;
 829    var _d = false;
 830    var _e = undefined;
 831  
 832    try {
 833      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
 834        _arr.push(_s.value);
 835  
 836        if (i && _arr.length === i) break;
 837      }
 838    } catch (err) {
 839      _d = true;
 840      _e = err;
 841    } finally {
 842      try {
 843        if (!_n && _i["return"] != null) _i["return"]();
 844      } finally {
 845        if (_d) throw _e;
 846      }
 847    }
 848  
 849    return _arr;
 850  }
 851  
 852  function _nonIterableRest() {
 853    throw new TypeError("Invalid attempt to destructure non-iterable instance");
 854  }
 855  
 856  var FastAverageColor =
 857  /*#__PURE__*/
 858  function () {
 859    function FastAverageColor() {
 860      _classCallCheck(this, FastAverageColor);
 861    }
 862  
 863    _createClass(FastAverageColor, [{
 864      key: "getColorAsync",
 865  
 866      /**
 867       * Get asynchronously the average color from not loaded image.
 868       *
 869       * @param {HTMLImageElement} resource
 870       * @param {Function} callback
 871       * @param {Object|null} [options]
 872       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
 873       * @param {*}      [options.data]
 874       * @param {string} [options.mode="speed"] "precision" or "speed"
 875       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
 876       * @param {number} [options.step=1]
 877       * @param {number} [options.left=0]
 878       * @param {number} [options.top=0]
 879       * @param {number} [options.width=width of resource]
 880       * @param {number} [options.height=height of resource]
 881       */
 882      value: function getColorAsync(resource, callback, options) {
 883        if (resource.complete) {
 884          callback.call(resource, this.getColor(resource, options), options && options.data);
 885        } else {
 886          this._bindImageEvents(resource, callback, options);
 887        }
 888      }
 889      /**
 890       * Get the average color from images, videos and canvas.
 891       *
 892       * @param {HTMLImageElement|HTMLVideoElement|HTMLCanvasElement} resource
 893       * @param {Object|null} [options]
 894       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
 895       * @param {*}      [options.data]
 896       * @param {string} [options.mode="speed"] "precision" or "speed"
 897       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
 898       * @param {number} [options.step=1]
 899       * @param {number} [options.left=0]
 900       * @param {number} [options.top=0]
 901       * @param {number} [options.width=width of resource]
 902       * @param {number} [options.height=height of resource]
 903       *
 904       * @returns {Object}
 905       */
 906  
 907    }, {
 908      key: "getColor",
 909      value: function getColor(resource, options) {
 910        options = options || {};
 911  
 912        var defaultColor = this._getDefaultColor(options),
 913            originalSize = this._getOriginalSize(resource),
 914            size = this._prepareSizeAndPosition(originalSize, options);
 915  
 916        var error = null,
 917            value = defaultColor;
 918  
 919        if (!size.srcWidth || !size.srcHeight || !size.destWidth || !size.destHeight) {
 920          return this._prepareResult(defaultColor, new Error('FastAverageColor: Incorrect sizes.'));
 921        }
 922  
 923        if (!this._ctx) {
 924          this._canvas = this._makeCanvas();
 925          this._ctx = this._canvas.getContext && this._canvas.getContext('2d');
 926  
 927          if (!this._ctx) {
 928            return this._prepareResult(defaultColor, new Error('FastAverageColor: Canvas Context 2D is not supported in this browser.'));
 929          }
 930        }
 931  
 932        this._canvas.width = size.destWidth;
 933        this._canvas.height = size.destHeight;
 934  
 935        try {
 936          this._ctx.clearRect(0, 0, size.destWidth, size.destHeight);
 937  
 938          this._ctx.drawImage(resource, size.srcLeft, size.srcTop, size.srcWidth, size.srcHeight, 0, 0, size.destWidth, size.destHeight);
 939  
 940          var bitmapData = this._ctx.getImageData(0, 0, size.destWidth, size.destHeight).data;
 941  
 942          value = this.getColorFromArray4(bitmapData, options);
 943        } catch (e) {
 944          // Security error, CORS
 945          // https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image
 946          error = e;
 947        }
 948  
 949        return this._prepareResult(value, error);
 950      }
 951      /**
 952       * Get the average color from a array when 1 pixel is 4 bytes.
 953       *
 954       * @param {Array|Uint8Array} arr
 955       * @param {Object} [options]
 956       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
 957       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
 958       * @param {number} [options.step=1]
 959       *
 960       * @returns {Array} [red (0-255), green (0-255), blue (0-255), alpha (0-255)]
 961       */
 962  
 963    }, {
 964      key: "getColorFromArray4",
 965      value: function getColorFromArray4(arr, options) {
 966        options = options || {};
 967        var bytesPerPixel = 4,
 968            arrLength = arr.length;
 969  
 970        if (arrLength < bytesPerPixel) {
 971          return this._getDefaultColor(options);
 972        }
 973  
 974        var len = arrLength - arrLength % bytesPerPixel,
 975            preparedStep = (options.step || 1) * bytesPerPixel,
 976            algorithm = '_' + (options.algorithm || 'sqrt') + 'Algorithm';
 977  
 978        if (typeof this[algorithm] !== 'function') {
 979          throw new Error("FastAverageColor: ".concat(options.algorithm, " is unknown algorithm."));
 980        }
 981  
 982        return this[algorithm](arr, len, preparedStep);
 983      }
 984      /**
 985       * Destroy the instance.
 986       */
 987  
 988    }, {
 989      key: "destroy",
 990      value: function destroy() {
 991        delete this._canvas;
 992        delete this._ctx;
 993      }
 994    }, {
 995      key: "_getDefaultColor",
 996      value: function _getDefaultColor(options) {
 997        return this._getOption(options, 'defaultColor', [255, 255, 255, 255]);
 998      }
 999    }, {
1000      key: "_getOption",
1001      value: function _getOption(options, name, defaultValue) {
1002        return typeof options[name] === 'undefined' ? defaultValue : options[name];
1003      }
1004    }, {
1005      key: "_prepareSizeAndPosition",
1006      value: function _prepareSizeAndPosition(originalSize, options) {
1007        var srcLeft = this._getOption(options, 'left', 0),
1008            srcTop = this._getOption(options, 'top', 0),
1009            srcWidth = this._getOption(options, 'width', originalSize.width),
1010            srcHeight = this._getOption(options, 'height', originalSize.height),
1011            destWidth = srcWidth,
1012            destHeight = srcHeight;
1013  
1014        if (options.mode === 'precision') {
1015          return {
1016            srcLeft: srcLeft,
1017            srcTop: srcTop,
1018            srcWidth: srcWidth,
1019            srcHeight: srcHeight,
1020            destWidth: destWidth,
1021            destHeight: destHeight
1022          };
1023        }
1024  
1025        var maxSize = 100,
1026            minSize = 10;
1027        var factor;
1028  
1029        if (srcWidth > srcHeight) {
1030          factor = srcWidth / srcHeight;
1031          destWidth = maxSize;
1032          destHeight = Math.round(destWidth / factor);
1033        } else {
1034          factor = srcHeight / srcWidth;
1035          destHeight = maxSize;
1036          destWidth = Math.round(destHeight / factor);
1037        }
1038  
1039        if (destWidth > srcWidth || destHeight > srcHeight || destWidth < minSize || destHeight < minSize) {
1040          destWidth = srcWidth;
1041          destHeight = srcHeight;
1042        }
1043  
1044        return {
1045          srcLeft: srcLeft,
1046          srcTop: srcTop,
1047          srcWidth: srcWidth,
1048          srcHeight: srcHeight,
1049          destWidth: destWidth,
1050          destHeight: destHeight
1051        };
1052      }
1053    }, {
1054      key: "_simpleAlgorithm",
1055      value: function _simpleAlgorithm(arr, len, preparedStep) {
1056        var redTotal = 0,
1057            greenTotal = 0,
1058            blueTotal = 0,
1059            alphaTotal = 0,
1060            count = 0;
1061  
1062        for (var i = 0; i < len; i += preparedStep) {
1063          var alpha = arr[i + 3],
1064              red = arr[i] * alpha,
1065              green = arr[i + 1] * alpha,
1066              blue = arr[i + 2] * alpha;
1067          redTotal += red;
1068          greenTotal += green;
1069          blueTotal += blue;
1070          alphaTotal += alpha;
1071          count++;
1072        }
1073  
1074        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1075      }
1076    }, {
1077      key: "_sqrtAlgorithm",
1078      value: function _sqrtAlgorithm(arr, len, preparedStep) {
1079        var redTotal = 0,
1080            greenTotal = 0,
1081            blueTotal = 0,
1082            alphaTotal = 0,
1083            count = 0;
1084  
1085        for (var i = 0; i < len; i += preparedStep) {
1086          var red = arr[i],
1087              green = arr[i + 1],
1088              blue = arr[i + 2],
1089              alpha = arr[i + 3];
1090          redTotal += red * red * alpha;
1091          greenTotal += green * green * alpha;
1092          blueTotal += blue * blue * alpha;
1093          alphaTotal += alpha;
1094          count++;
1095        }
1096  
1097        return alphaTotal ? [Math.round(Math.sqrt(redTotal / alphaTotal)), Math.round(Math.sqrt(greenTotal / alphaTotal)), Math.round(Math.sqrt(blueTotal / alphaTotal)), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1098      }
1099    }, {
1100      key: "_dominantAlgorithm",
1101      value: function _dominantAlgorithm(arr, len, preparedStep) {
1102        var colorHash = {},
1103            divider = 24;
1104  
1105        for (var i = 0; i < len; i += preparedStep) {
1106          var red = arr[i],
1107              green = arr[i + 1],
1108              blue = arr[i + 2],
1109              alpha = arr[i + 3],
1110              key = Math.round(red / divider) + ',' + Math.round(green / divider) + ',' + Math.round(blue / divider);
1111  
1112          if (colorHash[key]) {
1113            colorHash[key] = [colorHash[key][0] + red * alpha, colorHash[key][1] + green * alpha, colorHash[key][2] + blue * alpha, colorHash[key][3] + alpha, colorHash[key][4] + 1];
1114          } else {
1115            colorHash[key] = [red * alpha, green * alpha, blue * alpha, alpha, 1];
1116          }
1117        }
1118  
1119        var buffer = Object.keys(colorHash).map(function (key) {
1120          return colorHash[key];
1121        }).sort(function (a, b) {
1122          var countA = a[4],
1123              countB = b[4];
1124          return countA > countB ? -1 : countA === countB ? 0 : 1;
1125        });
1126  
1127        var _buffer$ = _slicedToArray(buffer[0], 5),
1128            redTotal = _buffer$[0],
1129            greenTotal = _buffer$[1],
1130            blueTotal = _buffer$[2],
1131            alphaTotal = _buffer$[3],
1132            count = _buffer$[4];
1133  
1134        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1135      }
1136    }, {
1137      key: "_bindImageEvents",
1138      value: function _bindImageEvents(resource, callback, options) {
1139        var _this = this;
1140  
1141        options = options || {};
1142  
1143        var data = options && options.data,
1144            defaultColor = this._getDefaultColor(options),
1145            onload = function onload() {
1146          unbindEvents();
1147          callback.call(resource, _this.getColor(resource, options), data);
1148        },
1149            onerror = function onerror() {
1150          unbindEvents();
1151          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image error')), data);
1152        },
1153            onabort = function onabort() {
1154          unbindEvents();
1155          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image abort')), data);
1156        },
1157            unbindEvents = function unbindEvents() {
1158          resource.removeEventListener('load', onload);
1159          resource.removeEventListener('error', onerror);
1160          resource.removeEventListener('abort', onabort);
1161        };
1162  
1163        resource.addEventListener('load', onload);
1164        resource.addEventListener('error', onerror);
1165        resource.addEventListener('abort', onabort);
1166      }
1167    }, {
1168      key: "_prepareResult",
1169      value: function _prepareResult(value, error) {
1170        var rgb = value.slice(0, 3),
1171            rgba = [].concat(rgb, value[3] / 255),
1172            isDark = this._isDark(value);
1173  
1174        return {
1175          error: error,
1176          value: value,
1177          rgb: 'rgb(' + rgb.join(',') + ')',
1178          rgba: 'rgba(' + rgba.join(',') + ')',
1179          hex: this._arrayToHex(rgb),
1180          hexa: this._arrayToHex(value),
1181          isDark: isDark,
1182          isLight: !isDark
1183        };
1184      }
1185    }, {
1186      key: "_getOriginalSize",
1187      value: function _getOriginalSize(resource) {
1188        if (resource instanceof HTMLImageElement) {
1189          return {
1190            width: resource.naturalWidth,
1191            height: resource.naturalHeight
1192          };
1193        }
1194  
1195        if (resource instanceof HTMLVideoElement) {
1196          return {
1197            width: resource.videoWidth,
1198            height: resource.videoHeight
1199          };
1200        }
1201  
1202        return {
1203          width: resource.width,
1204          height: resource.height
1205        };
1206      }
1207    }, {
1208      key: "_toHex",
1209      value: function _toHex(num) {
1210        var str = num.toString(16);
1211        return str.length === 1 ? '0' + str : str;
1212      }
1213    }, {
1214      key: "_arrayToHex",
1215      value: function _arrayToHex(arr) {
1216        return '#' + arr.map(this._toHex).join('');
1217      }
1218    }, {
1219      key: "_isDark",
1220      value: function _isDark(color) {
1221        // http://www.w3.org/TR/AERT#color-contrast
1222        var result = (color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000;
1223        return result < 128;
1224      }
1225    }, {
1226      key: "_makeCanvas",
1227      value: function _makeCanvas() {
1228        return typeof window === 'undefined' ? new OffscreenCanvas(1, 1) : document.createElement('canvas');
1229      }
1230    }]);
1231  
1232    return FastAverageColor;
1233  }();
1234  
1235  return FastAverageColor;
1236  
1237  })));
1238  
1239  
1240  /***/ }),
1241  
1242  /***/ 288:
1243  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1244  
1245  "use strict";
1246  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1247  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1248  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1249  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1250  
1251  
1252  /**
1253   * WordPress dependencies
1254   */
1255  
1256  var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1257    xmlns: "http://www.w3.org/2000/svg",
1258    viewBox: "0 0 24 24"
1259  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1260    d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
1261  }));
1262  /* harmony default export */ __webpack_exports__["a"] = (alignLeft);
1263  
1264  
1265  /***/ }),
1266  
1267  /***/ 289:
1268  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1269  
1270  "use strict";
1271  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1272  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1273  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1274  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1275  
1276  
1277  /**
1278   * WordPress dependencies
1279   */
1280  
1281  var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1282    xmlns: "http://www.w3.org/2000/svg",
1283    viewBox: "0 0 24 24"
1284  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1285    d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
1286  }));
1287  /* harmony default export */ __webpack_exports__["a"] = (alignCenter);
1288  
1289  
1290  /***/ }),
1291  
1292  /***/ 29:
1293  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1294  
1295  "use strict";
1296  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
1297  /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26);
1298  
1299  function _unsupportedIterableToArray(o, minLen) {
1300    if (!o) return;
1301    if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
1302    var n = Object.prototype.toString.call(o).slice(8, -1);
1303    if (n === "Object" && o.constructor) n = o.constructor.name;
1304    if (n === "Map" || n === "Set") return Array.from(o);
1305    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
1306  }
1307  
1308  /***/ }),
1309  
1310  /***/ 290:
1311  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1312  
1313  "use strict";
1314  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1315  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1316  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1317  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1318  
1319  
1320  /**
1321   * WordPress dependencies
1322   */
1323  
1324  var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1325    xmlns: "http://www.w3.org/2000/svg",
1326    viewBox: "0 0 24 24"
1327  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1328    d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
1329  }));
1330  /* harmony default export */ __webpack_exports__["a"] = (alignRight);
1331  
1332  
1333  /***/ }),
1334  
1335  /***/ 292:
1336  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1337  
1338  "use strict";
1339  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1340  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1341  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1342  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1343  
1344  
1345  /**
1346   * WordPress dependencies
1347   */
1348  
1349  var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1350    xmlns: "http://www.w3.org/2000/svg",
1351    viewBox: "0 0 24 24"
1352  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1353    d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"
1354  }));
1355  /* harmony default export */ __webpack_exports__["a"] = (search);
1356  
1357  
1358  /***/ }),
1359  
1360  /***/ 293:
1361  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1362  
1363  "use strict";
1364  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1365  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1366  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1367  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1368  
1369  
1370  /**
1371   * WordPress dependencies
1372   */
1373  
1374  var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1375    xmlns: "http://www.w3.org/2000/svg",
1376    viewBox: "0 0 24 24"
1377  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1378    d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
1379  }));
1380  /* harmony default export */ __webpack_exports__["a"] = (chevronRight);
1381  
1382  
1383  /***/ }),
1384  
1385  /***/ 294:
1386  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1387  
1388  "use strict";
1389  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1390  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1391  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1392  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1393  
1394  
1395  /**
1396   * WordPress dependencies
1397   */
1398  
1399  var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1400    xmlns: "http://www.w3.org/2000/svg",
1401    viewBox: "0 0 24 24"
1402  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1403    d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
1404  }));
1405  /* harmony default export */ __webpack_exports__["a"] = (chevronLeft);
1406  
1407  
1408  /***/ }),
1409  
1410  /***/ 3:
1411  /***/ (function(module, exports) {
1412  
1413  (function() { module.exports = this["wp"]["components"]; }());
1414  
1415  /***/ }),
1416  
1417  /***/ 300:
1418  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1419  
1420  "use strict";
1421  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1422  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1423  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1424  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1425  
1426  
1427  /**
1428   * WordPress dependencies
1429   */
1430  
1431  var pencil = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1432    xmlns: "http://www.w3.org/2000/svg",
1433    viewBox: "-2 -2 24 24"
1434  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1435    d: "M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"
1436  }));
1437  /* harmony default export */ __webpack_exports__["a"] = (pencil);
1438  
1439  
1440  /***/ }),
1441  
1442  /***/ 301:
1443  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1444  
1445  "use strict";
1446  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1447  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1448  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1449  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1450  
1451  
1452  /**
1453   * WordPress dependencies
1454   */
1455  
1456  var edit = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1457    xmlns: "http://www.w3.org/2000/svg",
1458    viewBox: "0 0 24 24"
1459  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1460    d: "M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"
1461  }));
1462  /* harmony default export */ __webpack_exports__["a"] = (edit);
1463  
1464  
1465  /***/ }),
1466  
1467  /***/ 302:
1468  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1469  
1470  "use strict";
1471  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1472  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1473  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1474  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1475  
1476  
1477  /**
1478   * WordPress dependencies
1479   */
1480  
1481  var code = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1482    viewBox: "0 0 24 24",
1483    xmlns: "http://www.w3.org/2000/svg"
1484  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1485    d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"
1486  }));
1487  /* harmony default export */ __webpack_exports__["a"] = (code);
1488  
1489  
1490  /***/ }),
1491  
1492  /***/ 303:
1493  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1494  
1495  "use strict";
1496  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1497  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
1498  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1499  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
1500  
1501  
1502  /**
1503   * WordPress dependencies
1504   */
1505  
1506  var grid = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
1507    xmlns: "http://www.w3.org/2000/svg",
1508    viewBox: "-2 -2 24 24"
1509  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
1510    d: "M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z"
1511  }));
1512  /* harmony default export */ __webpack_exports__["a"] = (grid);
1513  
1514  
1515  /***/ }),
1516  
1517  /***/ 31:
1518  /***/ (function(module, exports) {
1519  
1520  (function() { module.exports = this["wp"]["url"]; }());
1521  
1522  /***/ }),
1523  
1524  /***/ 35:
1525  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1526  
1527  "use strict";
1528  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
1529  function _iterableToArray(iter) {
1530    if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1531  }
1532  
1533  /***/ }),
1534  
1535  /***/ 37:
1536  /***/ (function(module, exports) {
1537  
1538  (function() { module.exports = this["wp"]["deprecated"]; }());
1539  
1540  /***/ }),
1541  
1542  /***/ 38:
1543  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1544  
1545  "use strict";
1546  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayWithHoles; });
1547  function _arrayWithHoles(arr) {
1548    if (Array.isArray(arr)) return arr;
1549  }
1550  
1551  /***/ }),
1552  
1553  /***/ 39:
1554  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1555  
1556  "use strict";
1557  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _nonIterableRest; });
1558  function _nonIterableRest() {
1559    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1560  }
1561  
1562  /***/ }),
1563  
1564  /***/ 4:
1565  /***/ (function(module, exports) {
1566  
1567  (function() { module.exports = this["wp"]["data"]; }());
1568  
1569  /***/ }),
1570  
1571  /***/ 40:
1572  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1573  
1574  "use strict";
1575  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
1576  function _typeof(obj) {
1577    "@babel/helpers - typeof";
1578  
1579    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1580      _typeof = function _typeof(obj) {
1581        return typeof obj;
1582      };
1583    } else {
1584      _typeof = function _typeof(obj) {
1585        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1586      };
1587    }
1588  
1589    return _typeof(obj);
1590  }
1591  
1592  /***/ }),
1593  
1594  /***/ 41:
1595  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1596  
1597  "use strict";
1598  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
1599  function _objectWithoutPropertiesLoose(source, excluded) {
1600    if (source == null) return {};
1601    var target = {};
1602    var sourceKeys = Object.keys(source);
1603    var key, i;
1604  
1605    for (i = 0; i < sourceKeys.length; i++) {
1606      key = sourceKeys[i];
1607      if (excluded.indexOf(key) >= 0) continue;
1608      target[key] = source[key];
1609    }
1610  
1611    return target;
1612  }
1613  
1614  /***/ }),
1615  
1616  /***/ 43:
1617  /***/ (function(module, exports) {
1618  
1619  (function() { module.exports = this["moment"]; }());
1620  
1621  /***/ }),
1622  
1623  /***/ 437:
1624  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1625  
1626  "use strict";
1627  // ESM COMPAT FLAG
1628  __webpack_require__.r(__webpack_exports__);
1629  
1630  // EXPORTS
1631  __webpack_require__.d(__webpack_exports__, "registerCoreBlocks", function() { return /* binding */ build_module_registerCoreBlocks; });
1632  __webpack_require__.d(__webpack_exports__, "__experimentalRegisterExperimentalCoreBlocks", function() { return /* binding */ __experimentalRegisterExperimentalCoreBlocks; });
1633  
1634  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js
1635  var build_module_paragraph_namespaceObject = {};
1636  __webpack_require__.r(build_module_paragraph_namespaceObject);
1637  __webpack_require__.d(build_module_paragraph_namespaceObject, "metadata", function() { return paragraph_metadata; });
1638  __webpack_require__.d(build_module_paragraph_namespaceObject, "name", function() { return paragraph_name; });
1639  __webpack_require__.d(build_module_paragraph_namespaceObject, "settings", function() { return paragraph_settings; });
1640  
1641  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/image/index.js
1642  var build_module_image_namespaceObject = {};
1643  __webpack_require__.r(build_module_image_namespaceObject);
1644  __webpack_require__.d(build_module_image_namespaceObject, "metadata", function() { return image_metadata; });
1645  __webpack_require__.d(build_module_image_namespaceObject, "name", function() { return image_name; });
1646  __webpack_require__.d(build_module_image_namespaceObject, "settings", function() { return image_settings; });
1647  
1648  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/heading/index.js
1649  var build_module_heading_namespaceObject = {};
1650  __webpack_require__.r(build_module_heading_namespaceObject);
1651  __webpack_require__.d(build_module_heading_namespaceObject, "metadata", function() { return heading_metadata; });
1652  __webpack_require__.d(build_module_heading_namespaceObject, "name", function() { return heading_name; });
1653  __webpack_require__.d(build_module_heading_namespaceObject, "settings", function() { return heading_settings; });
1654  
1655  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/quote/index.js
1656  var build_module_quote_namespaceObject = {};
1657  __webpack_require__.r(build_module_quote_namespaceObject);
1658  __webpack_require__.d(build_module_quote_namespaceObject, "metadata", function() { return quote_metadata; });
1659  __webpack_require__.d(build_module_quote_namespaceObject, "name", function() { return quote_name; });
1660  __webpack_require__.d(build_module_quote_namespaceObject, "settings", function() { return quote_settings; });
1661  
1662  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/gallery/index.js
1663  var build_module_gallery_namespaceObject = {};
1664  __webpack_require__.r(build_module_gallery_namespaceObject);
1665  __webpack_require__.d(build_module_gallery_namespaceObject, "metadata", function() { return gallery_metadata; });
1666  __webpack_require__.d(build_module_gallery_namespaceObject, "name", function() { return gallery_name; });
1667  __webpack_require__.d(build_module_gallery_namespaceObject, "settings", function() { return gallery_settings; });
1668  
1669  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/archives/index.js
1670  var archives_namespaceObject = {};
1671  __webpack_require__.r(archives_namespaceObject);
1672  __webpack_require__.d(archives_namespaceObject, "metadata", function() { return archives_metadata; });
1673  __webpack_require__.d(archives_namespaceObject, "name", function() { return archives_name; });
1674  __webpack_require__.d(archives_namespaceObject, "settings", function() { return archives_settings; });
1675  
1676  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/audio/index.js
1677  var build_module_audio_namespaceObject = {};
1678  __webpack_require__.r(build_module_audio_namespaceObject);
1679  __webpack_require__.d(build_module_audio_namespaceObject, "metadata", function() { return audio_metadata; });
1680  __webpack_require__.d(build_module_audio_namespaceObject, "name", function() { return audio_name; });
1681  __webpack_require__.d(build_module_audio_namespaceObject, "settings", function() { return audio_settings; });
1682  
1683  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/button/index.js
1684  var build_module_button_namespaceObject = {};
1685  __webpack_require__.r(build_module_button_namespaceObject);
1686  __webpack_require__.d(build_module_button_namespaceObject, "metadata", function() { return button_metadata; });
1687  __webpack_require__.d(build_module_button_namespaceObject, "name", function() { return button_name; });
1688  __webpack_require__.d(build_module_button_namespaceObject, "settings", function() { return button_settings; });
1689  
1690  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/buttons/index.js
1691  var buttons_namespaceObject = {};
1692  __webpack_require__.r(buttons_namespaceObject);
1693  __webpack_require__.d(buttons_namespaceObject, "metadata", function() { return buttons_metadata; });
1694  __webpack_require__.d(buttons_namespaceObject, "name", function() { return buttons_name; });
1695  __webpack_require__.d(buttons_namespaceObject, "settings", function() { return buttons_settings; });
1696  
1697  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/calendar/index.js
1698  var build_module_calendar_namespaceObject = {};
1699  __webpack_require__.r(build_module_calendar_namespaceObject);
1700  __webpack_require__.d(build_module_calendar_namespaceObject, "metadata", function() { return calendar_metadata; });
1701  __webpack_require__.d(build_module_calendar_namespaceObject, "name", function() { return calendar_name; });
1702  __webpack_require__.d(build_module_calendar_namespaceObject, "settings", function() { return calendar_settings; });
1703  
1704  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/categories/index.js
1705  var categories_namespaceObject = {};
1706  __webpack_require__.r(categories_namespaceObject);
1707  __webpack_require__.d(categories_namespaceObject, "metadata", function() { return categories_metadata; });
1708  __webpack_require__.d(categories_namespaceObject, "name", function() { return categories_name; });
1709  __webpack_require__.d(categories_namespaceObject, "settings", function() { return categories_settings; });
1710  
1711  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/code/index.js
1712  var code_namespaceObject = {};
1713  __webpack_require__.r(code_namespaceObject);
1714  __webpack_require__.d(code_namespaceObject, "metadata", function() { return code_metadata; });
1715  __webpack_require__.d(code_namespaceObject, "name", function() { return code_name; });
1716  __webpack_require__.d(code_namespaceObject, "settings", function() { return code_settings; });
1717  
1718  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/columns/index.js
1719  var build_module_columns_namespaceObject = {};
1720  __webpack_require__.r(build_module_columns_namespaceObject);
1721  __webpack_require__.d(build_module_columns_namespaceObject, "metadata", function() { return columns_metadata; });
1722  __webpack_require__.d(build_module_columns_namespaceObject, "name", function() { return columns_name; });
1723  __webpack_require__.d(build_module_columns_namespaceObject, "settings", function() { return columns_settings; });
1724  
1725  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/column/index.js
1726  var build_module_column_namespaceObject = {};
1727  __webpack_require__.r(build_module_column_namespaceObject);
1728  __webpack_require__.d(build_module_column_namespaceObject, "metadata", function() { return column_metadata; });
1729  __webpack_require__.d(build_module_column_namespaceObject, "name", function() { return column_name; });
1730  __webpack_require__.d(build_module_column_namespaceObject, "settings", function() { return column_settings; });
1731  
1732  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/cover/index.js
1733  var build_module_cover_namespaceObject = {};
1734  __webpack_require__.r(build_module_cover_namespaceObject);
1735  __webpack_require__.d(build_module_cover_namespaceObject, "metadata", function() { return cover_metadata; });
1736  __webpack_require__.d(build_module_cover_namespaceObject, "name", function() { return cover_name; });
1737  __webpack_require__.d(build_module_cover_namespaceObject, "settings", function() { return cover_settings; });
1738  
1739  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/embed/index.js
1740  var embed_namespaceObject = {};
1741  __webpack_require__.r(embed_namespaceObject);
1742  __webpack_require__.d(embed_namespaceObject, "name", function() { return embed_name; });
1743  __webpack_require__.d(embed_namespaceObject, "settings", function() { return embed_settings; });
1744  __webpack_require__.d(embed_namespaceObject, "common", function() { return embed_common; });
1745  __webpack_require__.d(embed_namespaceObject, "others", function() { return embed_others; });
1746  
1747  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/file/index.js
1748  var build_module_file_namespaceObject = {};
1749  __webpack_require__.r(build_module_file_namespaceObject);
1750  __webpack_require__.d(build_module_file_namespaceObject, "metadata", function() { return file_metadata; });
1751  __webpack_require__.d(build_module_file_namespaceObject, "name", function() { return file_name; });
1752  __webpack_require__.d(build_module_file_namespaceObject, "settings", function() { return file_settings; });
1753  
1754  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/html/index.js
1755  var build_module_html_namespaceObject = {};
1756  __webpack_require__.r(build_module_html_namespaceObject);
1757  __webpack_require__.d(build_module_html_namespaceObject, "metadata", function() { return html_metadata; });
1758  __webpack_require__.d(build_module_html_namespaceObject, "name", function() { return html_name; });
1759  __webpack_require__.d(build_module_html_namespaceObject, "settings", function() { return html_settings; });
1760  
1761  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/media-text/index.js
1762  var media_text_namespaceObject = {};
1763  __webpack_require__.r(media_text_namespaceObject);
1764  __webpack_require__.d(media_text_namespaceObject, "metadata", function() { return media_text_metadata; });
1765  __webpack_require__.d(media_text_namespaceObject, "name", function() { return media_text_name; });
1766  __webpack_require__.d(media_text_namespaceObject, "settings", function() { return media_text_settings; });
1767  
1768  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js
1769  var latest_comments_namespaceObject = {};
1770  __webpack_require__.r(latest_comments_namespaceObject);
1771  __webpack_require__.d(latest_comments_namespaceObject, "metadata", function() { return latest_comments_metadata; });
1772  __webpack_require__.d(latest_comments_namespaceObject, "name", function() { return latest_comments_name; });
1773  __webpack_require__.d(latest_comments_namespaceObject, "settings", function() { return latest_comments_settings; });
1774  
1775  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js
1776  var latest_posts_namespaceObject = {};
1777  __webpack_require__.r(latest_posts_namespaceObject);
1778  __webpack_require__.d(latest_posts_namespaceObject, "metadata", function() { return latest_posts_metadata; });
1779  __webpack_require__.d(latest_posts_namespaceObject, "name", function() { return latest_posts_name; });
1780  __webpack_require__.d(latest_posts_namespaceObject, "settings", function() { return latest_posts_settings; });
1781  
1782  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/list/index.js
1783  var build_module_list_namespaceObject = {};
1784  __webpack_require__.r(build_module_list_namespaceObject);
1785  __webpack_require__.d(build_module_list_namespaceObject, "metadata", function() { return list_metadata; });
1786  __webpack_require__.d(build_module_list_namespaceObject, "name", function() { return list_name; });
1787  __webpack_require__.d(build_module_list_namespaceObject, "settings", function() { return list_settings; });
1788  
1789  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/missing/index.js
1790  var missing_namespaceObject = {};
1791  __webpack_require__.r(missing_namespaceObject);
1792  __webpack_require__.d(missing_namespaceObject, "metadata", function() { return missing_metadata; });
1793  __webpack_require__.d(missing_namespaceObject, "name", function() { return missing_name; });
1794  __webpack_require__.d(missing_namespaceObject, "settings", function() { return missing_settings; });
1795  
1796  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/more/index.js
1797  var build_module_more_namespaceObject = {};
1798  __webpack_require__.r(build_module_more_namespaceObject);
1799  __webpack_require__.d(build_module_more_namespaceObject, "metadata", function() { return more_metadata; });
1800  __webpack_require__.d(build_module_more_namespaceObject, "name", function() { return more_name; });
1801  __webpack_require__.d(build_module_more_namespaceObject, "settings", function() { return more_settings; });
1802  
1803  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/nextpage/index.js
1804  var nextpage_namespaceObject = {};
1805  __webpack_require__.r(nextpage_namespaceObject);
1806  __webpack_require__.d(nextpage_namespaceObject, "metadata", function() { return nextpage_metadata; });
1807  __webpack_require__.d(nextpage_namespaceObject, "name", function() { return nextpage_name; });
1808  __webpack_require__.d(nextpage_namespaceObject, "settings", function() { return nextpage_settings; });
1809  
1810  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/preformatted/index.js
1811  var build_module_preformatted_namespaceObject = {};
1812  __webpack_require__.r(build_module_preformatted_namespaceObject);
1813  __webpack_require__.d(build_module_preformatted_namespaceObject, "metadata", function() { return preformatted_metadata; });
1814  __webpack_require__.d(build_module_preformatted_namespaceObject, "name", function() { return preformatted_name; });
1815  __webpack_require__.d(build_module_preformatted_namespaceObject, "settings", function() { return preformatted_settings; });
1816  
1817  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/pullquote/index.js
1818  var build_module_pullquote_namespaceObject = {};
1819  __webpack_require__.r(build_module_pullquote_namespaceObject);
1820  __webpack_require__.d(build_module_pullquote_namespaceObject, "metadata", function() { return pullquote_metadata; });
1821  __webpack_require__.d(build_module_pullquote_namespaceObject, "name", function() { return pullquote_name; });
1822  __webpack_require__.d(build_module_pullquote_namespaceObject, "settings", function() { return pullquote_settings; });
1823  
1824  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/block/index.js
1825  var block_namespaceObject = {};
1826  __webpack_require__.r(block_namespaceObject);
1827  __webpack_require__.d(block_namespaceObject, "metadata", function() { return block_metadata; });
1828  __webpack_require__.d(block_namespaceObject, "name", function() { return block_name; });
1829  __webpack_require__.d(block_namespaceObject, "settings", function() { return block_settings; });
1830  
1831  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/rss/index.js
1832  var build_module_rss_namespaceObject = {};
1833  __webpack_require__.r(build_module_rss_namespaceObject);
1834  __webpack_require__.d(build_module_rss_namespaceObject, "metadata", function() { return rss_metadata; });
1835  __webpack_require__.d(build_module_rss_namespaceObject, "name", function() { return rss_name; });
1836  __webpack_require__.d(build_module_rss_namespaceObject, "settings", function() { return rss_settings; });
1837  
1838  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/search/index.js
1839  var search_namespaceObject = {};
1840  __webpack_require__.r(search_namespaceObject);
1841  __webpack_require__.d(search_namespaceObject, "metadata", function() { return search_metadata; });
1842  __webpack_require__.d(search_namespaceObject, "name", function() { return search_name; });
1843  __webpack_require__.d(search_namespaceObject, "settings", function() { return search_settings; });
1844  
1845  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/group/index.js
1846  var build_module_group_namespaceObject = {};
1847  __webpack_require__.r(build_module_group_namespaceObject);
1848  __webpack_require__.d(build_module_group_namespaceObject, "metadata", function() { return group_metadata; });
1849  __webpack_require__.d(build_module_group_namespaceObject, "name", function() { return group_name; });
1850  __webpack_require__.d(build_module_group_namespaceObject, "settings", function() { return group_settings; });
1851  
1852  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/separator/index.js
1853  var build_module_separator_namespaceObject = {};
1854  __webpack_require__.r(build_module_separator_namespaceObject);
1855  __webpack_require__.d(build_module_separator_namespaceObject, "metadata", function() { return separator_metadata; });
1856  __webpack_require__.d(build_module_separator_namespaceObject, "name", function() { return separator_name; });
1857  __webpack_require__.d(build_module_separator_namespaceObject, "settings", function() { return build_module_separator_settings; });
1858  
1859  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/shortcode/index.js
1860  var build_module_shortcode_namespaceObject = {};
1861  __webpack_require__.r(build_module_shortcode_namespaceObject);
1862  __webpack_require__.d(build_module_shortcode_namespaceObject, "metadata", function() { return shortcode_metadata; });
1863  __webpack_require__.d(build_module_shortcode_namespaceObject, "name", function() { return shortcode_name; });
1864  __webpack_require__.d(build_module_shortcode_namespaceObject, "settings", function() { return shortcode_settings; });
1865  
1866  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/spacer/index.js
1867  var spacer_namespaceObject = {};
1868  __webpack_require__.r(spacer_namespaceObject);
1869  __webpack_require__.d(spacer_namespaceObject, "metadata", function() { return spacer_metadata; });
1870  __webpack_require__.d(spacer_namespaceObject, "name", function() { return spacer_name; });
1871  __webpack_require__.d(spacer_namespaceObject, "settings", function() { return spacer_settings; });
1872  
1873  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/subhead/index.js
1874  var subhead_namespaceObject = {};
1875  __webpack_require__.r(subhead_namespaceObject);
1876  __webpack_require__.d(subhead_namespaceObject, "metadata", function() { return subhead_metadata; });
1877  __webpack_require__.d(subhead_namespaceObject, "name", function() { return subhead_name; });
1878  __webpack_require__.d(subhead_namespaceObject, "settings", function() { return subhead_settings; });
1879  
1880  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/table/index.js
1881  var build_module_table_namespaceObject = {};
1882  __webpack_require__.r(build_module_table_namespaceObject);
1883  __webpack_require__.d(build_module_table_namespaceObject, "metadata", function() { return table_metadata; });
1884  __webpack_require__.d(build_module_table_namespaceObject, "name", function() { return table_name; });
1885  __webpack_require__.d(build_module_table_namespaceObject, "settings", function() { return table_settings; });
1886  
1887  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/text-columns/index.js
1888  var text_columns_namespaceObject = {};
1889  __webpack_require__.r(text_columns_namespaceObject);
1890  __webpack_require__.d(text_columns_namespaceObject, "metadata", function() { return text_columns_metadata; });
1891  __webpack_require__.d(text_columns_namespaceObject, "name", function() { return text_columns_name; });
1892  __webpack_require__.d(text_columns_namespaceObject, "settings", function() { return text_columns_settings; });
1893  
1894  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/verse/index.js
1895  var build_module_verse_namespaceObject = {};
1896  __webpack_require__.r(build_module_verse_namespaceObject);
1897  __webpack_require__.d(build_module_verse_namespaceObject, "metadata", function() { return verse_metadata; });
1898  __webpack_require__.d(build_module_verse_namespaceObject, "name", function() { return verse_name; });
1899  __webpack_require__.d(build_module_verse_namespaceObject, "settings", function() { return verse_settings; });
1900  
1901  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/video/index.js
1902  var build_module_video_namespaceObject = {};
1903  __webpack_require__.r(build_module_video_namespaceObject);
1904  __webpack_require__.d(build_module_video_namespaceObject, "metadata", function() { return video_metadata; });
1905  __webpack_require__.d(build_module_video_namespaceObject, "name", function() { return video_name; });
1906  __webpack_require__.d(build_module_video_namespaceObject, "settings", function() { return video_settings; });
1907  
1908  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js
1909  var tag_cloud_namespaceObject = {};
1910  __webpack_require__.r(tag_cloud_namespaceObject);
1911  __webpack_require__.d(tag_cloud_namespaceObject, "metadata", function() { return tag_cloud_metadata; });
1912  __webpack_require__.d(tag_cloud_namespaceObject, "name", function() { return tag_cloud_name; });
1913  __webpack_require__.d(tag_cloud_namespaceObject, "settings", function() { return tag_cloud_settings; });
1914  
1915  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/classic/index.js
1916  var build_module_classic_namespaceObject = {};
1917  __webpack_require__.r(build_module_classic_namespaceObject);
1918  __webpack_require__.d(build_module_classic_namespaceObject, "metadata", function() { return classic_metadata; });
1919  __webpack_require__.d(build_module_classic_namespaceObject, "name", function() { return classic_name; });
1920  __webpack_require__.d(build_module_classic_namespaceObject, "settings", function() { return classic_settings; });
1921  
1922  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/social-links/index.js
1923  var social_links_namespaceObject = {};
1924  __webpack_require__.r(social_links_namespaceObject);
1925  __webpack_require__.d(social_links_namespaceObject, "metadata", function() { return social_links_metadata; });
1926  __webpack_require__.d(social_links_namespaceObject, "name", function() { return social_links_name; });
1927  __webpack_require__.d(social_links_namespaceObject, "settings", function() { return social_links_settings; });
1928  
1929  // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/social-link/index.js
1930  var social_link_namespaceObject = {};
1931  __webpack_require__.r(social_link_namespaceObject);
1932  __webpack_require__.d(social_link_namespaceObject, "metadata", function() { return social_link_metadata; });
1933  __webpack_require__.d(social_link_namespaceObject, "name", function() { return social_link_name; });
1934  __webpack_require__.d(social_link_namespaceObject, "settings", function() { return social_link_settings; });
1935  
1936  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
1937  var toConsumableArray = __webpack_require__(18);
1938  
1939  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
1940  var defineProperty = __webpack_require__(5);
1941  
1942  // EXTERNAL MODULE: external {"this":["wp","coreData"]}
1943  var external_this_wp_coreData_ = __webpack_require__(98);
1944  
1945  // EXTERNAL MODULE: external {"this":["wp","notices"]}
1946  var external_this_wp_notices_ = __webpack_require__(100);
1947  
1948  // EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
1949  var external_this_wp_blockEditor_ = __webpack_require__(7);
1950  
1951  // EXTERNAL MODULE: external {"this":["wp","blocks"]}
1952  var external_this_wp_blocks_ = __webpack_require__(10);
1953  
1954  // EXTERNAL MODULE: external {"this":"lodash"}
1955  var external_this_lodash_ = __webpack_require__(2);
1956  
1957  // EXTERNAL MODULE: external {"this":["wp","i18n"]}
1958  var external_this_wp_i18n_ = __webpack_require__(1);
1959  
1960  // EXTERNAL MODULE: external {"this":["wp","element"]}
1961  var external_this_wp_element_ = __webpack_require__(0);
1962  
1963  // EXTERNAL MODULE: external {"this":["wp","primitives"]}
1964  var external_this_wp_primitives_ = __webpack_require__(6);
1965  
1966  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/paragraph.js
1967  
1968  
1969  /**
1970   * WordPress dependencies
1971   */
1972  
1973  var paragraph = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
1974    xmlns: "http://www.w3.org/2000/svg",
1975    viewBox: "0 0 24 24"
1976  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
1977    d: "M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"
1978  }));
1979  /* harmony default export */ var library_paragraph = (paragraph);
1980  
1981  // EXTERNAL MODULE: ./node_modules/classnames/index.js
1982  var classnames = __webpack_require__(11);
1983  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
1984  
1985  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js
1986  
1987  
1988  
1989  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1990  
1991  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1992  
1993  /**
1994   * External dependencies
1995   */
1996  
1997  
1998  /**
1999   * WordPress dependencies
2000   */
2001  
2002  
2003  
2004  var deprecated_supports = {
2005    className: false
2006  };
2007  var deprecated_blockAttributes = {
2008    align: {
2009      type: 'string'
2010    },
2011    content: {
2012      type: 'string',
2013      source: 'html',
2014      selector: 'p',
2015      default: ''
2016    },
2017    dropCap: {
2018      type: 'boolean',
2019      default: false
2020    },
2021    placeholder: {
2022      type: 'string'
2023    },
2024    textColor: {
2025      type: 'string'
2026    },
2027    backgroundColor: {
2028      type: 'string'
2029    },
2030    fontSize: {
2031      type: 'string'
2032    },
2033    direction: {
2034      type: 'string',
2035      enum: ['ltr', 'rtl']
2036    },
2037    style: {
2038      type: 'object'
2039    }
2040  };
2041  
2042  var deprecated_migrateCustomColorsAndFontSizes = function migrateCustomColorsAndFontSizes(attributes) {
2043    if (!attributes.customTextColor && !attributes.customBackgroundColor && !attributes.customFontSize) {
2044      return attributes;
2045    }
2046  
2047    var style = {};
2048  
2049    if (attributes.customTextColor || attributes.customBackgroundColor) {
2050      style.color = {};
2051    }
2052  
2053    if (attributes.customTextColor) {
2054      style.color.text = attributes.customTextColor;
2055    }
2056  
2057    if (attributes.customBackgroundColor) {
2058      style.color.background = attributes.customBackgroundColor;
2059    }
2060  
2061    if (attributes.customFontSize) {
2062      style.typography = {
2063        fontSize: attributes.customFontSize
2064      };
2065    }
2066  
2067    return _objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor', 'customBackgroundColor', 'customFontSize']), {
2068      style: style
2069    });
2070  };
2071  
2072  var deprecated = [{
2073    supports: deprecated_supports,
2074    attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), {
2075      customTextColor: {
2076        type: 'string'
2077      },
2078      customBackgroundColor: {
2079        type: 'string'
2080      },
2081      customFontSize: {
2082        type: 'number'
2083      }
2084    }),
2085    migrate: deprecated_migrateCustomColorsAndFontSizes,
2086    save: function save(_ref) {
2087      var _classnames;
2088  
2089      var attributes = _ref.attributes;
2090      var align = attributes.align,
2091          content = attributes.content,
2092          dropCap = attributes.dropCap,
2093          backgroundColor = attributes.backgroundColor,
2094          textColor = attributes.textColor,
2095          customBackgroundColor = attributes.customBackgroundColor,
2096          customTextColor = attributes.customTextColor,
2097          fontSize = attributes.fontSize,
2098          customFontSize = attributes.customFontSize,
2099          direction = attributes.direction;
2100      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
2101      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2102      var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize);
2103      var className = classnames_default()((_classnames = {
2104        'has-text-color': textColor || customTextColor,
2105        'has-background': backgroundColor || customBackgroundColor,
2106        'has-drop-cap': dropCap
2107      }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames));
2108      var styles = {
2109        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2110        color: textClass ? undefined : customTextColor,
2111        fontSize: fontSizeClass ? undefined : customFontSize
2112      };
2113      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2114        tagName: "p",
2115        style: styles,
2116        className: className ? className : undefined,
2117        value: content,
2118        dir: direction
2119      });
2120    }
2121  }, {
2122    supports: deprecated_supports,
2123    attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), {
2124      customTextColor: {
2125        type: 'string'
2126      },
2127      customBackgroundColor: {
2128        type: 'string'
2129      },
2130      customFontSize: {
2131        type: 'number'
2132      }
2133    }),
2134    migrate: deprecated_migrateCustomColorsAndFontSizes,
2135    save: function save(_ref2) {
2136      var _classnames2;
2137  
2138      var attributes = _ref2.attributes;
2139      var align = attributes.align,
2140          content = attributes.content,
2141          dropCap = attributes.dropCap,
2142          backgroundColor = attributes.backgroundColor,
2143          textColor = attributes.textColor,
2144          customBackgroundColor = attributes.customBackgroundColor,
2145          customTextColor = attributes.customTextColor,
2146          fontSize = attributes.fontSize,
2147          customFontSize = attributes.customFontSize,
2148          direction = attributes.direction;
2149      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
2150      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2151      var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize);
2152      var className = classnames_default()((_classnames2 = {
2153        'has-text-color': textColor || customTextColor,
2154        'has-background': backgroundColor || customBackgroundColor,
2155        'has-drop-cap': dropCap
2156      }, Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2));
2157      var styles = {
2158        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2159        color: textClass ? undefined : customTextColor,
2160        fontSize: fontSizeClass ? undefined : customFontSize,
2161        textAlign: align
2162      };
2163      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2164        tagName: "p",
2165        style: styles,
2166        className: className ? className : undefined,
2167        value: content,
2168        dir: direction
2169      });
2170    }
2171  }, {
2172    supports: deprecated_supports,
2173    attributes: _objectSpread({}, Object(external_this_lodash_["omit"])(deprecated_blockAttributes, ['style']), {
2174      customTextColor: {
2175        type: 'string'
2176      },
2177      customBackgroundColor: {
2178        type: 'string'
2179      },
2180      customFontSize: {
2181        type: 'number'
2182      },
2183      width: {
2184        type: 'string'
2185      }
2186    }),
2187    migrate: deprecated_migrateCustomColorsAndFontSizes,
2188    save: function save(_ref3) {
2189      var _classnames3;
2190  
2191      var attributes = _ref3.attributes;
2192      var width = attributes.width,
2193          align = attributes.align,
2194          content = attributes.content,
2195          dropCap = attributes.dropCap,
2196          backgroundColor = attributes.backgroundColor,
2197          textColor = attributes.textColor,
2198          customBackgroundColor = attributes.customBackgroundColor,
2199          customTextColor = attributes.customTextColor,
2200          fontSize = attributes.fontSize,
2201          customFontSize = attributes.customFontSize;
2202      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
2203      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2204      var fontSizeClass = fontSize && "is-".concat(fontSize, "-text");
2205      var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames3, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames3, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames3, backgroundClass, backgroundClass), _classnames3));
2206      var styles = {
2207        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2208        color: textClass ? undefined : customTextColor,
2209        fontSize: fontSizeClass ? undefined : customFontSize,
2210        textAlign: align
2211      };
2212      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2213        tagName: "p",
2214        style: styles,
2215        className: className ? className : undefined,
2216        value: content
2217      });
2218    }
2219  }, {
2220    supports: deprecated_supports,
2221    attributes: Object(external_this_lodash_["omit"])(_objectSpread({}, deprecated_blockAttributes, {
2222      fontSize: {
2223        type: 'number'
2224      }
2225    }), ['style']),
2226    save: function save(_ref4) {
2227      var _classnames4;
2228  
2229      var attributes = _ref4.attributes;
2230      var width = attributes.width,
2231          align = attributes.align,
2232          content = attributes.content,
2233          dropCap = attributes.dropCap,
2234          backgroundColor = attributes.backgroundColor,
2235          textColor = attributes.textColor,
2236          fontSize = attributes.fontSize;
2237      var className = classnames_default()((_classnames4 = {}, Object(defineProperty["a" /* default */])(_classnames4, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames4, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames4, 'has-drop-cap', dropCap), _classnames4));
2238      var styles = {
2239        backgroundColor: backgroundColor,
2240        color: textColor,
2241        fontSize: fontSize,
2242        textAlign: align
2243      };
2244      return Object(external_this_wp_element_["createElement"])("p", {
2245        style: styles,
2246        className: className ? className : undefined
2247      }, content);
2248    },
2249    migrate: function migrate(attributes) {
2250      return deprecated_migrateCustomColorsAndFontSizes(Object(external_this_lodash_["omit"])(_objectSpread({}, attributes, {
2251        customFontSize: Object(external_this_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined,
2252        customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined,
2253        customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined
2254      })), ['fontSize', 'textColor', 'backgroundColor', 'style']);
2255    }
2256  }, {
2257    supports: deprecated_supports,
2258    attributes: _objectSpread({}, deprecated_blockAttributes, {
2259      content: {
2260        type: 'string',
2261        source: 'html',
2262        default: ''
2263      }
2264    }),
2265    save: function save(_ref5) {
2266      var attributes = _ref5.attributes;
2267      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content);
2268    },
2269    migrate: function migrate(attributes) {
2270      return attributes;
2271    }
2272  }];
2273  /* harmony default export */ var paragraph_deprecated = (deprecated);
2274  
2275  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
2276  var slicedToArray = __webpack_require__(14);
2277  
2278  // EXTERNAL MODULE: external {"this":["wp","components"]}
2279  var external_this_wp_components_ = __webpack_require__(3);
2280  
2281  // EXTERNAL MODULE: external {"this":["wp","data"]}
2282  var external_this_wp_data_ = __webpack_require__(4);
2283  
2284  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/format-ltr.js
2285  
2286  
2287  /**
2288   * WordPress dependencies
2289   */
2290  
2291  var formatLtr = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
2292    xmlns: "http://www.w3.org/2000/svg",
2293    viewBox: "-2 -2 24 24"
2294  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
2295    d: "M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"
2296  }));
2297  /* harmony default export */ var format_ltr = (formatLtr);
2298  
2299  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js
2300  
2301  
2302  
2303  
2304  function edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2305  
2306  function edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2307  
2308  /**
2309   * External dependencies
2310   */
2311  
2312  /**
2313   * WordPress dependencies
2314   */
2315  
2316  
2317  
2318  
2319  
2320  
2321  
2322  
2323  /**
2324   * Browser dependencies
2325   */
2326  
2327  var edit_window = window,
2328      edit_getComputedStyle = edit_window.getComputedStyle;
2329  var querySelector = window.document.querySelector.bind(document);
2330  var edit_name = 'core/paragraph';
2331  var PARAGRAPH_DROP_CAP_SELECTOR = 'p.has-drop-cap';
2332  
2333  function ParagraphRTLToolbar(_ref) {
2334    var direction = _ref.direction,
2335        setDirection = _ref.setDirection;
2336    var isRTL = Object(external_this_wp_data_["useSelect"])(function (select) {
2337      return !!select('core/block-editor').getSettings().isRTL;
2338    }, []);
2339    return isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], {
2340      controls: [{
2341        icon: format_ltr,
2342        title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'),
2343        isActive: direction === 'ltr',
2344        onClick: function onClick() {
2345          setDirection(direction === 'ltr' ? undefined : 'ltr');
2346        }
2347      }]
2348    });
2349  }
2350  
2351  function useDropCap(isDropCap, fontSize, styleFontSize) {
2352    var isDisabled = !Object(external_this_wp_blockEditor_["__experimentalUseEditorFeature"])('typography.dropCap');
2353  
2354    var _useState = Object(external_this_wp_element_["useState"])(),
2355        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
2356        minimumHeight = _useState2[0],
2357        setMinimumHeight = _useState2[1];
2358  
2359    var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
2360      return select('core/block-editor').getSettings();
2361    }),
2362        fontSizes = _useSelect.fontSizes;
2363  
2364    var fontSizeObject = Object(external_this_wp_blockEditor_["getFontSize"])(fontSizes, fontSize, styleFontSize);
2365    Object(external_this_wp_element_["useEffect"])(function () {
2366      if (isDisabled) {
2367        return;
2368      }
2369  
2370      var element = querySelector(PARAGRAPH_DROP_CAP_SELECTOR);
2371  
2372      if (isDropCap && element) {
2373        setMinimumHeight(edit_getComputedStyle(element, 'first-letter').lineHeight);
2374      } else if (minimumHeight) {
2375        setMinimumHeight(undefined);
2376      }
2377    }, [isDisabled, isDropCap, minimumHeight, setMinimumHeight, fontSizeObject.size]);
2378    return [!isDisabled, minimumHeight];
2379  }
2380  
2381  function ParagraphBlock(_ref2) {
2382    var attributes = _ref2.attributes,
2383        mergeBlocks = _ref2.mergeBlocks,
2384        onReplace = _ref2.onReplace,
2385        onRemove = _ref2.onRemove,
2386        setAttributes = _ref2.setAttributes;
2387    var align = attributes.align,
2388        content = attributes.content,
2389        direction = attributes.direction,
2390        dropCap = attributes.dropCap,
2391        placeholder = attributes.placeholder,
2392        fontSize = attributes.fontSize,
2393        style = attributes.style;
2394    var ref = Object(external_this_wp_element_["useRef"])();
2395  
2396    var _useDropCap = useDropCap(dropCap, fontSize, style === null || style === void 0 ? void 0 : style.fontSize),
2397        _useDropCap2 = Object(slicedToArray["a" /* default */])(_useDropCap, 2),
2398        isDropCapEnabled = _useDropCap2[0],
2399        dropCapMinimumHeight = _useDropCap2[1];
2400  
2401    var styles = {
2402      direction: direction,
2403      minHeight: dropCapMinimumHeight
2404    };
2405    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
2406      value: align,
2407      onChange: function onChange(newAlign) {
2408        return setAttributes({
2409          align: newAlign
2410        });
2411      }
2412    }), Object(external_this_wp_element_["createElement"])(ParagraphRTLToolbar, {
2413      direction: direction,
2414      setDirection: function setDirection(newDirection) {
2415        return setAttributes({
2416          direction: newDirection
2417        });
2418      }
2419    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, isDropCapEnabled && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
2420      title: Object(external_this_wp_i18n_["__"])('Text settings')
2421    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
2422      label: Object(external_this_wp_i18n_["__"])('Drop cap'),
2423      checked: !!dropCap,
2424      onChange: function onChange() {
2425        return setAttributes({
2426          dropCap: !dropCap
2427        });
2428      },
2429      help: dropCap ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.')
2430    }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
2431      ref: ref,
2432      identifier: "content",
2433      tagName: external_this_wp_blockEditor_["__experimentalBlock"].p,
2434      className: classnames_default()(Object(defineProperty["a" /* default */])({
2435        'has-drop-cap': dropCap
2436      }, "has-text-align-".concat(align), align)),
2437      style: styles,
2438      value: content,
2439      onChange: function onChange(newContent) {
2440        return setAttributes({
2441          content: newContent
2442        });
2443      },
2444      onSplit: function onSplit(value) {
2445        if (!value) {
2446          return Object(external_this_wp_blocks_["createBlock"])(edit_name);
2447        }
2448  
2449        return Object(external_this_wp_blocks_["createBlock"])(edit_name, edit_objectSpread({}, attributes, {
2450          content: value
2451        }));
2452      },
2453      onMerge: mergeBlocks,
2454      onReplace: onReplace,
2455      onRemove: onRemove,
2456      "aria-label": content ? Object(external_this_wp_i18n_["__"])('Paragraph block') : Object(external_this_wp_i18n_["__"])('Empty block; start writing or type forward slash to choose a block'),
2457      placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'),
2458      __unstableEmbedURLOnPaste: true,
2459      __unstableAllowPrefixTransformations: true
2460    }));
2461  }
2462  
2463  /* harmony default export */ var paragraph_edit = (ParagraphBlock);
2464  
2465  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js
2466  
2467  
2468  
2469  /**
2470   * External dependencies
2471   */
2472  
2473  /**
2474   * WordPress dependencies
2475   */
2476  
2477  
2478  function save_save(_ref) {
2479    var attributes = _ref.attributes;
2480    var align = attributes.align,
2481        content = attributes.content,
2482        dropCap = attributes.dropCap,
2483        direction = attributes.direction;
2484    var className = classnames_default()(Object(defineProperty["a" /* default */])({
2485      'has-drop-cap': dropCap
2486    }, "has-text-align-".concat(align), align));
2487    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2488      tagName: "p",
2489      className: className ? className : undefined,
2490      value: content,
2491      dir: direction
2492    });
2493  }
2494  
2495  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js
2496  /**
2497   * WordPress dependencies
2498   */
2499  
2500  /**
2501   * Internal dependencies
2502   */
2503  
2504  var _name$category$attrib = {
2505    name: "core/paragraph",
2506    category: "text",
2507    attributes: {
2508      align: {
2509        type: "string"
2510      },
2511      content: {
2512        type: "string",
2513        source: "html",
2514        selector: "p",
2515        "default": ""
2516      },
2517      dropCap: {
2518        type: "boolean",
2519        "default": false
2520      },
2521      placeholder: {
2522        type: "string"
2523      },
2524      direction: {
2525        type: "string",
2526        "enum": ["ltr", "rtl"]
2527      }
2528    },
2529    supports: {
2530      anchor: true,
2531      className: false,
2532      lightBlockWrapper: true,
2533      __experimentalColor: {
2534        linkColor: true
2535      },
2536      __experimentalFontSize: true,
2537      __experimentalLineHeight: true,
2538      __experimentalFeatures: {
2539        typography: {
2540          dropCap: true
2541        }
2542      },
2543      __experimentalSelector: "p",
2544      __unstablePasteTextInline: true
2545    }
2546  },
2547      transforms_name = _name$category$attrib.name;
2548  var transforms_transforms = {
2549    from: [{
2550      type: 'raw',
2551      // Paragraph is a fallback and should be matched last.
2552      priority: 20,
2553      selector: 'p',
2554      schema: function schema(_ref) {
2555        var phrasingContentSchema = _ref.phrasingContentSchema,
2556            isPaste = _ref.isPaste;
2557        return {
2558          p: {
2559            children: phrasingContentSchema,
2560            attributes: isPaste ? [] : ['style', 'id']
2561          }
2562        };
2563      },
2564      transform: function transform(node) {
2565        var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(transforms_name, node.outerHTML);
2566  
2567        var _ref2 = node.style || {},
2568            textAlign = _ref2.textAlign;
2569  
2570        if (textAlign === 'left' || textAlign === 'center' || textAlign === 'right') {
2571          attributes.align = textAlign;
2572        }
2573  
2574        return Object(external_this_wp_blocks_["createBlock"])(transforms_name, attributes);
2575      }
2576    }]
2577  };
2578  /* harmony default export */ var paragraph_transforms = (transforms_transforms);
2579  
2580  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js
2581  /**
2582   * External dependencies
2583   */
2584  
2585  /**
2586   * WordPress dependencies
2587   */
2588  
2589  
2590  
2591  /**
2592   * Internal dependencies
2593   */
2594  
2595  
2596  
2597  var paragraph_metadata = {
2598    name: "core/paragraph",
2599    category: "text",
2600    attributes: {
2601      align: {
2602        type: "string"
2603      },
2604      content: {
2605        type: "string",
2606        source: "html",
2607        selector: "p",
2608        "default": ""
2609      },
2610      dropCap: {
2611        type: "boolean",
2612        "default": false
2613      },
2614      placeholder: {
2615        type: "string"
2616      },
2617      direction: {
2618        type: "string",
2619        "enum": ["ltr", "rtl"]
2620      }
2621    },
2622    supports: {
2623      anchor: true,
2624      className: false,
2625      lightBlockWrapper: true,
2626      __experimentalColor: {
2627        linkColor: true
2628      },
2629      __experimentalFontSize: true,
2630      __experimentalLineHeight: true,
2631      __experimentalFeatures: {
2632        typography: {
2633          dropCap: true
2634        }
2635      },
2636      __experimentalSelector: "p",
2637      __unstablePasteTextInline: true
2638    }
2639  };
2640  
2641  
2642  var paragraph_name = paragraph_metadata.name;
2643  
2644  var paragraph_settings = {
2645    title: Object(external_this_wp_i18n_["__"])('Paragraph'),
2646    description: Object(external_this_wp_i18n_["__"])('Start with the building block of all narrative.'),
2647    icon: library_paragraph,
2648    keywords: [Object(external_this_wp_i18n_["__"])('text')],
2649    example: {
2650      attributes: {
2651        content: Object(external_this_wp_i18n_["__"])('In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'),
2652        style: {
2653          typography: {
2654            fontSize: 28
2655          }
2656        },
2657        dropCap: true
2658      }
2659    },
2660    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
2661      var context = _ref.context;
2662  
2663      if (context === 'accessibility') {
2664        var content = attributes.content;
2665        return Object(external_this_lodash_["isEmpty"])(content) ? Object(external_this_wp_i18n_["__"])('Empty') : content;
2666      }
2667    },
2668    transforms: paragraph_transforms,
2669    deprecated: paragraph_deprecated,
2670    merge: function merge(attributes, attributesToMerge) {
2671      return {
2672        content: (attributes.content || '') + (attributesToMerge.content || '')
2673      };
2674    },
2675    edit: paragraph_edit,
2676    save: save_save
2677  };
2678  
2679  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/image.js
2680  
2681  
2682  /**
2683   * WordPress dependencies
2684   */
2685  
2686  var image_image = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
2687    viewBox: "0 0 24 24",
2688    xmlns: "http://www.w3.org/2000/svg"
2689  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
2690    d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"
2691  }));
2692  /* harmony default export */ var library_image = (image_image);
2693  
2694  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2695  var esm_extends = __webpack_require__(8);
2696  
2697  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js
2698  
2699  
2700  
2701  
2702  /**
2703   * External dependencies
2704   */
2705  
2706  /**
2707   * WordPress dependencies
2708   */
2709  
2710  
2711  var image_deprecated_blockAttributes = {
2712    align: {
2713      type: 'string'
2714    },
2715    url: {
2716      type: 'string',
2717      source: 'attribute',
2718      selector: 'img',
2719      attribute: 'src'
2720    },
2721    alt: {
2722      type: 'string',
2723      source: 'attribute',
2724      selector: 'img',
2725      attribute: 'alt',
2726      default: ''
2727    },
2728    caption: {
2729      type: 'string',
2730      source: 'html',
2731      selector: 'figcaption'
2732    },
2733    href: {
2734      type: 'string',
2735      source: 'attribute',
2736      selector: 'figure > a',
2737      attribute: 'href'
2738    },
2739    rel: {
2740      type: 'string',
2741      source: 'attribute',
2742      selector: 'figure > a',
2743      attribute: 'rel'
2744    },
2745    linkClass: {
2746      type: 'string',
2747      source: 'attribute',
2748      selector: 'figure > a',
2749      attribute: 'class'
2750    },
2751    id: {
2752      type: 'number'
2753    },
2754    width: {
2755      type: 'number'
2756    },
2757    height: {
2758      type: 'number'
2759    },
2760    linkDestination: {
2761      type: 'string',
2762      default: 'none'
2763    },
2764    linkTarget: {
2765      type: 'string',
2766      source: 'attribute',
2767      selector: 'figure > a',
2768      attribute: 'target'
2769    }
2770  };
2771  var deprecated_deprecated = [{
2772    attributes: image_deprecated_blockAttributes,
2773    save: function save(_ref) {
2774      var _classnames;
2775  
2776      var attributes = _ref.attributes;
2777      var url = attributes.url,
2778          alt = attributes.alt,
2779          caption = attributes.caption,
2780          align = attributes.align,
2781          href = attributes.href,
2782          width = attributes.width,
2783          height = attributes.height,
2784          id = attributes.id;
2785      var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames));
2786      var image = Object(external_this_wp_element_["createElement"])("img", {
2787        src: url,
2788        alt: alt,
2789        className: id ? "wp-image-".concat(id) : null,
2790        width: width,
2791        height: height
2792      });
2793      return Object(external_this_wp_element_["createElement"])("figure", {
2794        className: classes
2795      }, href ? Object(external_this_wp_element_["createElement"])("a", {
2796        href: href
2797      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2798        tagName: "figcaption",
2799        value: caption
2800      }));
2801    }
2802  }, {
2803    attributes: image_deprecated_blockAttributes,
2804    save: function save(_ref2) {
2805      var attributes = _ref2.attributes;
2806      var url = attributes.url,
2807          alt = attributes.alt,
2808          caption = attributes.caption,
2809          align = attributes.align,
2810          href = attributes.href,
2811          width = attributes.width,
2812          height = attributes.height,
2813          id = attributes.id;
2814      var image = Object(external_this_wp_element_["createElement"])("img", {
2815        src: url,
2816        alt: alt,
2817        className: id ? "wp-image-".concat(id) : null,
2818        width: width,
2819        height: height
2820      });
2821      return Object(external_this_wp_element_["createElement"])("figure", {
2822        className: align ? "align".concat(align) : null
2823      }, href ? Object(external_this_wp_element_["createElement"])("a", {
2824        href: href
2825      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2826        tagName: "figcaption",
2827        value: caption
2828      }));
2829    }
2830  }, {
2831    attributes: image_deprecated_blockAttributes,
2832    save: function save(_ref3) {
2833      var attributes = _ref3.attributes;
2834      var url = attributes.url,
2835          alt = attributes.alt,
2836          caption = attributes.caption,
2837          align = attributes.align,
2838          href = attributes.href,
2839          width = attributes.width,
2840          height = attributes.height;
2841      var extraImageProps = width || height ? {
2842        width: width,
2843        height: height
2844      } : {};
2845      var image = Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
2846        src: url,
2847        alt: alt
2848      }, extraImageProps));
2849      var figureStyle = {};
2850  
2851      if (width) {
2852        figureStyle = {
2853          width: width
2854        };
2855      } else if (align === 'left' || align === 'right') {
2856        figureStyle = {
2857          maxWidth: '50%'
2858        };
2859      }
2860  
2861      return Object(external_this_wp_element_["createElement"])("figure", {
2862        className: align ? "align".concat(align) : null,
2863        style: figureStyle
2864      }, href ? Object(external_this_wp_element_["createElement"])("a", {
2865        href: href
2866      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2867        tagName: "figcaption",
2868        value: caption
2869      }));
2870    }
2871  }];
2872  /* harmony default export */ var image_deprecated = (deprecated_deprecated);
2873  
2874  // EXTERNAL MODULE: external {"this":["wp","blob"]}
2875  var external_this_wp_blob_ = __webpack_require__(44);
2876  
2877  // EXTERNAL MODULE: external {"this":["wp","compose"]}
2878  var external_this_wp_compose_ = __webpack_require__(9);
2879  
2880  // EXTERNAL MODULE: external {"this":["wp","url"]}
2881  var external_this_wp_url_ = __webpack_require__(31);
2882  
2883  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/crop.js
2884  
2885  
2886  /**
2887   * WordPress dependencies
2888   */
2889  
2890  var crop_crop = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
2891    xmlns: "http://www.w3.org/2000/svg",
2892    viewBox: "0 0 24 24"
2893  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
2894    d: "M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"
2895  }));
2896  /* harmony default export */ var library_crop = (crop_crop);
2897  
2898  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
2899  var upload = __webpack_require__(203);
2900  
2901  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js
2902  
2903  
2904  /**
2905   * WordPress dependencies
2906   */
2907  
2908  var embedContentIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2909    viewBox: "0 0 24 24",
2910    xmlns: "http://www.w3.org/2000/svg"
2911  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2912    d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"
2913  }));
2914  var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2915    viewBox: "0 0 24 24",
2916    xmlns: "http://www.w3.org/2000/svg"
2917  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2918    d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"
2919  }));
2920  var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2921    viewBox: "0 0 24 24",
2922    xmlns: "http://www.w3.org/2000/svg"
2923  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2924    d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"
2925  }));
2926  var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2927    viewBox: "0 0 24 24",
2928    xmlns: "http://www.w3.org/2000/svg"
2929  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2930    d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"
2931  }));
2932  var embedTwitterIcon = {
2933    foreground: '#1da1f2',
2934    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2935      xmlns: "http://www.w3.org/2000/svg",
2936      viewBox: "0 0 24 24"
2937    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2938      d: "M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"
2939    })))
2940  };
2941  var embedYouTubeIcon = {
2942    foreground: '#ff0000',
2943    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2944      viewBox: "0 0 24 24"
2945    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2946      d: "M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"
2947    }))
2948  };
2949  var embedFacebookIcon = {
2950    foreground: '#3b5998',
2951    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2952      viewBox: "0 0 24 24"
2953    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2954      d: "M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"
2955    }))
2956  };
2957  var embedInstagramIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2958    viewBox: "0 0 24 24"
2959  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2960    d: "M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"
2961  })));
2962  var embedWordPressIcon = {
2963    foreground: '#0073AA',
2964    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2965      viewBox: "0 0 24 24"
2966    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2967      d: "M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"
2968    })))
2969  };
2970  var embedSpotifyIcon = {
2971    foreground: '#1db954',
2972    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2973      viewBox: "0 0 24 24"
2974    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2975      d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"
2976    }))
2977  };
2978  var embedFlickrIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2979    viewBox: "0 0 24 24"
2980  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2981    d: "m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"
2982  }));
2983  var embedVimeoIcon = {
2984    foreground: '#1ab7ea',
2985    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2986      xmlns: "http://www.w3.org/2000/svg",
2987      viewBox: "0 0 24 24"
2988    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2989      d: "M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"
2990    })))
2991  };
2992  var embedRedditIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2993    viewBox: "0 0 24 24"
2994  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2995    d: "M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"
2996  }));
2997  var embedTumblrIcon = {
2998    foreground: '#35465c',
2999    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3000      viewBox: "0 0 24 24"
3001    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3002      d: "M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"
3003    }))
3004  };
3005  var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3006    viewBox: "0 0 24 24"
3007  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3008    d: "M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"
3009  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3010    d: "M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"
3011  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3012    d: "M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"
3013  }));
3014  var embedAnimotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3015    viewBox: "0 0 24 24"
3016  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3017    d: "m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",
3018    fill: "#4bc7ee"
3019  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3020    d: "m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",
3021    fill: "#d4cdcb"
3022  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3023    d: "m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",
3024    fill: "#c3d82e"
3025  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3026    d: "m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",
3027    fill: "#e4ecb0"
3028  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3029    d: "m.0206909 21 19.5468091-9.063 1.6621 2.8344z",
3030    fill: "#209dbd"
3031  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3032    d: "m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",
3033    fill: "#7cb3c9"
3034  }));
3035  var embedDailymotionIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3036    viewBox: "0 0 24 24"
3037  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3038    d: "m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",
3039    fill: "#333436"
3040  }));
3041  
3042  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js
3043  /**
3044   * Internal dependencies
3045   */
3046  
3047  /**
3048   * WordPress dependencies
3049   */
3050  
3051  
3052  
3053  var common = [{
3054    name: 'core-embed/twitter',
3055    settings: {
3056      title: 'Twitter',
3057      icon: embedTwitterIcon,
3058      keywords: ['tweet', Object(external_this_wp_i18n_["__"])('social')],
3059      description: Object(external_this_wp_i18n_["__"])('Embed a tweet.')
3060    },
3061    patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i]
3062  }, {
3063    name: 'core-embed/youtube',
3064    settings: {
3065      title: 'YouTube',
3066      icon: embedYouTubeIcon,
3067      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('video')],
3068      description: Object(external_this_wp_i18n_["__"])('Embed a YouTube video.')
3069    },
3070    patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i]
3071  }, {
3072    name: 'core-embed/facebook',
3073    settings: {
3074      title: 'Facebook',
3075      icon: embedFacebookIcon,
3076      keywords: [Object(external_this_wp_i18n_["__"])('social')],
3077      description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.'),
3078      previewable: false
3079    },
3080    patterns: [/^https?:\/\/www\.facebook.com\/.+/i]
3081  }, {
3082    name: 'core-embed/instagram',
3083    settings: {
3084      title: 'Instagram',
3085      icon: embedInstagramIcon,
3086      keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('social')],
3087      description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.')
3088    },
3089    patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]
3090  }, {
3091    name: 'core-embed/wordpress',
3092    settings: {
3093      title: 'WordPress',
3094      icon: embedWordPressIcon,
3095      keywords: [Object(external_this_wp_i18n_["__"])('post'), Object(external_this_wp_i18n_["__"])('blog')],
3096      responsive: false,
3097      description: Object(external_this_wp_i18n_["__"])('Embed a WordPress post.')
3098    }
3099  }, {
3100    name: 'core-embed/soundcloud',
3101    settings: {
3102      title: 'SoundCloud',
3103      icon: embedAudioIcon,
3104      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
3105      description: Object(external_this_wp_i18n_["__"])('Embed SoundCloud content.')
3106    },
3107    patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]
3108  }, {
3109    name: 'core-embed/spotify',
3110    settings: {
3111      title: 'Spotify',
3112      icon: embedSpotifyIcon,
3113      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
3114      description: Object(external_this_wp_i18n_["__"])('Embed Spotify content.')
3115    },
3116    patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i]
3117  }, {
3118    name: 'core-embed/flickr',
3119    settings: {
3120      title: 'Flickr',
3121      icon: embedFlickrIcon,
3122      keywords: [Object(external_this_wp_i18n_["__"])('image')],
3123      description: Object(external_this_wp_i18n_["__"])('Embed Flickr content.')
3124    },
3125    patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i]
3126  }, {
3127    name: 'core-embed/vimeo',
3128    settings: {
3129      title: 'Vimeo',
3130      icon: embedVimeoIcon,
3131      keywords: [Object(external_this_wp_i18n_["__"])('video')],
3132      description: Object(external_this_wp_i18n_["__"])('Embed a Vimeo video.')
3133    },
3134    patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i]
3135  }];
3136  var others = [{
3137    name: 'core-embed/animoto',
3138    settings: {
3139      title: 'Animoto',
3140      icon: embedAnimotoIcon,
3141      description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.')
3142    },
3143    patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]
3144  }, {
3145    name: 'core-embed/cloudup',
3146    settings: {
3147      title: 'Cloudup',
3148      icon: embedContentIcon,
3149      description: Object(external_this_wp_i18n_["__"])('Embed Cloudup content.')
3150    },
3151    patterns: [/^https?:\/\/cloudup\.com\/.+/i]
3152  }, {
3153    // Deprecated since CollegeHumor content is now powered by YouTube
3154    name: 'core-embed/collegehumor',
3155    settings: {
3156      title: 'CollegeHumor',
3157      icon: embedVideoIcon,
3158      description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.'),
3159      supports: {
3160        inserter: false
3161      }
3162    },
3163    patterns: []
3164  }, {
3165    name: 'core-embed/crowdsignal',
3166    settings: {
3167      title: 'Crowdsignal',
3168      icon: embedContentIcon,
3169      keywords: ['polldaddy', Object(external_this_wp_i18n_["__"])('survey')],
3170      transform: [{
3171        type: 'block',
3172        blocks: ['core-embed/polldaddy'],
3173        transform: function transform(content) {
3174          return Object(external_this_wp_blocks_["createBlock"])('core-embed/crowdsignal', {
3175            content: content
3176          });
3177        }
3178      }],
3179      description: Object(external_this_wp_i18n_["__"])('Embed Crowdsignal (formerly Polldaddy) content.')
3180    },
3181    patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]
3182  }, {
3183    name: 'core-embed/dailymotion',
3184    settings: {
3185      title: 'Dailymotion',
3186      icon: embedDailymotionIcon,
3187      keywords: [Object(external_this_wp_i18n_["__"])('video')],
3188      description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.')
3189    },
3190    patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]
3191  }, {
3192    name: 'core-embed/imgur',
3193    settings: {
3194      title: 'Imgur',
3195      icon: embedPhotoIcon,
3196      description: Object(external_this_wp_i18n_["__"])('Embed Imgur content.')
3197    },
3198    patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i]
3199  }, {
3200    name: 'core-embed/issuu',
3201    settings: {
3202      title: 'Issuu',
3203      icon: embedContentIcon,
3204      description: Object(external_this_wp_i18n_["__"])('Embed Issuu content.')
3205    },
3206    patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i]
3207  }, {
3208    name: 'core-embed/kickstarter',
3209    settings: {
3210      title: 'Kickstarter',
3211      icon: embedContentIcon,
3212      description: Object(external_this_wp_i18n_["__"])('Embed Kickstarter content.')
3213    },
3214    patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i]
3215  }, {
3216    name: 'core-embed/meetup-com',
3217    settings: {
3218      title: 'Meetup.com',
3219      icon: embedContentIcon,
3220      description: Object(external_this_wp_i18n_["__"])('Embed Meetup.com content.')
3221    },
3222    patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]
3223  }, {
3224    name: 'core-embed/mixcloud',
3225    settings: {
3226      title: 'Mixcloud',
3227      icon: embedAudioIcon,
3228      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
3229      description: Object(external_this_wp_i18n_["__"])('Embed Mixcloud content.')
3230    },
3231    patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]
3232  }, {
3233    // Deprecated in favour of the core-embed/crowdsignal block
3234    name: 'core-embed/polldaddy',
3235    settings: {
3236      title: 'Polldaddy',
3237      icon: embedContentIcon,
3238      description: Object(external_this_wp_i18n_["__"])('Embed Polldaddy content.'),
3239      supports: {
3240        inserter: false
3241      }
3242    },
3243    patterns: []
3244  }, {
3245    name: 'core-embed/reddit',
3246    settings: {
3247      title: 'Reddit',
3248      icon: embedRedditIcon,
3249      description: Object(external_this_wp_i18n_["__"])('Embed a Reddit thread.')
3250    },
3251    patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i]
3252  }, {
3253    name: 'core-embed/reverbnation',
3254    settings: {
3255      title: 'ReverbNation',
3256      icon: embedAudioIcon,
3257      description: Object(external_this_wp_i18n_["__"])('Embed ReverbNation content.')
3258    },
3259    patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]
3260  }, {
3261    name: 'core-embed/screencast',
3262    settings: {
3263      title: 'Screencast',
3264      icon: embedVideoIcon,
3265      description: Object(external_this_wp_i18n_["__"])('Embed Screencast content.')
3266    },
3267    patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i]
3268  }, {
3269    name: 'core-embed/scribd',
3270    settings: {
3271      title: 'Scribd',
3272      icon: embedContentIcon,
3273      description: Object(external_this_wp_i18n_["__"])('Embed Scribd content.')
3274    },
3275    patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i]
3276  }, {
3277    name: 'core-embed/slideshare',
3278    settings: {
3279      title: 'Slideshare',
3280      icon: embedContentIcon,
3281      description: Object(external_this_wp_i18n_["__"])('Embed Slideshare content.')
3282    },
3283    patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]
3284  }, {
3285    name: 'core-embed/smugmug',
3286    settings: {
3287      title: 'SmugMug',
3288      icon: embedPhotoIcon,
3289      description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.'),
3290      previewable: false
3291    },
3292    patterns: [/^https?:\/\/(.+\.)?smugmug\.com\/.*/i]
3293  }, {
3294    // Deprecated in favour of the core-embed/speaker-deck block.
3295    name: 'core-embed/speaker',
3296    settings: {
3297      title: 'Speaker',
3298      icon: embedAudioIcon,
3299      supports: {
3300        inserter: false
3301      }
3302    },
3303    patterns: []
3304  }, {
3305    name: 'core-embed/speaker-deck',
3306    settings: {
3307      title: 'Speaker Deck',
3308      icon: embedContentIcon,
3309      transform: [{
3310        type: 'block',
3311        blocks: ['core-embed/speaker'],
3312        transform: function transform(content) {
3313          return Object(external_this_wp_blocks_["createBlock"])('core-embed/speaker-deck', {
3314            content: content
3315          });
3316        }
3317      }],
3318      description: Object(external_this_wp_i18n_["__"])('Embed Speaker Deck content.')
3319    },
3320    patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]
3321  }, {
3322    name: 'core-embed/tiktok',
3323    settings: {
3324      title: 'TikTok',
3325      icon: embedVideoIcon,
3326      keywords: [Object(external_this_wp_i18n_["__"])('video')],
3327      description: Object(external_this_wp_i18n_["__"])('Embed a TikTok video.')
3328    },
3329    patterns: [/^https?:\/\/(www\.)?tiktok\.com\/.+/i]
3330  }, {
3331    name: 'core-embed/ted',
3332    settings: {
3333      title: 'TED',
3334      icon: embedVideoIcon,
3335      description: Object(external_this_wp_i18n_["__"])('Embed a TED video.')
3336    },
3337    patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]
3338  }, {
3339    name: 'core-embed/tumblr',
3340    settings: {
3341      title: 'Tumblr',
3342      icon: embedTumblrIcon,
3343      keywords: [Object(external_this_wp_i18n_["__"])('social')],
3344      description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.')
3345    },
3346    patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i]
3347  }, {
3348    name: 'core-embed/videopress',
3349    settings: {
3350      title: 'VideoPress',
3351      icon: embedVideoIcon,
3352      keywords: [Object(external_this_wp_i18n_["__"])('video')],
3353      description: Object(external_this_wp_i18n_["__"])('Embed a VideoPress video.')
3354    },
3355    patterns: [/^https?:\/\/videopress\.com\/.+/i]
3356  }, {
3357    name: 'core-embed/wordpress-tv',
3358    settings: {
3359      title: 'WordPress.tv',
3360      icon: embedVideoIcon,
3361      description: Object(external_this_wp_i18n_["__"])('Embed a WordPress.tv video.')
3362    },
3363    patterns: [/^https?:\/\/wordpress\.tv\/.+/i]
3364  }, {
3365    name: 'core-embed/amazon-kindle',
3366    settings: {
3367      title: 'Amazon Kindle',
3368      icon: embedAmazonIcon,
3369      keywords: [Object(external_this_wp_i18n_["__"])('ebook')],
3370      responsive: false,
3371      description: Object(external_this_wp_i18n_["__"])('Embed Amazon Kindle content.')
3372    },
3373    patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]
3374  }];
3375  
3376  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js
3377  var ASPECT_RATIOS = [// Common video resolutions.
3378  {
3379    ratio: '2.33',
3380    className: 'wp-embed-aspect-21-9'
3381  }, {
3382    ratio: '2.00',
3383    className: 'wp-embed-aspect-18-9'
3384  }, {
3385    ratio: '1.78',
3386    className: 'wp-embed-aspect-16-9'
3387  }, {
3388    ratio: '1.33',
3389    className: 'wp-embed-aspect-4-3'
3390  }, // Vertical video and instagram square video support.
3391  {
3392    ratio: '1.00',
3393    className: 'wp-embed-aspect-1-1'
3394  }, {
3395    ratio: '0.56',
3396    className: 'wp-embed-aspect-9-16'
3397  }, {
3398    ratio: '0.50',
3399    className: 'wp-embed-aspect-1-2'
3400  }];
3401  var DEFAULT_EMBED_BLOCK = 'core/embed';
3402  var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress';
3403  
3404  // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js
3405  var dedupe = __webpack_require__(105);
3406  var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe);
3407  
3408  // EXTERNAL MODULE: ./node_modules/memize/index.js
3409  var memize = __webpack_require__(60);
3410  var memize_default = /*#__PURE__*/__webpack_require__.n(memize);
3411  
3412  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js
3413  
3414  
3415  
3416  
3417  function util_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3418  
3419  function util_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { util_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { util_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3420  
3421  /**
3422   * Internal dependencies
3423   */
3424  
3425  
3426  /**
3427   * External dependencies
3428   */
3429  
3430  
3431  
3432  
3433  /**
3434   * WordPress dependencies
3435   */
3436  
3437  
3438  
3439  /**
3440   * Returns true if any of the regular expressions match the URL.
3441   *
3442   * @param {string}   url      The URL to test.
3443   * @param {Array}    patterns The list of regular expressions to test agains.
3444   * @return {boolean} True if any of the regular expressions match the URL.
3445   */
3446  
3447  var matchesPatterns = function matchesPatterns(url) {
3448    var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
3449    return patterns.some(function (pattern) {
3450      return url.match(pattern);
3451    });
3452  };
3453  /**
3454   * Finds the block name that should be used for the URL, based on the
3455   * structure of the URL.
3456   *
3457   * @param {string}  url The URL to test.
3458   * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter
3459   */
3460  
3461  var util_findBlock = function findBlock(url) {
3462    for (var _i = 0, _arr = [].concat(Object(toConsumableArray["a" /* default */])(common), Object(toConsumableArray["a" /* default */])(others)); _i < _arr.length; _i++) {
3463      var block = _arr[_i];
3464  
3465      if (matchesPatterns(url, block.patterns)) {
3466        return block.name;
3467      }
3468    }
3469  
3470    return DEFAULT_EMBED_BLOCK;
3471  };
3472  var util_isFromWordPress = function isFromWordPress(html) {
3473    return Object(external_this_lodash_["includes"])(html, 'class="wp-embedded-content"');
3474  };
3475  var util_getPhotoHtml = function getPhotoHtml(photo) {
3476    // 100% width for the preview so it fits nicely into the document, some "thumbnails" are
3477    // actually the full size photo. If thumbnails not found, use full image.
3478    var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url;
3479    var photoPreview = Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_element_["createElement"])("img", {
3480      src: imageUrl,
3481      alt: photo.title,
3482      width: "100%"
3483    }));
3484    return Object(external_this_wp_element_["renderToString"])(photoPreview);
3485  };
3486  /**
3487   * Creates a more suitable embed block based on the passed in props
3488   * and attributes generated from an embed block's preview.
3489   *
3490   * We require `attributesFromPreview` to be generated from the latest attributes
3491   * and preview, and because of the way the react lifecycle operates, we can't
3492   * guarantee that the attributes contained in the block's props are the latest
3493   * versions, so we require that these are generated separately.
3494   * See `getAttributesFromPreview` in the generated embed edit component.
3495   *
3496   * @param {Object} props                  The block's props.
3497   * @param {Object} attributesFromPreview  Attributes generated from the block's most up to date preview.
3498   * @return {Object|undefined} A more suitable embed block if one exists.
3499   */
3500  
3501  var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) {
3502    var preview = props.preview,
3503        name = props.name;
3504    var url = props.attributes.url;
3505  
3506    if (!url) {
3507      return;
3508    }
3509  
3510    var matchingBlock = util_findBlock(url);
3511  
3512    if (!Object(external_this_wp_blocks_["getBlockType"])(matchingBlock)) {
3513      return;
3514    } // WordPress blocks can work on multiple sites, and so don't have patterns,
3515    // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL.
3516  
3517  
3518    if (WORDPRESS_EMBED_BLOCK !== name && DEFAULT_EMBED_BLOCK !== matchingBlock) {
3519      // At this point, we have discovered a more suitable block for this url, so transform it.
3520      if (name !== matchingBlock) {
3521        return Object(external_this_wp_blocks_["createBlock"])(matchingBlock, {
3522          url: url
3523        });
3524      }
3525    }
3526  
3527    if (preview) {
3528      var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead.
3529  
3530      if (util_isFromWordPress(html)) {
3531        // If this is not the WordPress embed block, transform it into one.
3532        if (WORDPRESS_EMBED_BLOCK !== name) {
3533          return Object(external_this_wp_blocks_["createBlock"])(WORDPRESS_EMBED_BLOCK, util_objectSpread({
3534            url: url
3535          }, attributesFromPreview));
3536        }
3537      }
3538    }
3539  };
3540  /**
3541   * Returns class names with any relevant responsive aspect ratio names.
3542   *
3543   * @param {string}  html               The preview HTML that possibly contains an iframe with width and height set.
3544   * @param {string}  existingClassNames Any existing class names.
3545   * @param {boolean} allowResponsive    If the responsive class names should be added, or removed.
3546   * @return {string} Deduped class names.
3547   */
3548  
3549  function getClassNames(html) {
3550    var existingClassNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
3551    var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3552  
3553    if (!allowResponsive) {
3554      // Remove all of the aspect ratio related class names.
3555      var aspectRatioClassNames = {
3556        'wp-has-aspect-ratio': false
3557      };
3558  
3559      for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) {
3560        var aspectRatioToRemove = ASPECT_RATIOS[ratioIndex];
3561        aspectRatioClassNames[aspectRatioToRemove.className] = false;
3562      }
3563  
3564      return dedupe_default()(existingClassNames, aspectRatioClassNames);
3565    }
3566  
3567    var previewDocument = document.implementation.createHTMLDocument('');
3568    previewDocument.body.innerHTML = html;
3569    var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block.
3570  
3571    if (iframe && iframe.height && iframe.width) {
3572      var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it.
3573  
3574      for (var _ratioIndex = 0; _ratioIndex < ASPECT_RATIOS.length; _ratioIndex++) {
3575        var potentialRatio = ASPECT_RATIOS[_ratioIndex];
3576  
3577        if (aspectRatio >= potentialRatio.ratio) {
3578          var _classnames;
3579  
3580          return dedupe_default()(existingClassNames, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, potentialRatio.className, allowResponsive), Object(defineProperty["a" /* default */])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames));
3581        }
3582      }
3583    }
3584  
3585    return existingClassNames;
3586  }
3587  /**
3588   * Fallback behaviour for unembeddable URLs.
3589   * Creates a paragraph block containing a link to the URL, and calls `onReplace`.
3590   *
3591   * @param {string}   url       The URL that could not be embedded.
3592   * @param {Function} onReplace Function to call with the created fallback block.
3593   */
3594  
3595  function util_fallback(url, onReplace) {
3596    var link = Object(external_this_wp_element_["createElement"])("a", {
3597      href: url
3598    }, url);
3599    onReplace(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
3600      content: Object(external_this_wp_element_["renderToString"])(link)
3601    }));
3602  }
3603  /***
3604   * Gets block attributes based on the preview and responsive state.
3605   *
3606   * @param {Object} preview The preview data.
3607   * @param {string} title The block's title, e.g. Twitter.
3608   * @param {Object} currentClassNames The block's current class names.
3609   * @param {boolean} isResponsive Boolean indicating if the block supports responsive content.
3610   * @param {boolean} allowResponsive Apply responsive classes to fixed size content.
3611   * @return {Object} Attributes and values.
3612   */
3613  
3614  var getAttributesFromPreview = memize_default()(function (preview, title, currentClassNames, isResponsive) {
3615    var allowResponsive = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
3616  
3617    if (!preview) {
3618      return {};
3619    }
3620  
3621    var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'.
3622  
3623    var _preview$type = preview.type,
3624        type = _preview$type === void 0 ? 'rich' : _preview$type; // If we got a provider name from the API, use it for the slug, otherwise we use the title,
3625    // because not all embed code gives us a provider name.
3626  
3627    var html = preview.html,
3628        providerName = preview.provider_name;
3629    var providerNameSlug = Object(external_this_lodash_["kebabCase"])(Object(external_this_lodash_["toLower"])('' !== providerName ? providerName : title));
3630  
3631    if (util_isFromWordPress(html)) {
3632      type = 'wp-embed';
3633    }
3634  
3635    if (html || 'photo' === type) {
3636      attributes.type = type;
3637      attributes.providerNameSlug = providerNameSlug;
3638    }
3639  
3640    attributes.className = getClassNames(html, currentClassNames, isResponsive && allowResponsive);
3641    return attributes;
3642  });
3643  
3644  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/use-client-width.js
3645  
3646  
3647  /**
3648   * WordPress dependencies
3649   */
3650  
3651  function useClientWidth(ref, dependencies) {
3652    var _useState = Object(external_this_wp_element_["useState"])(),
3653        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
3654        clientWidth = _useState2[0],
3655        setClientWidth = _useState2[1];
3656  
3657    function calculateClientWidth() {
3658      setClientWidth(ref.current.clientWidth);
3659    }
3660  
3661    Object(external_this_wp_element_["useEffect"])(calculateClientWidth, dependencies);
3662    Object(external_this_wp_element_["useEffect"])(function () {
3663      var defaultView = ref.current.ownerDocument.defaultView;
3664      defaultView.addEventListener('resize', calculateClientWidth);
3665      return function () {
3666        defaultView.removeEventListener('resize', calculateClientWidth);
3667      };
3668    }, []);
3669    return clientWidth;
3670  }
3671  
3672  // CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
3673  /*! *****************************************************************************

3674  Copyright (c) Microsoft Corporation.

3675  

3676  Permission to use, copy, modify, and/or distribute this software for any

3677  purpose with or without fee is hereby granted.

3678  

3679  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH

3680  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

3681  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,

3682  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM

3683  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR

3684  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR

3685  PERFORMANCE OF THIS SOFTWARE.

3686  ***************************************************************************** */
3687  /* global Reflect, Promise */

3688  
3689  var extendStatics = function(d, b) {
3690      extendStatics = Object.setPrototypeOf ||
3691          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3692          function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
3693      return extendStatics(d, b);
3694  };
3695  
3696  function __extends(d, b) {
3697      extendStatics(d, b);
3698      function __() { this.constructor = d; }
3699      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3700  }
3701  
3702  var __assign = function() {
3703      __assign = Object.assign || function __assign(t) {
3704          for (var s, i = 1, n = arguments.length; i < n; i++) {
3705              s = arguments[i];
3706              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3707          }
3708          return t;
3709      }
3710      return __assign.apply(this, arguments);
3711  }
3712  
3713  function __rest(s, e) {
3714      var t = {};
3715      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3716          t[p] = s[p];
3717      if (s != null && typeof Object.getOwnPropertySymbols === "function")
3718          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3719              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3720                  t[p[i]] = s[p[i]];
3721          }
3722      return t;
3723  }
3724  
3725  function __decorate(decorators, target, key, desc) {
3726      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3727      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3728      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3729      return c > 3 && r && Object.defineProperty(target, key, r), r;
3730  }
3731  
3732  function __param(paramIndex, decorator) {
3733      return function (target, key) { decorator(target, key, paramIndex); }
3734  }
3735  
3736  function __metadata(metadataKey, metadataValue) {
3737      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
3738  }
3739  
3740  function __awaiter(thisArg, _arguments, P, generator) {
3741      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3742      return new (P || (P = Promise))(function (resolve, reject) {
3743          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3744          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3745          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3746          step((generator = generator.apply(thisArg, _arguments || [])).next());
3747      });
3748  }
3749  
3750  function __generator(thisArg, body) {
3751      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3752      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3753      function verb(n) { return function (v) { return step([n, v]); }; }
3754      function step(op) {
3755          if (f) throw new TypeError("Generator is already executing.");
3756          while (_) try {
3757              if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
3758              if (y = 0, t) op = [op[0] & 2, t.value];
3759              switch (op[0]) {
3760                  case 0: case 1: t = op; break;
3761                  case 4: _.label++; return { value: op[1], done: false };
3762                  case 5: _.label++; y = op[1]; op = [0]; continue;
3763                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
3764                  default:
3765                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3766                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3767                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3768                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3769                      if (t[2]) _.ops.pop();
3770                      _.trys.pop(); continue;
3771              }
3772              op = body.call(thisArg, _);
3773          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3774          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3775      }
3776  }
3777  
3778  function __exportStar(m, exports) {
3779      for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
3780  }
3781  
3782  function __values(o) {
3783      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3784      if (m) return m.call(o);
3785      if (o && typeof o.length === "number") return {
3786          next: function () {
3787              if (o && i >= o.length) o = void 0;
3788              return { value: o && o[i++], done: !o };
3789          }
3790      };
3791      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
3792  }
3793  
3794  function __read(o, n) {
3795      var m = typeof Symbol === "function" && o[Symbol.iterator];
3796      if (!m) return o;
3797      var i = m.call(o), r, ar = [], e;
3798      try {
3799          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3800      }
3801      catch (error) { e = { error: error }; }
3802      finally {
3803          try {
3804              if (r && !r.done && (m = i["return"])) m.call(i);
3805          }
3806          finally { if (e) throw e.error; }
3807      }
3808      return ar;
3809  }
3810  
3811  function __spread() {
3812      for (var ar = [], i = 0; i < arguments.length; i++)
3813          ar = ar.concat(__read(arguments[i]));
3814      return ar;
3815  }
3816  
3817  function __spreadArrays() {
3818      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
3819      for (var r = Array(s), k = 0, i = 0; i < il; i++)
3820          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
3821              r[k] = a[j];
3822      return r;
3823  };
3824  
3825  function __await(v) {
3826      return this instanceof __await ? (this.v = v, this) : new __await(v);
3827  }
3828  
3829  function __asyncGenerator(thisArg, _arguments, generator) {
3830      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3831      var g = generator.apply(thisArg, _arguments || []), i, q = [];
3832      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
3833      function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
3834      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
3835      function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
3836      function fulfill(value) { resume("next", value); }
3837      function reject(value) { resume("throw", value); }
3838      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
3839  }
3840  
3841  function __asyncDelegator(o) {
3842      var i, p;
3843      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
3844      function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
3845  }
3846  
3847  function __asyncValues(o) {
3848      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3849      var m = o[Symbol.asyncIterator], i;
3850      return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
3851      function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
3852      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
3853  }
3854  
3855  function __makeTemplateObject(cooked, raw) {
3856      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3857      return cooked;
3858  };
3859  
3860  function __importStar(mod) {
3861      if (mod && mod.__esModule) return mod;
3862      var result = {};
3863      if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
3864      result.default = mod;
3865      return result;
3866  }
3867  
3868  function __importDefault(mod) {
3869      return (mod && mod.__esModule) ? mod : { default: mod };
3870  }
3871  
3872  function __classPrivateFieldGet(receiver, privateMap) {
3873      if (!privateMap.has(receiver)) {
3874          throw new TypeError("attempted to get private field on non-instance");
3875      }
3876      return privateMap.get(receiver);
3877  }
3878  
3879  function __classPrivateFieldSet(receiver, privateMap, value) {
3880      if (!privateMap.has(receiver)) {
3881          throw new TypeError("attempted to set private field on non-instance");
3882      }
3883      privateMap.set(receiver, value);
3884      return value;
3885  }
3886  
3887  // EXTERNAL MODULE: external {"this":"React"}
3888  var external_this_React_ = __webpack_require__(13);
3889  var external_this_React_default = /*#__PURE__*/__webpack_require__.n(external_this_React_);
3890  
3891  // CONCATENATED MODULE: ./node_modules/react-easy-crop/index.module.js
3892  
3893  
3894  
3895  /**

3896   * Compute the dimension of the crop area based on media size,

3897   * aspect ratio and optionally rotation

3898   */
3899  
3900  function getCropSize(mediaWidth, mediaHeight, containerWidth, containerHeight, aspect, rotation) {
3901    if (rotation === void 0) {
3902      rotation = 0;
3903    }
3904  
3905    var _a = translateSize(mediaWidth, mediaHeight, rotation),
3906        width = _a.width,
3907        height = _a.height;
3908  
3909    var fittingWidth = Math.min(width, containerWidth);
3910    var fittingHeight = Math.min(height, containerHeight);
3911  
3912    if (fittingWidth > fittingHeight * aspect) {
3913      return {
3914        width: fittingHeight * aspect,
3915        height: fittingHeight
3916      };
3917    }
3918  
3919    return {
3920      width: fittingWidth,
3921      height: fittingWidth / aspect
3922    };
3923  }
3924  /**

3925   * Ensure a new media position stays in the crop area.

3926   */
3927  
3928  function index_module_restrictPosition(position, mediaSize, cropSize, zoom, rotation) {
3929    if (rotation === void 0) {
3930      rotation = 0;
3931    }
3932  
3933    var _a = translateSize(mediaSize.width, mediaSize.height, rotation),
3934        width = _a.width,
3935        height = _a.height;
3936  
3937    return {
3938      x: restrictPositionCoord(position.x, width, cropSize.width, zoom),
3939      y: restrictPositionCoord(position.y, height, cropSize.height, zoom)
3940    };
3941  }
3942  
3943  function restrictPositionCoord(position, mediaSize, cropSize, zoom) {
3944    var maxPosition = mediaSize * zoom / 2 - cropSize / 2;
3945    return Math.min(maxPosition, Math.max(position, -maxPosition));
3946  }
3947  
3948  function getDistanceBetweenPoints(pointA, pointB) {
3949    return Math.sqrt(Math.pow(pointA.y - pointB.y, 2) + Math.pow(pointA.x - pointB.x, 2));
3950  }
3951  function getRotationBetweenPoints(pointA, pointB) {
3952    return Math.atan2(pointB.y - pointA.y, pointB.x - pointA.x) * 180 / Math.PI;
3953  }
3954  /**

3955   * Compute the output cropped area of the media in percentages and pixels.

3956   * x/y are the top-left coordinates on the src media

3957   */
3958  
3959  function computeCroppedArea(crop, mediaSize, cropSize, aspect, zoom, rotation, restrictPosition) {
3960    if (rotation === void 0) {
3961      rotation = 0;
3962    }
3963  
3964    if (restrictPosition === void 0) {
3965      restrictPosition = true;
3966    } // if the media is rotated by the user, we cannot limit the position anymore
3967    // as it might need to be negative.
3968  
3969  
3970    var limitAreaFn = restrictPosition && rotation === 0 ? limitArea : noOp;
3971    var croppedAreaPercentages = {
3972      x: limitAreaFn(100, ((mediaSize.width - cropSize.width / zoom) / 2 - crop.x / zoom) / mediaSize.width * 100),
3973      y: limitAreaFn(100, ((mediaSize.height - cropSize.height / zoom) / 2 - crop.y / zoom) / mediaSize.height * 100),
3974      width: limitAreaFn(100, cropSize.width / mediaSize.width * 100 / zoom),
3975      height: limitAreaFn(100, cropSize.height / mediaSize.height * 100 / zoom)
3976    }; // we compute the pixels size naively
3977  
3978    var widthInPixels = Math.round(limitAreaFn(mediaSize.naturalWidth, croppedAreaPercentages.width * mediaSize.naturalWidth / 100));
3979    var heightInPixels = Math.round(limitAreaFn(mediaSize.naturalHeight, croppedAreaPercentages.height * mediaSize.naturalHeight / 100));
3980    var isImgWiderThanHigh = mediaSize.naturalWidth >= mediaSize.naturalHeight * aspect; // then we ensure the width and height exactly match the aspect (to avoid rounding approximations)
3981    // if the media is wider than high, when zoom is 0, the crop height will be equals to iamge height
3982    // thus we want to compute the width from the height and aspect for accuracy.
3983    // Otherwise, we compute the height from width and aspect.
3984  
3985    var sizePixels = isImgWiderThanHigh ? {
3986      width: Math.round(heightInPixels * aspect),
3987      height: heightInPixels
3988    } : {
3989      width: widthInPixels,
3990      height: Math.round(widthInPixels / aspect)
3991    };
3992  
3993    var croppedAreaPixels = __assign(__assign({}, sizePixels), {
3994      x: Math.round(limitAreaFn(mediaSize.naturalWidth - sizePixels.width, croppedAreaPercentages.x * mediaSize.naturalWidth / 100)),
3995      y: Math.round(limitAreaFn(mediaSize.naturalHeight - sizePixels.height, croppedAreaPercentages.y * mediaSize.naturalHeight / 100))
3996    });
3997  
3998    return {
3999      croppedAreaPercentages: croppedAreaPercentages,
4000      croppedAreaPixels: croppedAreaPixels
4001    };
4002  }
4003  /**

4004   * Ensure the returned value is between 0 and max

4005   */
4006  
4007  function limitArea(max, value) {
4008    return Math.min(max, Math.max(0, value));
4009  }
4010  
4011  function noOp(_max, value) {
4012    return value;
4013  }
4014  /**

4015   * Compute the crop and zoom from the croppedAreaPixels

4016   */
4017  
4018  
4019  function getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) {
4020    var mediaZoom = mediaSize.width / mediaSize.naturalWidth;
4021  
4022    if (cropSize) {
4023      var isHeightMaxSize_1 = cropSize.height > cropSize.width;
4024      return isHeightMaxSize_1 ? cropSize.height / mediaZoom / croppedAreaPixels.height : cropSize.width / mediaZoom / croppedAreaPixels.width;
4025    }
4026  
4027    var aspect = croppedAreaPixels.width / croppedAreaPixels.height;
4028    var isHeightMaxSize = mediaSize.naturalWidth >= mediaSize.naturalHeight * aspect;
4029    return isHeightMaxSize ? mediaSize.naturalHeight / croppedAreaPixels.height : mediaSize.naturalWidth / croppedAreaPixels.width;
4030  }
4031  /**

4032   * Compute the crop and zoom from the croppedAreaPixels

4033   */
4034  
4035  
4036  function getInitialCropFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) {
4037    var mediaZoom = mediaSize.width / mediaSize.naturalWidth;
4038    var zoom = getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize);
4039    var cropZoom = mediaZoom * zoom;
4040    var crop = {
4041      x: ((mediaSize.naturalWidth - croppedAreaPixels.width) / 2 - croppedAreaPixels.x) * cropZoom,
4042      y: ((mediaSize.naturalHeight - croppedAreaPixels.height) / 2 - croppedAreaPixels.y) * cropZoom
4043    };
4044    return {
4045      crop: crop,
4046      zoom: zoom
4047    };
4048  }
4049  /**

4050   * Return the point that is the center of point a and b

4051   */
4052  
4053  function getCenter(a, b) {
4054    return {
4055      x: (b.x + a.x) / 2,
4056      y: (b.y + a.y) / 2
4057    };
4058  }
4059  /**

4060   *

4061   * Returns an x,y point once rotated around xMid,yMid

4062   */
4063  
4064  function rotateAroundMidPoint(x, y, xMid, yMid, degrees) {
4065    var cos = Math.cos;
4066    var sin = Math.sin;
4067    var radian = degrees * Math.PI / 180; // Convert to radians
4068    // Subtract midpoints, so that midpoint is translated to origin
4069    // and add it in the end again
4070  
4071    var xr = (x - xMid) * cos(radian) - (y - yMid) * sin(radian) + xMid;
4072    var yr = (x - xMid) * sin(radian) + (y - yMid) * cos(radian) + yMid;
4073    return [xr, yr];
4074  }
4075  /**

4076   * Returns the new bounding area of a rotated rectangle.

4077   */
4078  
4079  function translateSize(width, height, rotation) {
4080    var centerX = width / 2;
4081    var centerY = height / 2;
4082    var outerBounds = [rotateAroundMidPoint(0, 0, centerX, centerY, rotation), rotateAroundMidPoint(width, 0, centerX, centerY, rotation), rotateAroundMidPoint(width, height, centerX, centerY, rotation), rotateAroundMidPoint(0, height, centerX, centerY, rotation)];
4083    var minX = Math.min.apply(Math, outerBounds.map(function (p) {
4084      return p[0];
4085    }));
4086    var maxX = Math.max.apply(Math, outerBounds.map(function (p) {
4087      return p[0];
4088    }));
4089    var minY = Math.min.apply(Math, outerBounds.map(function (p) {
4090      return p[1];
4091    }));
4092    var maxY = Math.max.apply(Math, outerBounds.map(function (p) {
4093      return p[1];
4094    }));
4095    return {
4096      width: maxX - minX,
4097      height: maxY - minY
4098    };
4099  }
4100  /**

4101   * Combine multiple class names into a single string.

4102   */
4103  
4104  function index_module_classNames() {
4105    var args = [];
4106  
4107    for (var _i = 0; _i < arguments.length; _i++) {
4108      args[_i] = arguments[_i];
4109    }
4110  
4111    return args.filter(function (value) {
4112      if (typeof value === 'string' && value.length > 0) {
4113        return true;
4114      }
4115  
4116      return false;
4117    }).join(' ').trim();
4118  }
4119  
4120  var css = ".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n";
4121  
4122  var MIN_ZOOM = 1;
4123  var MAX_ZOOM = 3;
4124  
4125  var index_module_Cropper =
4126  /** @class */
4127  function (_super) {
4128    __extends(Cropper, _super);
4129  
4130    function Cropper() {
4131      var _this = _super !== null && _super.apply(this, arguments) || this;
4132  
4133      _this.imageRef = null;
4134      _this.videoRef = null;
4135      _this.containerRef = null;
4136      _this.styleRef = null;
4137      _this.containerRect = null;
4138      _this.mediaSize = {
4139        width: 0,
4140        height: 0,
4141        naturalWidth: 0,
4142        naturalHeight: 0
4143      };
4144      _this.dragStartPosition = {
4145        x: 0,
4146        y: 0
4147      };
4148      _this.dragStartCrop = {
4149        x: 0,
4150        y: 0
4151      };
4152      _this.lastPinchDistance = 0;
4153      _this.lastPinchRotation = 0;
4154      _this.rafDragTimeout = null;
4155      _this.rafPinchTimeout = null;
4156      _this.wheelTimer = null;
4157      _this.state = {
4158        cropSize: null,
4159        hasWheelJustStarted: false
4160      }; // this is to prevent Safari on iOS >= 10 to zoom the page
4161  
4162      _this.preventZoomSafari = function (e) {
4163        return e.preventDefault();
4164      };
4165  
4166      _this.cleanEvents = function () {
4167        document.removeEventListener('mousemove', _this.onMouseMove);
4168        document.removeEventListener('mouseup', _this.onDragStopped);
4169        document.removeEventListener('touchmove', _this.onTouchMove);
4170        document.removeEventListener('touchend', _this.onDragStopped);
4171      };
4172  
4173      _this.clearScrollEvent = function () {
4174        if (_this.containerRef) _this.containerRef.removeEventListener('wheel', _this.onWheel);
4175  
4176        if (_this.wheelTimer) {
4177          clearTimeout(_this.wheelTimer);
4178        }
4179      };
4180  
4181      _this.onMediaLoad = function () {
4182        _this.computeSizes();
4183  
4184        _this.emitCropData();
4185  
4186        _this.setInitialCrop();
4187  
4188        if (_this.props.onMediaLoaded) {
4189          _this.props.onMediaLoaded(_this.mediaSize);
4190        }
4191      };
4192  
4193      _this.setInitialCrop = function () {
4194        var _a = _this.props,
4195            initialCroppedAreaPixels = _a.initialCroppedAreaPixels,
4196            cropSize = _a.cropSize;
4197  
4198        if (!initialCroppedAreaPixels) {
4199          return;
4200        }
4201  
4202        var _b = getInitialCropFromCroppedAreaPixels(initialCroppedAreaPixels, _this.mediaSize, cropSize),
4203            crop = _b.crop,
4204            zoom = _b.zoom;
4205  
4206        _this.props.onCropChange(crop);
4207  
4208        _this.props.onZoomChange && _this.props.onZoomChange(zoom);
4209      };
4210  
4211      _this.computeSizes = function () {
4212        var _a, _b, _c, _d;
4213  
4214        var mediaRef = _this.imageRef || _this.videoRef;
4215  
4216        if (mediaRef && _this.containerRef) {
4217          _this.containerRect = _this.containerRef.getBoundingClientRect();
4218          _this.mediaSize = {
4219            width: mediaRef.offsetWidth,
4220            height: mediaRef.offsetHeight,
4221            naturalWidth: ((_a = _this.imageRef) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0,
4222            naturalHeight: ((_c = _this.imageRef) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0
4223          };
4224          var cropSize = _this.props.cropSize ? _this.props.cropSize : getCropSize(mediaRef.offsetWidth, mediaRef.offsetHeight, _this.containerRect.width, _this.containerRect.height, _this.props.aspect, _this.props.rotation);
4225  
4226          _this.setState({
4227            cropSize: cropSize
4228          }, _this.recomputeCropPosition);
4229        }
4230      };
4231  
4232      _this.onMouseDown = function (e) {
4233        e.preventDefault();
4234        document.addEventListener('mousemove', _this.onMouseMove);
4235        document.addEventListener('mouseup', _this.onDragStopped);
4236  
4237        _this.onDragStart(Cropper.getMousePoint(e));
4238      };
4239  
4240      _this.onMouseMove = function (e) {
4241        return _this.onDrag(Cropper.getMousePoint(e));
4242      };
4243  
4244      _this.onTouchStart = function (e) {
4245        e.preventDefault();
4246        document.addEventListener('touchmove', _this.onTouchMove, {
4247          passive: false
4248        }); // iOS 11 now defaults to passive: true
4249  
4250        document.addEventListener('touchend', _this.onDragStopped);
4251  
4252        if (e.touches.length === 2) {
4253          _this.onPinchStart(e);
4254        } else if (e.touches.length === 1) {
4255          _this.onDragStart(Cropper.getTouchPoint(e.touches[0]));
4256        }
4257      };
4258  
4259      _this.onTouchMove = function (e) {
4260        // Prevent whole page from scrolling on iOS.
4261        e.preventDefault();
4262  
4263        if (e.touches.length === 2) {
4264          _this.onPinchMove(e);
4265        } else if (e.touches.length === 1) {
4266          _this.onDrag(Cropper.getTouchPoint(e.touches[0]));
4267        }
4268      };
4269  
4270      _this.onDragStart = function (_a) {
4271        var x = _a.x,
4272            y = _a.y;
4273  
4274        var _b, _c;
4275  
4276        _this.dragStartPosition = {
4277          x: x,
4278          y: y
4279        };
4280        _this.dragStartCrop = __assign({}, _this.props.crop);
4281        (_c = (_b = _this.props).onInteractionStart) === null || _c === void 0 ? void 0 : _c.call(_b);
4282      };
4283  
4284      _this.onDrag = function (_a) {
4285        var x = _a.x,
4286            y = _a.y;
4287        if (_this.rafDragTimeout) window.cancelAnimationFrame(_this.rafDragTimeout);
4288        _this.rafDragTimeout = window.requestAnimationFrame(function () {
4289          if (!_this.state.cropSize) return;
4290          if (x === undefined || y === undefined) return;
4291          var offsetX = x - _this.dragStartPosition.x;
4292          var offsetY = y - _this.dragStartPosition.y;
4293          var requestedPosition = {
4294            x: _this.dragStartCrop.x + offsetX,
4295            y: _this.dragStartCrop.y + offsetY
4296          };
4297          var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : requestedPosition;
4298  
4299          _this.props.onCropChange(newPosition);
4300        });
4301      };
4302  
4303      _this.onDragStopped = function () {
4304        var _a, _b;
4305  
4306        _this.cleanEvents();
4307  
4308        _this.emitCropData();
4309  
4310        (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
4311      };
4312  
4313      _this.onWheel = function (e) {
4314        e.preventDefault();
4315        var point = Cropper.getMousePoint(e);
4316        var newZoom = _this.props.zoom - e.deltaY * _this.props.zoomSpeed / 200;
4317  
4318        _this.setNewZoom(newZoom, point);
4319  
4320        if (!_this.state.hasWheelJustStarted) {
4321          _this.setState({
4322            hasWheelJustStarted: true
4323          }, function () {
4324            var _a, _b;
4325  
4326            return (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
4327          });
4328        }
4329  
4330        if (_this.wheelTimer) {
4331          clearTimeout(_this.wheelTimer);
4332        }
4333  
4334        _this.wheelTimer = window.setTimeout(function () {
4335          return _this.setState({
4336            hasWheelJustStarted: false
4337          }, function () {
4338            var _a, _b;
4339  
4340            return (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
4341          });
4342        }, 250);
4343      };
4344  
4345      _this.getPointOnContainer = function (_a) {
4346        var x = _a.x,
4347            y = _a.y;
4348  
4349        if (!_this.containerRect) {
4350          throw new Error('The Cropper is not mounted');
4351        }
4352  
4353        return {
4354          x: _this.containerRect.width / 2 - (x - _this.containerRect.left),
4355          y: _this.containerRect.height / 2 - (y - _this.containerRect.top)
4356        };
4357      };
4358  
4359      _this.getPointOnMedia = function (_a) {
4360        var x = _a.x,
4361            y = _a.y;
4362        var _b = _this.props,
4363            crop = _b.crop,
4364            zoom = _b.zoom;
4365        return {
4366          x: (x + crop.x) / zoom,
4367          y: (y + crop.y) / zoom
4368        };
4369      };
4370  
4371      _this.setNewZoom = function (zoom, point) {
4372        if (!_this.state.cropSize || !_this.props.onZoomChange) return;
4373  
4374        var zoomPoint = _this.getPointOnContainer(point);
4375  
4376        var zoomTarget = _this.getPointOnMedia(zoomPoint);
4377  
4378        var newZoom = Math.min(_this.props.maxZoom, Math.max(zoom, _this.props.minZoom));
4379        var requestedPosition = {
4380          x: zoomTarget.x * newZoom - zoomPoint.x,
4381          y: zoomTarget.y * newZoom - zoomPoint.y
4382        };
4383        var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, newZoom, _this.props.rotation) : requestedPosition;
4384  
4385        _this.props.onCropChange(newPosition);
4386  
4387        _this.props.onZoomChange(newZoom);
4388      };
4389  
4390      _this.emitCropData = function () {
4391        if (!_this.state.cropSize) return; // this is to ensure the crop is correctly restricted after a zoom back (https://github.com/ricardo-ch/react-easy-crop/issues/6)
4392  
4393        var restrictedPosition = _this.props.restrictPosition ? index_module_restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop;
4394  
4395        var _a = computeCroppedArea(restrictedPosition, _this.mediaSize, _this.state.cropSize, _this.getAspect(), _this.props.zoom, _this.props.rotation, _this.props.restrictPosition),
4396            croppedAreaPercentages = _a.croppedAreaPercentages,
4397            croppedAreaPixels = _a.croppedAreaPixels;
4398  
4399        _this.props.onCropComplete && _this.props.onCropComplete(croppedAreaPercentages, croppedAreaPixels);
4400      };
4401  
4402      _this.recomputeCropPosition = function () {
4403        if (!_this.state.cropSize) return;
4404        var newPosition = _this.props.restrictPosition ? index_module_restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop;
4405  
4406        _this.props.onCropChange(newPosition);
4407  
4408        _this.emitCropData();
4409      };
4410  
4411      return _this;
4412    }
4413  
4414    Cropper.prototype.componentDidMount = function () {
4415      window.addEventListener('resize', this.computeSizes);
4416  
4417      if (this.containerRef) {
4418        this.props.zoomWithScroll && this.containerRef.addEventListener('wheel', this.onWheel, {
4419          passive: false
4420        });
4421        this.containerRef.addEventListener('gesturestart', this.preventZoomSafari);
4422        this.containerRef.addEventListener('gesturechange', this.preventZoomSafari);
4423      }
4424  
4425      if (!this.props.disableAutomaticStylesInjection) {
4426        this.styleRef = document.createElement('style');
4427        this.styleRef.setAttribute('type', 'text/css');
4428        this.styleRef.innerHTML = css;
4429        document.head.appendChild(this.styleRef);
4430      } // when rendered via SSR, the image can already be loaded and its onLoad callback will never be called
4431  
4432  
4433      if (this.imageRef && this.imageRef.complete) {
4434        this.onMediaLoad();
4435      }
4436    };
4437  
4438    Cropper.prototype.componentWillUnmount = function () {
4439      window.removeEventListener('resize', this.computeSizes);
4440  
4441      if (this.containerRef) {
4442        this.containerRef.removeEventListener('gesturestart', this.preventZoomSafari);
4443        this.containerRef.removeEventListener('gesturechange', this.preventZoomSafari);
4444      }
4445  
4446      if (this.styleRef) {
4447        this.styleRef.remove();
4448      }
4449  
4450      this.cleanEvents();
4451      this.props.zoomWithScroll && this.clearScrollEvent();
4452    };
4453  
4454    Cropper.prototype.componentDidUpdate = function (prevProps) {
4455      var _a, _b, _c, _d;
4456  
4457      if (prevProps.rotation !== this.props.rotation) {
4458        this.computeSizes();
4459        this.recomputeCropPosition();
4460      } else if (prevProps.aspect !== this.props.aspect) {
4461        this.computeSizes();
4462      } else if (prevProps.zoom !== this.props.zoom) {
4463        this.recomputeCropPosition();
4464      } else if (((_a = prevProps.cropSize) === null || _a === void 0 ? void 0 : _a.height) !== ((_b = this.props.cropSize) === null || _b === void 0 ? void 0 : _b.height) || ((_c = prevProps.cropSize) === null || _c === void 0 ? void 0 : _c.width) !== ((_d = this.props.cropSize) === null || _d === void 0 ? void 0 : _d.width)) {
4465        this.computeSizes();
4466      }
4467  
4468      if (prevProps.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef) {
4469        this.props.zoomWithScroll ? this.containerRef.addEventListener('wheel', this.onWheel, {
4470          passive: false
4471        }) : this.clearScrollEvent();
4472      }
4473    };
4474  
4475    Cropper.prototype.getAspect = function () {
4476      var _a = this.props,
4477          cropSize = _a.cropSize,
4478          aspect = _a.aspect;
4479  
4480      if (cropSize) {
4481        return cropSize.width / cropSize.height;
4482      }
4483  
4484      return aspect;
4485    };
4486  
4487    Cropper.prototype.onPinchStart = function (e) {
4488      var pointA = Cropper.getTouchPoint(e.touches[0]);
4489      var pointB = Cropper.getTouchPoint(e.touches[1]);
4490      this.lastPinchDistance = getDistanceBetweenPoints(pointA, pointB);
4491      this.lastPinchRotation = getRotationBetweenPoints(pointA, pointB);
4492      this.onDragStart(getCenter(pointA, pointB));
4493    };
4494  
4495    Cropper.prototype.onPinchMove = function (e) {
4496      var _this = this;
4497  
4498      var pointA = Cropper.getTouchPoint(e.touches[0]);
4499      var pointB = Cropper.getTouchPoint(e.touches[1]);
4500      var center = getCenter(pointA, pointB);
4501      this.onDrag(center);
4502      if (this.rafPinchTimeout) window.cancelAnimationFrame(this.rafPinchTimeout);
4503      this.rafPinchTimeout = window.requestAnimationFrame(function () {
4504        var distance = getDistanceBetweenPoints(pointA, pointB);
4505        var newZoom = _this.props.zoom * (distance / _this.lastPinchDistance);
4506  
4507        _this.setNewZoom(newZoom, center);
4508  
4509        _this.lastPinchDistance = distance;
4510        var rotation = getRotationBetweenPoints(pointA, pointB);
4511        var newRotation = _this.props.rotation + (rotation - _this.lastPinchRotation);
4512        _this.props.onRotationChange && _this.props.onRotationChange(newRotation);
4513        _this.lastPinchRotation = rotation;
4514      });
4515    };
4516  
4517    Cropper.prototype.render = function () {
4518      var _this = this;
4519  
4520      var _a = this.props,
4521          image = _a.image,
4522          video = _a.video,
4523          mediaProps = _a.mediaProps,
4524          transform = _a.transform,
4525          _b = _a.crop,
4526          x = _b.x,
4527          y = _b.y,
4528          rotation = _a.rotation,
4529          zoom = _a.zoom,
4530          cropShape = _a.cropShape,
4531          showGrid = _a.showGrid,
4532          _c = _a.style,
4533          containerStyle = _c.containerStyle,
4534          cropAreaStyle = _c.cropAreaStyle,
4535          mediaStyle = _c.mediaStyle,
4536          _d = _a.classes,
4537          containerClassName = _d.containerClassName,
4538          cropAreaClassName = _d.cropAreaClassName,
4539          mediaClassName = _d.mediaClassName;
4540      return external_this_React_default.a.createElement("div", {
4541        onMouseDown: this.onMouseDown,
4542        onTouchStart: this.onTouchStart,
4543        ref: function ref(el) {
4544          return _this.containerRef = el;
4545        },
4546        "data-testid": "container",
4547        style: containerStyle,
4548        className: index_module_classNames('reactEasyCrop_Container', containerClassName)
4549      }, image ? external_this_React_default.a.createElement("img", __assign({
4550        alt: "",
4551        className: index_module_classNames('reactEasyCrop_Image', mediaClassName)
4552      }, mediaProps, {
4553        src: image,
4554        ref: function ref(el) {
4555          return _this.imageRef = el;
4556        },
4557        style: __assign(__assign({}, mediaStyle), {
4558          transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")"
4559        }),
4560        onLoad: this.onMediaLoad
4561      })) : video && external_this_React_default.a.createElement("video", __assign({
4562        autoPlay: true,
4563        loop: true,
4564        muted: true,
4565        className: index_module_classNames('reactEasyCrop_Video', mediaClassName)
4566      }, mediaProps, {
4567        src: video,
4568        ref: function ref(el) {
4569          return _this.videoRef = el;
4570        },
4571        onLoadedMetadata: this.onMediaLoad,
4572        style: __assign(__assign({}, mediaStyle), {
4573          transform: transform || "translate(" + x + "px, " + y + "px) rotate(" + rotation + "deg) scale(" + zoom + ")"
4574        }),
4575        controls: false
4576      })), this.state.cropSize && external_this_React_default.a.createElement("div", {
4577        style: __assign(__assign({}, cropAreaStyle), {
4578          width: this.state.cropSize.width,
4579          height: this.state.cropSize.height
4580        }),
4581        "data-testid": "cropper",
4582        className: index_module_classNames('reactEasyCrop_CropArea', cropShape === 'round' && 'reactEasyCrop_CropAreaRound', showGrid && 'reactEasyCrop_CropAreaGrid', cropAreaClassName)
4583      }));
4584    };
4585  
4586    Cropper.defaultProps = {
4587      zoom: 1,
4588      rotation: 0,
4589      aspect: 4 / 3,
4590      maxZoom: MAX_ZOOM,
4591      minZoom: MIN_ZOOM,
4592      cropShape: 'rect',
4593      showGrid: true,
4594      style: {},
4595      classes: {},
4596      mediaProps: {},
4597      zoomSpeed: 1,
4598      restrictPosition: true,
4599      zoomWithScroll: true
4600    };
4601  
4602    Cropper.getMousePoint = function (e) {
4603      return {
4604        x: Number(e.clientX),
4605        y: Number(e.clientY)
4606      };
4607    };
4608  
4609    Cropper.getTouchPoint = function (touch) {
4610      return {
4611        x: Number(touch.clientX),
4612        y: Number(touch.clientY)
4613      };
4614    };
4615  
4616    return Cropper;
4617  }(external_this_React_default.a.Component);
4618  
4619  /* harmony default export */ var index_module = (index_module_Cropper);
4620  
4621  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
4622  var check = __webpack_require__(154);
4623  
4624  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/aspect-ratio.js
4625  
4626  
4627  /**
4628   * WordPress dependencies
4629   */
4630  
4631  var aspect_ratio_aspectRatio = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
4632    xmlns: "http://www.w3.org/2000/svg",
4633    viewBox: "0 0 24 24"
4634  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
4635    d: "M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"
4636  }));
4637  /* harmony default export */ var aspect_ratio = (aspect_ratio_aspectRatio);
4638  
4639  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
4640  var search = __webpack_require__(292);
4641  
4642  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js
4643  
4644  
4645  /**
4646   * WordPress dependencies
4647   */
4648  
4649  var rotateRight = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
4650    xmlns: "http://www.w3.org/2000/svg",
4651    viewBox: "0 0 24 24"
4652  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
4653    d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"
4654  }));
4655  /* harmony default export */ var rotate_right = (rotateRight);
4656  
4657  // EXTERNAL MODULE: external {"this":["wp","apiFetch"]}
4658  var external_this_wp_apiFetch_ = __webpack_require__(45);
4659  var external_this_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_apiFetch_);
4660  
4661  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-editor.js
4662  
4663  
4664  
4665  /**
4666   * External dependencies
4667   */
4668  
4669  
4670  /**
4671   * WordPress dependencies
4672   */
4673  
4674  
4675  
4676  
4677  
4678  
4679  
4680  
4681  var image_editor_MIN_ZOOM = 100;
4682  var image_editor_MAX_ZOOM = 300;
4683  var POPOVER_PROPS = {
4684    position: 'bottom right',
4685    isAlternate: true
4686  };
4687  
4688  function AspectGroup(_ref) {
4689    var aspectRatios = _ref.aspectRatios,
4690        isDisabled = _ref.isDisabled,
4691        label = _ref.label,
4692        _onClick = _ref.onClick,
4693        value = _ref.value;
4694    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuGroup"], {
4695      label: label
4696    }, aspectRatios.map(function (_ref2) {
4697      var title = _ref2.title,
4698          aspect = _ref2.aspect;
4699      return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
4700        key: aspect,
4701        isDisabled: isDisabled,
4702        onClick: function onClick() {
4703          _onClick(aspect);
4704        },
4705        role: "menuitemradio",
4706        isSelected: aspect === value,
4707        icon: aspect === value ? check["a" /* default */] : undefined
4708      }, title);
4709    }));
4710  }
4711  
4712  function AspectMenu(_ref3) {
4713    var isDisabled = _ref3.isDisabled,
4714        _onClick2 = _ref3.onClick,
4715        value = _ref3.value,
4716        defaultValue = _ref3.defaultValue;
4717    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["DropdownMenu"], {
4718      icon: aspect_ratio,
4719      label: Object(external_this_wp_i18n_["__"])('Aspect Ratio'),
4720      popoverProps: POPOVER_PROPS,
4721      className: "wp-block-image__aspect-ratio"
4722    }, function (_ref4) {
4723      var onClose = _ref4.onClose;
4724      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(AspectGroup, {
4725        isDisabled: isDisabled,
4726        onClick: function onClick(aspect) {
4727          _onClick2(aspect);
4728  
4729          onClose();
4730        },
4731        value: value,
4732        aspectRatios: [{
4733          title: Object(external_this_wp_i18n_["__"])('Original'),
4734          aspect: defaultValue
4735        }, {
4736          title: Object(external_this_wp_i18n_["__"])('Square'),
4737          aspect: 1
4738        }]
4739      }), Object(external_this_wp_element_["createElement"])(AspectGroup, {
4740        label: Object(external_this_wp_i18n_["__"])('Landscape'),
4741        isDisabled: isDisabled,
4742        onClick: function onClick(aspect) {
4743          _onClick2(aspect);
4744  
4745          onClose();
4746        },
4747        value: value,
4748        aspectRatios: [{
4749          title: Object(external_this_wp_i18n_["__"])('16:10'),
4750          aspect: 16 / 10
4751        }, {
4752          title: Object(external_this_wp_i18n_["__"])('16:9'),
4753          aspect: 16 / 9
4754        }, {
4755          title: Object(external_this_wp_i18n_["__"])('4:3'),
4756          aspect: 4 / 3
4757        }, {
4758          title: Object(external_this_wp_i18n_["__"])('3:2'),
4759          aspect: 3 / 2
4760        }]
4761      }), Object(external_this_wp_element_["createElement"])(AspectGroup, {
4762        label: Object(external_this_wp_i18n_["__"])('Portrait'),
4763        isDisabled: isDisabled,
4764        onClick: function onClick(aspect) {
4765          _onClick2(aspect);
4766  
4767          onClose();
4768        },
4769        value: value,
4770        aspectRatios: [{
4771          title: Object(external_this_wp_i18n_["__"])('10:16'),
4772          aspect: 10 / 16
4773        }, {
4774          title: Object(external_this_wp_i18n_["__"])('9:16'),
4775          aspect: 9 / 16
4776        }, {
4777          title: Object(external_this_wp_i18n_["__"])('3:4'),
4778          aspect: 3 / 4
4779        }, {
4780          title: Object(external_this_wp_i18n_["__"])('2:3'),
4781          aspect: 2 / 3
4782        }]
4783      }));
4784    });
4785  }
4786  
4787  function ImageEditor(_ref5) {
4788    var id = _ref5.id,
4789        url = _ref5.url,
4790        setAttributes = _ref5.setAttributes,
4791        naturalWidth = _ref5.naturalWidth,
4792        naturalHeight = _ref5.naturalHeight,
4793        width = _ref5.width,
4794        height = _ref5.height,
4795        clientWidth = _ref5.clientWidth,
4796        setIsEditingImage = _ref5.setIsEditingImage;
4797  
4798    var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'),
4799        createErrorNotice = _useDispatch.createErrorNotice;
4800  
4801    var _useState = Object(external_this_wp_element_["useState"])(false),
4802        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
4803        inProgress = _useState2[0],
4804        setIsProgress = _useState2[1];
4805  
4806    var _useState3 = Object(external_this_wp_element_["useState"])(null),
4807        _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
4808        crop = _useState4[0],
4809        setCrop = _useState4[1];
4810  
4811    var _useState5 = Object(external_this_wp_element_["useState"])({
4812      x: 0,
4813      y: 0
4814    }),
4815        _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
4816        position = _useState6[0],
4817        setPosition = _useState6[1];
4818  
4819    var _useState7 = Object(external_this_wp_element_["useState"])(100),
4820        _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
4821        zoom = _useState8[0],
4822        setZoom = _useState8[1];
4823  
4824    var _useState9 = Object(external_this_wp_element_["useState"])(naturalWidth / naturalHeight),
4825        _useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
4826        aspect = _useState10[0],
4827        setAspect = _useState10[1];
4828  
4829    var _useState11 = Object(external_this_wp_element_["useState"])(0),
4830        _useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2),
4831        rotation = _useState12[0],
4832        setRotation = _useState12[1];
4833  
4834    var _useState13 = Object(external_this_wp_element_["useState"])(),
4835        _useState14 = Object(slicedToArray["a" /* default */])(_useState13, 2),
4836        editedUrl = _useState14[0],
4837        setEditedUrl = _useState14[1];
4838  
4839    var editedWidth = width;
4840    var editedHeight = height || clientWidth * naturalHeight / naturalWidth;
4841    var naturalAspectRatio = naturalWidth / naturalHeight;
4842  
4843    if (rotation % 180 === 90) {
4844      editedHeight = clientWidth * naturalWidth / naturalHeight;
4845      naturalAspectRatio = naturalHeight / naturalWidth;
4846    }
4847  
4848    function apply() {
4849      setIsProgress(true);
4850      var attrs = {}; // The crop script may return some very small, sub-pixel values when the image was not cropped.
4851      // Crop only when the new size has changed by more than 0.1%.
4852  
4853      if (crop.width < 99.9 || crop.height < 99.9) {
4854        attrs = crop;
4855      }
4856  
4857      if (rotation > 0) {
4858        attrs.rotation = rotation;
4859      }
4860  
4861      attrs.src = url;
4862      external_this_wp_apiFetch_default()({
4863        path: "/wp/v2/media/".concat(id, "/edit"),
4864        method: 'POST',
4865        data: attrs
4866      }).then(function (response) {
4867        setAttributes({
4868          id: response.id,
4869          url: response.source_url,
4870          height: height && width ? width / aspect : undefined
4871        });
4872      }).catch(function (error) {
4873        createErrorNotice(Object(external_this_wp_i18n_["sprintf"])(
4874        /* translators: 1. Error message */
4875        Object(external_this_wp_i18n_["__"])('Could not edit image. %s'), error.message), {
4876          id: 'image-editing-error',
4877          type: 'snackbar'
4878        });
4879      }).finally(function () {
4880        setIsProgress(false);
4881        setIsEditingImage(false);
4882      });
4883    }
4884  
4885    function rotate() {
4886      var angle = (rotation + 90) % 360;
4887  
4888      if (angle === 0) {
4889        setEditedUrl();
4890        setRotation(angle);
4891        setAspect(1 / aspect);
4892        setPosition({
4893          x: -(position.y * naturalAspectRatio),
4894          y: position.x * naturalAspectRatio
4895        });
4896        return;
4897      }
4898  
4899      function editImage(event) {
4900        var canvas = document.createElement('canvas');
4901        var translateX = 0;
4902        var translateY = 0;
4903  
4904        if (angle % 180) {
4905          canvas.width = event.target.height;
4906          canvas.height = event.target.width;
4907        } else {
4908          canvas.width = event.target.width;
4909          canvas.height = event.target.height;
4910        }
4911  
4912        if (angle === 90 || angle === 180) {
4913          translateX = canvas.width;
4914        }
4915  
4916        if (angle === 270 || angle === 180) {
4917          translateY = canvas.height;
4918        }
4919  
4920        var context = canvas.getContext('2d');
4921        context.translate(translateX, translateY);
4922        context.rotate(angle * Math.PI / 180);
4923        context.drawImage(event.target, 0, 0);
4924        canvas.toBlob(function (blob) {
4925          setEditedUrl(URL.createObjectURL(blob));
4926          setRotation(angle);
4927          setAspect(1 / aspect);
4928          setPosition({
4929            x: -(position.y * naturalAspectRatio),
4930            y: position.x * naturalAspectRatio
4931          });
4932        });
4933      }
4934  
4935      var el = new window.Image();
4936      el.src = url;
4937      el.onload = editImage;
4938    }
4939  
4940    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("div", {
4941      className: classnames_default()('wp-block-image__crop-area', {
4942        'is-applying': inProgress
4943      }),
4944      style: {
4945        width: editedWidth,
4946        height: editedHeight
4947      }
4948    }, Object(external_this_wp_element_["createElement"])(index_module, {
4949      image: editedUrl || url,
4950      disabled: inProgress,
4951      minZoom: image_editor_MIN_ZOOM / 100,
4952      maxZoom: image_editor_MAX_ZOOM / 100,
4953      crop: position,
4954      zoom: zoom / 100,
4955      aspect: aspect,
4956      onCropChange: setPosition,
4957      onCropComplete: function onCropComplete(newCropPercent) {
4958        setCrop(newCropPercent);
4959      },
4960      onZoomChange: function onZoomChange(newZoom) {
4961        setZoom(newZoom * 100);
4962      }
4963    }), inProgress && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null)), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], {
4964      contentClassName: "wp-block-image__zoom",
4965      popoverProps: POPOVER_PROPS,
4966      renderToggle: function renderToggle(_ref6) {
4967        var isOpen = _ref6.isOpen,
4968            onToggle = _ref6.onToggle;
4969        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], {
4970          icon: search["a" /* default */],
4971          label: Object(external_this_wp_i18n_["__"])('Zoom'),
4972          onClick: onToggle,
4973          "aria-expanded": isOpen,
4974          disabled: inProgress
4975        });
4976      },
4977      renderContent: function renderContent() {
4978        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], {
4979          min: image_editor_MIN_ZOOM,
4980          max: image_editor_MAX_ZOOM,
4981          value: Math.round(zoom),
4982          onChange: setZoom
4983        });
4984      }
4985    }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["__experimentalToolbarItem"], null, function (toggleProps) {
4986      return Object(external_this_wp_element_["createElement"])(AspectMenu, {
4987        toggleProps: toggleProps,
4988        isDisabled: inProgress,
4989        onClick: setAspect,
4990        value: aspect,
4991        defaultValue: naturalWidth / naturalHeight
4992      });
4993    })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], {
4994      icon: rotate_right,
4995      label: Object(external_this_wp_i18n_["__"])('Rotate'),
4996      onClick: rotate,
4997      disabled: inProgress
4998    })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], {
4999      onClick: apply,
5000      disabled: inProgress
5001    }, Object(external_this_wp_i18n_["__"])('Apply')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], {
5002      onClick: function onClick() {
5003        return setIsEditingImage(false);
5004      }
5005    }, Object(external_this_wp_i18n_["__"])('Cancel')))));
5006  }
5007  
5008  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/constants.js
5009  var MIN_SIZE = 20;
5010  var LINK_DESTINATION_NONE = 'none';
5011  var LINK_DESTINATION_MEDIA = 'media';
5012  var LINK_DESTINATION_ATTACHMENT = 'attachment';
5013  var LINK_DESTINATION_CUSTOM = 'custom';
5014  var NEW_TAB_REL = ['noreferrer', 'noopener'];
5015  var ALLOWED_MEDIA_TYPES = ['image'];
5016  var DEFAULT_SIZE_SLUG = 'large';
5017  
5018  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image.js
5019  
5020  
5021  
5022  /**
5023   * External dependencies
5024   */
5025  
5026  /**
5027   * WordPress dependencies
5028   */
5029  
5030  
5031  
5032  
5033  
5034  
5035  
5036  
5037  
5038  
5039  
5040  /**
5041   * Internal dependencies
5042   */
5043  
5044  
5045  
5046  
5047  
5048  /**
5049   * Module constants
5050   */
5051  
5052  
5053  
5054  function getFilename(url) {
5055    var path = Object(external_this_wp_url_["getPath"])(url);
5056  
5057    if (path) {
5058      return Object(external_this_lodash_["last"])(path.split('/'));
5059    }
5060  }
5061  
5062  function Image(_ref) {
5063    var _ref$attributes = _ref.attributes,
5064        _ref$attributes$url = _ref$attributes.url,
5065        url = _ref$attributes$url === void 0 ? '' : _ref$attributes$url,
5066        alt = _ref$attributes.alt,
5067        caption = _ref$attributes.caption,
5068        align = _ref$attributes.align,
5069        id = _ref$attributes.id,
5070        href = _ref$attributes.href,
5071        rel = _ref$attributes.rel,
5072        linkClass = _ref$attributes.linkClass,
5073        linkDestination = _ref$attributes.linkDestination,
5074        title = _ref$attributes.title,
5075        width = _ref$attributes.width,
5076        height = _ref$attributes.height,
5077        linkTarget = _ref$attributes.linkTarget,
5078        sizeSlug = _ref$attributes.sizeSlug,
5079        setAttributes = _ref.setAttributes,
5080        isSelected = _ref.isSelected,
5081        insertBlocksAfter = _ref.insertBlocksAfter,
5082        onReplace = _ref.onReplace,
5083        onSelectImage = _ref.onSelectImage,
5084        onSelectURL = _ref.onSelectURL,
5085        onUploadError = _ref.onUploadError,
5086        containerRef = _ref.containerRef;
5087    var image = Object(external_this_wp_data_["useSelect"])(function (select) {
5088      var _select = select('core'),
5089          getMedia = _select.getMedia;
5090  
5091      return id && isSelected ? getMedia(id) : null;
5092    }, [id, isSelected]);
5093  
5094    var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
5095      var _select2 = select('core/block-editor'),
5096          getSettings = _select2.getSettings;
5097  
5098      return Object(external_this_lodash_["pick"])(getSettings(), ['imageEditing', 'imageSizes', 'isRTL', 'maxWidth', 'mediaUpload']);
5099    }),
5100        imageEditing = _useSelect.imageEditing,
5101        imageSizes = _useSelect.imageSizes,
5102        isRTL = _useSelect.isRTL,
5103        maxWidth = _useSelect.maxWidth,
5104        mediaUpload = _useSelect.mediaUpload;
5105  
5106    var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/block-editor'),
5107        toggleSelection = _useDispatch.toggleSelection;
5108  
5109    var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/notices'),
5110        createErrorNotice = _useDispatch2.createErrorNotice,
5111        createSuccessNotice = _useDispatch2.createSuccessNotice;
5112  
5113    var isLargeViewport = Object(external_this_wp_compose_["useViewportMatch"])('medium');
5114  
5115    var _useState = Object(external_this_wp_element_["useState"])(false),
5116        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
5117        captionFocused = _useState2[0],
5118        setCaptionFocused = _useState2[1];
5119  
5120    var isWideAligned = Object(external_this_lodash_["includes"])(['wide', 'full'], align);
5121  
5122    var _useState3 = Object(external_this_wp_element_["useState"])({}),
5123        _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
5124        _useState4$ = _useState4[0],
5125        naturalWidth = _useState4$.naturalWidth,
5126        naturalHeight = _useState4$.naturalHeight,
5127        setNaturalSize = _useState4[1];
5128  
5129    var _useState5 = Object(external_this_wp_element_["useState"])(false),
5130        _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
5131        isEditingImage = _useState6[0],
5132        setIsEditingImage = _useState6[1];
5133  
5134    var _useState7 = Object(external_this_wp_element_["useState"])(),
5135        _useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
5136        externalBlob = _useState8[0],
5137        setExternalBlob = _useState8[1];
5138  
5139    var clientWidth = useClientWidth(containerRef, [align]);
5140    var isResizable = !isWideAligned && isLargeViewport;
5141    var imageSizeOptions = Object(external_this_lodash_["map"])(Object(external_this_lodash_["filter"])(imageSizes, function (_ref2) {
5142      var slug = _ref2.slug;
5143      return Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', slug, 'source_url']);
5144    }), function (_ref3) {
5145      var name = _ref3.name,
5146          slug = _ref3.slug;
5147      return {
5148        value: slug,
5149        label: name
5150      };
5151    });
5152    Object(external_this_wp_element_["useEffect"])(function () {
5153      if (!isSelected) {
5154        setCaptionFocused(false);
5155      }
5156    }, [isSelected]); // If an image is externally hosted, try to fetch the image data. This may
5157    // fail if the image host doesn't allow CORS with the domain. If it works,
5158    // we can enable a button in the toolbar to upload the image.
5159  
5160    Object(external_this_wp_element_["useEffect"])(function () {
5161      if (!edit_isExternalImage(id, url) || !isSelected || externalBlob) {
5162        return;
5163      }
5164  
5165      window.fetch(url).then(function (response) {
5166        return response.blob();
5167      }).then(function (blob) {
5168        return setExternalBlob(blob);
5169      });
5170    }, [id, url, isSelected, externalBlob]);
5171  
5172    function onResizeStart() {
5173      toggleSelection(false);
5174    }
5175  
5176    function _onResizeStop() {
5177      toggleSelection(true);
5178    }
5179  
5180    function onImageError() {
5181      // Check if there's an embed block that handles this URL.
5182      var embedBlock = util_createUpgradedEmbedBlock({
5183        attributes: {
5184          url: url
5185        }
5186      });
5187  
5188      if (undefined !== embedBlock) {
5189        onReplace(embedBlock);
5190      }
5191    }
5192  
5193    function onSetHref(props) {
5194      setAttributes(props);
5195    }
5196  
5197    function onSetTitle(value) {
5198      // This is the HTML title attribute, separate from the media object
5199      // title.
5200      setAttributes({
5201        title: value
5202      });
5203    }
5204  
5205    function onFocusCaption() {
5206      if (!captionFocused) {
5207        setCaptionFocused(true);
5208      }
5209    }
5210  
5211    function onImageClick() {
5212      if (captionFocused) {
5213        setCaptionFocused(false);
5214      }
5215    }
5216  
5217    function updateAlt(newAlt) {
5218      setAttributes({
5219        alt: newAlt
5220      });
5221    }
5222  
5223    function updateImage(newSizeSlug) {
5224      var newUrl = Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', newSizeSlug, 'source_url']);
5225  
5226      if (!newUrl) {
5227        return null;
5228      }
5229  
5230      setAttributes({
5231        url: newUrl,
5232        width: undefined,
5233        height: undefined,
5234        sizeSlug: newSizeSlug
5235      });
5236    }
5237  
5238    function uploadExternal() {
5239      mediaUpload({
5240        filesList: [externalBlob],
5241        onFileChange: function onFileChange(_ref4) {
5242          var _ref5 = Object(slicedToArray["a" /* default */])(_ref4, 1),
5243              img = _ref5[0];
5244  
5245          onSelectImage(img);
5246  
5247          if (Object(external_this_wp_blob_["isBlobURL"])(img.url)) {
5248            return;
5249          }
5250  
5251          setExternalBlob();
5252          createSuccessNotice(Object(external_this_wp_i18n_["__"])('Image uploaded.'), {
5253            type: 'snackbar'
5254          });
5255        },
5256        allowedTypes: ALLOWED_MEDIA_TYPES,
5257        onError: function onError(message) {
5258          createErrorNotice(message, {
5259            type: 'snackbar'
5260          });
5261        }
5262      });
5263    }
5264  
5265    Object(external_this_wp_element_["useEffect"])(function () {
5266      if (!isSelected) {
5267        setIsEditingImage(false);
5268      }
5269    }, [isSelected]);
5270    var canEditImage = id && naturalWidth && naturalHeight && imageEditing;
5271    var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, !isEditingImage && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageURLInputUI"], {
5272      url: href || '',
5273      onChangeUrl: onSetHref,
5274      linkDestination: linkDestination,
5275      mediaUrl: image && image.source_url,
5276      mediaLink: image && image.link,
5277      linkTarget: linkTarget,
5278      linkClass: linkClass,
5279      rel: rel
5280    })), canEditImage && !isEditingImage && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], {
5281      onClick: function onClick() {
5282        return setIsEditingImage(true);
5283      },
5284      icon: library_crop,
5285      label: Object(external_this_wp_i18n_["__"])('Crop')
5286    })), externalBlob && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], {
5287      onClick: uploadExternal,
5288      icon: upload["a" /* default */],
5289      label: Object(external_this_wp_i18n_["__"])('Upload external image')
5290    })), !isEditingImage && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaReplaceFlow"], {
5291      mediaId: id,
5292      mediaURL: url,
5293      allowedTypes: ALLOWED_MEDIA_TYPES,
5294      accept: "image/*",
5295      onSelect: onSelectImage,
5296      onSelectURL: onSelectURL,
5297      onError: onUploadError
5298    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5299      title: Object(external_this_wp_i18n_["__"])('Image settings')
5300    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], {
5301      label: Object(external_this_wp_i18n_["__"])('Alt text (alternative text)'),
5302      value: alt,
5303      onChange: updateAlt,
5304      help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
5305        href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
5306      }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.'))
5307    }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalImageSizeControl"], {
5308      onChangeImage: updateImage,
5309      onChange: function onChange(value) {
5310        return setAttributes(value);
5311      },
5312      slug: sizeSlug,
5313      width: width,
5314      height: height,
5315      imageSizeOptions: imageSizeOptions,
5316      isResizable: isResizable,
5317      imageWidth: naturalWidth,
5318      imageHeight: naturalHeight
5319    }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorAdvancedControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
5320      label: Object(external_this_wp_i18n_["__"])('Title attribute'),
5321      value: title || '',
5322      onChange: onSetTitle,
5323      help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_i18n_["__"])('Describe the role of this image on the page.'), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
5324        href: "https://www.w3.org/TR/html52/dom.html#the-title-attribute"
5325      }, Object(external_this_wp_i18n_["__"])('(Note: many devices and browsers do not display this text.)')))
5326    })));
5327    var filename = getFilename(url);
5328    var defaultedAlt;
5329  
5330    if (alt) {
5331      defaultedAlt = alt;
5332    } else if (filename) {
5333      defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(
5334      /* translators: %s: file name */
5335      Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename);
5336    } else {
5337      defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute');
5338    }
5339  
5340    var img = // Disable reason: Image itself is not meant to be interactive, but
5341    // should direct focus to block.
5342  
5343    /* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
5344    Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", {
5345      src: url,
5346      alt: defaultedAlt,
5347      onClick: onImageClick,
5348      onError: function onError() {
5349        return onImageError();
5350      },
5351      onLoad: function onLoad(event) {
5352        setNaturalSize(Object(external_this_lodash_["pick"])(event.target, ['naturalWidth', 'naturalHeight']));
5353      }
5354    }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))
5355    /* eslint-enable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
5356    ;
5357    var imageWidthWithinContainer;
5358    var imageHeightWithinContainer;
5359  
5360    if (clientWidth && naturalWidth && naturalHeight) {
5361      var exceedMaxWidth = naturalWidth > clientWidth;
5362      var ratio = naturalHeight / naturalWidth;
5363      imageWidthWithinContainer = exceedMaxWidth ? clientWidth : naturalWidth;
5364      imageHeightWithinContainer = exceedMaxWidth ? clientWidth * ratio : naturalHeight;
5365    }
5366  
5367    if (canEditImage && isEditingImage) {
5368      img = Object(external_this_wp_element_["createElement"])(ImageEditor, {
5369        id: id,
5370        url: url,
5371        setAttributes: setAttributes,
5372        naturalWidth: naturalWidth,
5373        naturalHeight: naturalHeight,
5374        width: width,
5375        height: height,
5376        clientWidth: clientWidth,
5377        setIsEditingImage: setIsEditingImage
5378      });
5379    } else if (!isResizable || !imageWidthWithinContainer) {
5380      img = Object(external_this_wp_element_["createElement"])("div", {
5381        style: {
5382          width: width,
5383          height: height
5384        }
5385      }, img);
5386    } else {
5387      var currentWidth = width || imageWidthWithinContainer;
5388      var currentHeight = height || imageHeightWithinContainer;
5389  
5390      var _ratio = naturalWidth / naturalHeight;
5391  
5392      var minWidth = naturalWidth < naturalHeight ? MIN_SIZE : MIN_SIZE * _ratio;
5393      var minHeight = naturalHeight < naturalWidth ? MIN_SIZE : MIN_SIZE / _ratio; // With the current implementation of ResizableBox, an image needs an
5394      // explicit pixel value for the max-width. In absence of being able to
5395      // set the content-width, this max-width is currently dictated by the
5396      // vanilla editor style. The following variable adds a buffer to this
5397      // vanilla style, so 3rd party themes have some wiggleroom. This does,
5398      // in most cases, allow you to scale the image beyond the width of the
5399      // main column, though not infinitely.
5400      // @todo It would be good to revisit this once a content-width variable
5401      // becomes available.
5402  
5403      var maxWidthBuffer = maxWidth * 2.5;
5404      var showRightHandle = false;
5405      var showLeftHandle = false;
5406      /* eslint-disable no-lonely-if */
5407      // See https://github.com/WordPress/gutenberg/issues/7584.
5408  
5409      if (align === 'center') {
5410        // When the image is centered, show both handles.
5411        showRightHandle = true;
5412        showLeftHandle = true;
5413      } else if (isRTL) {
5414        // In RTL mode the image is on the right by default.
5415        // Show the right handle and hide the left handle only when it is
5416        // aligned left. Otherwise always show the left handle.
5417        if (align === 'left') {
5418          showRightHandle = true;
5419        } else {
5420          showLeftHandle = true;
5421        }
5422      } else {
5423        // Show the left handle and hide the right handle only when the
5424        // image is aligned right. Otherwise always show the right handle.
5425        if (align === 'right') {
5426          showLeftHandle = true;
5427        } else {
5428          showRightHandle = true;
5429        }
5430      }
5431      /* eslint-enable no-lonely-if */
5432  
5433  
5434      img = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], {
5435        size: {
5436          width: width,
5437          height: height
5438        },
5439        showHandle: isSelected,
5440        minWidth: minWidth,
5441        maxWidth: maxWidthBuffer,
5442        minHeight: minHeight,
5443        maxHeight: maxWidthBuffer / _ratio,
5444        lockAspectRatio: true,
5445        enable: {
5446          top: false,
5447          right: showRightHandle,
5448          bottom: true,
5449          left: showLeftHandle
5450        },
5451        onResizeStart: onResizeStart,
5452        onResizeStop: function onResizeStop(event, direction, elt, delta) {
5453          _onResizeStop();
5454  
5455          setAttributes({
5456            width: parseInt(currentWidth + delta.width, 10),
5457            height: parseInt(currentHeight + delta.height, 10)
5458          });
5459        }
5460      }, img);
5461    }
5462  
5463    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, img, (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
5464      tagName: "figcaption",
5465      placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'),
5466      value: caption,
5467      unstableOnFocus: onFocusCaption,
5468      onChange: function onChange(value) {
5469        return setAttributes({
5470          caption: value
5471        });
5472      },
5473      isSelected: captionFocused,
5474      inlineToolbar: true,
5475      __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() {
5476        return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph'));
5477      }
5478    }));
5479  }
5480  
5481  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js
5482  
5483  
5484  
5485  
5486  function image_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5487  
5488  function image_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { image_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { image_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5489  
5490  /**
5491   * External dependencies
5492   */
5493  
5494  
5495  /**
5496   * WordPress dependencies
5497   */
5498  
5499  
5500  
5501  
5502  
5503  
5504  
5505  
5506  /**
5507   * Internal dependencies
5508   */
5509  
5510  
5511  /**
5512   * Module constants
5513   */
5514  
5515  
5516  var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
5517    var imageProps = Object(external_this_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']);
5518    imageProps.url = Object(external_this_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url;
5519    return imageProps;
5520  };
5521  /**
5522   * Is the URL a temporary blob URL? A blob URL is one that is used temporarily
5523   * while the image is being uploaded and will not have an id yet allocated.
5524   *
5525   * @param {number=} id The id of the image.
5526   * @param {string=} url The url of the image.
5527   *
5528   * @return {boolean} Is the URL a Blob URL
5529   */
5530  
5531  var edit_isTemporaryImage = function isTemporaryImage(id, url) {
5532    return !id && Object(external_this_wp_blob_["isBlobURL"])(url);
5533  };
5534  /**
5535   * Is the url for the image hosted externally. An externally hosted image has no
5536   * id and is not a blob url.
5537   *
5538   * @param {number=} id  The id of the image.
5539   * @param {string=} url The url of the image.
5540   *
5541   * @return {boolean} Is the url an externally hosted url?
5542   */
5543  
5544  
5545  var edit_isExternalImage = function isExternalImage(id, url) {
5546    return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url);
5547  };
5548  function ImageEdit(_ref) {
5549    var attributes = _ref.attributes,
5550        setAttributes = _ref.setAttributes,
5551        isSelected = _ref.isSelected,
5552        className = _ref.className,
5553        noticeUI = _ref.noticeUI,
5554        insertBlocksAfter = _ref.insertBlocksAfter,
5555        noticeOperations = _ref.noticeOperations,
5556        onReplace = _ref.onReplace;
5557    var _attributes$url = attributes.url,
5558        url = _attributes$url === void 0 ? '' : _attributes$url,
5559        alt = attributes.alt,
5560        caption = attributes.caption,
5561        align = attributes.align,
5562        id = attributes.id,
5563        linkDestination = attributes.linkDestination,
5564        width = attributes.width,
5565        height = attributes.height,
5566        sizeSlug = attributes.sizeSlug;
5567    var ref = Object(external_this_wp_element_["useRef"])();
5568    var mediaUpload = Object(external_this_wp_data_["useSelect"])(function (select) {
5569      var _select = select('core/block-editor'),
5570          getSettings = _select.getSettings;
5571  
5572      return getSettings().mediaUpload;
5573    });
5574  
5575    function onUploadError(message) {
5576      noticeOperations.removeAllNotices();
5577      noticeOperations.createErrorNotice(message);
5578    }
5579  
5580    function onSelectImage(media) {
5581      if (!media || !media.url) {
5582        setAttributes({
5583          url: undefined,
5584          alt: undefined,
5585          id: undefined,
5586          title: undefined,
5587          caption: undefined
5588        });
5589        return;
5590      }
5591  
5592      var mediaAttributes = edit_pickRelevantMediaFiles(media); // If the current image is temporary but an alt text was meanwhile
5593      // written by the user, make sure the text is not overwritten.
5594  
5595      if (edit_isTemporaryImage(id, url)) {
5596        if (alt) {
5597          mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['alt']);
5598        }
5599      } // If a caption text was meanwhile written by the user,
5600      // make sure the text is not overwritten by empty captions.
5601  
5602  
5603      if (caption && !Object(external_this_lodash_["get"])(mediaAttributes, ['caption'])) {
5604        mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['caption']);
5605      }
5606  
5607      var additionalAttributes; // Reset the dimension attributes if changing to a different image.
5608  
5609      if (!media.id || media.id !== id) {
5610        additionalAttributes = {
5611          width: undefined,
5612          height: undefined,
5613          sizeSlug: DEFAULT_SIZE_SLUG
5614        };
5615      } else {
5616        // Keep the same url when selecting the same file, so "Image Size"
5617        // option is not changed.
5618        additionalAttributes = {
5619          url: url
5620        };
5621      } // Check if the image is linked to it's media.
5622  
5623  
5624      if (linkDestination === LINK_DESTINATION_MEDIA) {
5625        // Update the media link.
5626        mediaAttributes.href = media.url;
5627      } // Check if the image is linked to the attachment page.
5628  
5629  
5630      if (linkDestination === LINK_DESTINATION_ATTACHMENT) {
5631        // Update the media link.
5632        mediaAttributes.href = media.link;
5633      }
5634  
5635      setAttributes(image_edit_objectSpread({}, mediaAttributes, {}, additionalAttributes));
5636    }
5637  
5638    function onSelectURL(newURL) {
5639      if (newURL !== url) {
5640        setAttributes({
5641          url: newURL,
5642          id: undefined,
5643          sizeSlug: DEFAULT_SIZE_SLUG
5644        });
5645      }
5646    }
5647  
5648    function updateAlignment(nextAlign) {
5649      var extraUpdatedAttributes = ['wide', 'full'].includes(nextAlign) ? {
5650        width: undefined,
5651        height: undefined
5652      } : {};
5653      setAttributes(image_edit_objectSpread({}, extraUpdatedAttributes, {
5654        align: nextAlign
5655      }));
5656    }
5657  
5658    var isTemp = edit_isTemporaryImage(id, url); // Upload a temporary image on mount.
5659  
5660    Object(external_this_wp_element_["useEffect"])(function () {
5661      if (!isTemp) {
5662        return;
5663      }
5664  
5665      var file = Object(external_this_wp_blob_["getBlobByURL"])(url);
5666  
5667      if (file) {
5668        mediaUpload({
5669          filesList: [file],
5670          onFileChange: function onFileChange(_ref2) {
5671            var _ref3 = Object(slicedToArray["a" /* default */])(_ref2, 1),
5672                img = _ref3[0];
5673  
5674            onSelectImage(img);
5675          },
5676          allowedTypes: ALLOWED_MEDIA_TYPES,
5677          onError: function onError(message) {
5678            noticeOperations.createErrorNotice(message);
5679          }
5680        });
5681      }
5682    }, []); // If an image is temporary, revoke the Blob url when it is uploaded (and is
5683    // no longer temporary).
5684  
5685    Object(external_this_wp_element_["useEffect"])(function () {
5686      if (!isTemp) {
5687        return;
5688      }
5689  
5690      return function () {
5691        Object(external_this_wp_blob_["revokeBlobURL"])(url);
5692      };
5693    }, [isTemp]);
5694    var isExternal = edit_isExternalImage(id, url);
5695    var controls = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockAlignmentToolbar"], {
5696      value: align,
5697      onChange: updateAlignment
5698    }));
5699    var src = isExternal ? url : undefined;
5700    var mediaPreview = !!url && Object(external_this_wp_element_["createElement"])("img", {
5701      alt: Object(external_this_wp_i18n_["__"])('Edit image'),
5702      title: Object(external_this_wp_i18n_["__"])('Edit image'),
5703      className: 'edit-image-preview',
5704      src: url
5705    });
5706    var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], {
5707      icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
5708        icon: library_image
5709      }),
5710      onSelect: onSelectImage,
5711      onSelectURL: onSelectURL,
5712      notices: noticeUI,
5713      onError: onUploadError,
5714      accept: "image/*",
5715      allowedTypes: ALLOWED_MEDIA_TYPES,
5716      value: {
5717        id: id,
5718        src: src
5719      },
5720      mediaPreview: mediaPreview,
5721      disableMediaButtons: url
5722    });
5723    var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({
5724      'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url),
5725      'is-resized': !!width || !!height,
5726      'is-focused': isSelected
5727    }, "size-".concat(sizeSlug), sizeSlug)); // Focussing the image caption after inserting an image relies on the
5728    // component remounting. This needs to be fixed.
5729  
5730    var key = !!url;
5731    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["__experimentalBlock"].figure, {
5732      ref: ref,
5733      className: classes,
5734      key: key
5735    }, url && Object(external_this_wp_element_["createElement"])(Image, {
5736      attributes: attributes,
5737      setAttributes: setAttributes,
5738      isSelected: isSelected,
5739      insertBlocksAfter: insertBlocksAfter,
5740      onReplace: onReplace,
5741      onSelectImage: onSelectImage,
5742      onSelectURL: onSelectURL,
5743      onUploadError: onUploadError,
5744      containerRef: ref
5745    }), mediaPlaceholder));
5746  }
5747  /* harmony default export */ var image_edit = (Object(external_this_wp_components_["withNotices"])(ImageEdit));
5748  
5749  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js
5750  
5751  
5752  
5753  /**
5754   * External dependencies
5755   */
5756  
5757  
5758  /**
5759   * WordPress dependencies
5760   */
5761  
5762  
5763  function image_save_save(_ref) {
5764    var _classnames;
5765  
5766    var attributes = _ref.attributes;
5767    var url = attributes.url,
5768        alt = attributes.alt,
5769        caption = attributes.caption,
5770        align = attributes.align,
5771        href = attributes.href,
5772        rel = attributes.rel,
5773        linkClass = attributes.linkClass,
5774        width = attributes.width,
5775        height = attributes.height,
5776        id = attributes.id,
5777        linkTarget = attributes.linkTarget,
5778        sizeSlug = attributes.sizeSlug,
5779        title = attributes.title;
5780    var newRel = Object(external_this_lodash_["isEmpty"])(rel) ? undefined : rel;
5781    var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "size-".concat(sizeSlug), sizeSlug), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames));
5782    var image = Object(external_this_wp_element_["createElement"])("img", {
5783      src: url,
5784      alt: alt,
5785      className: id ? "wp-image-".concat(id) : null,
5786      width: width,
5787      height: height,
5788      title: title
5789    });
5790    var figure = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, href ? Object(external_this_wp_element_["createElement"])("a", {
5791      className: linkClass,
5792      href: href,
5793      target: linkTarget,
5794      rel: newRel
5795    }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5796      tagName: "figcaption",
5797      value: caption
5798    }));
5799  
5800    if ('left' === align || 'right' === align || 'center' === align) {
5801      return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", {
5802        className: classes
5803      }, figure));
5804    }
5805  
5806    return Object(external_this_wp_element_["createElement"])("figure", {
5807      className: classes
5808    }, figure);
5809  }
5810  
5811  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js
5812  
5813  
5814  function transforms_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5815  
5816  function transforms_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { transforms_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { transforms_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5817  
5818  /**
5819   * WordPress dependencies
5820   */
5821  
5822  
5823  function stripFirstImage(attributes, _ref) {
5824    var shortcode = _ref.shortcode;
5825  
5826    var _document$implementat = document.implementation.createHTMLDocument(''),
5827        body = _document$implementat.body;
5828  
5829    body.innerHTML = shortcode.content;
5830    var nodeToRemove = body.querySelector('img'); // if an image has parents, find the topmost node to remove
5831  
5832    while (nodeToRemove && nodeToRemove.parentNode && nodeToRemove.parentNode !== body) {
5833      nodeToRemove = nodeToRemove.parentNode;
5834    }
5835  
5836    if (nodeToRemove) {
5837      nodeToRemove.parentNode.removeChild(nodeToRemove);
5838    }
5839  
5840    return body.innerHTML.trim();
5841  }
5842  
5843  function getFirstAnchorAttributeFormHTML(html, attributeName) {
5844    var _document$implementat2 = document.implementation.createHTMLDocument(''),
5845        body = _document$implementat2.body;
5846  
5847    body.innerHTML = html;
5848    var firstElementChild = body.firstElementChild;
5849  
5850    if (firstElementChild && firstElementChild.nodeName === 'A') {
5851      return firstElementChild.getAttribute(attributeName) || undefined;
5852    }
5853  }
5854  
5855  var imageSchema = {
5856    img: {
5857      attributes: ['src', 'alt', 'title'],
5858      classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/]
5859    }
5860  };
5861  
5862  var schema = function schema(_ref2) {
5863    var phrasingContentSchema = _ref2.phrasingContentSchema;
5864    return {
5865      figure: {
5866        require: ['img'],
5867        children: transforms_objectSpread({}, imageSchema, {
5868          a: {
5869            attributes: ['href', 'rel', 'target'],
5870            children: imageSchema
5871          },
5872          figcaption: {
5873            children: phrasingContentSchema
5874          }
5875        })
5876      }
5877    };
5878  };
5879  
5880  var image_transforms_transforms = {
5881    from: [{
5882      type: 'raw',
5883      isMatch: function isMatch(node) {
5884        return node.nodeName === 'FIGURE' && !!node.querySelector('img');
5885      },
5886      schema: schema,
5887      transform: function transform(node) {
5888        // Search both figure and image classes. Alignment could be
5889        // set on either. ID is set on the image.
5890        var className = node.className + ' ' + node.querySelector('img').className;
5891        var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className);
5892        var anchor = node.id === '' ? undefined : node.id;
5893        var align = alignMatches ? alignMatches[1] : undefined;
5894        var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className);
5895        var id = idMatches ? Number(idMatches[1]) : undefined;
5896        var anchorElement = node.querySelector('a');
5897        var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined;
5898        var href = anchorElement && anchorElement.href ? anchorElement.href : undefined;
5899        var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined;
5900        var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined;
5901        var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, {
5902          align: align,
5903          id: id,
5904          linkDestination: linkDestination,
5905          href: href,
5906          rel: rel,
5907          linkClass: linkClass,
5908          anchor: anchor
5909        });
5910        return Object(external_this_wp_blocks_["createBlock"])('core/image', attributes);
5911      }
5912    }, {
5913      type: 'files',
5914      isMatch: function isMatch(files) {
5915        return files.length === 1 && files[0].type.indexOf('image/') === 0;
5916      },
5917      transform: function transform(files) {
5918        var file = files[0]; // We don't need to upload the media directly here
5919        // It's already done as part of the `componentDidMount`
5920        // int the image block
5921  
5922        return Object(external_this_wp_blocks_["createBlock"])('core/image', {
5923          url: Object(external_this_wp_blob_["createBlobURL"])(file)
5924        });
5925      }
5926    }, {
5927      type: 'shortcode',
5928      tag: 'caption',
5929      attributes: {
5930        url: {
5931          type: 'string',
5932          source: 'attribute',
5933          attribute: 'src',
5934          selector: 'img'
5935        },
5936        alt: {
5937          type: 'string',
5938          source: 'attribute',
5939          attribute: 'alt',
5940          selector: 'img'
5941        },
5942        caption: {
5943          shortcode: stripFirstImage
5944        },
5945        href: {
5946          shortcode: function shortcode(attributes, _ref3) {
5947            var _shortcode = _ref3.shortcode;
5948            return getFirstAnchorAttributeFormHTML(_shortcode.content, 'href');
5949          }
5950        },
5951        rel: {
5952          shortcode: function shortcode(attributes, _ref4) {
5953            var _shortcode2 = _ref4.shortcode;
5954            return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'rel');
5955          }
5956        },
5957        linkClass: {
5958          shortcode: function shortcode(attributes, _ref5) {
5959            var _shortcode3 = _ref5.shortcode;
5960            return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'class');
5961          }
5962        },
5963        id: {
5964          type: 'number',
5965          shortcode: function shortcode(_ref6) {
5966            var id = _ref6.named.id;
5967  
5968            if (!id) {
5969              return;
5970            }
5971  
5972            return parseInt(id.replace('attachment_', ''), 10);
5973          }
5974        },
5975        align: {
5976          type: 'string',
5977          shortcode: function shortcode(_ref7) {
5978            var _ref7$named$align = _ref7.named.align,
5979                align = _ref7$named$align === void 0 ? 'alignnone' : _ref7$named$align;
5980            return align.replace('align', '');
5981          }
5982        }
5983      }
5984    }]
5985  };
5986  /* harmony default export */ var image_transforms = (image_transforms_transforms);
5987  
5988  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js
5989  /**
5990   * WordPress dependencies
5991   */
5992  
5993  
5994  /**
5995   * Internal dependencies
5996   */
5997  
5998  
5999  
6000  var image_metadata = {
6001    name: "core/image",
6002    category: "media",
6003    attributes: {
6004      align: {
6005        type: "string"
6006      },
6007      url: {
6008        type: "string",
6009        source: "attribute",
6010        selector: "img",
6011        attribute: "src"
6012      },
6013      alt: {
6014        type: "string",
6015        source: "attribute",
6016        selector: "img",
6017        attribute: "alt",
6018        "default": ""
6019      },
6020      caption: {
6021        type: "string",
6022        source: "html",
6023        selector: "figcaption"
6024      },
6025      title: {
6026        type: "string",
6027        source: "attribute",
6028        selector: "img",
6029        attribute: "title"
6030      },
6031      href: {
6032        type: "string",
6033        source: "attribute",
6034        selector: "figure > a",
6035        attribute: "href"
6036      },
6037      rel: {
6038        type: "string",
6039        source: "attribute",
6040        selector: "figure > a",
6041        attribute: "rel"
6042      },
6043      linkClass: {
6044        type: "string",
6045        source: "attribute",
6046        selector: "figure > a",
6047        attribute: "class"
6048      },
6049      id: {
6050        type: "number"
6051      },
6052      width: {
6053        type: "number"
6054      },
6055      height: {
6056        type: "number"
6057      },
6058      sizeSlug: {
6059        type: "string"
6060      },
6061      linkDestination: {
6062        type: "string",
6063        "default": "none"
6064      },
6065      linkTarget: {
6066        type: "string",
6067        source: "attribute",
6068        selector: "figure > a",
6069        attribute: "target"
6070      }
6071    },
6072    supports: {
6073      anchor: true,
6074      lightBlockWrapper: true
6075    }
6076  };
6077  
6078  
6079  var image_name = image_metadata.name;
6080  
6081  var image_settings = {
6082    title: Object(external_this_wp_i18n_["__"])('Image'),
6083    description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'),
6084    icon: library_image,
6085    keywords: ['img', // "img" is not translated as it is intended to reflect the HTML <img> tag.
6086    Object(external_this_wp_i18n_["__"])('photo')],
6087    example: {
6088      attributes: {
6089        sizeSlug: 'large',
6090        url: 'https://s.w.org/images/core/5.3/MtBlanc1.jpg',
6091        // translators: Caption accompanying an image of the Mont Blanc, which serves as an example for the Image block.
6092        caption: Object(external_this_wp_i18n_["__"])('Mont Blanc appears—still, snowy, and serene.')
6093      }
6094    },
6095    styles: [{
6096      name: 'default',
6097      label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
6098      isDefault: true
6099    }, {
6100      name: 'rounded',
6101      label: Object(external_this_wp_i18n_["_x"])('Rounded', 'block style')
6102    }],
6103    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
6104      var context = _ref.context;
6105  
6106      if (context === 'accessibility') {
6107        var caption = attributes.caption,
6108            alt = attributes.alt,
6109            url = attributes.url;
6110  
6111        if (!url) {
6112          return Object(external_this_wp_i18n_["__"])('Empty');
6113        }
6114  
6115        if (!alt) {
6116          return caption || '';
6117        } // This is intended to be read by a screen reader.
6118        // A period simply means a pause, no need to translate it.
6119  
6120  
6121        return alt + (caption ? '. ' + caption : '');
6122      }
6123    },
6124    getEditWrapperProps: function getEditWrapperProps(attributes) {
6125      return {
6126        'data-align': attributes.align
6127      };
6128    },
6129    transforms: image_transforms,
6130    edit: image_edit,
6131    save: image_save_save,
6132    deprecated: image_deprecated
6133  };
6134  
6135  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/heading.js
6136  
6137  
6138  /**
6139   * WordPress dependencies
6140   */
6141  
6142  var heading = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
6143    xmlns: "http://www.w3.org/2000/svg",
6144    viewBox: "0 0 24 24"
6145  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
6146    d: "M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"
6147  }));
6148  /* harmony default export */ var library_heading = (heading);
6149  
6150  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js
6151  
6152  
6153  
6154  function deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6155  
6156  function deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6157  
6158  /**
6159   * External dependencies
6160   */
6161  
6162  
6163  /**
6164   * WordPress dependencies
6165   */
6166  
6167  
6168  var blockSupports = {
6169    className: false,
6170    anchor: true
6171  };
6172  var heading_deprecated_blockAttributes = {
6173    align: {
6174      type: 'string'
6175    },
6176    content: {
6177      type: 'string',
6178      source: 'html',
6179      selector: 'h1,h2,h3,h4,h5,h6',
6180      default: ''
6181    },
6182    level: {
6183      type: 'number',
6184      default: 2
6185    },
6186    placeholder: {
6187      type: 'string'
6188    }
6189  };
6190  
6191  var deprecated_migrateCustomColors = function migrateCustomColors(attributes) {
6192    if (!attributes.customTextColor) {
6193      return attributes;
6194    }
6195  
6196    var style = {
6197      color: {
6198        text: attributes.customTextColor
6199      }
6200    };
6201    return deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['customTextColor']), {
6202      style: style
6203    });
6204  };
6205  
6206  var heading_deprecated_deprecated = [{
6207    supports: blockSupports,
6208    attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, {
6209      customTextColor: {
6210        type: 'string'
6211      },
6212      textColor: {
6213        type: 'string'
6214      }
6215    }),
6216    migrate: deprecated_migrateCustomColors,
6217    save: function save(_ref) {
6218      var _classnames;
6219  
6220      var attributes = _ref.attributes;
6221      var align = attributes.align,
6222          content = attributes.content,
6223          customTextColor = attributes.customTextColor,
6224          level = attributes.level,
6225          textColor = attributes.textColor;
6226      var tagName = 'h' + level;
6227      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
6228      var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor || customTextColor), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames));
6229      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6230        className: className ? className : undefined,
6231        tagName: tagName,
6232        style: {
6233          color: textClass ? undefined : customTextColor
6234        },
6235        value: content
6236      });
6237    }
6238  }, {
6239    attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, {
6240      customTextColor: {
6241        type: 'string'
6242      },
6243      textColor: {
6244        type: 'string'
6245      }
6246    }),
6247    migrate: deprecated_migrateCustomColors,
6248    save: function save(_ref2) {
6249      var _classnames2;
6250  
6251      var attributes = _ref2.attributes;
6252      var align = attributes.align,
6253          content = attributes.content,
6254          customTextColor = attributes.customTextColor,
6255          level = attributes.level,
6256          textColor = attributes.textColor;
6257      var tagName = 'h' + level;
6258      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
6259      var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, "has-text-align-".concat(align), align), _classnames2));
6260      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6261        className: className ? className : undefined,
6262        tagName: tagName,
6263        style: {
6264          color: textClass ? undefined : customTextColor
6265        },
6266        value: content
6267      });
6268    },
6269    supports: blockSupports
6270  }, {
6271    supports: blockSupports,
6272    attributes: deprecated_objectSpread({}, heading_deprecated_blockAttributes, {
6273      customTextColor: {
6274        type: 'string'
6275      },
6276      textColor: {
6277        type: 'string'
6278      }
6279    }),
6280    migrate: deprecated_migrateCustomColors,
6281    save: function save(_ref3) {
6282      var attributes = _ref3.attributes;
6283      var align = attributes.align,
6284          level = attributes.level,
6285          content = attributes.content,
6286          textColor = attributes.textColor,
6287          customTextColor = attributes.customTextColor;
6288      var tagName = 'h' + level;
6289      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
6290      var className = classnames_default()(Object(defineProperty["a" /* default */])({}, textClass, textClass));
6291      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6292        className: className ? className : undefined,
6293        tagName: tagName,
6294        style: {
6295          textAlign: align,
6296          color: textClass ? undefined : customTextColor
6297        },
6298        value: content
6299      });
6300    }
6301  }];
6302  /* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated);
6303  
6304  // EXTERNAL MODULE: external {"this":["wp","keycodes"]}
6305  var external_this_wp_keycodes_ = __webpack_require__(21);
6306  
6307  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js
6308  
6309  
6310  /**
6311   * WordPress dependencies
6312   */
6313  
6314  /** @typedef {import('@wordpress/element').WPComponent} WPComponent */
6315  
6316  /**
6317   * HeadingLevelIcon props.
6318   *
6319   * @typedef WPHeadingLevelIconProps
6320   *
6321   * @property {number}   level     The heading level to show an icon for.
6322   * @property {?boolean} isPressed Whether or not the icon should appear pressed; default: false.
6323   */
6324  
6325  /**
6326   * Heading level icon.
6327   *
6328   * @param {WPHeadingLevelIconProps} props Component props.
6329   *
6330   * @return {?WPComponent} The icon.
6331   */
6332  
6333  function HeadingLevelIcon(_ref) {
6334    var level = _ref.level,
6335        _ref$isPressed = _ref.isPressed,
6336        isPressed = _ref$isPressed === void 0 ? false : _ref$isPressed;
6337    var levelToPath = {
6338      1: 'M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z',
6339      2: 'M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z',
6340      3: 'M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z',
6341      4: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z',
6342      5: 'M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z',
6343      6: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z'
6344    };
6345  
6346    if (!levelToPath.hasOwnProperty(level)) {
6347      return null;
6348    }
6349  
6350    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
6351      width: "24",
6352      height: "24",
6353      viewBox: "0 0 20 20",
6354      xmlns: "http://www.w3.org/2000/svg",
6355      isPressed: isPressed
6356    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
6357      d: levelToPath[level]
6358    }));
6359  }
6360  
6361  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-dropdown.js
6362  
6363  
6364  /**
6365   * WordPress dependencies
6366   */
6367  
6368  
6369  
6370  /**
6371   * Internal dependencies
6372   */
6373  
6374  
6375  var HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
6376  var heading_level_dropdown_POPOVER_PROPS = {
6377    className: 'block-library-heading-level-dropdown',
6378    isAlternate: true
6379  };
6380  /** @typedef {import('@wordpress/element').WPComponent} WPComponent */
6381  
6382  /**
6383   * HeadingLevelDropdown props.
6384   *
6385   * @typedef WPHeadingLevelDropdownProps
6386   *
6387   * @property {number}                 selectedLevel The chosen heading level.
6388   * @property {(newValue:number)=>any} onChange      Callback to run when
6389   *                                                  toolbar value is changed.
6390   */
6391  
6392  /**
6393   * Dropdown for selecting a heading level (1 through 6).
6394   *
6395   * @param {WPHeadingLevelDropdownProps} props Component props.
6396   *
6397   * @return {WPComponent} The toolbar.
6398   */
6399  
6400  function HeadingLevelDropdown(_ref) {
6401    var selectedLevel = _ref.selectedLevel,
6402        onChange = _ref.onChange;
6403    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Dropdown"], {
6404      popoverProps: heading_level_dropdown_POPOVER_PROPS,
6405      renderToggle: function renderToggle(_ref2) {
6406        var onToggle = _ref2.onToggle,
6407            isOpen = _ref2.isOpen;
6408  
6409        var openOnArrowDown = function openOnArrowDown(event) {
6410          if (!isOpen && event.keyCode === external_this_wp_keycodes_["DOWN"]) {
6411            event.preventDefault();
6412            event.stopPropagation();
6413            onToggle();
6414          }
6415        };
6416  
6417        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], {
6418          "aria-expanded": isOpen,
6419          "aria-haspopup": "true",
6420          icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, {
6421            level: selectedLevel
6422          }),
6423          label: Object(external_this_wp_i18n_["__"])('Change heading level'),
6424          onClick: onToggle,
6425          onKeyDown: openOnArrowDown,
6426          showTooltip: true
6427        });
6428      },
6429      renderContent: function renderContent() {
6430        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], {
6431          className: "block-library-heading-level-toolbar",
6432          __experimentalAccessibilityLabel: Object(external_this_wp_i18n_["__"])('Change heading level')
6433        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], {
6434          isCollapsed: false,
6435          controls: HEADING_LEVELS.map(function (targetLevel) {
6436            var isActive = targetLevel === selectedLevel;
6437            return {
6438              icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, {
6439                level: targetLevel,
6440                isPressed: isActive
6441              }),
6442              title: Object(external_this_wp_i18n_["sprintf"])( // translators: %s: heading level e.g: "1", "2", "3"
6443              Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel),
6444              isActive: isActive,
6445              onClick: function onClick() {
6446                onChange(targetLevel);
6447              }
6448            };
6449          })
6450        }));
6451      }
6452    });
6453  }
6454  
6455  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js
6456  
6457  
6458  
6459  function heading_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6460  
6461  function heading_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { heading_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { heading_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6462  
6463  /**
6464   * External dependencies
6465   */
6466  
6467  /**
6468   * WordPress dependencies
6469   */
6470  
6471  
6472  
6473  
6474  
6475  /**
6476   * Internal dependencies
6477   */
6478  
6479  
6480  
6481  function HeadingEdit(_ref) {
6482    var attributes = _ref.attributes,
6483        setAttributes = _ref.setAttributes,
6484        mergeBlocks = _ref.mergeBlocks,
6485        onReplace = _ref.onReplace,
6486        mergedStyle = _ref.mergedStyle;
6487    var align = attributes.align,
6488        content = attributes.content,
6489        level = attributes.level,
6490        placeholder = attributes.placeholder;
6491    var tagName = 'h' + level;
6492    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarGroup"], null, Object(external_this_wp_element_["createElement"])(HeadingLevelDropdown, {
6493      selectedLevel: level,
6494      onChange: function onChange(newLevel) {
6495        return setAttributes({
6496          level: newLevel
6497        });
6498      }
6499    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
6500      value: align,
6501      onChange: function onChange(nextAlign) {
6502        setAttributes({
6503          align: nextAlign
6504        });
6505      }
6506    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
6507      identifier: "content",
6508      tagName: external_this_wp_blockEditor_["__experimentalBlock"][tagName],
6509      value: content,
6510      onChange: function onChange(value) {
6511        return setAttributes({
6512          content: value
6513        });
6514      },
6515      onMerge: mergeBlocks,
6516      onSplit: function onSplit(value) {
6517        if (!value) {
6518          return Object(external_this_wp_blocks_["createBlock"])('core/paragraph');
6519        }
6520  
6521        return Object(external_this_wp_blocks_["createBlock"])('core/heading', heading_edit_objectSpread({}, attributes, {
6522          content: value
6523        }));
6524      },
6525      onReplace: onReplace,
6526      onRemove: function onRemove() {
6527        return onReplace([]);
6528      },
6529      className: classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align)),
6530      placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'),
6531      textAlign: align,
6532      style: mergedStyle
6533    }));
6534  }
6535  
6536  /* harmony default export */ var heading_edit = (HeadingEdit);
6537  
6538  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/save.js
6539  
6540  
6541  
6542  /**
6543   * External dependencies
6544   */
6545  
6546  /**
6547   * WordPress dependencies
6548   */
6549  
6550  
6551  function heading_save_save(_ref) {
6552    var attributes = _ref.attributes;
6553    var align = attributes.align,
6554        content = attributes.content,
6555        level = attributes.level;
6556    var tagName = 'h' + level;
6557    var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
6558    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6559      className: className ? className : undefined,
6560      tagName: tagName,
6561      value: content
6562    });
6563  }
6564  
6565  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js
6566  /**
6567   * Given a node name string for a heading node, returns its numeric level.
6568   *
6569   * @param {string} nodeName Heading node name.
6570   *
6571   * @return {number} Heading level.
6572   */
6573  function getLevelFromHeadingNodeName(nodeName) {
6574    return Number(nodeName.substr(1));
6575  }
6576  
6577  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/transforms.js
6578  
6579  
6580  /**
6581   * WordPress dependencies
6582   */
6583  
6584  /**
6585   * Internal dependencies
6586   */
6587  
6588  
6589  var transforms_name$category$attrib = {
6590    name: "core/heading",
6591    category: "text",
6592    attributes: {
6593      align: {
6594        type: "string"
6595      },
6596      content: {
6597        type: "string",
6598        source: "html",
6599        selector: "h1,h2,h3,h4,h5,h6",
6600        "default": ""
6601      },
6602      level: {
6603        type: "number",
6604        "default": 2
6605      },
6606      placeholder: {
6607        type: "string"
6608      }
6609    },
6610    supports: {
6611      anchor: true,
6612      className: false,
6613      lightBlockWrapper: true,
6614      __experimentalColor: {
6615        linkColor: true
6616      },
6617      __experimentalFontSize: true,
6618      __experimentalLineHeight: true,
6619      __experimentalSelector: {
6620        "core/heading/h1": "h1",
6621        "core/heading/h2": "h2",
6622        "core/heading/h3": "h3",
6623        "core/heading/h4": "h4",
6624        "core/heading/h5": "h5",
6625        "core/heading/h6": "h6"
6626      },
6627      __unstablePasteTextInline: true
6628    }
6629  },
6630      heading_transforms_name = transforms_name$category$attrib.name;
6631  var heading_transforms_transforms = {
6632    from: [{
6633      type: 'block',
6634      blocks: ['core/paragraph'],
6635      transform: function transform(_ref) {
6636        var content = _ref.content,
6637            anchor = _ref.anchor;
6638        return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, {
6639          content: content,
6640          anchor: anchor
6641        });
6642      }
6643    }, {
6644      type: 'raw',
6645      selector: 'h1,h2,h3,h4,h5,h6',
6646      schema: function schema(_ref2) {
6647        var phrasingContentSchema = _ref2.phrasingContentSchema,
6648            isPaste = _ref2.isPaste;
6649        var schema = {
6650          children: phrasingContentSchema,
6651          attributes: isPaste ? [] : ['style', 'id']
6652        };
6653        return {
6654          h1: schema,
6655          h2: schema,
6656          h3: schema,
6657          h4: schema,
6658          h5: schema,
6659          h6: schema
6660        };
6661      },
6662      transform: function transform(node) {
6663        var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])(heading_transforms_name, node.outerHTML);
6664  
6665        var _ref3 = node.style || {},
6666            textAlign = _ref3.textAlign;
6667  
6668        attributes.level = getLevelFromHeadingNodeName(node.nodeName);
6669  
6670        if (textAlign === 'left' || textAlign === 'center' || textAlign === 'right') {
6671          attributes.align = textAlign;
6672        }
6673  
6674        return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, attributes);
6675      }
6676    }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) {
6677      return {
6678        type: 'prefix',
6679        prefix: Array(level + 1).join('#'),
6680        transform: function transform(content) {
6681          return Object(external_this_wp_blocks_["createBlock"])(heading_transforms_name, {
6682            level: level,
6683            content: content
6684          });
6685        }
6686      };
6687    }))),
6688    to: [{
6689      type: 'block',
6690      blocks: ['core/paragraph'],
6691      transform: function transform(_ref4) {
6692        var content = _ref4.content,
6693            anchor = _ref4.anchor;
6694        return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
6695          content: content,
6696          anchor: anchor
6697        });
6698      }
6699    }]
6700  };
6701  /* harmony default export */ var heading_transforms = (heading_transforms_transforms);
6702  
6703  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js
6704  /**
6705   * External dependencies
6706   */
6707  
6708  /**
6709   * WordPress dependencies
6710   */
6711  
6712  
6713  
6714  /**
6715   * Internal dependencies
6716   */
6717  
6718  
6719  
6720  var heading_metadata = {
6721    name: "core/heading",
6722    category: "text",
6723    attributes: {
6724      align: {
6725        type: "string"
6726      },
6727      content: {
6728        type: "string",
6729        source: "html",
6730        selector: "h1,h2,h3,h4,h5,h6",
6731        "default": ""
6732      },
6733      level: {
6734        type: "number",
6735        "default": 2
6736      },
6737      placeholder: {
6738        type: "string"
6739      }
6740    },
6741    supports: {
6742      anchor: true,
6743      className: false,
6744      lightBlockWrapper: true,
6745      __experimentalColor: {
6746        linkColor: true
6747      },
6748      __experimentalFontSize: true,
6749      __experimentalLineHeight: true,
6750      __experimentalSelector: {
6751        "core/heading/h1": "h1",
6752        "core/heading/h2": "h2",
6753        "core/heading/h3": "h3",
6754        "core/heading/h4": "h4",
6755        "core/heading/h5": "h5",
6756        "core/heading/h6": "h6"
6757      },
6758      __unstablePasteTextInline: true
6759    }
6760  };
6761  
6762  
6763  var heading_name = heading_metadata.name;
6764  
6765  var heading_settings = {
6766    title: Object(external_this_wp_i18n_["__"])('Heading'),
6767    description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'),
6768    icon: library_heading,
6769    keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')],
6770    example: {
6771      attributes: {
6772        content: Object(external_this_wp_i18n_["__"])('Code is Poetry'),
6773        level: 2
6774      }
6775    },
6776    __experimentalLabel: function __experimentalLabel(attributes, _ref) {
6777      var context = _ref.context;
6778  
6779      if (context === 'accessibility') {
6780        var content = attributes.content,
6781            level = attributes.level;
6782        return Object(external_this_lodash_["isEmpty"])(content) ? Object(external_this_wp_i18n_["sprintf"])(
6783        /* translators: accessibility text. %s: heading level. */
6784        Object(external_this_wp_i18n_["__"])('Level %s. Empty.'), level) : Object(external_this_wp_i18n_["sprintf"])(
6785        /* translators: accessibility text. 1: heading level. 2: heading content. */
6786        Object(external_this_wp_i18n_["__"])('Level %1$s. %2$s'), level, content);
6787      }
6788    },
6789    transforms: heading_transforms,
6790    deprecated: heading_deprecated,
6791    merge: function merge(attributes, attributesToMerge) {
6792      return {
6793        content: (attributes.content || '') + (attributesToMerge.content || '')
6794      };
6795    },
6796    edit: heading_edit,
6797    save: heading_save_save
6798  };
6799  
6800  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/quote.js
6801  
6802  
6803  /**
6804   * WordPress dependencies
6805   */
6806  
6807  var quote = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
6808    viewBox: "0 0 24 24",
6809    xmlns: "http://www.w3.org/2000/svg"
6810  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
6811    d: "M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"
6812  }));
6813  /* harmony default export */ var library_quote = (quote);
6814  
6815  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/deprecated.js
6816  
6817  
6818  
6819  function quote_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6820  
6821  function quote_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6822  
6823  /**
6824   * External dependencies
6825   */
6826  
6827  /**
6828   * WordPress dependencies
6829   */
6830  
6831  
6832  var quote_deprecated_blockAttributes = {
6833    value: {
6834      type: 'string',
6835      source: 'html',
6836      selector: 'blockquote',
6837      multiline: 'p',
6838      default: ''
6839    },
6840    citation: {
6841      type: 'string',
6842      source: 'html',
6843      selector: 'cite',
6844      default: ''
6845    },
6846    align: {
6847      type: 'string'
6848    }
6849  };
6850  var quote_deprecated_deprecated = [{
6851    attributes: quote_deprecated_blockAttributes,
6852    save: function save(_ref) {
6853      var attributes = _ref.attributes;
6854      var align = attributes.align,
6855          value = attributes.value,
6856          citation = attributes.citation;
6857      return Object(external_this_wp_element_["createElement"])("blockquote", {
6858        style: {
6859          textAlign: align ? align : null
6860        }
6861      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6862        multiline: true,
6863        value: value
6864      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6865        tagName: "cite",
6866        value: citation
6867      }));
6868    }
6869  }, {
6870    attributes: quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes, {
6871      style: {
6872        type: 'number',
6873        default: 1
6874      }
6875    }),
6876    migrate: function migrate(attributes) {
6877      if (attributes.style === 2) {
6878        return quote_deprecated_objectSpread({}, Object(external_this_lodash_["omit"])(attributes, ['style']), {
6879          className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large'
6880        });
6881      }
6882  
6883      return attributes;
6884    },
6885    save: function save(_ref2) {
6886      var attributes = _ref2.attributes;
6887      var align = attributes.align,
6888          value = attributes.value,
6889          citation = attributes.citation,
6890          style = attributes.style;
6891      return Object(external_this_wp_element_["createElement"])("blockquote", {
6892        className: style === 2 ? 'is-large' : '',
6893        style: {
6894          textAlign: align ? align : null
6895        }
6896      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6897        multiline: true,
6898        value: value
6899      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6900        tagName: "cite",
6901        value: citation
6902      }));
6903    }
6904  }, {
6905    attributes: quote_deprecated_objectSpread({}, quote_deprecated_blockAttributes, {
6906      citation: {
6907        type: 'string',
6908        source: 'html',
6909        selector: 'footer',
6910        default: ''
6911      },
6912      style: {
6913        type: 'number',
6914        default: 1
6915      }
6916    }),
6917    save: function save(_ref3) {
6918      var attributes = _ref3.attributes;
6919      var align = attributes.align,
6920          value = attributes.value,
6921          citation = attributes.citation,
6922          style = attributes.style;
6923      return Object(external_this_wp_element_["createElement"])("blockquote", {
6924        className: "blocks-quote-style-".concat(style),
6925        style: {
6926          textAlign: align ? align : null
6927        }
6928      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6929        multiline: true,
6930        value: value
6931      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6932        tagName: "footer",
6933        value: citation
6934      }));
6935    }
6936  }];
6937  /* harmony default export */ var quote_deprecated = (quote_deprecated_deprecated);
6938  
6939  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js
6940  
6941  
6942  
6943  function quote_edit_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
6944  
6945  function quote_edit_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_edit_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_edit_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6946  
6947  /**
6948   * External dependencies
6949   */
6950  
6951  /**
6952   * WordPress dependencies
6953   */
6954  
6955  
6956  
6957  
6958  
6959  function QuoteEdit(_ref) {
6960    var attributes = _ref.attributes,
6961        setAttributes = _ref.setAttributes,
6962        isSelected = _ref.isSelected,
6963        mergeBlocks = _ref.mergeBlocks,
6964        onReplace = _ref.onReplace,
6965        className = _ref.className,
6966        insertBlocksAfter = _ref.insertBlocksAfter;
6967    var align = attributes.align,
6968        value = attributes.value,
6969        citation = attributes.citation;
6970    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
6971      value: align,
6972      onChange: function onChange(nextAlign) {
6973        setAttributes({
6974          align: nextAlign
6975        });
6976      }
6977    })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], {
6978      className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align))
6979    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
6980      identifier: "value",
6981      multiline: true,
6982      value: value,
6983      onChange: function onChange(nextValue) {
6984        return setAttributes({
6985          value: nextValue
6986        });
6987      },
6988      onMerge: mergeBlocks,
6989      onRemove: function onRemove(forward) {
6990        var hasEmptyCitation = !citation || citation.length === 0;
6991  
6992        if (!forward && hasEmptyCitation) {
6993          onReplace([]);
6994        }
6995      },
6996      placeholder: // translators: placeholder text used for the quote
6997      Object(external_this_wp_i18n_["__"])('Write quote…'),
6998      onReplace: onReplace,
6999      onSplit: function onSplit(piece) {
7000        return Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_edit_objectSpread({}, attributes, {
7001          value: piece
7002        }));
7003      },
7004      __unstableOnSplitMiddle: function __unstableOnSplitMiddle() {
7005        return Object(external_this_wp_blocks_["createBlock"])('core/paragraph');
7006      },
7007      textAlign: align
7008    }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
7009      identifier: "citation",
7010      value: citation,
7011      onChange: function onChange(nextCitation) {
7012        return setAttributes({
7013          citation: nextCitation
7014        });
7015      },
7016      __unstableMobileNoFocusOnMount: true,
7017      placeholder: // translators: placeholder text used for the citation
7018      Object(external_this_wp_i18n_["__"])('Write citation…'),
7019      className: "wp-block-quote__citation",
7020      textAlign: align,
7021      __unstableOnSplitAtEnd: function __unstableOnSplitAtEnd() {
7022        return insertBlocksAfter(Object(external_this_wp_blocks_["createBlock"])('core/paragraph'));
7023      }
7024    })));
7025  }
7026  
7027  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/save.js
7028  
7029  
7030  
7031  /**
7032   * External dependencies
7033   */
7034  
7035  /**
7036   * WordPress dependencies
7037   */
7038  
7039  
7040  function quote_save_save(_ref) {
7041    var attributes = _ref.attributes;
7042    var align = attributes.align,
7043        value = attributes.value,
7044        citation = attributes.citation;
7045    var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
7046    return Object(external_this_wp_element_["createElement"])("blockquote", {
7047      className: className
7048    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7049      multiline: true,
7050      value: value
7051    }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7052      tagName: "cite",
7053      value: citation
7054    }));
7055  }
7056  
7057  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
7058  var objectWithoutProperties = __webpack_require__(15);
7059  
7060  // EXTERNAL MODULE: external {"this":["wp","richText"]}
7061  var external_this_wp_richText_ = __webpack_require__(25);
7062  
7063  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js
7064  
7065  
7066  
7067  
7068  function quote_transforms_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7069  
7070  function quote_transforms_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_transforms_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_transforms_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7071  
7072  /**
7073   * WordPress dependencies
7074   */
7075  
7076  
7077  var quote_transforms_transforms = {
7078    from: [{
7079      type: 'block',
7080      isMultiBlock: true,
7081      blocks: ['core/paragraph'],
7082      transform: function transform(attributes) {
7083        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
7084          value: Object(external_this_wp_richText_["toHTMLString"])({
7085            value: Object(external_this_wp_richText_["join"])(attributes.map(function (_ref) {
7086              var content = _ref.content;
7087              return Object(external_this_wp_richText_["create"])({
7088                html: content
7089              });
7090            }), "\u2028"),
7091            multilineTag: 'p'
7092          }),
7093          anchor: attributes.anchor
7094        });
7095      }
7096    }, {
7097      type: 'block',
7098      blocks: ['core/heading'],
7099      transform: function transform(_ref2) {
7100        var content = _ref2.content,
7101            anchor = _ref2.anchor;
7102        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
7103          value: "<p>".concat(content, "</p>"),
7104          anchor: anchor
7105        });
7106      }
7107    }, {
7108      type: 'block',
7109      blocks: ['core/pullquote'],
7110      transform: function transform(_ref3) {
7111        var value = _ref3.value,
7112            citation = _ref3.citation,
7113            anchor = _ref3.anchor;
7114        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
7115          value: value,
7116          citation: citation,
7117          anchor: anchor
7118        });
7119      }
7120    }, {
7121      type: 'prefix',
7122      prefix: '>',
7123      transform: function transform(content) {
7124        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
7125          value: "<p>".concat(content, "</p>")
7126        });
7127      }
7128    }, {
7129      type: 'raw',
7130      isMatch: function isMatch(node) {
7131        var isParagraphOrSingleCite = function () {
7132          var hasCitation = false;
7133          return function (child) {
7134            // Child is a paragraph.
7135            if (child.nodeName === 'P') {
7136              return true;
7137            } // Child is a cite and no other cite child exists before it.
7138  
7139  
7140            if (!hasCitation && child.nodeName === 'CITE') {
7141              hasCitation = true;
7142              return true;
7143            }
7144          };
7145        }();
7146  
7147        return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph
7148        // content with an optional cite child.
7149        Array.from(node.childNodes).every(isParagraphOrSingleCite);
7150      },
7151      schema: function schema(_ref4) {
7152        var phrasingContentSchema = _ref4.phrasingContentSchema;
7153        return {
7154          blockquote: {
7155            children: {
7156              p: {
7157                children: phrasingContentSchema
7158              },
7159              cite: {
7160                children: phrasingContentSchema
7161              }
7162            }
7163          }
7164        };
7165      }
7166    }],
7167    to: [{
7168      type: 'block',
7169      blocks: ['core/paragraph'],
7170      transform: function transform(_ref5) {
7171        var value = _ref5.value,
7172            citation = _ref5.citation;
7173        var paragraphs = [];
7174  
7175        if (value && value !== '<p></p>') {
7176          paragraphs.push.apply(paragraphs, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({
7177            html: value,
7178            multilineTag: 'p'
7179          }), "\u2028").map(function (piece) {
7180            return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
7181              content: Object(external_this_wp_richText_["toHTMLString"])({
7182                value: piece
7183              })
7184            });
7185          })));
7186        }
7187  
7188        if (citation && citation !== '<p></p>') {
7189          paragraphs.push(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
7190            content: citation
7191          }));
7192        }
7193  
7194        if (paragraphs.length === 0) {
7195          return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
7196            content: ''
7197          });
7198        }
7199  
7200        return paragraphs;
7201      }
7202    }, {
7203      type: 'block',
7204      blocks: ['core/heading'],
7205      transform: function transform(_ref6) {
7206        var value = _ref6.value,
7207            citation = _ref6.citation,
7208            attrs = Object(objectWithoutProperties["a" /* default */])(_ref6, ["value", "citation"]);
7209  
7210        // If there is no quote content, use the citation as the
7211        // content of the resulting heading. A nonexistent citation
7212        // will result in an empty heading.
7213        if (value === '<p></p>') {
7214          return Object(external_this_wp_blocks_["createBlock"])('core/heading', {
7215            content: citation
7216          });
7217        }
7218  
7219        var pieces = Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({
7220          html: value,
7221          multilineTag: 'p'
7222        }), "\u2028");
7223        var headingBlock = Object(external_this_wp_blocks_["createBlock"])('core/heading', {
7224          content: Object(external_this_wp_richText_["toHTMLString"])({
7225            value: pieces[0]
7226          })
7227        });
7228  
7229        if (!citation && pieces.length === 1) {
7230          return headingBlock;
7231        }
7232  
7233        var quotePieces = pieces.slice(1);
7234        var quoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/quote', quote_transforms_objectSpread({}, attrs, {
7235          citation: citation,
7236          value: Object(external_this_wp_richText_["toHTMLString"])({
7237            value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(),
7238            multilineTag: 'p'
7239          })
7240        }));
7241        return [headingBlock, quoteBlock];
7242      }
7243    }, {
7244      type: 'block',
7245      blocks: ['core/pullquote'],
7246      transform: function transform(_ref7) {
7247        var value = _ref7.value,
7248            citation = _ref7.citation,
7249            anchor = _ref7.anchor;
7250        return Object(external_this_wp_blocks_["createBlock"])('core/pullquote', {
7251          value: value,
7252          citation: citation,
7253          anchor: anchor
7254        });
7255      }
7256    }]
7257  };
7258  /* harmony default export */ var quote_transforms = (quote_transforms_transforms);
7259  
7260  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/index.js
7261  
7262  
7263  function quote_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7264  
7265  function quote_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { quote_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { quote_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7266  
7267  /**
7268   * WordPress dependencies
7269   */
7270  
7271  
7272  /**
7273   * Internal dependencies
7274   */
7275  
7276  
7277  
7278  var quote_metadata = {
7279    name: "core/quote",
7280    category: "text",
7281    attributes: {
7282      value: {
7283        type: "string",
7284        source: "html",
7285        selector: "blockquote",
7286        multiline: "p",
7287        "default": ""
7288      },
7289      citation: {
7290        type: "string",
7291        source: "html",
7292        selector: "cite",
7293        "default": ""
7294      },
7295      align: {
7296        type: "string"
7297      }
7298    },
7299    supports: {
7300      anchor: true
7301    }
7302  };
7303  
7304  
7305  var quote_name = quote_metadata.name;
7306  
7307  var quote_settings = {
7308    title: Object(external_this_wp_i18n_["__"])('Quote'),
7309    description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),
7310    icon: library_quote,
7311    keywords: [Object(external_this_wp_i18n_["__"])('blockquote'), Object(external_this_wp_i18n_["__"])('cite')],
7312    example: {
7313      attributes: {
7314        value: '<p>' + Object(external_this_wp_i18n_["__"])('In quoting others, we cite ourselves.') + '</p>',
7315        citation: 'Julio Cortázar',
7316        className: 'is-style-large'
7317      }
7318    },
7319    styles: [{
7320      name: 'default',
7321      label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
7322      isDefault: true
7323    }, {
7324      name: 'large',
7325      label: Object(external_this_wp_i18n_["_x"])('Large', 'block style')
7326    }],
7327    transforms: quote_transforms,
7328    edit: QuoteEdit,
7329    save: quote_save_save,
7330    merge: function merge(attributes, _ref) {
7331      var value = _ref.value,
7332          citation = _ref.citation;
7333  
7334      // Quote citations cannot be merged. Pick the second one unless it's
7335      // empty.
7336      if (!citation) {
7337        citation = attributes.citation;
7338      }
7339  
7340      if (!value || value === '<p></p>') {
7341        return quote_objectSpread({}, attributes, {
7342          citation: citation
7343        });
7344      }
7345  
7346      return quote_objectSpread({}, attributes, {
7347        value: attributes.value + value,
7348        citation: citation
7349      });
7350    },
7351    deprecated: quote_deprecated
7352  };
7353  
7354  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/gallery.js
7355  
7356  
7357  /**
7358   * WordPress dependencies
7359   */
7360  
7361  var gallery = Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["SVG"], {
7362    viewBox: "0 0 24 24",
7363    xmlns: "http://www.w3.org/2000/svg"
7364  }, Object(external_this_wp_element_["createElement"])(external_this_wp_primitives_["Path"], {
7365    d: "M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"
7366  }));
7367  /* harmony default export */ var library_gallery = (gallery);
7368  
7369  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared.js
7370  /**
7371   * External dependencies
7372   */
7373  
7374  function defaultColumnsNumber(attributes) {
7375    return Math.min(3, attributes.images.length);
7376  }
7377  var shared_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
7378    var sizeSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'large';
7379    var imageProps = Object(external_this_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']);
7380    imageProps.url = Object(external_this_lodash_["get"])(image, ['sizes', sizeSlug, 'url']) || Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', sizeSlug, 'source_url']) || image.url;
7381    var fullUrl = Object(external_this_lodash_["get"])(image, ['sizes', 'full', 'url']) || Object(external_this_lodash_["get"])(image, ['media_details', 'sizes', 'full', 'source_url']);
7382  
7383    if (fullUrl) {
7384      imageProps.fullUrl = fullUrl;
7385    }
7386  
7387    return imageProps;
7388  };
7389  
7390  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/deprecated.js
7391  
7392  
7393  
7394  function gallery_deprecated_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7395  
7396  function gallery_deprecated_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { gallery_deprecated_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { gallery_deprecated_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7397  
7398  /**
7399   * External dependencies
7400   */
7401  
7402  
7403  /**
7404   * WordPress dependencies
7405   */
7406  
7407  
7408  /**
7409   * Internal dependencies
7410   */
7411  
7412  
7413  var gallery_deprecated_deprecated = [{
7414    attributes: {
7415      images: {
7416        type: 'array',
7417        default: [],
7418        source: 'query',
7419        selector: '.blocks-gallery-item',
7420        query: {
7421          url: {
7422            source: 'attribute',
7423            selector: 'img',
7424            attribute: 'src'
7425          },
7426          fullUrl: {
7427            source: 'attribute',
7428            selector: 'img',
7429            attribute: 'data-full-url'
7430          },
7431          link: {
7432            source: 'attribute',
7433            selector: 'img',
7434            attribute: 'data-link'
7435          },
7436          alt: {
7437            source: 'attribute',
7438            selector: 'img',
7439            attribute: 'alt',
7440            default: ''
7441          },
7442          id: {
7443            source: 'attribute',
7444            selector: 'img',
7445            attribute: 'data-id'
7446          },
7447          caption: {
7448            type: 'string',
7449            source: 'html',
7450            selector: '.blocks-gallery-item__caption'
7451          }
7452        }
7453      },
7454      ids: {
7455        type: 'array',
7456        default: []
7457      },
7458      columns: {
7459        type: 'number'
7460      },
7461      caption: {
7462        type: 'string',
7463        source: 'html',
7464        selector: '.blocks-gallery-caption'
7465      },
7466      imageCrop: {
7467        type: 'boolean',
7468        default: true
7469      },
7470      linkTo: {
7471        type: 'string',
7472        default: 'none'
7473      }
7474    },
7475    supports: {
7476      align: true
7477    },
7478    isEligible: function isEligible(_ref) {
7479      var ids = _ref.ids;
7480      return ids && ids.some(function (id) {
7481        return typeof id === 'string';
7482      });
7483    },
7484    migrate: function migrate(attributes) {
7485      return gallery_deprecated_objectSpread({}, attributes, {
7486        ids: Object(external_this_lodash_["map"])(attributes.ids, function (id) {
7487          var parsedId = parseInt(id, 10);
7488          return Number.isInteger(parsedId) ? parsedId : null;
7489        })
7490      });
7491    },
7492    save: function save(_ref2) {
7493      var attributes = _ref2.attributes;
7494      var images = attributes.images,
7495          _attributes$columns = attributes.columns,
7496          columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
7497          imageCrop = attributes.imageCrop,
7498          caption = attributes.caption,
7499          linkTo = attributes.linkTo;
7500      return Object(external_this_wp_element_["createElement"])("figure", {
7501        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
7502      }, Object(external_this_wp_element_["createElement"])("ul", {
7503        className: "blocks-gallery-grid"
7504      }, images.map(function (image) {
7505        var href;
7506  
7507        switch (linkTo) {
7508          case 'media':
7509            href = image.fullUrl || image.url;
7510            break;
7511  
7512          case 'attachment':
7513            href = image.link;
7514            break;
7515        }
7516  
7517        var img = Object(external_this_wp_element_["createElement"])("img", {
7518          src: image.url,
7519          alt: image.alt,
7520          "data-id": image.id,
7521          "data-full-url": image.fullUrl,
7522          "data-link": image.link,
7523          className: image.id ? "wp-image-".concat(image.id) : null
7524        });
7525        return Object(external_this_wp_element_["createElement"])("li", {
7526          key: image.id || image.url,
7527          className: "blocks-gallery-item"
7528        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
7529          href: href
7530        }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(image.caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7531          tagName: "figcaption",
7532          className: "blocks-gallery-item__caption",
7533          value: image.caption
7534        })));
7535      })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7536        tagName: "figcaption",
7537        className: "blocks-gallery-caption",
7538        value: caption
7539      }));
7540    }
7541  }, {
7542    attributes: {
7543      images: {
7544        type: 'array',
7545        default: [],
7546        source: 'query',
7547        selector: 'ul.wp-block-gallery .blocks-gallery-item',
7548        query: {
7549          url: {
7550            source: 'attribute',
7551            selector: 'img',
7552            attribute: 'src'
7553          },
7554          fullUrl: {
7555            source: 'attribute',
7556            selector: 'img',
7557            attribute: 'data-full-url'
7558          },
7559          alt: {
7560            source: 'attribute',
7561            selector: 'img',
7562            attribute: 'alt',
7563            default: ''
7564          },
7565          id: {
7566            source: 'attribute',
7567            selector: 'img',
7568            attribute: 'data-id'
7569          },
7570          link: {
7571            source: 'attribute',
7572            selector: 'img',
7573            attribute: 'data-link'
7574          },
7575          caption: {
7576            type: 'array',
7577            source: 'children',
7578            selector: 'figcaption'
7579          }
7580        }
7581      },
7582      ids: {
7583        type: 'array',
7584        default: []
7585      },
7586      columns: {
7587        type: 'number'
7588      },
7589      imageCrop: {
7590        type: 'boolean',
7591        default: true
7592      },
7593      linkTo: {
7594        type: 'string',
7595        default: 'none'
7596      }
7597    },
7598    supports: {
7599      align: true
7600    },
7601    save: function save(_ref3) {
7602      var attributes = _ref3.attributes;
7603      var images = attributes.images,
7604          _attributes$columns2 = attributes.columns,
7605          columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2,
7606          imageCrop = attributes.imageCrop,
7607          linkTo = attributes.linkTo;
7608      return Object(external_this_wp_element_["createElement"])("ul", {
7609        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
7610      }, images.map(function (image) {
7611        var href;
7612  
7613        switch (linkTo) {
7614          case 'media':
7615            href = image.fullUrl || image.url;
7616            break;
7617  
7618          case 'attachment':
7619            href = image.link;
7620            break;
7621        }
7622  
7623        var img = Object(external_this_wp_element_["createElement"])("img", {
7624          src: image.url,
7625          alt: image.alt,
7626          "data-id": image.id,
7627          "data-full-url": image.fullUrl,
7628          "data-link": image.link,
7629          className: image.id ? "wp-image-".concat(image.id) : null
7630        });
7631        return Object(external_this_wp_element_["createElement"])("li", {
7632          key: image.id || image.url,
7633          className: "blocks-gallery-item"
7634        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
7635          href: href
7636        }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7637          tagName: "figcaption",
7638          value: image.caption
7639        })));
7640      }));
7641    }
7642  }, {
7643    attributes: {
7644      images: {
7645        type: 'array',
7646        default: [],
7647        source: 'query',
7648        selector: 'ul.wp-block-gallery .blocks-gallery-item',
7649        query: {
7650          url: {
7651            source: 'attribute',
7652            selector: 'img',
7653            attribute: 'src'
7654          },
7655          alt: {
7656            source: 'attribute',
7657            selector: 'img',
7658            attribute: 'alt',
7659            default: ''
7660          },
7661          id: {
7662            source: 'attribute',
7663            selector: 'img',
7664            attribute: 'data-id'
7665          },
7666          link: {
7667            source: 'attribute',
7668            selector: 'img',
7669            attribute: 'data-link'
7670          },
7671          caption: {
7672            type: 'array',
7673            source: 'children',
7674            selector: 'figcaption'
7675          }
7676        }
7677      },
7678      columns: {
7679        type: 'number'
7680      },
7681      imageCrop: {
7682        type: 'boolean',
7683        default: true
7684      },
7685      linkTo: {
7686        type: 'string',
7687        default: 'none'
7688      }
7689    },
7690    isEligible: function isEligible(_ref4) {
7691      var images = _ref4.images,
7692          ids = _ref4.ids;
7693      return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_this_lodash_["some"])(images, function (id, index) {
7694        if (!id && ids[index] !== null) {
7695          return true;
7696        }
7697  
7698        return parseInt(id, 10) !== ids[index];
7699      }));
7700    },
7701    migrate: function migrate(attributes) {
7702      return gallery_deprecated_objectSpread({}, attributes, {
7703        ids: Object(external_this_lodash_["map"])(attributes.images, function (_ref5) {
7704          var id = _ref5.id;
7705  
7706          if (!id) {
7707            return null;
7708          }
7709  
7710          return parseInt(id, 10);
7711        })
7712      });
7713    },
7714    supports: {
7715      align: true
7716    },
7717    save: function save(_ref6) {
7718      var attributes = _ref6.attributes;
7719      var images = attributes.images,
7720          _attributes$columns3 = attributes.columns,
7721          columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3,
7722          imageCrop = attributes.imageCrop,
7723          linkTo = attributes.linkTo;
7724      return Object(external_this_wp_element_["createElement"])("ul", {
7725        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
7726      }, images.map(function (image) {
7727        var href;
7728  
7729        switch (linkTo) {
7730          case 'media':
7731            href = image.url;
7732            break;
7733  
7734          case 'attachment':
7735            href = image.link;
7736            break;
7737        }
7738  
7739        var img = Object(external_this_wp_element_["createElement"])("img", {
7740          src: image.url,
7741          alt: image.alt,
7742          "data-id": image.id,
7743          "data-link": image.link,
7744          className: image.id ? "wp-image-".concat(image.id) : null
7745        });
7746        return Object(external_this_wp_element_["createElement"])("li", {
7747          key: image.id || image.url,
7748          className: "blocks-gallery-item"
7749        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
7750          href: href
7751        }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7752          tagName: "figcaption",
7753          value: image.caption
7754        })));
7755      }));
7756    }
7757  }, {
7758    attributes: {
7759      images: {
7760        type: 'array',
7761        default: [],
7762        source: 'query',
7763        selector: 'div.wp-block-gallery figure.blocks-gallery-image img',
7764        query: {
7765          url: {
7766            source: 'attribute',
7767            attribute: 'src'
7768          },
7769          alt: {
7770            source: 'attribute',
7771            attribute: 'alt',
7772            default: ''
7773          },
7774          id: {
7775            source: 'attribute',
7776            attribute: 'data-id'
7777          }
7778        }
7779      },
7780      columns: {
7781        type: 'number'
7782      },
7783      imageCrop: {
7784        type: 'boolean',
7785        default: true
7786      },
7787      linkTo: {
7788        type: 'string',
7789        default: 'none'
7790      },
7791      align: {
7792        type: 'string',
7793        default: 'none'
7794      }
7795    },
7796    supports: {
7797      align: true
7798    },
7799    save: function save(_ref7) {
7800      var attributes = _ref7.attributes;
7801      var images = attributes.images,
7802          _attributes$columns4 = attributes.columns,
7803          columns = _attributes$columns4 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns4,
7804          align = attributes.align,
7805          imageCrop = attributes.imageCrop,
7806          linkTo = attributes.linkTo;
7807      var className = classnames_default()("columns-".concat(columns), {
7808        alignnone: align === 'none',
7809        'is-cropped': imageCrop
7810      });
7811      return Object(external_this_wp_element_["createElement"])("div", {
7812        className: className
7813      }, images.map(function (image) {
7814        var href;
7815  
7816        switch (linkTo) {
7817          case 'media':
7818            href = image.url;
7819            break;
7820  
7821          case 'attachment':
7822            href = image.link;
7823            break;
7824        }
7825  
7826        var img = Object(external_this_wp_element_["createElement"])("img", {
7827          src: image.url,
7828          alt: image.alt,
7829          "data-id": image.id
7830        });
7831        return Object(external_this_wp_element_["createElement"])("figure", {
7832          key: image.id || image.url,
7833          className: "blocks-gallery-image"
7834        }, href ? Object(external_this_wp_element_["createElement"])("a", {
7835          href: href
7836        }, img) : img);
7837      }));
7838    }
7839  }];
7840  /* harmony default export */ var gallery_deprecated = (gallery_deprecated_deprecated);
7841  
7842  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
7843  var classCallCheck = __webpack_require__(20);
7844  
7845  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
7846  var createClass = __webpack_require__(19);
7847  
7848  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
7849  var assertThisInitialized = __webpack_require__(12);
7850  
7851  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
7852  var possibleConstructorReturn = __webpack_require__(23);
7853  
7854  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
7855  var getPrototypeOf = __webpack_require__(16);
7856  
7857  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
7858  var inherits = __webpack_require__(22);
7859  
7860  // EXTERNAL MODULE: external {"this":["wp","viewport"]}
7861  var external_this_wp_viewport_ = __webpack_require__(81);
7862  
7863  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared-icon.js
7864  
7865  
7866  /**
7867   * WordPress dependencies
7868   */
7869  
7870  
7871  var sharedIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
7872    icon: library_gallery
7873  });
7874  
7875  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
7876  var chevron_left = __webpack_require__(294);
7877  
7878  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
7879  var chevron_right = __webpack_require__(293);
7880  
7881  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js
7882  var library_edit = __webpack_require__(301);
7883  
7884  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
7885  var close_small = __webpack_require__(176);
7886  
7887  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js
7888  
7889  
7890  
7891  
7892  
7893  
7894  
7895  
7896  function _createSuper(Derived) { return function () { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
7897  
7898  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
7899  
7900  /**
7901   * External dependencies
7902   */
7903  
7904  
7905  /**
7906   * WordPress dependencies
7907   */
7908  
7909  
7910  
7911  
7912  
7913  
7914  
7915  
7916  
7917  
7918  /**
7919   * Internal dependencies
7920   */
7921  
7922  
7923  
7924  var gallery_image_isTemporaryImage = function isTemporaryImage(id, url) {
7925    return !id && Object(external_this_wp_blob_["isBlobURL"])(url);
7926  };
7927  
7928  var gallery_image_GalleryImage = /*#__PURE__*/function (_Component) {
7929    Object(inherits["a" /* default */])(GalleryImage, _Component);
7930  
7931    var _super = _createSuper(GalleryImage);
7932  
7933    function GalleryImage() {
7934      var _this;
7935  
7936      Object(classCallCheck["a" /* default */])(this, GalleryImage);
7937  
7938      _this = _super.apply(this, arguments);
7939      _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
7940      _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(_this));
7941      _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
7942      _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this));
7943      _this.onEdit = _this.onEdit.bind(Object(assertThisInitialized["a" /* default */])(_this));
7944      _this.onSelectImageFromLibrary = _this.onSelectImageFromLibrary.bind(Object(assertThisInitialized["a" /* default */])(_this));
7945      _this.onSelectCustomURL = _this.onSelectCustomURL.bind(Object(assertThisInitialized["a" /* default */])(_this));
7946      _this.state = {
7947        captionSelected: false,
7948        isEditing: false
7949      };
7950      return _this;
7951    }
7952  
7953    Object(createClass["a" /* default */])(GalleryImage, [{
7954      key: "bindContainer",
7955      value: function bindContainer(ref) {
7956        this.container = ref;
7957      }
7958    }, {
7959      key: "onSelectCaption",
7960      value: function onSelectCaption() {
7961        if (!this.state.captionSelected) {
7962          this.setState({
7963            captionSelected: true
7964          });
7965        }
7966  
7967        if (!this.props.isSelected) {
7968          this.props.onSelect();
7969        }
7970      }
7971    }, {
7972      key: "onSelectImage",
7973      value: function onSelectImage() {
7974        if (!this.props.isSelected) {
7975          this.props.onSelect();
7976        }
7977  
7978        if (this.state.captionSelected) {
7979          this.setState({
7980            captionSelected: false
7981          });
7982        }
7983      }
7984    }, {
7985      key: "onRemoveImage",
7986      value: function onRemoveImage(event) {
7987        if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) {
7988          event.stopPropagation();
7989          event.preventDefault();
7990          this.props.onRemove();
7991        }
7992      }
7993    }, {
7994      key: "onEdit",
7995      value: function onEdit() {
7996        this.setState({
7997          isEditing: true
7998        });
7999      }
8000    }, {
8001      key: "componentDidUpdate",
8002      value: function componentDidUpdate(prevProps) {
8003        var _this$props = this.props,
8004            isSelected = _this$props.isSelected,
8005            image = _this$props.image,
8006            url = _this$props.url,
8007            __unstableMarkNextChangeAsNotPersistent = _this$props.__unstableMarkNextChangeAsNotPersistent;
8008  
8009        if (image && !url) {
8010          __unstableMarkNextChangeAsNotPersistent();
8011  
8012          this.props.setAttributes({
8013            url: image.source_url,
8014            alt: image.alt_text
8015          });
8016        } // unselect the caption so when the user selects other image and comeback
8017        // the caption is not immediately selected
8018  
8019  
8020        if (this.state.captionSelected && !isSelected && prevProps.isSelected) {
8021          this.setState({
8022            captionSelected: false
8023          });
8024        }
8025      }
8026    }, {
8027      key: "deselectOnBlur",
8028      value: function deselectOnBlur() {
8029        this.props.onDeselect();
8030      }
8031    }, {
8032      key: "onSelectImageFromLibrary",
8033      value: function onSelectImageFromLibrary(media) {
8034        var _this$props2 = this.props,
8035            setAttributes = _this$props2.setAttributes,
8036            id = _this$props2.id,
8037            url = _this$props2.url,
8038            alt = _this$props2.alt,
8039            caption = _this$props2.caption,
8040            sizeSlug = _this$props2.sizeSlug;
8041  
8042        if (!media || !media.url) {
8043          return;
8044        }
8045  
8046        var mediaAttributes = shared_pickRelevantMediaFiles(media, sizeSlug); // If the current image is temporary but an alt text was meanwhile
8047        // written by the user, make sure the text is not overwritten.
8048  
8049        if (gallery_image_isTemporaryImage(id, url)) {
8050          if (alt) {
8051            mediaAttributes = Object(external_this_lodash_["omit"])(mediaAttributes, ['alt']);
8052          }
8053        } // If a caption text was meanwhile written by the user,
8054        // make sure the text is not overwritten by empty captions.
8055  
8056  
8057        if (caption && !Object(external_this_lodash_["get"])(mediaAttributes, ['caption'])) {
8058          mediaAttributes =