[ 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 = 341);
  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, __webpack_exports__, __webpack_require__) {
 106  
 107  "use strict";
 108  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
 109  function _defineProperty(obj, key, value) {
 110    if (key in obj) {
 111      Object.defineProperty(obj, key, {
 112        value: value,
 113        enumerable: true,
 114        configurable: true,
 115        writable: true
 116      });
 117    } else {
 118      obj[key] = value;
 119    }
 120  
 121    return obj;
 122  }
 123  
 124  /***/ }),
 125  
 126  /***/ 11:
 127  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 128  
 129  "use strict";
 130  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
 131  function _defineProperties(target, props) {
 132    for (var i = 0; i < props.length; i++) {
 133      var descriptor = props[i];
 134      descriptor.enumerable = descriptor.enumerable || false;
 135      descriptor.configurable = true;
 136      if ("value" in descriptor) descriptor.writable = true;
 137      Object.defineProperty(target, descriptor.key, descriptor);
 138    }
 139  }
 140  
 141  function _createClass(Constructor, protoProps, staticProps) {
 142    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
 143    if (staticProps) _defineProperties(Constructor, staticProps);
 144    return Constructor;
 145  }
 146  
 147  /***/ }),
 148  
 149  /***/ 12:
 150  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 151  
 152  "use strict";
 153  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
 154  function _classCallCheck(instance, Constructor) {
 155    if (!(instance instanceof Constructor)) {
 156      throw new TypeError("Cannot call a class as a function");
 157    }
 158  }
 159  
 160  /***/ }),
 161  
 162  /***/ 123:
 163  /***/ (function(module, exports, __webpack_require__) {
 164  
 165  /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */
 166  ;(function(root) {
 167  
 168      /** Detect free variables */
 169      var freeExports =  true && exports &&
 170          !exports.nodeType && exports;
 171      var freeModule =  true && module &&
 172          !module.nodeType && module;
 173      var freeGlobal = typeof global == 'object' && global;
 174      if (
 175          freeGlobal.global === freeGlobal ||
 176          freeGlobal.window === freeGlobal ||
 177          freeGlobal.self === freeGlobal
 178      ) {
 179          root = freeGlobal;
 180      }
 181  
 182      /**
 183       * The `punycode` object.
 184       * @name punycode
 185       * @type Object
 186       */
 187      var punycode,
 188  
 189      /** Highest positive signed 32-bit float value */
 190      maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
 191  
 192      /** Bootstring parameters */
 193      base = 36,
 194      tMin = 1,
 195      tMax = 26,
 196      skew = 38,
 197      damp = 700,
 198      initialBias = 72,
 199      initialN = 128, // 0x80
 200      delimiter = '-', // '\x2D'
 201  
 202      /** Regular expressions */
 203      regexPunycode = /^xn--/,
 204      regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
 205      regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
 206  
 207      /** Error messages */
 208      errors = {
 209          'overflow': 'Overflow: input needs wider integers to process',
 210          'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
 211          'invalid-input': 'Invalid input'
 212      },
 213  
 214      /** Convenience shortcuts */
 215      baseMinusTMin = base - tMin,
 216      floor = Math.floor,
 217      stringFromCharCode = String.fromCharCode,
 218  
 219      /** Temporary variable */
 220      key;
 221  
 222      /*--------------------------------------------------------------------------*/
 223  
 224      /**
 225       * A generic error utility function.
 226       * @private
 227       * @param {String} type The error type.
 228       * @returns {Error} Throws a `RangeError` with the applicable error message.
 229       */
 230  	function error(type) {
 231          throw RangeError(errors[type]);
 232      }
 233  
 234      /**
 235       * A generic `Array#map` utility function.
 236       * @private
 237       * @param {Array} array The array to iterate over.
 238       * @param {Function} callback The function that gets called for every array
 239       * item.
 240       * @returns {Array} A new array of values returned by the callback function.
 241       */
 242  	function map(array, fn) {
 243          var length = array.length;
 244          var result = [];
 245          while (length--) {
 246              result[length] = fn(array[length]);
 247          }
 248          return result;
 249      }
 250  
 251      /**
 252       * A simple `Array#map`-like wrapper to work with domain name strings or email
 253       * addresses.
 254       * @private
 255       * @param {String} domain The domain name or email address.
 256       * @param {Function} callback The function that gets called for every
 257       * character.
 258       * @returns {Array} A new string of characters returned by the callback
 259       * function.
 260       */
 261  	function mapDomain(string, fn) {
 262          var parts = string.split('@');
 263          var result = '';
 264          if (parts.length > 1) {
 265              // In email addresses, only the domain name should be punycoded. Leave
 266              // the local part (i.e. everything up to `@`) intact.
 267              result = parts[0] + '@';
 268              string = parts[1];
 269          }
 270          // Avoid `split(regex)` for IE8 compatibility. See #17.
 271          string = string.replace(regexSeparators, '\x2E');
 272          var labels = string.split('.');
 273          var encoded = map(labels, fn).join('.');
 274          return result + encoded;
 275      }
 276  
 277      /**
 278       * Creates an array containing the numeric code points of each Unicode
 279       * character in the string. While JavaScript uses UCS-2 internally,
 280       * this function will convert a pair of surrogate halves (each of which
 281       * UCS-2 exposes as separate characters) into a single code point,
 282       * matching UTF-16.
 283       * @see `punycode.ucs2.encode`
 284       * @see <https://mathiasbynens.be/notes/javascript-encoding>
 285       * @memberOf punycode.ucs2
 286       * @name decode
 287       * @param {String} string The Unicode input string (UCS-2).
 288       * @returns {Array} The new array of code points.
 289       */
 290  	function ucs2decode(string) {
 291          var output = [],
 292              counter = 0,
 293              length = string.length,
 294              value,
 295              extra;
 296          while (counter < length) {
 297              value = string.charCodeAt(counter++);
 298              if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
 299                  // high surrogate, and there is a next character
 300                  extra = string.charCodeAt(counter++);
 301                  if ((extra & 0xFC00) == 0xDC00) { // low surrogate
 302                      output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
 303                  } else {
 304                      // unmatched surrogate; only append this code unit, in case the next
 305                      // code unit is the high surrogate of a surrogate pair
 306                      output.push(value);
 307                      counter--;
 308                  }
 309              } else {
 310                  output.push(value);
 311              }
 312          }
 313          return output;
 314      }
 315  
 316      /**
 317       * Creates a string based on an array of numeric code points.
 318       * @see `punycode.ucs2.decode`
 319       * @memberOf punycode.ucs2
 320       * @name encode
 321       * @param {Array} codePoints The array of numeric code points.
 322       * @returns {String} The new Unicode string (UCS-2).
 323       */
 324  	function ucs2encode(array) {
 325          return map(array, function(value) {
 326              var output = '';
 327              if (value > 0xFFFF) {
 328                  value -= 0x10000;
 329                  output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
 330                  value = 0xDC00 | value & 0x3FF;
 331              }
 332              output += stringFromCharCode(value);
 333              return output;
 334          }).join('');
 335      }
 336  
 337      /**
 338       * Converts a basic code point into a digit/integer.
 339       * @see `digitToBasic()`
 340       * @private
 341       * @param {Number} codePoint The basic numeric code point value.
 342       * @returns {Number} The numeric value of a basic code point (for use in
 343       * representing integers) in the range `0` to `base - 1`, or `base` if
 344       * the code point does not represent a value.
 345       */
 346  	function basicToDigit(codePoint) {
 347          if (codePoint - 48 < 10) {
 348              return codePoint - 22;
 349          }
 350          if (codePoint - 65 < 26) {
 351              return codePoint - 65;
 352          }
 353          if (codePoint - 97 < 26) {
 354              return codePoint - 97;
 355          }
 356          return base;
 357      }
 358  
 359      /**
 360       * Converts a digit/integer into a basic code point.
 361       * @see `basicToDigit()`
 362       * @private
 363       * @param {Number} digit The numeric value of a basic code point.
 364       * @returns {Number} The basic code point whose value (when used for
 365       * representing integers) is `digit`, which needs to be in the range
 366       * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
 367       * used; else, the lowercase form is used. The behavior is undefined
 368       * if `flag` is non-zero and `digit` has no uppercase form.
 369       */
 370  	function digitToBasic(digit, flag) {
 371          //  0..25 map to ASCII a..z or A..Z
 372          // 26..35 map to ASCII 0..9
 373          return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
 374      }
 375  
 376      /**
 377       * Bias adaptation function as per section 3.4 of RFC 3492.
 378       * http://tools.ietf.org/html/rfc3492#section-3.4
 379       * @private
 380       */
 381  	function adapt(delta, numPoints, firstTime) {
 382          var k = 0;
 383          delta = firstTime ? floor(delta / damp) : delta >> 1;
 384          delta += floor(delta / numPoints);
 385          for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
 386              delta = floor(delta / baseMinusTMin);
 387          }
 388          return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
 389      }
 390  
 391      /**
 392       * Converts a Punycode string of ASCII-only symbols to a string of Unicode
 393       * symbols.
 394       * @memberOf punycode
 395       * @param {String} input The Punycode string of ASCII-only symbols.
 396       * @returns {String} The resulting string of Unicode symbols.
 397       */
 398  	function decode(input) {
 399          // Don't use UCS-2
 400          var output = [],
 401              inputLength = input.length,
 402              out,
 403              i = 0,
 404              n = initialN,
 405              bias = initialBias,
 406              basic,
 407              j,
 408              index,
 409              oldi,
 410              w,
 411              k,
 412              digit,
 413              t,
 414              /** Cached calculation results */
 415              baseMinusT;
 416  
 417          // Handle the basic code points: let `basic` be the number of input code
 418          // points before the last delimiter, or `0` if there is none, then copy
 419          // the first basic code points to the output.
 420  
 421          basic = input.lastIndexOf(delimiter);
 422          if (basic < 0) {
 423              basic = 0;
 424          }
 425  
 426          for (j = 0; j < basic; ++j) {
 427              // if it's not a basic code point
 428              if (input.charCodeAt(j) >= 0x80) {
 429                  error('not-basic');
 430              }
 431              output.push(input.charCodeAt(j));
 432          }
 433  
 434          // Main decoding loop: start just after the last delimiter if any basic code
 435          // points were copied; start at the beginning otherwise.
 436  
 437          for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
 438  
 439              // `index` is the index of the next character to be consumed.
 440              // Decode a generalized variable-length integer into `delta`,
 441              // which gets added to `i`. The overflow checking is easier
 442              // if we increase `i` as we go, then subtract off its starting
 443              // value at the end to obtain `delta`.
 444              for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
 445  
 446                  if (index >= inputLength) {
 447                      error('invalid-input');
 448                  }
 449  
 450                  digit = basicToDigit(input.charCodeAt(index++));
 451  
 452                  if (digit >= base || digit > floor((maxInt - i) / w)) {
 453                      error('overflow');
 454                  }
 455  
 456                  i += digit * w;
 457                  t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
 458  
 459                  if (digit < t) {
 460                      break;
 461                  }
 462  
 463                  baseMinusT = base - t;
 464                  if (w > floor(maxInt / baseMinusT)) {
 465                      error('overflow');
 466                  }
 467  
 468                  w *= baseMinusT;
 469  
 470              }
 471  
 472              out = output.length + 1;
 473              bias = adapt(i - oldi, out, oldi == 0);
 474  
 475              // `i` was supposed to wrap around from `out` to `0`,
 476              // incrementing `n` each time, so we'll fix that now:
 477              if (floor(i / out) > maxInt - n) {
 478                  error('overflow');
 479              }
 480  
 481              n += floor(i / out);
 482              i %= out;
 483  
 484              // Insert `n` at position `i` of the output
 485              output.splice(i++, 0, n);
 486  
 487          }
 488  
 489          return ucs2encode(output);
 490      }
 491  
 492      /**
 493       * Converts a string of Unicode symbols (e.g. a domain name label) to a
 494       * Punycode string of ASCII-only symbols.
 495       * @memberOf punycode
 496       * @param {String} input The string of Unicode symbols.
 497       * @returns {String} The resulting Punycode string of ASCII-only symbols.
 498       */
 499  	function encode(input) {
 500          var n,
 501              delta,
 502              handledCPCount,
 503              basicLength,
 504              bias,
 505              j,
 506              m,
 507              q,
 508              k,
 509              t,
 510              currentValue,
 511              output = [],
 512              /** `inputLength` will hold the number of code points in `input`. */
 513              inputLength,
 514              /** Cached calculation results */
 515              handledCPCountPlusOne,
 516              baseMinusT,
 517              qMinusT;
 518  
 519          // Convert the input in UCS-2 to Unicode
 520          input = ucs2decode(input);
 521  
 522          // Cache the length
 523          inputLength = input.length;
 524  
 525          // Initialize the state
 526          n = initialN;
 527          delta = 0;
 528          bias = initialBias;
 529  
 530          // Handle the basic code points
 531          for (j = 0; j < inputLength; ++j) {
 532              currentValue = input[j];
 533              if (currentValue < 0x80) {
 534                  output.push(stringFromCharCode(currentValue));
 535              }
 536          }
 537  
 538          handledCPCount = basicLength = output.length;
 539  
 540          // `handledCPCount` is the number of code points that have been handled;
 541          // `basicLength` is the number of basic code points.
 542  
 543          // Finish the basic string - if it is not empty - with a delimiter
 544          if (basicLength) {
 545              output.push(delimiter);
 546          }
 547  
 548          // Main encoding loop:
 549          while (handledCPCount < inputLength) {
 550  
 551              // All non-basic code points < n have been handled already. Find the next
 552              // larger one:
 553              for (m = maxInt, j = 0; j < inputLength; ++j) {
 554                  currentValue = input[j];
 555                  if (currentValue >= n && currentValue < m) {
 556                      m = currentValue;
 557                  }
 558              }
 559  
 560              // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
 561              // but guard against overflow
 562              handledCPCountPlusOne = handledCPCount + 1;
 563              if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
 564                  error('overflow');
 565              }
 566  
 567              delta += (m - n) * handledCPCountPlusOne;
 568              n = m;
 569  
 570              for (j = 0; j < inputLength; ++j) {
 571                  currentValue = input[j];
 572  
 573                  if (currentValue < n && ++delta > maxInt) {
 574                      error('overflow');
 575                  }
 576  
 577                  if (currentValue == n) {
 578                      // Represent delta as a generalized variable-length integer
 579                      for (q = delta, k = base; /* no condition */; k += base) {
 580                          t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
 581                          if (q < t) {
 582                              break;
 583                          }
 584                          qMinusT = q - t;
 585                          baseMinusT = base - t;
 586                          output.push(
 587                              stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
 588                          );
 589                          q = floor(qMinusT / baseMinusT);
 590                      }
 591  
 592                      output.push(stringFromCharCode(digitToBasic(q, 0)));
 593                      bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
 594                      delta = 0;
 595                      ++handledCPCount;
 596                  }
 597              }
 598  
 599              ++delta;
 600              ++n;
 601  
 602          }
 603          return output.join('');
 604      }
 605  
 606      /**
 607       * Converts a Punycode string representing a domain name or an email address
 608       * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
 609       * it doesn't matter if you call it on a string that has already been
 610       * converted to Unicode.
 611       * @memberOf punycode
 612       * @param {String} input The Punycoded domain name or email address to
 613       * convert to Unicode.
 614       * @returns {String} The Unicode representation of the given Punycode
 615       * string.
 616       */
 617  	function toUnicode(input) {
 618          return mapDomain(input, function(string) {
 619              return regexPunycode.test(string)
 620                  ? decode(string.slice(4).toLowerCase())
 621                  : string;
 622          });
 623      }
 624  
 625      /**
 626       * Converts a Unicode string representing a domain name or an email address to
 627       * Punycode. Only the non-ASCII parts of the domain name will be converted,
 628       * i.e. it doesn't matter if you call it with a domain that's already in
 629       * ASCII.
 630       * @memberOf punycode
 631       * @param {String} input The domain name or email address to convert, as a
 632       * Unicode string.
 633       * @returns {String} The Punycode representation of the given domain name or
 634       * email address.
 635       */
 636  	function toASCII(input) {
 637          return mapDomain(input, function(string) {
 638              return regexNonASCII.test(string)
 639                  ? 'xn--' + encode(string)
 640                  : string;
 641          });
 642      }
 643  
 644      /*--------------------------------------------------------------------------*/
 645  
 646      /** Define the public API */
 647      punycode = {
 648          /**
 649           * A string representing the current Punycode.js version number.
 650           * @memberOf punycode
 651           * @type String
 652           */
 653          'version': '1.3.2',
 654          /**
 655           * An object of methods to convert from JavaScript's internal character
 656           * representation (UCS-2) to Unicode code points, and back.
 657           * @see <https://mathiasbynens.be/notes/javascript-encoding>
 658           * @memberOf punycode
 659           * @type Object
 660           */
 661          'ucs2': {
 662              'decode': ucs2decode,
 663              'encode': ucs2encode
 664          },
 665          'decode': decode,
 666          'encode': encode,
 667          'toASCII': toASCII,
 668          'toUnicode': toUnicode
 669      };
 670  
 671      /** Expose `punycode` */
 672      // Some AMD build optimizers, like r.js, check for specific condition patterns
 673      // like the following:
 674      if (
 675          true
 676      ) {
 677          !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
 678              return punycode;
 679          }).call(exports, __webpack_require__, exports, module),
 680                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 681      } else {}
 682  
 683  }(this));
 684  
 685  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(124)(module), __webpack_require__(65)))
 686  
 687  /***/ }),
 688  
 689  /***/ 124:
 690  /***/ (function(module, exports) {
 691  
 692  module.exports = function(module) {
 693      if (!module.webpackPolyfill) {
 694          module.deprecate = function() {};
 695          module.paths = [];
 696          // module.parent = undefined by default
 697          if (!module.children) module.children = [];
 698          Object.defineProperty(module, "loaded", {
 699              enumerable: true,
 700              get: function() {
 701                  return module.l;
 702              }
 703          });
 704          Object.defineProperty(module, "id", {
 705              enumerable: true,
 706              get: function() {
 707                  return module.i;
 708              }
 709          });
 710          module.webpackPolyfill = 1;
 711      }
 712      return module;
 713  };
 714  
 715  
 716  /***/ }),
 717  
 718  /***/ 125:
 719  /***/ (function(module, exports, __webpack_require__) {
 720  
 721  "use strict";
 722  
 723  
 724  module.exports = {
 725    isString: function(arg) {
 726      return typeof(arg) === 'string';
 727    },
 728    isObject: function(arg) {
 729      return typeof(arg) === 'object' && arg !== null;
 730    },
 731    isNull: function(arg) {
 732      return arg === null;
 733    },
 734    isNullOrUndefined: function(arg) {
 735      return arg == null;
 736    }
 737  };
 738  
 739  
 740  /***/ }),
 741  
 742  /***/ 126:
 743  /***/ (function(module, exports, __webpack_require__) {
 744  
 745  "use strict";
 746  
 747  
 748  exports.decode = exports.parse = __webpack_require__(127);
 749  exports.encode = exports.stringify = __webpack_require__(128);
 750  
 751  
 752  /***/ }),
 753  
 754  /***/ 127:
 755  /***/ (function(module, exports, __webpack_require__) {
 756  
 757  "use strict";
 758  // Copyright Joyent, Inc. and other Node contributors.
 759  //
 760  // Permission is hereby granted, free of charge, to any person obtaining a
 761  // copy of this software and associated documentation files (the
 762  // "Software"), to deal in the Software without restriction, including
 763  // without limitation the rights to use, copy, modify, merge, publish,
 764  // distribute, sublicense, and/or sell copies of the Software, and to permit
 765  // persons to whom the Software is furnished to do so, subject to the
 766  // following conditions:
 767  //
 768  // The above copyright notice and this permission notice shall be included
 769  // in all copies or substantial portions of the Software.
 770  //
 771  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 772  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 773  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
 774  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 775  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 776  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 777  // USE OR OTHER DEALINGS IN THE SOFTWARE.
 778  
 779  
 780  
 781  // If obj.hasOwnProperty has been overridden, then calling
 782  // obj.hasOwnProperty(prop) will break.
 783  // See: https://github.com/joyent/node/issues/1707
 784  function hasOwnProperty(obj, prop) {
 785    return Object.prototype.hasOwnProperty.call(obj, prop);
 786  }
 787  
 788  module.exports = function(qs, sep, eq, options) {
 789    sep = sep || '&';
 790    eq = eq || '=';
 791    var obj = {};
 792  
 793    if (typeof qs !== 'string' || qs.length === 0) {
 794      return obj;
 795    }
 796  
 797    var regexp = /\+/g;
 798    qs = qs.split(sep);
 799  
 800    var maxKeys = 1000;
 801    if (options && typeof options.maxKeys === 'number') {
 802      maxKeys = options.maxKeys;
 803    }
 804  
 805    var len = qs.length;
 806    // maxKeys <= 0 means that we should not limit keys count
 807    if (maxKeys > 0 && len > maxKeys) {
 808      len = maxKeys;
 809    }
 810  
 811    for (var i = 0; i < len; ++i) {
 812      var x = qs[i].replace(regexp, '%20'),
 813          idx = x.indexOf(eq),
 814          kstr, vstr, k, v;
 815  
 816      if (idx >= 0) {
 817        kstr = x.substr(0, idx);
 818        vstr = x.substr(idx + 1);
 819      } else {
 820        kstr = x;
 821        vstr = '';
 822      }
 823  
 824      k = decodeURIComponent(kstr);
 825      v = decodeURIComponent(vstr);
 826  
 827      if (!hasOwnProperty(obj, k)) {
 828        obj[k] = v;
 829      } else if (isArray(obj[k])) {
 830        obj[k].push(v);
 831      } else {
 832        obj[k] = [obj[k], v];
 833      }
 834    }
 835  
 836    return obj;
 837  };
 838  
 839  var isArray = Array.isArray || function (xs) {
 840    return Object.prototype.toString.call(xs) === '[object Array]';
 841  };
 842  
 843  
 844  /***/ }),
 845  
 846  /***/ 128:
 847  /***/ (function(module, exports, __webpack_require__) {
 848  
 849  "use strict";
 850  // Copyright Joyent, Inc. and other Node contributors.
 851  //
 852  // Permission is hereby granted, free of charge, to any person obtaining a
 853  // copy of this software and associated documentation files (the
 854  // "Software"), to deal in the Software without restriction, including
 855  // without limitation the rights to use, copy, modify, merge, publish,
 856  // distribute, sublicense, and/or sell copies of the Software, and to permit
 857  // persons to whom the Software is furnished to do so, subject to the
 858  // following conditions:
 859  //
 860  // The above copyright notice and this permission notice shall be included
 861  // in all copies or substantial portions of the Software.
 862  //
 863  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 864  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 865  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
 866  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 867  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 868  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 869  // USE OR OTHER DEALINGS IN THE SOFTWARE.
 870  
 871  
 872  
 873  var stringifyPrimitive = function(v) {
 874    switch (typeof v) {
 875      case 'string':
 876        return v;
 877  
 878      case 'boolean':
 879        return v ? 'true' : 'false';
 880  
 881      case 'number':
 882        return isFinite(v) ? v : '';
 883  
 884      default:
 885        return '';
 886    }
 887  };
 888  
 889  module.exports = function(obj, sep, eq, name) {
 890    sep = sep || '&';
 891    eq = eq || '=';
 892    if (obj === null) {
 893      obj = undefined;
 894    }
 895  
 896    if (typeof obj === 'object') {
 897      return map(objectKeys(obj), function(k) {
 898        var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
 899        if (isArray(obj[k])) {
 900          return map(obj[k], function(v) {
 901            return ks + encodeURIComponent(stringifyPrimitive(v));
 902          }).join(sep);
 903        } else {
 904          return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
 905        }
 906      }).join(sep);
 907  
 908    }
 909  
 910    if (!name) return '';
 911    return encodeURIComponent(stringifyPrimitive(name)) + eq +
 912           encodeURIComponent(stringifyPrimitive(obj));
 913  };
 914  
 915  var isArray = Array.isArray || function (xs) {
 916    return Object.prototype.toString.call(xs) === '[object Array]';
 917  };
 918  
 919  function map (xs, f) {
 920    if (xs.map) return xs.map(f);
 921    var res = [];
 922    for (var i = 0; i < xs.length; i++) {
 923      res.push(f(xs[i], i));
 924    }
 925    return res;
 926  }
 927  
 928  var objectKeys = Object.keys || function (obj) {
 929    var res = [];
 930    for (var key in obj) {
 931      if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
 932    }
 933    return res;
 934  };
 935  
 936  
 937  /***/ }),
 938  
 939  /***/ 13:
 940  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 941  
 942  "use strict";
 943  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
 944  /* harmony import */ var _helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
 945  /* harmony import */ var _assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
 946  
 947  
 948  function _possibleConstructorReturn(self, call) {
 949    if (call && (Object(_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(call) === "object" || typeof call === "function")) {
 950      return call;
 951    }
 952  
 953    return Object(_assertThisInitialized__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(self);
 954  }
 955  
 956  /***/ }),
 957  
 958  /***/ 14:
 959  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 960  
 961  "use strict";
 962  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
 963  function _getPrototypeOf(o) {
 964    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
 965      return o.__proto__ || Object.getPrototypeOf(o);
 966    };
 967    return _getPrototypeOf(o);
 968  }
 969  
 970  /***/ }),
 971  
 972  /***/ 15:
 973  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 974  
 975  "use strict";
 976  
 977  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
 978  function _setPrototypeOf(o, p) {
 979    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
 980      o.__proto__ = p;
 981      return o;
 982    };
 983  
 984    return _setPrototypeOf(o, p);
 985  }
 986  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
 987  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
 988  
 989  function _inherits(subClass, superClass) {
 990    if (typeof superClass !== "function" && superClass !== null) {
 991      throw new TypeError("Super expression must either be null or a function");
 992    }
 993  
 994    subClass.prototype = Object.create(superClass && superClass.prototype, {
 995      constructor: {
 996        value: subClass,
 997        writable: true,
 998        configurable: true
 999      }
1000    });
1001    if (superClass) _setPrototypeOf(subClass, superClass);
1002  }
1003  
1004  /***/ }),
1005  
1006  /***/ 16:
1007  /***/ (function(module, exports, __webpack_require__) {
1008  
1009  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1010    Copyright (c) 2017 Jed Watson.
1011    Licensed under the MIT License (MIT), see
1012    http://jedwatson.github.io/classnames
1013  */
1014  /* global define */
1015  
1016  (function () {
1017      'use strict';
1018  
1019      var hasOwn = {}.hasOwnProperty;
1020  
1021  	function classNames () {
1022          var classes = [];
1023  
1024          for (var i = 0; i < arguments.length; i++) {
1025              var arg = arguments[i];
1026              if (!arg) continue;
1027  
1028              var argType = typeof arg;
1029  
1030              if (argType === 'string' || argType === 'number') {
1031                  classes.push(arg);
1032              } else if (Array.isArray(arg) && arg.length) {
1033                  var inner = classNames.apply(null, arg);
1034                  if (inner) {
1035                      classes.push(inner);
1036                  }
1037              } else if (argType === 'object') {
1038                  for (var key in arg) {
1039                      if (hasOwn.call(arg, key) && arg[key]) {
1040                          classes.push(key);
1041                      }
1042                  }
1043              }
1044          }
1045  
1046          return classes.join(' ');
1047      }
1048  
1049      if ( true && module.exports) {
1050          classNames.default = classNames;
1051          module.exports = classNames;
1052      } else if (true) {
1053          // register as 'classnames', consistent with npm package name
1054          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
1055              return classNames;
1056          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
1057                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1058      } else {}
1059  }());
1060  
1061  
1062  /***/ }),
1063  
1064  /***/ 17:
1065  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1066  
1067  "use strict";
1068  
1069  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1070  function _arrayWithoutHoles(arr) {
1071    if (Array.isArray(arr)) {
1072      for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
1073        arr2[i] = arr[i];
1074      }
1075  
1076      return arr2;
1077    }
1078  }
1079  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1080  var iterableToArray = __webpack_require__(30);
1081  
1082  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1083  function _nonIterableSpread() {
1084    throw new TypeError("Invalid attempt to spread non-iterable instance");
1085  }
1086  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1087  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });
1088  
1089  
1090  
1091  function _toConsumableArray(arr) {
1092    return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread();
1093  }
1094  
1095  /***/ }),
1096  
1097  /***/ 18:
1098  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1099  
1100  "use strict";
1101  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
1102  function _extends() {
1103    _extends = Object.assign || function (target) {
1104      for (var i = 1; i < arguments.length; i++) {
1105        var source = arguments[i];
1106  
1107        for (var key in source) {
1108          if (Object.prototype.hasOwnProperty.call(source, key)) {
1109            target[key] = source[key];
1110          }
1111        }
1112      }
1113  
1114      return target;
1115    };
1116  
1117    return _extends.apply(this, arguments);
1118  }
1119  
1120  /***/ }),
1121  
1122  /***/ 19:
1123  /***/ (function(module, exports) {
1124  
1125  (function() { module.exports = this["wp"]["keycodes"]; }());
1126  
1127  /***/ }),
1128  
1129  /***/ 2:
1130  /***/ (function(module, exports) {
1131  
1132  (function() { module.exports = this["lodash"]; }());
1133  
1134  /***/ }),
1135  
1136  /***/ 21:
1137  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1138  
1139  "use strict";
1140  
1141  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1142  function _objectWithoutPropertiesLoose(source, excluded) {
1143    if (source == null) return {};
1144    var target = {};
1145    var sourceKeys = Object.keys(source);
1146    var key, i;
1147  
1148    for (i = 0; i < sourceKeys.length; i++) {
1149      key = sourceKeys[i];
1150      if (excluded.indexOf(key) >= 0) continue;
1151      target[key] = source[key];
1152    }
1153  
1154    return target;
1155  }
1156  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
1157  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
1158  
1159  function _objectWithoutProperties(source, excluded) {
1160    if (source == null) return {};
1161    var target = _objectWithoutPropertiesLoose(source, excluded);
1162    var key, i;
1163  
1164    if (Object.getOwnPropertySymbols) {
1165      var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1166  
1167      for (i = 0; i < sourceSymbolKeys.length; i++) {
1168        key = sourceSymbolKeys[i];
1169        if (excluded.indexOf(key) >= 0) continue;
1170        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1171        target[key] = source[key];
1172      }
1173    }
1174  
1175    return target;
1176  }
1177  
1178  /***/ }),
1179  
1180  /***/ 22:
1181  /***/ (function(module, exports) {
1182  
1183  (function() { module.exports = this["wp"]["richText"]; }());
1184  
1185  /***/ }),
1186  
1187  /***/ 221:
1188  /***/ (function(module, exports, __webpack_require__) {
1189  
1190  /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
1191  (function (global, factory) {
1192       true ? module.exports = factory() :
1193      undefined;
1194  }(this, (function () { 'use strict';
1195  
1196  function _classCallCheck(instance, Constructor) {
1197    if (!(instance instanceof Constructor)) {
1198      throw new TypeError("Cannot call a class as a function");
1199    }
1200  }
1201  
1202  function _defineProperties(target, props) {
1203    for (var i = 0; i < props.length; i++) {
1204      var descriptor = props[i];
1205      descriptor.enumerable = descriptor.enumerable || false;
1206      descriptor.configurable = true;
1207      if ("value" in descriptor) descriptor.writable = true;
1208      Object.defineProperty(target, descriptor.key, descriptor);
1209    }
1210  }
1211  
1212  function _createClass(Constructor, protoProps, staticProps) {
1213    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1214    if (staticProps) _defineProperties(Constructor, staticProps);
1215    return Constructor;
1216  }
1217  
1218  function _slicedToArray(arr, i) {
1219    return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
1220  }
1221  
1222  function _arrayWithHoles(arr) {
1223    if (Array.isArray(arr)) return arr;
1224  }
1225  
1226  function _iterableToArrayLimit(arr, i) {
1227    var _arr = [];
1228    var _n = true;
1229    var _d = false;
1230    var _e = undefined;
1231  
1232    try {
1233      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
1234        _arr.push(_s.value);
1235  
1236        if (i && _arr.length === i) break;
1237      }
1238    } catch (err) {
1239      _d = true;
1240      _e = err;
1241    } finally {
1242      try {
1243        if (!_n && _i["return"] != null) _i["return"]();
1244      } finally {
1245        if (_d) throw _e;
1246      }
1247    }
1248  
1249    return _arr;
1250  }
1251  
1252  function _nonIterableRest() {
1253    throw new TypeError("Invalid attempt to destructure non-iterable instance");
1254  }
1255  
1256  var FastAverageColor =
1257  /*#__PURE__*/
1258  function () {
1259    function FastAverageColor() {
1260      _classCallCheck(this, FastAverageColor);
1261    }
1262  
1263    _createClass(FastAverageColor, [{
1264      key: "getColorAsync",
1265  
1266      /**
1267       * Get asynchronously the average color from not loaded image.
1268       *
1269       * @param {HTMLImageElement} resource
1270       * @param {Function} callback
1271       * @param {Object|null} [options]
1272       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
1273       * @param {*}      [options.data]
1274       * @param {string} [options.mode="speed"] "precision" or "speed"
1275       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
1276       * @param {number} [options.step=1]
1277       * @param {number} [options.left=0]
1278       * @param {number} [options.top=0]
1279       * @param {number} [options.width=width of resource]
1280       * @param {number} [options.height=height of resource]
1281       */
1282      value: function getColorAsync(resource, callback, options) {
1283        if (resource.complete) {
1284          callback.call(resource, this.getColor(resource, options), options && options.data);
1285        } else {
1286          this._bindImageEvents(resource, callback, options);
1287        }
1288      }
1289      /**
1290       * Get the average color from images, videos and canvas.
1291       *
1292       * @param {HTMLImageElement|HTMLVideoElement|HTMLCanvasElement} resource
1293       * @param {Object|null} [options]
1294       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
1295       * @param {*}      [options.data]
1296       * @param {string} [options.mode="speed"] "precision" or "speed"
1297       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
1298       * @param {number} [options.step=1]
1299       * @param {number} [options.left=0]
1300       * @param {number} [options.top=0]
1301       * @param {number} [options.width=width of resource]
1302       * @param {number} [options.height=height of resource]
1303       *
1304       * @returns {Object}
1305       */
1306  
1307    }, {
1308      key: "getColor",
1309      value: function getColor(resource, options) {
1310        options = options || {};
1311  
1312        var defaultColor = this._getDefaultColor(options),
1313            originalSize = this._getOriginalSize(resource),
1314            size = this._prepareSizeAndPosition(originalSize, options);
1315  
1316        var error = null,
1317            value = defaultColor;
1318  
1319        if (!size.srcWidth || !size.srcHeight || !size.destWidth || !size.destHeight) {
1320          return this._prepareResult(defaultColor, new Error('FastAverageColor: Incorrect sizes.'));
1321        }
1322  
1323        if (!this._ctx) {
1324          this._canvas = this._makeCanvas();
1325          this._ctx = this._canvas.getContext && this._canvas.getContext('2d');
1326  
1327          if (!this._ctx) {
1328            return this._prepareResult(defaultColor, new Error('FastAverageColor: Canvas Context 2D is not supported in this browser.'));
1329          }
1330        }
1331  
1332        this._canvas.width = size.destWidth;
1333        this._canvas.height = size.destHeight;
1334  
1335        try {
1336          this._ctx.clearRect(0, 0, size.destWidth, size.destHeight);
1337  
1338          this._ctx.drawImage(resource, size.srcLeft, size.srcTop, size.srcWidth, size.srcHeight, 0, 0, size.destWidth, size.destHeight);
1339  
1340          var bitmapData = this._ctx.getImageData(0, 0, size.destWidth, size.destHeight).data;
1341  
1342          value = this.getColorFromArray4(bitmapData, options);
1343        } catch (e) {
1344          // Security error, CORS
1345          // https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image
1346          error = e;
1347        }
1348  
1349        return this._prepareResult(value, error);
1350      }
1351      /**
1352       * Get the average color from a array when 1 pixel is 4 bytes.
1353       *
1354       * @param {Array|Uint8Array} arr
1355       * @param {Object} [options]
1356       * @param {string} [options.algorithm="sqrt"] "simple", "sqrt" or "dominant"
1357       * @param {Array}  [options.defaultColor=[255, 255, 255, 255]]
1358       * @param {number} [options.step=1]
1359       *
1360       * @returns {Array} [red (0-255), green (0-255), blue (0-255), alpha (0-255)]
1361       */
1362  
1363    }, {
1364      key: "getColorFromArray4",
1365      value: function getColorFromArray4(arr, options) {
1366        options = options || {};
1367        var bytesPerPixel = 4,
1368            arrLength = arr.length;
1369  
1370        if (arrLength < bytesPerPixel) {
1371          return this._getDefaultColor(options);
1372        }
1373  
1374        var len = arrLength - arrLength % bytesPerPixel,
1375            preparedStep = (options.step || 1) * bytesPerPixel,
1376            algorithm = '_' + (options.algorithm || 'sqrt') + 'Algorithm';
1377  
1378        if (typeof this[algorithm] !== 'function') {
1379          throw new Error("FastAverageColor: ".concat(options.algorithm, " is unknown algorithm."));
1380        }
1381  
1382        return this[algorithm](arr, len, preparedStep);
1383      }
1384      /**
1385       * Destroy the instance.
1386       */
1387  
1388    }, {
1389      key: "destroy",
1390      value: function destroy() {
1391        delete this._canvas;
1392        delete this._ctx;
1393      }
1394    }, {
1395      key: "_getDefaultColor",
1396      value: function _getDefaultColor(options) {
1397        return this._getOption(options, 'defaultColor', [255, 255, 255, 255]);
1398      }
1399    }, {
1400      key: "_getOption",
1401      value: function _getOption(options, name, defaultValue) {
1402        return typeof options[name] === 'undefined' ? defaultValue : options[name];
1403      }
1404    }, {
1405      key: "_prepareSizeAndPosition",
1406      value: function _prepareSizeAndPosition(originalSize, options) {
1407        var srcLeft = this._getOption(options, 'left', 0),
1408            srcTop = this._getOption(options, 'top', 0),
1409            srcWidth = this._getOption(options, 'width', originalSize.width),
1410            srcHeight = this._getOption(options, 'height', originalSize.height),
1411            destWidth = srcWidth,
1412            destHeight = srcHeight;
1413  
1414        if (options.mode === 'precision') {
1415          return {
1416            srcLeft: srcLeft,
1417            srcTop: srcTop,
1418            srcWidth: srcWidth,
1419            srcHeight: srcHeight,
1420            destWidth: destWidth,
1421            destHeight: destHeight
1422          };
1423        }
1424  
1425        var maxSize = 100,
1426            minSize = 10;
1427        var factor;
1428  
1429        if (srcWidth > srcHeight) {
1430          factor = srcWidth / srcHeight;
1431          destWidth = maxSize;
1432          destHeight = Math.round(destWidth / factor);
1433        } else {
1434          factor = srcHeight / srcWidth;
1435          destHeight = maxSize;
1436          destWidth = Math.round(destHeight / factor);
1437        }
1438  
1439        if (destWidth > srcWidth || destHeight > srcHeight || destWidth < minSize || destHeight < minSize) {
1440          destWidth = srcWidth;
1441          destHeight = srcHeight;
1442        }
1443  
1444        return {
1445          srcLeft: srcLeft,
1446          srcTop: srcTop,
1447          srcWidth: srcWidth,
1448          srcHeight: srcHeight,
1449          destWidth: destWidth,
1450          destHeight: destHeight
1451        };
1452      }
1453    }, {
1454      key: "_simpleAlgorithm",
1455      value: function _simpleAlgorithm(arr, len, preparedStep) {
1456        var redTotal = 0,
1457            greenTotal = 0,
1458            blueTotal = 0,
1459            alphaTotal = 0,
1460            count = 0;
1461  
1462        for (var i = 0; i < len; i += preparedStep) {
1463          var alpha = arr[i + 3],
1464              red = arr[i] * alpha,
1465              green = arr[i + 1] * alpha,
1466              blue = arr[i + 2] * alpha;
1467          redTotal += red;
1468          greenTotal += green;
1469          blueTotal += blue;
1470          alphaTotal += alpha;
1471          count++;
1472        }
1473  
1474        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1475      }
1476    }, {
1477      key: "_sqrtAlgorithm",
1478      value: function _sqrtAlgorithm(arr, len, preparedStep) {
1479        var redTotal = 0,
1480            greenTotal = 0,
1481            blueTotal = 0,
1482            alphaTotal = 0,
1483            count = 0;
1484  
1485        for (var i = 0; i < len; i += preparedStep) {
1486          var red = arr[i],
1487              green = arr[i + 1],
1488              blue = arr[i + 2],
1489              alpha = arr[i + 3];
1490          redTotal += red * red * alpha;
1491          greenTotal += green * green * alpha;
1492          blueTotal += blue * blue * alpha;
1493          alphaTotal += alpha;
1494          count++;
1495        }
1496  
1497        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];
1498      }
1499    }, {
1500      key: "_dominantAlgorithm",
1501      value: function _dominantAlgorithm(arr, len, preparedStep) {
1502        var colorHash = {},
1503            divider = 24;
1504  
1505        for (var i = 0; i < len; i += preparedStep) {
1506          var red = arr[i],
1507              green = arr[i + 1],
1508              blue = arr[i + 2],
1509              alpha = arr[i + 3],
1510              key = Math.round(red / divider) + ',' + Math.round(green / divider) + ',' + Math.round(blue / divider);
1511  
1512          if (colorHash[key]) {
1513            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];
1514          } else {
1515            colorHash[key] = [red * alpha, green * alpha, blue * alpha, alpha, 1];
1516          }
1517        }
1518  
1519        var buffer = Object.keys(colorHash).map(function (key) {
1520          return colorHash[key];
1521        }).sort(function (a, b) {
1522          var countA = a[4],
1523              countB = b[4];
1524          return countA > countB ? -1 : countA === countB ? 0 : 1;
1525        });
1526  
1527        var _buffer$ = _slicedToArray(buffer[0], 5),
1528            redTotal = _buffer$[0],
1529            greenTotal = _buffer$[1],
1530            blueTotal = _buffer$[2],
1531            alphaTotal = _buffer$[3],
1532            count = _buffer$[4];
1533  
1534        return alphaTotal ? [Math.round(redTotal / alphaTotal), Math.round(greenTotal / alphaTotal), Math.round(blueTotal / alphaTotal), Math.round(alphaTotal / count)] : [0, 0, 0, 0];
1535      }
1536    }, {
1537      key: "_bindImageEvents",
1538      value: function _bindImageEvents(resource, callback, options) {
1539        var _this = this;
1540  
1541        options = options || {};
1542  
1543        var data = options && options.data,
1544            defaultColor = this._getDefaultColor(options),
1545            onload = function onload() {
1546          unbindEvents();
1547          callback.call(resource, _this.getColor(resource, options), data);
1548        },
1549            onerror = function onerror() {
1550          unbindEvents();
1551          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image error')), data);
1552        },
1553            onabort = function onabort() {
1554          unbindEvents();
1555          callback.call(resource, _this._prepareResult(defaultColor, new Error('Image abort')), data);
1556        },
1557            unbindEvents = function unbindEvents() {
1558          resource.removeEventListener('load', onload);
1559          resource.removeEventListener('error', onerror);
1560          resource.removeEventListener('abort', onabort);
1561        };
1562  
1563        resource.addEventListener('load', onload);
1564        resource.addEventListener('error', onerror);
1565        resource.addEventListener('abort', onabort);
1566      }
1567    }, {
1568      key: "_prepareResult",
1569      value: function _prepareResult(value, error) {
1570        var rgb = value.slice(0, 3),
1571            rgba = [].concat(rgb, value[3] / 255),
1572            isDark = this._isDark(value);
1573  
1574        return {
1575          error: error,
1576          value: value,
1577          rgb: 'rgb(' + rgb.join(',') + ')',
1578          rgba: 'rgba(' + rgba.join(',') + ')',
1579          hex: this._arrayToHex(rgb),
1580          hexa: this._arrayToHex(value),
1581          isDark: isDark,
1582          isLight: !isDark
1583        };
1584      }
1585    }, {
1586      key: "_getOriginalSize",
1587      value: function _getOriginalSize(resource) {
1588        if (resource instanceof HTMLImageElement) {
1589          return {
1590            width: resource.naturalWidth,
1591            height: resource.naturalHeight
1592          };
1593        }
1594  
1595        if (resource instanceof HTMLVideoElement) {
1596          return {
1597            width: resource.videoWidth,
1598            height: resource.videoHeight
1599          };
1600        }
1601  
1602        return {
1603          width: resource.width,
1604          height: resource.height
1605        };
1606      }
1607    }, {
1608      key: "_toHex",
1609      value: function _toHex(num) {
1610        var str = num.toString(16);
1611        return str.length === 1 ? '0' + str : str;
1612      }
1613    }, {
1614      key: "_arrayToHex",
1615      value: function _arrayToHex(arr) {
1616        return '#' + arr.map(this._toHex).join('');
1617      }
1618    }, {
1619      key: "_isDark",
1620      value: function _isDark(color) {
1621        // http://www.w3.org/TR/AERT#color-contrast
1622        var result = (color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000;
1623        return result < 128;
1624      }
1625    }, {
1626      key: "_makeCanvas",
1627      value: function _makeCanvas() {
1628        return typeof window === 'undefined' ? new OffscreenCanvas(1, 1) : document.createElement('canvas');
1629      }
1630    }]);
1631  
1632    return FastAverageColor;
1633  }();
1634  
1635  return FastAverageColor;
1636  
1637  })));
1638  
1639  
1640  /***/ }),
1641  
1642  /***/ 23:
1643  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1644  
1645  "use strict";
1646  
1647  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
1648  var arrayWithHoles = __webpack_require__(38);
1649  
1650  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1651  function _iterableToArrayLimit(arr, i) {
1652    var _arr = [];
1653    var _n = true;
1654    var _d = false;
1655    var _e = undefined;
1656  
1657    try {
1658      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
1659        _arr.push(_s.value);
1660  
1661        if (i && _arr.length === i) break;
1662      }
1663    } catch (err) {
1664      _d = true;
1665      _e = err;
1666    } finally {
1667      try {
1668        if (!_n && _i["return"] != null) _i["return"]();
1669      } finally {
1670        if (_d) throw _e;
1671      }
1672    }
1673  
1674    return _arr;
1675  }
1676  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1677  var nonIterableRest = __webpack_require__(39);
1678  
1679  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
1680  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _slicedToArray; });
1681  
1682  
1683  
1684  function _slicedToArray(arr, i) {
1685    return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])();
1686  }
1687  
1688  /***/ }),
1689  
1690  /***/ 24:
1691  /***/ (function(module, exports) {
1692  
1693  (function() { module.exports = this["wp"]["editor"]; }());
1694  
1695  /***/ }),
1696  
1697  /***/ 26:
1698  /***/ (function(module, exports) {
1699  
1700  (function() { module.exports = this["wp"]["url"]; }());
1701  
1702  /***/ }),
1703  
1704  /***/ 29:
1705  /***/ (function(module, exports) {
1706  
1707  (function() { module.exports = this["moment"]; }());
1708  
1709  /***/ }),
1710  
1711  /***/ 3:
1712  /***/ (function(module, exports) {
1713  
1714  (function() { module.exports = this["wp"]["components"]; }());
1715  
1716  /***/ }),
1717  
1718  /***/ 30:
1719  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1720  
1721  "use strict";
1722  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
1723  function _iterableToArray(iter) {
1724    if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
1725  }
1726  
1727  /***/ }),
1728  
1729  /***/ 31:
1730  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1731  
1732  "use strict";
1733  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
1734  function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
1735  
1736  function _typeof(obj) {
1737    if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
1738      _typeof = function _typeof(obj) {
1739        return _typeof2(obj);
1740      };
1741    } else {
1742      _typeof = function _typeof(obj) {
1743        return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
1744      };
1745    }
1746  
1747    return _typeof(obj);
1748  }
1749  
1750  /***/ }),
1751  
1752  /***/ 34:
1753  /***/ (function(module, exports) {
1754  
1755  (function() { module.exports = this["wp"]["apiFetch"]; }());
1756  
1757  /***/ }),
1758  
1759  /***/ 341:
1760  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1761  
1762  "use strict";
1763  __webpack_require__.r(__webpack_exports__);
1764  var paragraph_namespaceObject = {};
1765  __webpack_require__.r(paragraph_namespaceObject);
1766  __webpack_require__.d(paragraph_namespaceObject, "metadata", function() { return paragraph_metadata; });
1767  __webpack_require__.d(paragraph_namespaceObject, "name", function() { return paragraph_name; });
1768  __webpack_require__.d(paragraph_namespaceObject, "settings", function() { return paragraph_settings; });
1769  var image_namespaceObject = {};
1770  __webpack_require__.r(image_namespaceObject);
1771  __webpack_require__.d(image_namespaceObject, "metadata", function() { return image_metadata; });
1772  __webpack_require__.d(image_namespaceObject, "name", function() { return image_name; });
1773  __webpack_require__.d(image_namespaceObject, "settings", function() { return image_settings; });
1774  var heading_namespaceObject = {};
1775  __webpack_require__.r(heading_namespaceObject);
1776  __webpack_require__.d(heading_namespaceObject, "metadata", function() { return heading_metadata; });
1777  __webpack_require__.d(heading_namespaceObject, "name", function() { return heading_name; });
1778  __webpack_require__.d(heading_namespaceObject, "settings", function() { return heading_settings; });
1779  var quote_namespaceObject = {};
1780  __webpack_require__.r(quote_namespaceObject);
1781  __webpack_require__.d(quote_namespaceObject, "metadata", function() { return quote_metadata; });
1782  __webpack_require__.d(quote_namespaceObject, "name", function() { return quote_name; });
1783  __webpack_require__.d(quote_namespaceObject, "settings", function() { return quote_settings; });
1784  var gallery_namespaceObject = {};
1785  __webpack_require__.r(gallery_namespaceObject);
1786  __webpack_require__.d(gallery_namespaceObject, "metadata", function() { return gallery_metadata; });
1787  __webpack_require__.d(gallery_namespaceObject, "name", function() { return gallery_name; });
1788  __webpack_require__.d(gallery_namespaceObject, "settings", function() { return gallery_settings; });
1789  var archives_namespaceObject = {};
1790  __webpack_require__.r(archives_namespaceObject);
1791  __webpack_require__.d(archives_namespaceObject, "name", function() { return archives_name; });
1792  __webpack_require__.d(archives_namespaceObject, "settings", function() { return archives_settings; });
1793  var audio_namespaceObject = {};
1794  __webpack_require__.r(audio_namespaceObject);
1795  __webpack_require__.d(audio_namespaceObject, "metadata", function() { return audio_metadata; });
1796  __webpack_require__.d(audio_namespaceObject, "name", function() { return audio_name; });
1797  __webpack_require__.d(audio_namespaceObject, "settings", function() { return audio_settings; });
1798  var button_namespaceObject = {};
1799  __webpack_require__.r(button_namespaceObject);
1800  __webpack_require__.d(button_namespaceObject, "metadata", function() { return button_metadata; });
1801  __webpack_require__.d(button_namespaceObject, "name", function() { return button_name; });
1802  __webpack_require__.d(button_namespaceObject, "settings", function() { return button_settings; });
1803  var calendar_namespaceObject = {};
1804  __webpack_require__.r(calendar_namespaceObject);
1805  __webpack_require__.d(calendar_namespaceObject, "name", function() { return calendar_name; });
1806  __webpack_require__.d(calendar_namespaceObject, "settings", function() { return calendar_settings; });
1807  var categories_namespaceObject = {};
1808  __webpack_require__.r(categories_namespaceObject);
1809  __webpack_require__.d(categories_namespaceObject, "name", function() { return categories_name; });
1810  __webpack_require__.d(categories_namespaceObject, "settings", function() { return categories_settings; });
1811  var code_namespaceObject = {};
1812  __webpack_require__.r(code_namespaceObject);
1813  __webpack_require__.d(code_namespaceObject, "metadata", function() { return code_metadata; });
1814  __webpack_require__.d(code_namespaceObject, "name", function() { return code_name; });
1815  __webpack_require__.d(code_namespaceObject, "settings", function() { return code_settings; });
1816  var columns_namespaceObject = {};
1817  __webpack_require__.r(columns_namespaceObject);
1818  __webpack_require__.d(columns_namespaceObject, "metadata", function() { return columns_metadata; });
1819  __webpack_require__.d(columns_namespaceObject, "name", function() { return columns_name; });
1820  __webpack_require__.d(columns_namespaceObject, "settings", function() { return columns_settings; });
1821  var column_namespaceObject = {};
1822  __webpack_require__.r(column_namespaceObject);
1823  __webpack_require__.d(column_namespaceObject, "metadata", function() { return column_metadata; });
1824  __webpack_require__.d(column_namespaceObject, "name", function() { return column_name; });
1825  __webpack_require__.d(column_namespaceObject, "settings", function() { return column_settings; });
1826  var cover_namespaceObject = {};
1827  __webpack_require__.r(cover_namespaceObject);
1828  __webpack_require__.d(cover_namespaceObject, "metadata", function() { return cover_metadata; });
1829  __webpack_require__.d(cover_namespaceObject, "name", function() { return cover_name; });
1830  __webpack_require__.d(cover_namespaceObject, "settings", function() { return cover_settings; });
1831  var embed_namespaceObject = {};
1832  __webpack_require__.r(embed_namespaceObject);
1833  __webpack_require__.d(embed_namespaceObject, "name", function() { return embed_name; });
1834  __webpack_require__.d(embed_namespaceObject, "settings", function() { return embed_settings; });
1835  __webpack_require__.d(embed_namespaceObject, "common", function() { return embed_common; });
1836  __webpack_require__.d(embed_namespaceObject, "others", function() { return embed_others; });
1837  var file_namespaceObject = {};
1838  __webpack_require__.r(file_namespaceObject);
1839  __webpack_require__.d(file_namespaceObject, "metadata", function() { return file_metadata; });
1840  __webpack_require__.d(file_namespaceObject, "name", function() { return file_name; });
1841  __webpack_require__.d(file_namespaceObject, "settings", function() { return file_settings; });
1842  var html_namespaceObject = {};
1843  __webpack_require__.r(html_namespaceObject);
1844  __webpack_require__.d(html_namespaceObject, "metadata", function() { return html_metadata; });
1845  __webpack_require__.d(html_namespaceObject, "name", function() { return html_name; });
1846  __webpack_require__.d(html_namespaceObject, "settings", function() { return html_settings; });
1847  var media_text_namespaceObject = {};
1848  __webpack_require__.r(media_text_namespaceObject);
1849  __webpack_require__.d(media_text_namespaceObject, "metadata", function() { return media_text_metadata; });
1850  __webpack_require__.d(media_text_namespaceObject, "name", function() { return media_text_name; });
1851  __webpack_require__.d(media_text_namespaceObject, "settings", function() { return media_text_settings; });
1852  var latest_comments_namespaceObject = {};
1853  __webpack_require__.r(latest_comments_namespaceObject);
1854  __webpack_require__.d(latest_comments_namespaceObject, "name", function() { return latest_comments_name; });
1855  __webpack_require__.d(latest_comments_namespaceObject, "settings", function() { return latest_comments_settings; });
1856  var latest_posts_namespaceObject = {};
1857  __webpack_require__.r(latest_posts_namespaceObject);
1858  __webpack_require__.d(latest_posts_namespaceObject, "name", function() { return latest_posts_name; });
1859  __webpack_require__.d(latest_posts_namespaceObject, "settings", function() { return latest_posts_settings; });
1860  var list_namespaceObject = {};
1861  __webpack_require__.r(list_namespaceObject);
1862  __webpack_require__.d(list_namespaceObject, "metadata", function() { return list_metadata; });
1863  __webpack_require__.d(list_namespaceObject, "name", function() { return list_name; });
1864  __webpack_require__.d(list_namespaceObject, "settings", function() { return list_settings; });
1865  var missing_namespaceObject = {};
1866  __webpack_require__.r(missing_namespaceObject);
1867  __webpack_require__.d(missing_namespaceObject, "metadata", function() { return missing_metadata; });
1868  __webpack_require__.d(missing_namespaceObject, "name", function() { return missing_name; });
1869  __webpack_require__.d(missing_namespaceObject, "settings", function() { return missing_settings; });
1870  var more_namespaceObject = {};
1871  __webpack_require__.r(more_namespaceObject);
1872  __webpack_require__.d(more_namespaceObject, "metadata", function() { return more_metadata; });
1873  __webpack_require__.d(more_namespaceObject, "name", function() { return more_name; });
1874  __webpack_require__.d(more_namespaceObject, "settings", function() { return more_settings; });
1875  var nextpage_namespaceObject = {};
1876  __webpack_require__.r(nextpage_namespaceObject);
1877  __webpack_require__.d(nextpage_namespaceObject, "metadata", function() { return nextpage_metadata; });
1878  __webpack_require__.d(nextpage_namespaceObject, "name", function() { return nextpage_name; });
1879  __webpack_require__.d(nextpage_namespaceObject, "settings", function() { return nextpage_settings; });
1880  var preformatted_namespaceObject = {};
1881  __webpack_require__.r(preformatted_namespaceObject);
1882  __webpack_require__.d(preformatted_namespaceObject, "metadata", function() { return preformatted_metadata; });
1883  __webpack_require__.d(preformatted_namespaceObject, "name", function() { return preformatted_name; });
1884  __webpack_require__.d(preformatted_namespaceObject, "settings", function() { return preformatted_settings; });
1885  var pullquote_namespaceObject = {};
1886  __webpack_require__.r(pullquote_namespaceObject);
1887  __webpack_require__.d(pullquote_namespaceObject, "metadata", function() { return pullquote_metadata; });
1888  __webpack_require__.d(pullquote_namespaceObject, "name", function() { return pullquote_name; });
1889  __webpack_require__.d(pullquote_namespaceObject, "settings", function() { return pullquote_settings; });
1890  var block_namespaceObject = {};
1891  __webpack_require__.r(block_namespaceObject);
1892  __webpack_require__.d(block_namespaceObject, "name", function() { return block_name; });
1893  __webpack_require__.d(block_namespaceObject, "settings", function() { return block_settings; });
1894  var rss_namespaceObject = {};
1895  __webpack_require__.r(rss_namespaceObject);
1896  __webpack_require__.d(rss_namespaceObject, "name", function() { return rss_name; });
1897  __webpack_require__.d(rss_namespaceObject, "settings", function() { return rss_settings; });
1898  var search_namespaceObject = {};
1899  __webpack_require__.r(search_namespaceObject);
1900  __webpack_require__.d(search_namespaceObject, "name", function() { return search_name; });
1901  __webpack_require__.d(search_namespaceObject, "settings", function() { return search_settings; });
1902  var group_namespaceObject = {};
1903  __webpack_require__.r(group_namespaceObject);
1904  __webpack_require__.d(group_namespaceObject, "metadata", function() { return group_metadata; });
1905  __webpack_require__.d(group_namespaceObject, "name", function() { return group_name; });
1906  __webpack_require__.d(group_namespaceObject, "settings", function() { return group_settings; });
1907  var separator_namespaceObject = {};
1908  __webpack_require__.r(separator_namespaceObject);
1909  __webpack_require__.d(separator_namespaceObject, "metadata", function() { return separator_metadata; });
1910  __webpack_require__.d(separator_namespaceObject, "name", function() { return separator_name; });
1911  __webpack_require__.d(separator_namespaceObject, "settings", function() { return separator_settings; });
1912  var shortcode_namespaceObject = {};
1913  __webpack_require__.r(shortcode_namespaceObject);
1914  __webpack_require__.d(shortcode_namespaceObject, "name", function() { return shortcode_name; });
1915  __webpack_require__.d(shortcode_namespaceObject, "settings", function() { return shortcode_settings; });
1916  var spacer_namespaceObject = {};
1917  __webpack_require__.r(spacer_namespaceObject);
1918  __webpack_require__.d(spacer_namespaceObject, "metadata", function() { return spacer_metadata; });
1919  __webpack_require__.d(spacer_namespaceObject, "name", function() { return spacer_name; });
1920  __webpack_require__.d(spacer_namespaceObject, "settings", function() { return spacer_settings; });
1921  var subhead_namespaceObject = {};
1922  __webpack_require__.r(subhead_namespaceObject);
1923  __webpack_require__.d(subhead_namespaceObject, "metadata", function() { return subhead_metadata; });
1924  __webpack_require__.d(subhead_namespaceObject, "name", function() { return subhead_name; });
1925  __webpack_require__.d(subhead_namespaceObject, "settings", function() { return subhead_settings; });
1926  var table_namespaceObject = {};
1927  __webpack_require__.r(table_namespaceObject);
1928  __webpack_require__.d(table_namespaceObject, "metadata", function() { return table_metadata; });
1929  __webpack_require__.d(table_namespaceObject, "name", function() { return table_name; });
1930  __webpack_require__.d(table_namespaceObject, "settings", function() { return table_settings; });
1931  var text_columns_namespaceObject = {};
1932  __webpack_require__.r(text_columns_namespaceObject);
1933  __webpack_require__.d(text_columns_namespaceObject, "metadata", function() { return text_columns_metadata; });
1934  __webpack_require__.d(text_columns_namespaceObject, "name", function() { return text_columns_name; });
1935  __webpack_require__.d(text_columns_namespaceObject, "settings", function() { return text_columns_settings; });
1936  var verse_namespaceObject = {};
1937  __webpack_require__.r(verse_namespaceObject);
1938  __webpack_require__.d(verse_namespaceObject, "metadata", function() { return verse_metadata; });
1939  __webpack_require__.d(verse_namespaceObject, "name", function() { return verse_name; });
1940  __webpack_require__.d(verse_namespaceObject, "settings", function() { return verse_settings; });
1941  var video_namespaceObject = {};
1942  __webpack_require__.r(video_namespaceObject);
1943  __webpack_require__.d(video_namespaceObject, "metadata", function() { return video_metadata; });
1944  __webpack_require__.d(video_namespaceObject, "name", function() { return video_name; });
1945  __webpack_require__.d(video_namespaceObject, "settings", function() { return video_settings; });
1946  var tag_cloud_namespaceObject = {};
1947  __webpack_require__.r(tag_cloud_namespaceObject);
1948  __webpack_require__.d(tag_cloud_namespaceObject, "name", function() { return tag_cloud_name; });
1949  __webpack_require__.d(tag_cloud_namespaceObject, "settings", function() { return tag_cloud_settings; });
1950  var classic_namespaceObject = {};
1951  __webpack_require__.r(classic_namespaceObject);
1952  __webpack_require__.d(classic_namespaceObject, "metadata", function() { return classic_metadata; });
1953  __webpack_require__.d(classic_namespaceObject, "name", function() { return classic_name; });
1954  __webpack_require__.d(classic_namespaceObject, "settings", function() { return classic_settings; });
1955  
1956  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
1957  var toConsumableArray = __webpack_require__(17);
1958  
1959  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
1960  var defineProperty = __webpack_require__(10);
1961  
1962  // EXTERNAL MODULE: external {"this":["wp","coreData"]}
1963  var external_this_wp_coreData_ = __webpack_require__(89);
1964  
1965  // EXTERNAL MODULE: external {"this":["wp","blockEditor"]}
1966  var external_this_wp_blockEditor_ = __webpack_require__(6);
1967  
1968  // EXTERNAL MODULE: external {"this":["wp","editor"]}
1969  var external_this_wp_editor_ = __webpack_require__(24);
1970  
1971  // EXTERNAL MODULE: external {"this":["wp","blocks"]}
1972  var external_this_wp_blocks_ = __webpack_require__(9);
1973  
1974  // EXTERNAL MODULE: external {"this":["wp","i18n"]}
1975  var external_this_wp_i18n_ = __webpack_require__(1);
1976  
1977  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread.js
1978  var objectSpread = __webpack_require__(7);
1979  
1980  // EXTERNAL MODULE: external {"this":["wp","element"]}
1981  var external_this_wp_element_ = __webpack_require__(0);
1982  
1983  // EXTERNAL MODULE: ./node_modules/classnames/index.js
1984  var classnames = __webpack_require__(16);
1985  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
1986  
1987  // EXTERNAL MODULE: external "lodash"
1988  var external_lodash_ = __webpack_require__(2);
1989  
1990  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/deprecated.js
1991  
1992  
1993  
1994  
1995  /**
1996   * External dependencies
1997   */
1998  
1999  
2000  /**
2001   * WordPress dependencies
2002   */
2003  
2004  
2005  
2006  var deprecated_supports = {
2007    className: false
2008  };
2009  var deprecated_blockAttributes = {
2010    align: {
2011      type: 'string'
2012    },
2013    content: {
2014      type: 'string',
2015      source: 'html',
2016      selector: 'p',
2017      default: ''
2018    },
2019    dropCap: {
2020      type: 'boolean',
2021      default: false
2022    },
2023    placeholder: {
2024      type: 'string'
2025    },
2026    textColor: {
2027      type: 'string'
2028    },
2029    customTextColor: {
2030      type: 'string'
2031    },
2032    backgroundColor: {
2033      type: 'string'
2034    },
2035    customBackgroundColor: {
2036      type: 'string'
2037    },
2038    fontSize: {
2039      type: 'string'
2040    },
2041    customFontSize: {
2042      type: 'number'
2043    },
2044    direction: {
2045      type: 'string',
2046      enum: ['ltr', 'rtl']
2047    }
2048  };
2049  var deprecated = [{
2050    supports: deprecated_supports,
2051    attributes: deprecated_blockAttributes,
2052    save: function save(_ref) {
2053      var _classnames;
2054  
2055      var attributes = _ref.attributes;
2056      var align = attributes.align,
2057          content = attributes.content,
2058          dropCap = attributes.dropCap,
2059          backgroundColor = attributes.backgroundColor,
2060          textColor = attributes.textColor,
2061          customBackgroundColor = attributes.customBackgroundColor,
2062          customTextColor = attributes.customTextColor,
2063          fontSize = attributes.fontSize,
2064          customFontSize = attributes.customFontSize,
2065          direction = attributes.direction;
2066      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
2067      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2068      var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize);
2069      var className = classnames_default()((_classnames = {
2070        'has-text-color': textColor || customTextColor,
2071        'has-background': backgroundColor || customBackgroundColor,
2072        'has-drop-cap': dropCap
2073      }, Object(defineProperty["a" /* default */])(_classnames, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames));
2074      var styles = {
2075        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2076        color: textClass ? undefined : customTextColor,
2077        fontSize: fontSizeClass ? undefined : customFontSize,
2078        textAlign: align
2079      };
2080      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2081        tagName: "p",
2082        style: styles,
2083        className: className ? className : undefined,
2084        value: content,
2085        dir: direction
2086      });
2087    }
2088  }, {
2089    supports: deprecated_supports,
2090    attributes: Object(objectSpread["a" /* default */])({}, deprecated_blockAttributes, {
2091      width: {
2092        type: 'string'
2093      }
2094    }),
2095    save: function save(_ref2) {
2096      var _classnames2;
2097  
2098      var attributes = _ref2.attributes;
2099      var width = attributes.width,
2100          align = attributes.align,
2101          content = attributes.content,
2102          dropCap = attributes.dropCap,
2103          backgroundColor = attributes.backgroundColor,
2104          textColor = attributes.textColor,
2105          customBackgroundColor = attributes.customBackgroundColor,
2106          customTextColor = attributes.customTextColor,
2107          fontSize = attributes.fontSize,
2108          customFontSize = attributes.customFontSize;
2109      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
2110      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2111      var fontSizeClass = fontSize && "is-".concat(fontSize, "-text");
2112      var className = classnames_default()((_classnames2 = {}, Object(defineProperty["a" /* default */])(_classnames2, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, 'has-drop-cap', dropCap), Object(defineProperty["a" /* default */])(_classnames2, fontSizeClass, fontSizeClass), Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2));
2113      var styles = {
2114        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2115        color: textClass ? undefined : customTextColor,
2116        fontSize: fontSizeClass ? undefined : customFontSize,
2117        textAlign: align
2118      };
2119      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2120        tagName: "p",
2121        style: styles,
2122        className: className ? className : undefined,
2123        value: content
2124      });
2125    }
2126  }, {
2127    supports: deprecated_supports,
2128    attributes: Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, deprecated_blockAttributes, {
2129      fontSize: {
2130        type: 'number'
2131      }
2132    }), 'customFontSize', 'customTextColor', 'customBackgroundColor'),
2133    save: function save(_ref3) {
2134      var _classnames3;
2135  
2136      var attributes = _ref3.attributes;
2137      var width = attributes.width,
2138          align = attributes.align,
2139          content = attributes.content,
2140          dropCap = attributes.dropCap,
2141          backgroundColor = attributes.backgroundColor,
2142          textColor = attributes.textColor,
2143          fontSize = attributes.fontSize;
2144      var className = classnames_default()((_classnames3 = {}, Object(defineProperty["a" /* default */])(_classnames3, "align".concat(width), width), Object(defineProperty["a" /* default */])(_classnames3, 'has-background', backgroundColor), Object(defineProperty["a" /* default */])(_classnames3, 'has-drop-cap', dropCap), _classnames3));
2145      var styles = {
2146        backgroundColor: backgroundColor,
2147        color: textColor,
2148        fontSize: fontSize,
2149        textAlign: align
2150      };
2151      return Object(external_this_wp_element_["createElement"])("p", {
2152        style: styles,
2153        className: className ? className : undefined
2154      }, content);
2155    },
2156    migrate: function migrate(attributes) {
2157      return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, {
2158        customFontSize: Object(external_lodash_["isFinite"])(attributes.fontSize) ? attributes.fontSize : undefined,
2159        customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined,
2160        customBackgroundColor: attributes.backgroundColor && '#' === attributes.backgroundColor[0] ? attributes.backgroundColor : undefined
2161      }), ['fontSize', 'textColor', 'backgroundColor']);
2162    }
2163  }, {
2164    supports: deprecated_supports,
2165    attributes: Object(objectSpread["a" /* default */])({}, deprecated_blockAttributes, {
2166      content: {
2167        type: 'string',
2168        source: 'html',
2169        default: ''
2170      }
2171    }),
2172    save: function save(_ref4) {
2173      var attributes = _ref4.attributes;
2174      return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["RawHTML"], null, attributes.content);
2175    },
2176    migrate: function migrate(attributes) {
2177      return attributes;
2178    }
2179  }];
2180  /* harmony default export */ var paragraph_deprecated = (deprecated);
2181  
2182  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2183  var esm_extends = __webpack_require__(18);
2184  
2185  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
2186  var classCallCheck = __webpack_require__(12);
2187  
2188  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
2189  var createClass = __webpack_require__(11);
2190  
2191  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
2192  var possibleConstructorReturn = __webpack_require__(13);
2193  
2194  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
2195  var getPrototypeOf = __webpack_require__(14);
2196  
2197  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
2198  var assertThisInitialized = __webpack_require__(5);
2199  
2200  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
2201  var inherits = __webpack_require__(15);
2202  
2203  // EXTERNAL MODULE: external {"this":["wp","components"]}
2204  var external_this_wp_components_ = __webpack_require__(3);
2205  
2206  // EXTERNAL MODULE: external {"this":["wp","compose"]}
2207  var external_this_wp_compose_ = __webpack_require__(8);
2208  
2209  // EXTERNAL MODULE: external {"this":["wp","data"]}
2210  var external_this_wp_data_ = __webpack_require__(4);
2211  
2212  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/edit.js
2213  
2214  
2215  
2216  
2217  
2218  
2219  
2220  
2221  
2222  
2223  
2224  /**
2225   * External dependencies
2226   */
2227  
2228  /**
2229   * WordPress dependencies
2230   */
2231  
2232  
2233  
2234  
2235  
2236  
2237  
2238  
2239  var _window = window,
2240      getComputedStyle = _window.getComputedStyle;
2241  var edit_name = 'core/paragraph';
2242  var applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) {
2243    var _ownProps$attributes = ownProps.attributes,
2244        textColor = _ownProps$attributes.textColor,
2245        backgroundColor = _ownProps$attributes.backgroundColor,
2246        fontSize = _ownProps$attributes.fontSize,
2247        customFontSize = _ownProps$attributes.customFontSize;
2248    var editableNode = node.querySelector('[contenteditable="true"]'); //verify if editableNode is available, before using getComputedStyle.
2249  
2250    var computedStyles = editableNode ? getComputedStyle(editableNode) : null;
2251    return {
2252      fallbackBackgroundColor: backgroundColor || !computedStyles ? undefined : computedStyles.backgroundColor,
2253      fallbackTextColor: textColor || !computedStyles ? undefined : computedStyles.color,
2254      fallbackFontSize: fontSize || customFontSize || !computedStyles ? undefined : parseInt(computedStyles.fontSize) || undefined
2255    };
2256  });
2257  
2258  var edit_ParagraphBlock =
2259  /*#__PURE__*/
2260  function (_Component) {
2261    Object(inherits["a" /* default */])(ParagraphBlock, _Component);
2262  
2263    function ParagraphBlock() {
2264      var _this;
2265  
2266      Object(classCallCheck["a" /* default */])(this, ParagraphBlock);
2267  
2268      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ParagraphBlock).apply(this, arguments));
2269      _this.toggleDropCap = _this.toggleDropCap.bind(Object(assertThisInitialized["a" /* default */])(_this));
2270      return _this;
2271    }
2272  
2273    Object(createClass["a" /* default */])(ParagraphBlock, [{
2274      key: "toggleDropCap",
2275      value: function toggleDropCap() {
2276        var _this$props = this.props,
2277            attributes = _this$props.attributes,
2278            setAttributes = _this$props.setAttributes;
2279        setAttributes({
2280          dropCap: !attributes.dropCap
2281        });
2282      }
2283    }, {
2284      key: "getDropCapHelp",
2285      value: function getDropCapHelp(checked) {
2286        return checked ? Object(external_this_wp_i18n_["__"])('Showing large initial letter.') : Object(external_this_wp_i18n_["__"])('Toggle to show a large initial letter.');
2287      }
2288    }, {
2289      key: "render",
2290      value: function render() {
2291        var _classnames;
2292  
2293        var _this$props2 = this.props,
2294            attributes = _this$props2.attributes,
2295            setAttributes = _this$props2.setAttributes,
2296            mergeBlocks = _this$props2.mergeBlocks,
2297            onReplace = _this$props2.onReplace,
2298            className = _this$props2.className,
2299            backgroundColor = _this$props2.backgroundColor,
2300            textColor = _this$props2.textColor,
2301            setBackgroundColor = _this$props2.setBackgroundColor,
2302            setTextColor = _this$props2.setTextColor,
2303            fallbackBackgroundColor = _this$props2.fallbackBackgroundColor,
2304            fallbackTextColor = _this$props2.fallbackTextColor,
2305            fallbackFontSize = _this$props2.fallbackFontSize,
2306            fontSize = _this$props2.fontSize,
2307            setFontSize = _this$props2.setFontSize,
2308            isRTL = _this$props2.isRTL;
2309        var align = attributes.align,
2310            content = attributes.content,
2311            dropCap = attributes.dropCap,
2312            placeholder = attributes.placeholder,
2313            direction = attributes.direction;
2314        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"], {
2315          value: align,
2316          onChange: function onChange(nextAlign) {
2317            setAttributes({
2318              align: nextAlign
2319            });
2320          }
2321        }), isRTL && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], {
2322          controls: [{
2323            icon: 'editor-ltr',
2324            title: Object(external_this_wp_i18n_["_x"])('Left to right', 'editor button'),
2325            isActive: direction === 'ltr',
2326            onClick: function onClick() {
2327              var nextDirection = direction === 'ltr' ? undefined : 'ltr';
2328              setAttributes({
2329                direction: nextDirection
2330              });
2331            }
2332          }]
2333        })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
2334          title: Object(external_this_wp_i18n_["__"])('Text Settings'),
2335          className: "blocks-font-size"
2336        }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["FontSizePicker"], {
2337          fallbackFontSize: fallbackFontSize,
2338          value: fontSize.size,
2339          onChange: setFontSize
2340        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
2341          label: Object(external_this_wp_i18n_["__"])('Drop Cap'),
2342          checked: !!dropCap,
2343          onChange: this.toggleDropCap,
2344          help: this.getDropCapHelp
2345        })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], {
2346          title: Object(external_this_wp_i18n_["__"])('Color Settings'),
2347          initialOpen: false,
2348          colorSettings: [{
2349            value: backgroundColor.color,
2350            onChange: setBackgroundColor,
2351            label: Object(external_this_wp_i18n_["__"])('Background Color')
2352          }, {
2353            value: textColor.color,
2354            onChange: setTextColor,
2355            label: Object(external_this_wp_i18n_["__"])('Text Color')
2356          }]
2357        }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], Object(esm_extends["a" /* default */])({
2358          textColor: textColor.color,
2359          backgroundColor: backgroundColor.color,
2360          fallbackTextColor: fallbackTextColor,
2361          fallbackBackgroundColor: fallbackBackgroundColor
2362        }, {
2363          fontSize: fontSize.size
2364        })))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
2365          identifier: "content",
2366          tagName: "p",
2367          className: classnames_default()('wp-block-paragraph', className, (_classnames = {
2368            'has-text-color': textColor.color,
2369            'has-background': backgroundColor.color,
2370            'has-drop-cap': dropCap
2371          }, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, fontSize.class, fontSize.class), _classnames)),
2372          style: {
2373            backgroundColor: backgroundColor.color,
2374            color: textColor.color,
2375            fontSize: fontSize.size ? fontSize.size + 'px' : undefined,
2376            direction: direction
2377          },
2378          value: content,
2379          onChange: function onChange(nextContent) {
2380            setAttributes({
2381              content: nextContent
2382            });
2383          },
2384          onSplit: function onSplit(value) {
2385            if (!value) {
2386              return Object(external_this_wp_blocks_["createBlock"])(edit_name);
2387            }
2388  
2389            return Object(external_this_wp_blocks_["createBlock"])(edit_name, Object(objectSpread["a" /* default */])({}, attributes, {
2390              content: value
2391            }));
2392          },
2393          onMerge: mergeBlocks,
2394          onReplace: onReplace,
2395          onRemove: onReplace ? function () {
2396            return onReplace([]);
2397          } : undefined,
2398          "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'),
2399          placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Start writing or type / to choose a block'),
2400          __unstableEmbedURLOnPaste: true
2401        }));
2402      }
2403    }]);
2404  
2405    return ParagraphBlock;
2406  }(external_this_wp_element_["Component"]);
2407  
2408  var ParagraphEdit = Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', {
2409    textColor: 'color'
2410  }), Object(external_this_wp_blockEditor_["withFontSizes"])('fontSize'), applyFallbackStyles, Object(external_this_wp_data_["withSelect"])(function (select) {
2411    var _select = select('core/block-editor'),
2412        getSettings = _select.getSettings;
2413  
2414    return {
2415      isRTL: getSettings().isRTL
2416    };
2417  })])(edit_ParagraphBlock);
2418  /* harmony default export */ var paragraph_edit = (ParagraphEdit);
2419  
2420  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/icon.js
2421  
2422  
2423  /**
2424   * WordPress dependencies
2425   */
2426  
2427  /* harmony default export */ var paragraph_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2428    xmlns: "http://www.w3.org/2000/svg",
2429    viewBox: "0 0 24 24"
2430  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2431    d: "M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"
2432  })));
2433  
2434  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/save.js
2435  
2436  
2437  
2438  /**
2439   * External dependencies
2440   */
2441  
2442  /**
2443   * WordPress dependencies
2444   */
2445  
2446  
2447  function save_save(_ref) {
2448    var _classnames;
2449  
2450    var attributes = _ref.attributes;
2451    var align = attributes.align,
2452        content = attributes.content,
2453        dropCap = attributes.dropCap,
2454        backgroundColor = attributes.backgroundColor,
2455        textColor = attributes.textColor,
2456        customBackgroundColor = attributes.customBackgroundColor,
2457        customTextColor = attributes.customTextColor,
2458        fontSize = attributes.fontSize,
2459        customFontSize = attributes.customFontSize,
2460        direction = attributes.direction;
2461    var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
2462    var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
2463    var fontSizeClass = Object(external_this_wp_blockEditor_["getFontSizeClass"])(fontSize);
2464    var className = classnames_default()((_classnames = {
2465      'has-text-color': textColor || customTextColor,
2466      'has-background': backgroundColor || customBackgroundColor,
2467      'has-drop-cap': dropCap
2468    }, 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));
2469    var styles = {
2470      backgroundColor: backgroundClass ? undefined : customBackgroundColor,
2471      color: textClass ? undefined : customTextColor,
2472      fontSize: fontSizeClass ? undefined : customFontSize
2473    };
2474    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2475      tagName: "p",
2476      style: styles,
2477      className: className ? className : undefined,
2478      value: content,
2479      dir: direction
2480    });
2481  }
2482  
2483  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/transforms.js
2484  /**
2485   * WordPress dependencies
2486   */
2487  
2488  var transforms_transforms = {
2489    from: [{
2490      type: 'raw',
2491      // Paragraph is a fallback and should be matched last.
2492      priority: 20,
2493      selector: 'p',
2494      schema: {
2495        p: {
2496          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
2497        }
2498      }
2499    }]
2500  };
2501  /* harmony default export */ var paragraph_transforms = (transforms_transforms);
2502  
2503  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js
2504  /**
2505   * WordPress dependencies
2506   */
2507  
2508  /**
2509   * Internal dependencies
2510   */
2511  
2512  
2513  
2514  
2515  var paragraph_metadata = {
2516    name: "core/paragraph",
2517    category: "common",
2518    attributes: {
2519      align: {
2520        type: "string"
2521      },
2522      content: {
2523        type: "string",
2524        source: "html",
2525        selector: "p",
2526        "default": ""
2527      },
2528      dropCap: {
2529        type: "boolean",
2530        "default": false
2531      },
2532      placeholder: {
2533        type: "string"
2534      },
2535      textColor: {
2536        type: "string"
2537      },
2538      customTextColor: {
2539        type: "string"
2540      },
2541      backgroundColor: {
2542        type: "string"
2543      },
2544      customBackgroundColor: {
2545        type: "string"
2546      },
2547      fontSize: {
2548        type: "string"
2549      },
2550      customFontSize: {
2551        type: "number"
2552      },
2553      direction: {
2554        type: "string",
2555        "enum": ["ltr", "rtl"]
2556      }
2557    }
2558  };
2559  
2560  
2561  var paragraph_name = paragraph_metadata.name;
2562  
2563  var paragraph_settings = {
2564    title: Object(external_this_wp_i18n_["__"])('Paragraph'),
2565    description: Object(external_this_wp_i18n_["__"])('Start with the building block of all narrative.'),
2566    icon: paragraph_icon,
2567    keywords: [Object(external_this_wp_i18n_["__"])('text')],
2568    example: {
2569      attributes: {
2570        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.'),
2571        customFontSize: 28,
2572        dropCap: true
2573      }
2574    },
2575    supports: {
2576      className: false
2577    },
2578    transforms: paragraph_transforms,
2579    deprecated: paragraph_deprecated,
2580    merge: function merge(attributes, attributesToMerge) {
2581      return {
2582        content: (attributes.content || '') + (attributesToMerge.content || '')
2583      };
2584    },
2585    getEditWrapperProps: function getEditWrapperProps(attributes) {
2586      var width = attributes.width;
2587  
2588      if (['wide', 'full', 'left', 'right'].indexOf(width) !== -1) {
2589        return {
2590          'data-align': width
2591        };
2592      }
2593    },
2594    edit: paragraph_edit,
2595    save: save_save
2596  };
2597  
2598  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/deprecated.js
2599  
2600  
2601  
2602  
2603  /**
2604   * External dependencies
2605   */
2606  
2607  /**
2608   * WordPress dependencies
2609   */
2610  
2611  
2612  var image_deprecated_blockAttributes = {
2613    align: {
2614      type: 'string'
2615    },
2616    url: {
2617      type: 'string',
2618      source: 'attribute',
2619      selector: 'img',
2620      attribute: 'src'
2621    },
2622    alt: {
2623      type: 'string',
2624      source: 'attribute',
2625      selector: 'img',
2626      attribute: 'alt',
2627      default: ''
2628    },
2629    caption: {
2630      type: 'string',
2631      source: 'html',
2632      selector: 'figcaption'
2633    },
2634    href: {
2635      type: 'string',
2636      source: 'attribute',
2637      selector: 'figure > a',
2638      attribute: 'href'
2639    },
2640    rel: {
2641      type: 'string',
2642      source: 'attribute',
2643      selector: 'figure > a',
2644      attribute: 'rel'
2645    },
2646    linkClass: {
2647      type: 'string',
2648      source: 'attribute',
2649      selector: 'figure > a',
2650      attribute: 'class'
2651    },
2652    id: {
2653      type: 'number'
2654    },
2655    width: {
2656      type: 'number'
2657    },
2658    height: {
2659      type: 'number'
2660    },
2661    linkDestination: {
2662      type: 'string',
2663      default: 'none'
2664    },
2665    linkTarget: {
2666      type: 'string',
2667      source: 'attribute',
2668      selector: 'figure > a',
2669      attribute: 'target'
2670    }
2671  };
2672  var deprecated_deprecated = [{
2673    attributes: image_deprecated_blockAttributes,
2674    save: function save(_ref) {
2675      var _classnames;
2676  
2677      var attributes = _ref.attributes;
2678      var url = attributes.url,
2679          alt = attributes.alt,
2680          caption = attributes.caption,
2681          align = attributes.align,
2682          href = attributes.href,
2683          width = attributes.width,
2684          height = attributes.height,
2685          id = attributes.id;
2686      var classes = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'is-resized', width || height), _classnames));
2687      var image = Object(external_this_wp_element_["createElement"])("img", {
2688        src: url,
2689        alt: alt,
2690        className: id ? "wp-image-".concat(id) : null,
2691        width: width,
2692        height: height
2693      });
2694      return Object(external_this_wp_element_["createElement"])("figure", {
2695        className: classes
2696      }, href ? Object(external_this_wp_element_["createElement"])("a", {
2697        href: href
2698      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2699        tagName: "figcaption",
2700        value: caption
2701      }));
2702    }
2703  }, {
2704    attributes: image_deprecated_blockAttributes,
2705    save: function save(_ref2) {
2706      var attributes = _ref2.attributes;
2707      var url = attributes.url,
2708          alt = attributes.alt,
2709          caption = attributes.caption,
2710          align = attributes.align,
2711          href = attributes.href,
2712          width = attributes.width,
2713          height = attributes.height,
2714          id = attributes.id;
2715      var image = Object(external_this_wp_element_["createElement"])("img", {
2716        src: url,
2717        alt: alt,
2718        className: id ? "wp-image-".concat(id) : null,
2719        width: width,
2720        height: height
2721      });
2722      return Object(external_this_wp_element_["createElement"])("figure", {
2723        className: align ? "align".concat(align) : null
2724      }, href ? Object(external_this_wp_element_["createElement"])("a", {
2725        href: href
2726      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2727        tagName: "figcaption",
2728        value: caption
2729      }));
2730    }
2731  }, {
2732    attributes: image_deprecated_blockAttributes,
2733    save: function save(_ref3) {
2734      var attributes = _ref3.attributes;
2735      var url = attributes.url,
2736          alt = attributes.alt,
2737          caption = attributes.caption,
2738          align = attributes.align,
2739          href = attributes.href,
2740          width = attributes.width,
2741          height = attributes.height;
2742      var extraImageProps = width || height ? {
2743        width: width,
2744        height: height
2745      } : {};
2746      var image = Object(external_this_wp_element_["createElement"])("img", Object(esm_extends["a" /* default */])({
2747        src: url,
2748        alt: alt
2749      }, extraImageProps));
2750      var figureStyle = {};
2751  
2752      if (width) {
2753        figureStyle = {
2754          width: width
2755        };
2756      } else if (align === 'left' || align === 'right') {
2757        figureStyle = {
2758          maxWidth: '50%'
2759        };
2760      }
2761  
2762      return Object(external_this_wp_element_["createElement"])("figure", {
2763        className: align ? "align".concat(align) : null,
2764        style: figureStyle
2765      }, href ? Object(external_this_wp_element_["createElement"])("a", {
2766        href: href
2767      }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
2768        tagName: "figcaption",
2769        value: caption
2770      }));
2771    }
2772  }];
2773  /* harmony default export */ var image_deprecated = (deprecated_deprecated);
2774  
2775  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
2776  var slicedToArray = __webpack_require__(23);
2777  
2778  // EXTERNAL MODULE: external {"this":["wp","blob"]}
2779  var external_this_wp_blob_ = __webpack_require__(35);
2780  
2781  // EXTERNAL MODULE: external {"this":["wp","keycodes"]}
2782  var external_this_wp_keycodes_ = __webpack_require__(19);
2783  
2784  // EXTERNAL MODULE: external {"this":["wp","url"]}
2785  var external_this_wp_url_ = __webpack_require__(26);
2786  
2787  // EXTERNAL MODULE: external {"this":["wp","viewport"]}
2788  var external_this_wp_viewport_ = __webpack_require__(42);
2789  
2790  // EXTERNAL MODULE: external {"this":["wp","a11y"]}
2791  var external_this_wp_a11y_ = __webpack_require__(45);
2792  
2793  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/icons.js
2794  
2795  
2796  /**
2797   * WordPress dependencies
2798   */
2799  
2800  var embedContentIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2801    viewBox: "0 0 24 24",
2802    xmlns: "http://www.w3.org/2000/svg"
2803  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2804    d: "M0,0h24v24H0V0z",
2805    fill: "none"
2806  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2807    d: "M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"
2808  }));
2809  var embedAudioIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2810    viewBox: "0 0 24 24",
2811    xmlns: "http://www.w3.org/2000/svg"
2812  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2813    fill: "none",
2814    d: "M0 0h24v24H0V0z"
2815  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2816    d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"
2817  }));
2818  var embedPhotoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2819    viewBox: "0 0 24 24",
2820    xmlns: "http://www.w3.org/2000/svg"
2821  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2822    d: "M0,0h24v24H0V0z",
2823    fill: "none"
2824  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2825    d: "M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"
2826  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Polygon"], {
2827    points: "14.5 11 11 15.51 8.5 12.5 5 17 19 17"
2828  }));
2829  var embedVideoIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2830    viewBox: "0 0 24 24",
2831    xmlns: "http://www.w3.org/2000/svg"
2832  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2833    d: "M0,0h24v24H0V0z",
2834    fill: "none"
2835  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2836    d: "m10 8v8l5-4-5-4zm9-5h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2zm0 16h-14v-14h14v14z"
2837  }));
2838  var embedTwitterIcon = {
2839    foreground: '#1da1f2',
2840    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2841      xmlns: "http://www.w3.org/2000/svg",
2842      viewBox: "0 0 24 24"
2843    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2844      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"
2845    })))
2846  };
2847  var embedYouTubeIcon = {
2848    foreground: '#ff0000',
2849    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2850      viewBox: "0 0 24 24"
2851    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2852      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"
2853    }))
2854  };
2855  var embedFacebookIcon = {
2856    foreground: '#3b5998',
2857    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2858      viewBox: "0 0 24 24"
2859    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2860      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"
2861    }))
2862  };
2863  var embedInstagramIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2864    viewBox: "0 0 24 24"
2865  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2866    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"
2867  })));
2868  var embedWordPressIcon = {
2869    foreground: '#0073AA',
2870    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2871      viewBox: "0 0 24 24"
2872    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2873      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"
2874    })))
2875  };
2876  var embedSpotifyIcon = {
2877    foreground: '#1db954',
2878    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2879      viewBox: "0 0 24 24"
2880    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2881      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"
2882    }))
2883  };
2884  var embedFlickrIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2885    viewBox: "0 0 24 24"
2886  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2887    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"
2888  }));
2889  var embedVimeoIcon = {
2890    foreground: '#1ab7ea',
2891    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2892      xmlns: "http://www.w3.org/2000/svg",
2893      viewBox: "0 0 24 24"
2894    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2895      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"
2896    })))
2897  };
2898  var embedRedditIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2899    viewBox: "0 0 24 24"
2900  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2901    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"
2902  }));
2903  var embedTumbrIcon = {
2904    foreground: '#35465c',
2905    src: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2906      viewBox: "0 0 24 24"
2907    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2908      d: "M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"
2909    }))
2910  };
2911  var embedAmazonIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
2912    viewBox: "0 0 24 24"
2913  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2914    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"
2915  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2916    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"
2917  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
2918    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"
2919  }));
2920  
2921  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/core-embeds.js
2922  /**
2923   * Internal dependencies
2924   */
2925  
2926  /**
2927   * WordPress dependencies
2928   */
2929  
2930  
2931  
2932  var common = [{
2933    name: 'core-embed/twitter',
2934    settings: {
2935      title: 'Twitter',
2936      icon: embedTwitterIcon,
2937      keywords: ['tweet'],
2938      description: Object(external_this_wp_i18n_["__"])('Embed a tweet.')
2939    },
2940    patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i]
2941  }, {
2942    name: 'core-embed/youtube',
2943    settings: {
2944      title: 'YouTube',
2945      icon: embedYouTubeIcon,
2946      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('video')],
2947      description: Object(external_this_wp_i18n_["__"])('Embed a YouTube video.')
2948    },
2949    patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i]
2950  }, {
2951    name: 'core-embed/facebook',
2952    settings: {
2953      title: 'Facebook',
2954      icon: embedFacebookIcon,
2955      description: Object(external_this_wp_i18n_["__"])('Embed a Facebook post.')
2956    },
2957    patterns: [/^https?:\/\/www\.facebook.com\/.+/i]
2958  }, {
2959    name: 'core-embed/instagram',
2960    settings: {
2961      title: 'Instagram',
2962      icon: embedInstagramIcon,
2963      keywords: [Object(external_this_wp_i18n_["__"])('image')],
2964      description: Object(external_this_wp_i18n_["__"])('Embed an Instagram post.')
2965    },
2966    patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]
2967  }, {
2968    name: 'core-embed/wordpress',
2969    settings: {
2970      title: 'WordPress',
2971      icon: embedWordPressIcon,
2972      keywords: [Object(external_this_wp_i18n_["__"])('post'), Object(external_this_wp_i18n_["__"])('blog')],
2973      responsive: false,
2974      description: Object(external_this_wp_i18n_["__"])('Embed a WordPress post.')
2975    }
2976  }, {
2977    name: 'core-embed/soundcloud',
2978    settings: {
2979      title: 'SoundCloud',
2980      icon: embedAudioIcon,
2981      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
2982      description: Object(external_this_wp_i18n_["__"])('Embed SoundCloud content.')
2983    },
2984    patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]
2985  }, {
2986    name: 'core-embed/spotify',
2987    settings: {
2988      title: 'Spotify',
2989      icon: embedSpotifyIcon,
2990      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
2991      description: Object(external_this_wp_i18n_["__"])('Embed Spotify content.')
2992    },
2993    patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i]
2994  }, {
2995    name: 'core-embed/flickr',
2996    settings: {
2997      title: 'Flickr',
2998      icon: embedFlickrIcon,
2999      keywords: [Object(external_this_wp_i18n_["__"])('image')],
3000      description: Object(external_this_wp_i18n_["__"])('Embed Flickr content.')
3001    },
3002    patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i]
3003  }, {
3004    name: 'core-embed/vimeo',
3005    settings: {
3006      title: 'Vimeo',
3007      icon: embedVimeoIcon,
3008      keywords: [Object(external_this_wp_i18n_["__"])('video')],
3009      description: Object(external_this_wp_i18n_["__"])('Embed a Vimeo video.')
3010    },
3011    patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i]
3012  }];
3013  var others = [{
3014    name: 'core-embed/animoto',
3015    settings: {
3016      title: 'Animoto',
3017      icon: embedVideoIcon,
3018      description: Object(external_this_wp_i18n_["__"])('Embed an Animoto video.')
3019    },
3020    patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]
3021  }, {
3022    name: 'core-embed/cloudup',
3023    settings: {
3024      title: 'Cloudup',
3025      icon: embedContentIcon,
3026      description: Object(external_this_wp_i18n_["__"])('Embed Cloudup content.')
3027    },
3028    patterns: [/^https?:\/\/cloudup\.com\/.+/i]
3029  }, {
3030    name: 'core-embed/collegehumor',
3031    settings: {
3032      title: 'CollegeHumor',
3033      icon: embedVideoIcon,
3034      description: Object(external_this_wp_i18n_["__"])('Embed CollegeHumor content.')
3035    },
3036    patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]
3037  }, {
3038    name: 'core-embed/crowdsignal',
3039    settings: {
3040      title: 'Crowdsignal',
3041      icon: embedContentIcon,
3042      keywords: ['polldaddy'],
3043      transform: [{
3044        type: 'block',
3045        blocks: ['core-embed/polldaddy'],
3046        transform: function transform(content) {
3047          return Object(external_this_wp_blocks_["createBlock"])('core-embed/crowdsignal', {
3048            content: content
3049          });
3050        }
3051      }],
3052      description: Object(external_this_wp_i18n_["__"])('Embed Crowdsignal (formerly Polldaddy) content.')
3053    },
3054    patterns: [/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]
3055  }, {
3056    name: 'core-embed/dailymotion',
3057    settings: {
3058      title: 'Dailymotion',
3059      icon: embedVideoIcon,
3060      description: Object(external_this_wp_i18n_["__"])('Embed a Dailymotion video.')
3061    },
3062    patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]
3063  }, {
3064    name: 'core-embed/hulu',
3065    settings: {
3066      title: 'Hulu',
3067      icon: embedVideoIcon,
3068      description: Object(external_this_wp_i18n_["__"])('Embed Hulu content.')
3069    },
3070    patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i]
3071  }, {
3072    name: 'core-embed/imgur',
3073    settings: {
3074      title: 'Imgur',
3075      icon: embedPhotoIcon,
3076      description: Object(external_this_wp_i18n_["__"])('Embed Imgur content.')
3077    },
3078    patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i]
3079  }, {
3080    name: 'core-embed/issuu',
3081    settings: {
3082      title: 'Issuu',
3083      icon: embedContentIcon,
3084      description: Object(external_this_wp_i18n_["__"])('Embed Issuu content.')
3085    },
3086    patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i]
3087  }, {
3088    name: 'core-embed/kickstarter',
3089    settings: {
3090      title: 'Kickstarter',
3091      icon: embedContentIcon,
3092      description: Object(external_this_wp_i18n_["__"])('Embed Kickstarter content.')
3093    },
3094    patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i]
3095  }, {
3096    name: 'core-embed/meetup-com',
3097    settings: {
3098      title: 'Meetup.com',
3099      icon: embedContentIcon,
3100      description: Object(external_this_wp_i18n_["__"])('Embed Meetup.com content.')
3101    },
3102    patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]
3103  }, {
3104    name: 'core-embed/mixcloud',
3105    settings: {
3106      title: 'Mixcloud',
3107      icon: embedAudioIcon,
3108      keywords: [Object(external_this_wp_i18n_["__"])('music'), Object(external_this_wp_i18n_["__"])('audio')],
3109      description: Object(external_this_wp_i18n_["__"])('Embed Mixcloud content.')
3110    },
3111    patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]
3112  }, {
3113    // Deprecated in favour of the core-embed/crowdsignal block
3114    name: 'core-embed/polldaddy',
3115    settings: {
3116      title: 'Polldaddy',
3117      icon: embedContentIcon,
3118      description: Object(external_this_wp_i18n_["__"])('Embed Polldaddy content.'),
3119      supports: {
3120        inserter: false
3121      }
3122    },
3123    patterns: []
3124  }, {
3125    name: 'core-embed/reddit',
3126    settings: {
3127      title: 'Reddit',
3128      icon: embedRedditIcon,
3129      description: Object(external_this_wp_i18n_["__"])('Embed a Reddit thread.')
3130    },
3131    patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i]
3132  }, {
3133    name: 'core-embed/reverbnation',
3134    settings: {
3135      title: 'ReverbNation',
3136      icon: embedAudioIcon,
3137      description: Object(external_this_wp_i18n_["__"])('Embed ReverbNation content.')
3138    },
3139    patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]
3140  }, {
3141    name: 'core-embed/screencast',
3142    settings: {
3143      title: 'Screencast',
3144      icon: embedVideoIcon,
3145      description: Object(external_this_wp_i18n_["__"])('Embed Screencast content.')
3146    },
3147    patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i]
3148  }, {
3149    name: 'core-embed/scribd',
3150    settings: {
3151      title: 'Scribd',
3152      icon: embedContentIcon,
3153      description: Object(external_this_wp_i18n_["__"])('Embed Scribd content.')
3154    },
3155    patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i]
3156  }, {
3157    name: 'core-embed/slideshare',
3158    settings: {
3159      title: 'Slideshare',
3160      icon: embedContentIcon,
3161      description: Object(external_this_wp_i18n_["__"])('Embed Slideshare content.')
3162    },
3163    patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]
3164  }, {
3165    name: 'core-embed/smugmug',
3166    settings: {
3167      title: 'SmugMug',
3168      icon: embedPhotoIcon,
3169      description: Object(external_this_wp_i18n_["__"])('Embed SmugMug content.')
3170    },
3171    patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i]
3172  }, {
3173    // Deprecated in favour of the core-embed/speaker-deck block.
3174    name: 'core-embed/speaker',
3175    settings: {
3176      title: 'Speaker',
3177      icon: embedAudioIcon,
3178      supports: {
3179        inserter: false
3180      }
3181    },
3182    patterns: []
3183  }, {
3184    name: 'core-embed/speaker-deck',
3185    settings: {
3186      title: 'Speaker Deck',
3187      icon: embedContentIcon,
3188      transform: [{
3189        type: 'block',
3190        blocks: ['core-embed/speaker'],
3191        transform: function transform(content) {
3192          return Object(external_this_wp_blocks_["createBlock"])('core-embed/speaker-deck', {
3193            content: content
3194          });
3195        }
3196      }],
3197      description: Object(external_this_wp_i18n_["__"])('Embed Speaker Deck content.')
3198    },
3199    patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]
3200  }, {
3201    name: 'core-embed/ted',
3202    settings: {
3203      title: 'TED',
3204      icon: embedVideoIcon,
3205      description: Object(external_this_wp_i18n_["__"])('Embed a TED video.')
3206    },
3207    patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]
3208  }, {
3209    name: 'core-embed/tumblr',
3210    settings: {
3211      title: 'Tumblr',
3212      icon: embedTumbrIcon,
3213      description: Object(external_this_wp_i18n_["__"])('Embed a Tumblr post.')
3214    },
3215    patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i]
3216  }, {
3217    name: 'core-embed/videopress',
3218    settings: {
3219      title: 'VideoPress',
3220      icon: embedVideoIcon,
3221      keywords: [Object(external_this_wp_i18n_["__"])('video')],
3222      description: Object(external_this_wp_i18n_["__"])('Embed a VideoPress video.')
3223    },
3224    patterns: [/^https?:\/\/videopress\.com\/.+/i]
3225  }, {
3226    name: 'core-embed/wordpress-tv',
3227    settings: {
3228      title: 'WordPress.tv',
3229      icon: embedVideoIcon,
3230      description: Object(external_this_wp_i18n_["__"])('Embed a WordPress.tv video.')
3231    },
3232    patterns: [/^https?:\/\/wordpress\.tv\/.+/i]
3233  }, {
3234    name: 'core-embed/amazon-kindle',
3235    settings: {
3236      title: 'Amazon Kindle',
3237      icon: embedAmazonIcon,
3238      keywords: [Object(external_this_wp_i18n_["__"])('ebook')],
3239      responsive: false,
3240      description: Object(external_this_wp_i18n_["__"])('Embed Amazon Kindle content.')
3241    },
3242    patterns: [/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i, /^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]
3243  }];
3244  
3245  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js
3246  // These embeds do not work in sandboxes due to the iframe's security restrictions.
3247  var HOSTS_NO_PREVIEWS = ['facebook.com', 'smugmug.com'];
3248  var ASPECT_RATIOS = [// Common video resolutions.
3249  {
3250    ratio: '2.33',
3251    className: 'wp-embed-aspect-21-9'
3252  }, {
3253    ratio: '2.00',
3254    className: 'wp-embed-aspect-18-9'
3255  }, {
3256    ratio: '1.78',
3257    className: 'wp-embed-aspect-16-9'
3258  }, {
3259    ratio: '1.33',
3260    className: 'wp-embed-aspect-4-3'
3261  }, // Vertical video and instagram square video support.
3262  {
3263    ratio: '1.00',
3264    className: 'wp-embed-aspect-1-1'
3265  }, {
3266    ratio: '0.56',
3267    className: 'wp-embed-aspect-9-16'
3268  }, {
3269    ratio: '0.50',
3270    className: 'wp-embed-aspect-1-2'
3271  }];
3272  var DEFAULT_EMBED_BLOCK = 'core/embed';
3273  var WORDPRESS_EMBED_BLOCK = 'core-embed/wordpress';
3274  
3275  // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js
3276  var dedupe = __webpack_require__(70);
3277  var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe);
3278  
3279  // EXTERNAL MODULE: ./node_modules/memize/index.js
3280  var memize = __webpack_require__(44);
3281  var memize_default = /*#__PURE__*/__webpack_require__.n(memize);
3282  
3283  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/util.js
3284  
3285  
3286  
3287  
3288  
3289  /**
3290   * Internal dependencies
3291   */
3292  
3293  
3294  /**
3295   * External dependencies
3296   */
3297  
3298  
3299  
3300  
3301  /**
3302   * WordPress dependencies
3303   */
3304  
3305  
3306  
3307  /**
3308   * Returns true if any of the regular expressions match the URL.
3309   *
3310   * @param {string}   url      The URL to test.
3311   * @param {Array}    patterns The list of regular expressions to test agains.
3312   * @return {boolean} True if any of the regular expressions match the URL.
3313   */
3314  
3315  var matchesPatterns = function matchesPatterns(url) {
3316    var patterns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
3317    return patterns.some(function (pattern) {
3318      return url.match(pattern);
3319    });
3320  };
3321  /**
3322   * Finds the block name that should be used for the URL, based on the
3323   * structure of the URL.
3324   *
3325   * @param {string}  url The URL to test.
3326   * @return {string} The name of the block that should be used for this URL, e.g. core-embed/twitter
3327   */
3328  
3329  var util_findBlock = function findBlock(url) {
3330    for (var _i = 0, _arr = [].concat(Object(toConsumableArray["a" /* default */])(common), Object(toConsumableArray["a" /* default */])(others)); _i < _arr.length; _i++) {
3331      var block = _arr[_i];
3332  
3333      if (matchesPatterns(url, block.patterns)) {
3334        return block.name;
3335      }
3336    }
3337  
3338    return DEFAULT_EMBED_BLOCK;
3339  };
3340  var util_isFromWordPress = function isFromWordPress(html) {
3341    return Object(external_lodash_["includes"])(html, 'class="wp-embedded-content"');
3342  };
3343  var util_getPhotoHtml = function getPhotoHtml(photo) {
3344    // 100% width for the preview so it fits nicely into the document, some "thumbnails" are
3345    // actually the full size photo. If thumbnails not found, use full image.
3346    var imageUrl = photo.thumbnail_url ? photo.thumbnail_url : photo.url;
3347    var photoPreview = Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_element_["createElement"])("img", {
3348      src: imageUrl,
3349      alt: photo.title,
3350      width: "100%"
3351    }));
3352    return Object(external_this_wp_element_["renderToString"])(photoPreview);
3353  };
3354  /**
3355   * Creates a more suitable embed block based on the passed in props
3356   * and attributes generated from an embed block's preview.
3357   *
3358   * We require `attributesFromPreview` to be generated from the latest attributes
3359   * and preview, and because of the way the react lifecycle operates, we can't
3360   * guarantee that the attributes contained in the block's props are the latest
3361   * versions, so we require that these are generated separately.
3362   * See `getAttributesFromPreview` in the generated embed edit component.
3363   *
3364   * @param {Object} props                  The block's props.
3365   * @param {Object} attributesFromPreview  Attributes generated from the block's most up to date preview.
3366   * @return {Object|undefined} A more suitable embed block if one exists.
3367   */
3368  
3369  var util_createUpgradedEmbedBlock = function createUpgradedEmbedBlock(props, attributesFromPreview) {
3370    var preview = props.preview,
3371        name = props.name;
3372    var url = props.attributes.url;
3373  
3374    if (!url) {
3375      return;
3376    }
3377  
3378    var matchingBlock = util_findBlock(url);
3379  
3380    if (!Object(external_this_wp_blocks_["getBlockType"])(matchingBlock)) {
3381      return;
3382    } // WordPress blocks can work on multiple sites, and so don't have patterns,
3383    // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL.
3384  
3385  
3386    if (WORDPRESS_EMBED_BLOCK !== name && DEFAULT_EMBED_BLOCK !== matchingBlock) {
3387      // At this point, we have discovered a more suitable block for this url, so transform it.
3388      if (name !== matchingBlock) {
3389        return Object(external_this_wp_blocks_["createBlock"])(matchingBlock, {
3390          url: url
3391        });
3392      }
3393    }
3394  
3395    if (preview) {
3396      var html = preview.html; // We can't match the URL for WordPress embeds, we have to check the HTML instead.
3397  
3398      if (util_isFromWordPress(html)) {
3399        // If this is not the WordPress embed block, transform it into one.
3400        if (WORDPRESS_EMBED_BLOCK !== name) {
3401          return Object(external_this_wp_blocks_["createBlock"])(WORDPRESS_EMBED_BLOCK, Object(objectSpread["a" /* default */])({
3402            url: url
3403          }, attributesFromPreview));
3404        }
3405      }
3406    }
3407  };
3408  /**
3409   * Returns class names with any relevant responsive aspect ratio names.
3410   *
3411   * @param {string}  html               The preview HTML that possibly contains an iframe with width and height set.
3412   * @param {string}  existingClassNames Any existing class names.
3413   * @param {boolean} allowResponsive    If the responsive class names should be added, or removed.
3414   * @return {string} Deduped class names.
3415   */
3416  
3417  function getClassNames(html) {
3418    var existingClassNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
3419    var allowResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3420  
3421    if (!allowResponsive) {
3422      // Remove all of the aspect ratio related class names.
3423      var aspectRatioClassNames = {
3424        'wp-has-aspect-ratio': false
3425      };
3426  
3427      for (var ratioIndex = 0; ratioIndex < ASPECT_RATIOS.length; ratioIndex++) {
3428        var aspectRatioToRemove = ASPECT_RATIOS[ratioIndex];
3429        aspectRatioClassNames[aspectRatioToRemove.className] = false;
3430      }
3431  
3432      return dedupe_default()(existingClassNames, aspectRatioClassNames);
3433    }
3434  
3435    var previewDocument = document.implementation.createHTMLDocument('');
3436    previewDocument.body.innerHTML = html;
3437    var iframe = previewDocument.body.querySelector('iframe'); // If we have a fixed aspect iframe, and it's a responsive embed block.
3438  
3439    if (iframe && iframe.height && iframe.width) {
3440      var aspectRatio = (iframe.width / iframe.height).toFixed(2); // Given the actual aspect ratio, find the widest ratio to support it.
3441  
3442      for (var _ratioIndex = 0; _ratioIndex < ASPECT_RATIOS.length; _ratioIndex++) {
3443        var potentialRatio = ASPECT_RATIOS[_ratioIndex];
3444  
3445        if (aspectRatio >= potentialRatio.ratio) {
3446          var _classnames;
3447  
3448          return dedupe_default()(existingClassNames, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, potentialRatio.className, allowResponsive), Object(defineProperty["a" /* default */])(_classnames, 'wp-has-aspect-ratio', allowResponsive), _classnames));
3449        }
3450      }
3451    }
3452  
3453    return existingClassNames;
3454  }
3455  /**
3456   * Fallback behaviour for unembeddable URLs.
3457   * Creates a paragraph block containing a link to the URL, and calls `onReplace`.
3458   *
3459   * @param {string}   url       The URL that could not be embedded.
3460   * @param {Function} onReplace Function to call with the created fallback block.
3461   */
3462  
3463  function util_fallback(url, onReplace) {
3464    var link = Object(external_this_wp_element_["createElement"])("a", {
3465      href: url
3466    }, url);
3467    onReplace(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
3468      content: Object(external_this_wp_element_["renderToString"])(link)
3469    }));
3470  }
3471  /***
3472   * Gets block attributes based on the preview and responsive state.
3473   *
3474   * @param {Object} preview The preview data.
3475   * @param {string} title The block's title, e.g. Twitter.
3476   * @param {Object} currentClassNames The block's current class names.
3477   * @param {boolean} isResponsive Boolean indicating if the block supports responsive content.
3478   * @param {boolean} allowResponsive Apply responsive classes to fixed size content.
3479   * @return {Object} Attributes and values.
3480   */
3481  
3482  var getAttributesFromPreview = memize_default()(function (preview, title, currentClassNames, isResponsive) {
3483    var allowResponsive = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
3484  
3485    if (!preview) {
3486      return {};
3487    }
3488  
3489    var attributes = {}; // Some plugins only return HTML with no type info, so default this to 'rich'.
3490  
3491    var _preview$type = preview.type,
3492        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,
3493    // because not all embed code gives us a provider name.
3494  
3495    var html = preview.html,
3496        providerName = preview.provider_name;
3497    var providerNameSlug = Object(external_lodash_["kebabCase"])(Object(external_lodash_["toLower"])('' !== providerName ? providerName : title));
3498  
3499    if (util_isFromWordPress(html)) {
3500      type = 'wp-embed';
3501    }
3502  
3503    if (html || 'photo' === type) {
3504      attributes.type = type;
3505      attributes.providerNameSlug = providerNameSlug;
3506    }
3507  
3508    attributes.className = getClassNames(html, currentClassNames, isResponsive && allowResponsive);
3509    return attributes;
3510  });
3511  
3512  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/icon.js
3513  
3514  
3515  /**
3516   * WordPress dependencies
3517   */
3518  
3519  /* harmony default export */ var image_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
3520    viewBox: "0 0 24 24",
3521    xmlns: "http://www.w3.org/2000/svg"
3522  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3523    d: "M0,0h24v24H0V0z",
3524    fill: "none"
3525  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3526    d: "m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"
3527  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
3528    d: "m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"
3529  })));
3530  
3531  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/utils.js
3532  function calculatePreferedImageSize(image, container) {
3533    var maxWidth = container.clientWidth;
3534    var exceedMaxWidth = image.width > maxWidth;
3535    var ratio = image.height / image.width;
3536    var width = exceedMaxWidth ? maxWidth : image.width;
3537    var height = exceedMaxWidth ? maxWidth * ratio : image.height;
3538    return {
3539      width: width,
3540      height: height
3541    };
3542  }
3543  
3544  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/image-size.js
3545  
3546  
3547  
3548  
3549  
3550  
3551  
3552  
3553  /**
3554   * External dependencies
3555   */
3556  
3557  /**
3558   * WordPress dependencies
3559   */
3560  
3561  
3562  
3563  /**
3564   * Internal dependencies
3565   */
3566  
3567  
3568  
3569  var image_size_ImageSize =
3570  /*#__PURE__*/
3571  function (_Component) {
3572    Object(inherits["a" /* default */])(ImageSize, _Component);
3573  
3574    function ImageSize() {
3575      var _this;
3576  
3577      Object(classCallCheck["a" /* default */])(this, ImageSize);
3578  
3579      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageSize).apply(this, arguments));
3580      _this.state = {
3581        width: undefined,
3582        height: undefined
3583      };
3584      _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this));
3585      _this.calculateSize = _this.calculateSize.bind(Object(assertThisInitialized["a" /* default */])(_this));
3586      return _this;
3587    }
3588  
3589    Object(createClass["a" /* default */])(ImageSize, [{
3590      key: "bindContainer",
3591      value: function bindContainer(ref) {
3592        this.container = ref;
3593      }
3594    }, {
3595      key: "componentDidUpdate",
3596      value: function componentDidUpdate(prevProps) {
3597        if (this.props.src !== prevProps.src) {
3598          this.setState({
3599            width: undefined,
3600            height: undefined
3601          });
3602          this.fetchImageSize();
3603        }
3604  
3605        if (this.props.dirtynessTrigger !== prevProps.dirtynessTrigger) {
3606          this.calculateSize();
3607        }
3608      }
3609    }, {
3610      key: "componentDidMount",
3611      value: function componentDidMount() {
3612        this.fetchImageSize();
3613      }
3614    }, {
3615      key: "componentWillUnmount",
3616      value: function componentWillUnmount() {
3617        if (this.image) {
3618          this.image.onload = external_lodash_["noop"];
3619        }
3620      }
3621    }, {
3622      key: "fetchImageSize",
3623      value: function fetchImageSize() {
3624        this.image = new window.Image();
3625        this.image.onload = this.calculateSize;
3626        this.image.src = this.props.src;
3627      }
3628    }, {
3629      key: "calculateSize",
3630      value: function calculateSize() {
3631        var _calculatePreferedIma = calculatePreferedImageSize(this.image, this.container),
3632            width = _calculatePreferedIma.width,
3633            height = _calculatePreferedIma.height;
3634  
3635        this.setState({
3636          width: width,
3637          height: height
3638        });
3639      }
3640    }, {
3641      key: "render",
3642      value: function render() {
3643        var sizes = {
3644          imageWidth: this.image && this.image.width,
3645          imageHeight: this.image && this.image.height,
3646          containerWidth: this.container && this.container.clientWidth,
3647          containerHeight: this.container && this.container.clientHeight,
3648          imageWidthWithinContainer: this.state.width,
3649          imageHeightWithinContainer: this.state.height
3650        };
3651        return Object(external_this_wp_element_["createElement"])("div", {
3652          ref: this.bindContainer
3653        }, this.props.children(sizes));
3654      }
3655    }]);
3656  
3657    return ImageSize;
3658  }(external_this_wp_element_["Component"]);
3659  
3660  /* harmony default export */ var image_size = (Object(external_this_wp_compose_["withGlobalEvents"])({
3661    resize: 'calculateSize'
3662  })(image_size_ImageSize));
3663  
3664  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/edit.js
3665  
3666  
3667  
3668  
3669  
3670  
3671  
3672  
3673  
3674  
3675  
3676  /**
3677   * External dependencies
3678   */
3679  
3680  
3681  /**
3682   * WordPress dependencies
3683   */
3684  
3685  
3686  
3687  
3688  
3689  
3690  
3691  
3692  
3693  
3694  
3695  
3696  /**
3697   * Internal dependencies
3698   */
3699  
3700  
3701  
3702  
3703  /**
3704   * Module constants
3705   */
3706  
3707  var MIN_SIZE = 20;
3708  var LINK_DESTINATION_NONE = 'none';
3709  var LINK_DESTINATION_MEDIA = 'media';
3710  var LINK_DESTINATION_ATTACHMENT = 'attachment';
3711  var LINK_DESTINATION_CUSTOM = 'custom';
3712  var NEW_TAB_REL = 'noreferrer noopener';
3713  var ALLOWED_MEDIA_TYPES = ['image'];
3714  var DEFAULT_SIZE_SLUG = 'large';
3715  var edit_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
3716    var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']);
3717    imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url;
3718    return imageProps;
3719  };
3720  /**
3721   * Is the URL a temporary blob URL? A blob URL is one that is used temporarily
3722   * while the image is being uploaded and will not have an id yet allocated.
3723   *
3724   * @param {number=} id The id of the image.
3725   * @param {string=} url The url of the image.
3726   *
3727   * @return {boolean} Is the URL a Blob URL
3728   */
3729  
3730  var edit_isTemporaryImage = function isTemporaryImage(id, url) {
3731    return !id && Object(external_this_wp_blob_["isBlobURL"])(url);
3732  };
3733  /**
3734   * Is the url for the image hosted externally. An externally hosted image has no id
3735   * and is not a blob url.
3736   *
3737   * @param {number=} id  The id of the image.
3738   * @param {string=} url The url of the image.
3739   *
3740   * @return {boolean} Is the url an externally hosted url?
3741   */
3742  
3743  
3744  var edit_isExternalImage = function isExternalImage(id, url) {
3745    return url && !id && !Object(external_this_wp_blob_["isBlobURL"])(url);
3746  };
3747  
3748  var stopPropagation = function stopPropagation(event) {
3749    event.stopPropagation();
3750  };
3751  
3752  var edit_stopPropagationRelevantKeys = function stopPropagationRelevantKeys(event) {
3753    if ([external_this_wp_keycodes_["LEFT"], external_this_wp_keycodes_["DOWN"], external_this_wp_keycodes_["RIGHT"], external_this_wp_keycodes_["UP"], external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["ENTER"]].indexOf(event.keyCode) > -1) {
3754      // Stop the key event from propagating up to ObserveTyping.startTypingInTextField.
3755      event.stopPropagation();
3756    }
3757  };
3758  
3759  var edit_ImageURLInputUI = function ImageURLInputUI(_ref) {
3760    var advancedOptions = _ref.advancedOptions,
3761        linkDestination = _ref.linkDestination,
3762        mediaLinks = _ref.mediaLinks,
3763        onChangeUrl = _ref.onChangeUrl,
3764        url = _ref.url;
3765  
3766    var _useState = Object(external_this_wp_element_["useState"])(false),
3767        _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
3768        isOpen = _useState2[0],
3769        setIsOpen = _useState2[1];
3770  
3771    var openLinkUI = Object(external_this_wp_element_["useCallback"])(function () {
3772      setIsOpen(true);
3773    });
3774  
3775    var _useState3 = Object(external_this_wp_element_["useState"])(false),
3776        _useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
3777        isEditingLink = _useState4[0],
3778        setIsEditingLink = _useState4[1];
3779  
3780    var _useState5 = Object(external_this_wp_element_["useState"])(null),
3781        _useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
3782        urlInput = _useState6[0],
3783        setUrlInput = _useState6[1];
3784  
3785    var startEditLink = Object(external_this_wp_element_["useCallback"])(function () {
3786      if (linkDestination === LINK_DESTINATION_MEDIA || linkDestination === LINK_DESTINATION_ATTACHMENT) {
3787        setUrlInput('');
3788      }
3789  
3790      setIsEditingLink(true);
3791    });
3792    var stopEditLink = Object(external_this_wp_element_["useCallback"])(function () {
3793      setIsEditingLink(false);
3794    });
3795    var closeLinkUI = Object(external_this_wp_element_["useCallback"])(function () {
3796      setUrlInput(null);
3797      stopEditLink();
3798      setIsOpen(false);
3799    });
3800    var autocompleteRef = Object(external_this_wp_element_["useRef"])(null);
3801    var onClickOutside = Object(external_this_wp_element_["useCallback"])(function () {
3802      return function (event) {
3803        // The autocomplete suggestions list renders in a separate popover (in a portal),
3804        // so onClickOutside fails to detect that a click on a suggestion occurred in the
3805        // LinkContainer. Detect clicks on autocomplete suggestions using a ref here, and
3806        // return to avoid the popover being closed.
3807        var autocompleteElement = autocompleteRef.current;
3808  
3809        if (autocompleteElement && autocompleteElement.contains(event.target)) {
3810          return;
3811        }
3812  
3813        setIsOpen(false);
3814        setUrlInput(null);
3815        stopEditLink();
3816      };
3817    });
3818    var onSubmitLinkChange = Object(external_this_wp_element_["useCallback"])(function () {
3819      return function (event) {
3820        if (urlInput) {
3821          onChangeUrl(urlInput);
3822        }
3823  
3824        stopEditLink();
3825        setUrlInput(null);
3826        event.preventDefault();
3827      };
3828    });
3829    var onLinkRemove = Object(external_this_wp_element_["useCallback"])(function () {
3830      closeLinkUI();
3831      onChangeUrl('');
3832    });
3833    var linkEditorValue = urlInput !== null ? urlInput : url;
3834    var urlLabel = (Object(external_lodash_["find"])(mediaLinks, ['linkDestination', linkDestination]) || {}).title;
3835    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
3836      icon: "admin-links",
3837      className: "components-toolbar__control",
3838      label: url ? Object(external_this_wp_i18n_["__"])('Edit link') : Object(external_this_wp_i18n_["__"])('Insert link'),
3839      "aria-expanded": isOpen,
3840      onClick: openLinkUI
3841    }), isOpen && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"], {
3842      onClickOutside: onClickOutside(),
3843      onClose: closeLinkUI,
3844      renderSettings: function renderSettings() {
3845        return advancedOptions;
3846      },
3847      additionalControls: !linkEditorValue && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["NavigableMenu"], null, Object(external_lodash_["map"])(mediaLinks, function (link) {
3848        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], {
3849          key: link.linkDestination,
3850          icon: link.icon,
3851          onClick: function onClick() {
3852            setUrlInput(null);
3853            onChangeUrl(link.url);
3854            stopEditLink();
3855          }
3856        }, link.title);
3857      }))
3858    }, (!url || isEditingLink) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"].LinkEditor, {
3859      className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",
3860      value: linkEditorValue,
3861      onChangeInputValue: setUrlInput,
3862      onKeyDown: edit_stopPropagationRelevantKeys,
3863      onKeyPress: stopPropagation,
3864      onSubmit: onSubmitLinkChange(),
3865      autocompleteRef: autocompleteRef
3866    }), url && !isEditingLink && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLPopover"].LinkViewer, {
3867      className: "editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",
3868      onKeyPress: stopPropagation,
3869      url: url,
3870      onEditLinkClick: startEditLink,
3871      urlLabel: urlLabel
3872    }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
3873      icon: "no",
3874      label: Object(external_this_wp_i18n_["__"])('Remove link'),
3875      onClick: onLinkRemove
3876    }))));
3877  };
3878  
3879  var edit_ImageEdit =
3880  /*#__PURE__*/
3881  function (_Component) {
3882    Object(inherits["a" /* default */])(ImageEdit, _Component);
3883  
3884    function ImageEdit(_ref2) {
3885      var _this;
3886  
3887      var attributes = _ref2.attributes;
3888  
3889      Object(classCallCheck["a" /* default */])(this, ImageEdit);
3890  
3891      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ImageEdit).apply(this, arguments));
3892      _this.updateAlt = _this.updateAlt.bind(Object(assertThisInitialized["a" /* default */])(_this));
3893      _this.updateAlignment = _this.updateAlignment.bind(Object(assertThisInitialized["a" /* default */])(_this));
3894      _this.onFocusCaption = _this.onFocusCaption.bind(Object(assertThisInitialized["a" /* default */])(_this));
3895      _this.onImageClick = _this.onImageClick.bind(Object(assertThisInitialized["a" /* default */])(_this));
3896      _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
3897      _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this));
3898      _this.updateImage = _this.updateImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
3899      _this.updateWidth = _this.updateWidth.bind(Object(assertThisInitialized["a" /* default */])(_this));
3900      _this.updateHeight = _this.updateHeight.bind(Object(assertThisInitialized["a" /* default */])(_this));
3901      _this.updateDimensions = _this.updateDimensions.bind(Object(assertThisInitialized["a" /* default */])(_this));
3902      _this.onSetHref = _this.onSetHref.bind(Object(assertThisInitialized["a" /* default */])(_this));
3903      _this.onSetLinkClass = _this.onSetLinkClass.bind(Object(assertThisInitialized["a" /* default */])(_this));
3904      _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(_this));
3905      _this.onSetNewTab = _this.onSetNewTab.bind(Object(assertThisInitialized["a" /* default */])(_this));
3906      _this.getFilename = _this.getFilename.bind(Object(assertThisInitialized["a" /* default */])(_this));
3907      _this.toggleIsEditing = _this.toggleIsEditing.bind(Object(assertThisInitialized["a" /* default */])(_this));
3908      _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this));
3909      _this.onImageError = _this.onImageError.bind(Object(assertThisInitialized["a" /* default */])(_this));
3910      _this.getLinkDestinations = _this.getLinkDestinations.bind(Object(assertThisInitialized["a" /* default */])(_this));
3911      _this.state = {
3912        captionFocused: false,
3913        isEditing: !attributes.url
3914      };
3915      return _this;
3916    }
3917  
3918    Object(createClass["a" /* default */])(ImageEdit, [{
3919      key: "componentDidMount",
3920      value: function componentDidMount() {
3921        var _this2 = this;
3922  
3923        var _this$props = this.props,
3924            attributes = _this$props.attributes,
3925            mediaUpload = _this$props.mediaUpload,
3926            noticeOperations = _this$props.noticeOperations;
3927        var id = attributes.id,
3928            _attributes$url = attributes.url,
3929            url = _attributes$url === void 0 ? '' : _attributes$url;
3930  
3931        if (edit_isTemporaryImage(id, url)) {
3932          var file = Object(external_this_wp_blob_["getBlobByURL"])(url);
3933  
3934          if (file) {
3935            mediaUpload({
3936              filesList: [file],
3937              onFileChange: function onFileChange(_ref3) {
3938                var _ref4 = Object(slicedToArray["a" /* default */])(_ref3, 1),
3939                    image = _ref4[0];
3940  
3941                _this2.onSelectImage(image);
3942              },
3943              allowedTypes: ALLOWED_MEDIA_TYPES,
3944              onError: function onError(message) {
3945                noticeOperations.createErrorNotice(message);
3946  
3947                _this2.setState({
3948                  isEditing: true
3949                });
3950              }
3951            });
3952          }
3953        }
3954      }
3955    }, {
3956      key: "componentDidUpdate",
3957      value: function componentDidUpdate(prevProps) {
3958        var _prevProps$attributes = prevProps.attributes,
3959            prevID = _prevProps$attributes.id,
3960            _prevProps$attributes2 = _prevProps$attributes.url,
3961            prevURL = _prevProps$attributes2 === void 0 ? '' : _prevProps$attributes2;
3962        var _this$props$attribute = this.props.attributes,
3963            id = _this$props$attribute.id,
3964            _this$props$attribute2 = _this$props$attribute.url,
3965            url = _this$props$attribute2 === void 0 ? '' : _this$props$attribute2;
3966  
3967        if (edit_isTemporaryImage(prevID, prevURL) && !edit_isTemporaryImage(id, url)) {
3968          Object(external_this_wp_blob_["revokeBlobURL"])(url);
3969        }
3970  
3971        if (!this.props.isSelected && prevProps.isSelected && this.state.captionFocused) {
3972          this.setState({
3973            captionFocused: false
3974          });
3975        }
3976      }
3977    }, {
3978      key: "onUploadError",
3979      value: function onUploadError(message) {
3980        var noticeOperations = this.props.noticeOperations;
3981        noticeOperations.removeAllNotices();
3982        noticeOperations.createErrorNotice(message);
3983        this.setState({
3984          isEditing: true
3985        });
3986      }
3987    }, {
3988      key: "onSelectImage",
3989      value: function onSelectImage(media) {
3990        if (!media || !media.url) {
3991          this.props.setAttributes({
3992            url: undefined,
3993            alt: undefined,
3994            id: undefined,
3995            caption: undefined
3996          });
3997          return;
3998        }
3999  
4000        this.setState({
4001          isEditing: false
4002        });
4003        var _this$props$attribute3 = this.props.attributes,
4004            id = _this$props$attribute3.id,
4005            url = _this$props$attribute3.url,
4006            alt = _this$props$attribute3.alt,
4007            caption = _this$props$attribute3.caption;
4008        var mediaAttributes = edit_pickRelevantMediaFiles(media); // If the current image is temporary but an alt or caption text was meanwhile written by the user,
4009        // make sure the text is not overwritten.
4010  
4011        if (edit_isTemporaryImage(id, url)) {
4012          if (alt) {
4013            mediaAttributes = Object(external_lodash_["omit"])(mediaAttributes, ['alt']);
4014          }
4015  
4016          if (caption) {
4017            mediaAttributes = Object(external_lodash_["omit"])(mediaAttributes, ['caption']);
4018          }
4019        }
4020  
4021        var additionalAttributes; // Reset the dimension attributes if changing to a different image.
4022  
4023        if (!media.id || media.id !== id) {
4024          additionalAttributes = {
4025            width: undefined,
4026            height: undefined,
4027            sizeSlug: DEFAULT_SIZE_SLUG
4028          };
4029        } else {
4030          // Keep the same url when selecting the same file, so "Image Size" option is not changed.
4031          additionalAttributes = {
4032            url: url
4033          };
4034        }
4035  
4036        this.props.setAttributes(Object(objectSpread["a" /* default */])({}, mediaAttributes, additionalAttributes));
4037      }
4038    }, {
4039      key: "onSelectURL",
4040      value: function onSelectURL(newURL) {
4041        var url = this.props.attributes.url;
4042  
4043        if (newURL !== url) {
4044          this.props.setAttributes({
4045            url: newURL,
4046            id: undefined,
4047            sizeSlug: DEFAULT_SIZE_SLUG
4048          });
4049        }
4050  
4051        this.setState({
4052          isEditing: false
4053        });
4054      }
4055    }, {
4056      key: "onImageError",
4057      value: function onImageError(url) {
4058        // Check if there's an embed block that handles this URL.
4059        var embedBlock = util_createUpgradedEmbedBlock({
4060          attributes: {
4061            url: url
4062          }
4063        });
4064  
4065        if (undefined !== embedBlock) {
4066          this.props.onReplace(embedBlock);
4067        }
4068      }
4069    }, {
4070      key: "onSetHref",
4071      value: function onSetHref(value) {
4072        var linkDestinations = this.getLinkDestinations();
4073        var attributes = this.props.attributes;
4074        var linkDestination = attributes.linkDestination;
4075        var linkDestinationInput;
4076  
4077        if (!value) {
4078          linkDestinationInput = LINK_DESTINATION_NONE;
4079        } else {
4080          linkDestinationInput = (Object(external_lodash_["find"])(linkDestinations, function (destination) {
4081            return destination.url === value;
4082          }) || {
4083            linkDestination: LINK_DESTINATION_CUSTOM
4084          }).linkDestination;
4085        }
4086  
4087        if (linkDestination !== linkDestinationInput) {
4088          this.props.setAttributes({
4089            linkDestination: linkDestinationInput,
4090            href: value
4091          });
4092          return;
4093        }
4094  
4095        this.props.setAttributes({
4096          href: value
4097        });
4098      }
4099    }, {
4100      key: "onSetLinkClass",
4101      value: function onSetLinkClass(value) {
4102        this.props.setAttributes({
4103          linkClass: value
4104        });
4105      }
4106    }, {
4107      key: "onSetLinkRel",
4108      value: function onSetLinkRel(value) {
4109        this.props.setAttributes({
4110          rel: value
4111        });
4112      }
4113    }, {
4114      key: "onSetNewTab",
4115      value: function onSetNewTab(value) {
4116        var rel = this.props.attributes.rel;
4117        var linkTarget = value ? '_blank' : undefined;
4118        var updatedRel = rel;
4119  
4120        if (linkTarget && !rel) {
4121          updatedRel = NEW_TAB_REL;
4122        } else if (!linkTarget && rel === NEW_TAB_REL) {
4123          updatedRel = undefined;
4124        }
4125  
4126        this.props.setAttributes({
4127          linkTarget: linkTarget,
4128          rel: updatedRel
4129        });
4130      }
4131    }, {
4132      key: "onFocusCaption",
4133      value: function onFocusCaption() {
4134        if (!this.state.captionFocused) {
4135          this.setState({
4136            captionFocused: true
4137          });
4138        }
4139      }
4140    }, {
4141      key: "onImageClick",
4142      value: function onImageClick() {
4143        if (this.state.captionFocused) {
4144          this.setState({
4145            captionFocused: false
4146          });
4147        }
4148      }
4149    }, {
4150      key: "updateAlt",
4151      value: function updateAlt(newAlt) {
4152        this.props.setAttributes({
4153          alt: newAlt
4154        });
4155      }
4156    }, {
4157      key: "updateAlignment",
4158      value: function updateAlignment(nextAlign) {
4159        var extraUpdatedAttributes = ['wide', 'full'].indexOf(nextAlign) !== -1 ? {
4160          width: undefined,
4161          height: undefined
4162        } : {};
4163        this.props.setAttributes(Object(objectSpread["a" /* default */])({}, extraUpdatedAttributes, {
4164          align: nextAlign
4165        }));
4166      }
4167    }, {
4168      key: "updateImage",
4169      value: function updateImage(sizeSlug) {
4170        var image = this.props.image;
4171        var url = Object(external_lodash_["get"])(image, ['media_details', 'sizes', sizeSlug, 'source_url']);
4172  
4173        if (!url) {
4174          return null;
4175        }
4176  
4177        this.props.setAttributes({
4178          url: url,
4179          width: undefined,
4180          height: undefined,
4181          sizeSlug: sizeSlug
4182        });
4183      }
4184    }, {
4185      key: "updateWidth",
4186      value: function updateWidth(width) {
4187        this.props.setAttributes({
4188          width: parseInt(width, 10)
4189        });
4190      }
4191    }, {
4192      key: "updateHeight",
4193      value: function updateHeight(height) {
4194        this.props.setAttributes({
4195          height: parseInt(height, 10)
4196        });
4197      }
4198    }, {
4199      key: "updateDimensions",
4200      value: function updateDimensions() {
4201        var _this3 = this;
4202  
4203        var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
4204        var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
4205        return function () {
4206          _this3.props.setAttributes({
4207            width: width,
4208            height: height
4209          });
4210        };
4211      }
4212    }, {
4213      key: "getFilename",
4214      value: function getFilename(url) {
4215        var path = Object(external_this_wp_url_["getPath"])(url);
4216  
4217        if (path) {
4218          return Object(external_lodash_["last"])(path.split('/'));
4219        }
4220      }
4221    }, {
4222      key: "getLinkDestinations",
4223      value: function getLinkDestinations() {
4224        return [{
4225          linkDestination: LINK_DESTINATION_MEDIA,
4226          title: Object(external_this_wp_i18n_["__"])('Media File'),
4227          url: this.props.image && this.props.image.source_url || this.props.attributes.url,
4228          icon: image_icon
4229        }, {
4230          linkDestination: LINK_DESTINATION_ATTACHMENT,
4231          title: Object(external_this_wp_i18n_["__"])('Attachment Page'),
4232          url: this.props.image && this.props.image.link,
4233          icon: Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
4234            viewBox: "0 0 24 24",
4235            xmlns: "http://www.w3.org/2000/svg"
4236          }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
4237            d: "M0 0h24v24H0V0z",
4238            fill: "none"
4239          }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
4240            d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"
4241          }))
4242        }];
4243      }
4244    }, {
4245      key: "toggleIsEditing",
4246      value: function toggleIsEditing() {
4247        this.setState({
4248          isEditing: !this.state.isEditing
4249        });
4250  
4251        if (this.state.isEditing) {
4252          Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are now viewing the image in the image block.'));
4253        } else {
4254          Object(external_this_wp_a11y_["speak"])(Object(external_this_wp_i18n_["__"])('You are now editing the image in the image block.'));
4255        }
4256      }
4257    }, {
4258      key: "getImageSizeOptions",
4259      value: function getImageSizeOptions() {
4260        var imageSizes = this.props.imageSizes;
4261        return Object(external_lodash_["map"])(imageSizes, function (_ref5) {
4262          var name = _ref5.name,
4263              slug = _ref5.slug;
4264          return {
4265            value: slug,
4266            label: name
4267          };
4268        });
4269      }
4270    }, {
4271      key: "render",
4272      value: function render() {
4273        var _this4 = this;
4274  
4275        var isEditing = this.state.isEditing;
4276        var _this$props2 = this.props,
4277            attributes = _this$props2.attributes,
4278            setAttributes = _this$props2.setAttributes,
4279            isLargeViewport = _this$props2.isLargeViewport,
4280            isSelected = _this$props2.isSelected,
4281            className = _this$props2.className,
4282            maxWidth = _this$props2.maxWidth,
4283            noticeUI = _this$props2.noticeUI,
4284            isRTL = _this$props2.isRTL,
4285            onResizeStart = _this$props2.onResizeStart,
4286            _onResizeStop = _this$props2.onResizeStop;
4287        var url = attributes.url,
4288            alt = attributes.alt,
4289            caption = attributes.caption,
4290            align = attributes.align,
4291            id = attributes.id,
4292            href = attributes.href,
4293            rel = attributes.rel,
4294            linkClass = attributes.linkClass,
4295            linkDestination = attributes.linkDestination,
4296            width = attributes.width,
4297            height = attributes.height,
4298            linkTarget = attributes.linkTarget,
4299            sizeSlug = attributes.sizeSlug;
4300        var isExternal = edit_isExternalImage(id, url);
4301        var editImageIcon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
4302          width: 20,
4303          height: 20,
4304          viewBox: "0 0 20 20"
4305        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], {
4306          x: 11,
4307          y: 3,
4308          width: 7,
4309          height: 5,
4310          rx: 1
4311        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Rect"], {
4312          x: 2,
4313          y: 12,
4314          width: 7,
4315          height: 5,
4316          rx: 1
4317        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
4318          d: "M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z"
4319        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
4320          d: "M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z"
4321        }));
4322        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"], {
4323          value: align,
4324          onChange: this.updateAlignment
4325        }), url && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
4326          className: classnames_default()('components-icon-button components-toolbar__control', {
4327            'is-active': this.state.isEditing
4328          }),
4329          label: Object(external_this_wp_i18n_["__"])('Edit image'),
4330          "aria-pressed": this.state.isEditing,
4331          onClick: this.toggleIsEditing,
4332          icon: editImageIcon
4333        })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(edit_ImageURLInputUI, {
4334          url: href || '',
4335          onChangeUrl: this.onSetHref,
4336          mediaLinks: this.getLinkDestinations(),
4337          linkDestination: linkDestination,
4338          advancedOptions: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
4339            label: Object(external_this_wp_i18n_["__"])('Open in New Tab'),
4340            onChange: this.onSetNewTab,
4341            checked: linkTarget === '_blank'
4342          }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
4343            label: Object(external_this_wp_i18n_["__"])('Link CSS Class'),
4344            value: linkClass || '',
4345            onKeyPress: stopPropagation,
4346            onKeyDown: edit_stopPropagationRelevantKeys,
4347            onChange: this.onSetLinkClass
4348          }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
4349            label: Object(external_this_wp_i18n_["__"])('Link Rel'),
4350            value: rel || '',
4351            onChange: this.onSetLinkRel,
4352            onKeyPress: stopPropagation,
4353            onKeyDown: edit_stopPropagationRelevantKeys
4354          }))
4355        }))));
4356        var src = isExternal ? url : undefined;
4357        var labels = {
4358          title: !url ? Object(external_this_wp_i18n_["__"])('Image') : Object(external_this_wp_i18n_["__"])('Edit image'),
4359          instructions: Object(external_this_wp_i18n_["__"])('Upload an image file, pick one from your media library, or add one with a URL.')
4360        };
4361        var mediaPreview = !!url && Object(external_this_wp_element_["createElement"])("img", {
4362          alt: Object(external_this_wp_i18n_["__"])('Edit image'),
4363          title: Object(external_this_wp_i18n_["__"])('Edit image'),
4364          className: 'edit-image-preview',
4365          src: url
4366        });
4367        var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], {
4368          icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
4369            icon: image_icon
4370          }),
4371          className: className,
4372          labels: labels,
4373          onSelect: this.onSelectImage,
4374          onSelectURL: this.onSelectURL,
4375          onDoubleClick: this.toggleIsEditing,
4376          onCancel: !!url && this.toggleIsEditing,
4377          notices: noticeUI,
4378          onError: this.onUploadError,
4379          accept: "image/*",
4380          allowedTypes: ALLOWED_MEDIA_TYPES,
4381          value: {
4382            id: id,
4383            src: src
4384          },
4385          mediaPreview: mediaPreview,
4386          dropZoneUIOnly: !isEditing && url
4387        });
4388  
4389        if (isEditing || !url) {
4390          return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, mediaPlaceholder);
4391        }
4392  
4393        var classes = classnames_default()(className, Object(defineProperty["a" /* default */])({
4394          'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url),
4395          'is-resized': !!width || !!height,
4396          'is-focused': isSelected
4397        }, "size-".concat(sizeSlug), sizeSlug));
4398        var isResizable = ['wide', 'full'].indexOf(align) === -1 && isLargeViewport;
4399        var imageSizeOptions = this.getImageSizeOptions();
4400  
4401        var getInspectorControls = function getInspectorControls(imageWidth, imageHeight) {
4402          return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
4403            title: Object(external_this_wp_i18n_["__"])('Image Settings')
4404          }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextareaControl"], {
4405            label: Object(external_this_wp_i18n_["__"])('Alt Text (Alternative Text)'),
4406            value: alt,
4407            onChange: _this4.updateAlt,
4408            help: Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ExternalLink"], {
4409              href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
4410            }, Object(external_this_wp_i18n_["__"])('Describe the purpose of the image')), Object(external_this_wp_i18n_["__"])('Leave empty if the image is purely decorative.'))
4411          }), !Object(external_lodash_["isEmpty"])(imageSizeOptions) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], {
4412            label: Object(external_this_wp_i18n_["__"])('Image Size'),
4413            value: sizeSlug,
4414            options: imageSizeOptions,
4415            onChange: _this4.updateImage
4416          }), isResizable && Object(external_this_wp_element_["createElement"])("div", {
4417            className: "block-library-image__dimensions"
4418          }, Object(external_this_wp_element_["createElement"])("p", {
4419            className: "block-library-image__dimensions__row"
4420          }, Object(external_this_wp_i18n_["__"])('Image Dimensions')), Object(external_this_wp_element_["createElement"])("div", {
4421            className: "block-library-image__dimensions__row"
4422          }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
4423            type: "number",
4424            className: "block-library-image__dimensions__width",
4425            label: Object(external_this_wp_i18n_["__"])('Width'),
4426            value: width || imageWidth || '',
4427            min: 1,
4428            onChange: _this4.updateWidth
4429          }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
4430            type: "number",
4431            className: "block-library-image__dimensions__height",
4432            label: Object(external_this_wp_i18n_["__"])('Height'),
4433            value: height || imageHeight || '',
4434            min: 1,
4435            onChange: _this4.updateHeight
4436          })), Object(external_this_wp_element_["createElement"])("div", {
4437            className: "block-library-image__dimensions__row"
4438          }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ButtonGroup"], {
4439            "aria-label": Object(external_this_wp_i18n_["__"])('Image Size')
4440          }, [25, 50, 75, 100].map(function (scale) {
4441            var scaledWidth = Math.round(imageWidth * (scale / 100));
4442            var scaledHeight = Math.round(imageHeight * (scale / 100));
4443            var isCurrent = width === scaledWidth && height === scaledHeight;
4444            return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4445              key: scale,
4446              isSmall: true,
4447              isPrimary: isCurrent,
4448              "aria-pressed": isCurrent,
4449              onClick: _this4.updateDimensions(scaledWidth, scaledHeight)
4450            }, scale, "%");
4451          })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4452            isSmall: true,
4453            onClick: _this4.updateDimensions()
4454          }, Object(external_this_wp_i18n_["__"])('Reset'))))));
4455        }; // Disable reason: Each block can be selected by clicking on it
4456  
4457        /* eslint-disable jsx-a11y/click-events-have-key-events */
4458  
4459  
4460        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, controls, Object(external_this_wp_element_["createElement"])("figure", {
4461          className: classes
4462        }, Object(external_this_wp_element_["createElement"])(image_size, {
4463          src: url,
4464          dirtynessTrigger: align
4465        }, function (sizes) {
4466          var imageWidthWithinContainer = sizes.imageWidthWithinContainer,
4467              imageHeightWithinContainer = sizes.imageHeightWithinContainer,
4468              imageWidth = sizes.imageWidth,
4469              imageHeight = sizes.imageHeight;
4470  
4471          var filename = _this4.getFilename(url);
4472  
4473          var defaultedAlt;
4474  
4475          if (alt) {
4476            defaultedAlt = alt;
4477          } else if (filename) {
4478            defaultedAlt = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute; its file name is %s'), filename);
4479          } else {
4480            defaultedAlt = Object(external_this_wp_i18n_["__"])('This image has an empty alt attribute');
4481          }
4482  
4483          var img = // Disable reason: Image itself is not meant to be interactive, but
4484          // should direct focus to block.
4485  
4486          /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4487          Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", {
4488            src: url,
4489            alt: defaultedAlt,
4490            onDoubleClick: _this4.toggleIsEditing,
4491            onClick: _this4.onImageClick,
4492            onError: function onError() {
4493              return _this4.onImageError(url);
4494            }
4495          }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))
4496          /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */
4497          ;
4498  
4499          if (!isResizable || !imageWidthWithinContainer) {
4500            return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])("div", {
4501              style: {
4502                width: width,
4503                height: height
4504              }
4505            }, img));
4506          }
4507  
4508          var currentWidth = width || imageWidthWithinContainer;
4509          var currentHeight = height || imageHeightWithinContainer;
4510          var ratio = imageWidth / imageHeight;
4511          var minWidth = imageWidth < imageHeight ? MIN_SIZE : MIN_SIZE * ratio;
4512          var minHeight = imageHeight < imageWidth ? MIN_SIZE : MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an explicit pixel value for the max-width.
4513          // In absence of being able to set the content-width, this max-width is currently dictated by the vanilla editor style.
4514          // The following variable adds a buffer to this vanilla style, so 3rd party themes have some wiggleroom.
4515          // This does, in most cases, allow you to scale the image beyond the width of the main column, though not infinitely.
4516          // @todo It would be good to revisit this once a content-width variable becomes available.
4517  
4518          var maxWidthBuffer = maxWidth * 2.5;
4519          var showRightHandle = false;
4520          var showLeftHandle = false;
4521          /* eslint-disable no-lonely-if */
4522          // See https://github.com/WordPress/gutenberg/issues/7584.
4523  
4524          if (align === 'center') {
4525            // When the image is centered, show both handles.
4526            showRightHandle = true;
4527            showLeftHandle = true;
4528          } else if (isRTL) {
4529            // In RTL mode the image is on the right by default.
4530            // Show the right handle and hide the left handle only when it is aligned left.
4531            // Otherwise always show the left handle.
4532            if (align === 'left') {
4533              showRightHandle = true;
4534            } else {
4535              showLeftHandle = true;
4536            }
4537          } else {
4538            // Show the left handle and hide the right handle only when the image is aligned right.
4539            // Otherwise always show the right handle.
4540            if (align === 'right') {
4541              showLeftHandle = true;
4542            } else {
4543              showRightHandle = true;
4544            }
4545          }
4546          /* eslint-enable no-lonely-if */
4547  
4548  
4549          return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, getInspectorControls(imageWidth, imageHeight), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ResizableBox"], {
4550            size: {
4551              width: width,
4552              height: height
4553            },
4554            minWidth: minWidth,
4555            maxWidth: maxWidthBuffer,
4556            minHeight: minHeight,
4557            maxHeight: maxWidthBuffer / ratio,
4558            lockAspectRatio: true,
4559            enable: {
4560              top: false,
4561              right: showRightHandle,
4562              bottom: true,
4563              left: showLeftHandle
4564            },
4565            onResizeStart: onResizeStart,
4566            onResizeStop: function onResizeStop(event, direction, elt, delta) {
4567              _onResizeStop();
4568  
4569              setAttributes({
4570                width: parseInt(currentWidth + delta.width, 10),
4571                height: parseInt(currentHeight + delta.height, 10)
4572              });
4573            }
4574          }, img));
4575        }), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
4576          tagName: "figcaption",
4577          placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'),
4578          value: caption,
4579          unstableOnFocus: this.onFocusCaption,
4580          onChange: function onChange(value) {
4581            return setAttributes({
4582              caption: value
4583            });
4584          },
4585          isSelected: this.state.captionFocused,
4586          inlineToolbar: true
4587        })), mediaPlaceholder);
4588        /* eslint-enable jsx-a11y/click-events-have-key-events */
4589      }
4590    }]);
4591  
4592    return ImageEdit;
4593  }(external_this_wp_element_["Component"]);
4594  /* harmony default export */ var image_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4595    var _dispatch = dispatch('core/block-editor'),
4596        toggleSelection = _dispatch.toggleSelection;
4597  
4598    return {
4599      onResizeStart: function onResizeStart() {
4600        return toggleSelection(false);
4601      },
4602      onResizeStop: function onResizeStop() {
4603        return toggleSelection(true);
4604      }
4605    };
4606  }), Object(external_this_wp_data_["withSelect"])(function (select, props) {
4607    var _select = select('core'),
4608        getMedia = _select.getMedia;
4609  
4610    var _select2 = select('core/block-editor'),
4611        getSettings = _select2.getSettings;
4612  
4613    var id = props.attributes.id,
4614        isSelected = props.isSelected;
4615  
4616    var _getSettings = getSettings(),
4617        __experimentalMediaUpload = _getSettings.__experimentalMediaUpload,
4618        imageSizes = _getSettings.imageSizes,
4619        isRTL = _getSettings.isRTL,
4620        maxWidth = _getSettings.maxWidth;
4621  
4622    return {
4623      image: id && isSelected ? getMedia(id) : null,
4624      maxWidth: maxWidth,
4625      isRTL: isRTL,
4626      imageSizes: imageSizes,
4627      mediaUpload: __experimentalMediaUpload
4628    };
4629  }), Object(external_this_wp_viewport_["withViewportMatch"])({
4630    isLargeViewport: 'medium'
4631  }), external_this_wp_components_["withNotices"]])(edit_ImageEdit));
4632  
4633  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/save.js
4634  
4635  
4636  
4637  /**
4638   * External dependencies
4639   */
4640  
4641  /**
4642   * WordPress dependencies
4643   */
4644  
4645  
4646  function image_save_save(_ref) {
4647    var _classnames;
4648  
4649    var attributes = _ref.attributes;
4650    var url = attributes.url,
4651        alt = attributes.alt,
4652        caption = attributes.caption,
4653        align = attributes.align,
4654        href = attributes.href,
4655        rel = attributes.rel,
4656        linkClass = attributes.linkClass,
4657        width = attributes.width,
4658        height = attributes.height,
4659        id = attributes.id,
4660        linkTarget = attributes.linkTarget,
4661        sizeSlug = attributes.sizeSlug;
4662    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));
4663    var image = Object(external_this_wp_element_["createElement"])("img", {
4664      src: url,
4665      alt: alt,
4666      className: id ? "wp-image-".concat(id) : null,
4667      width: width,
4668      height: height
4669    });
4670    var figure = Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, href ? Object(external_this_wp_element_["createElement"])("a", {
4671      className: linkClass,
4672      href: href,
4673      target: linkTarget,
4674      rel: rel
4675    }, image) : image, !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
4676      tagName: "figcaption",
4677      value: caption
4678    }));
4679  
4680    if ('left' === align || 'right' === align || 'center' === align) {
4681      return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])("figure", {
4682        className: classes
4683      }, figure));
4684    }
4685  
4686    return Object(external_this_wp_element_["createElement"])("figure", {
4687      className: classes
4688    }, figure);
4689  }
4690  
4691  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/transforms.js
4692  
4693  
4694  /**
4695   * WordPress dependencies
4696   */
4697  
4698  
4699  function stripFirstImage(attributes, _ref) {
4700    var shortcode = _ref.shortcode;
4701  
4702    var _document$implementat = document.implementation.createHTMLDocument(''),
4703        body = _document$implementat.body;
4704  
4705    body.innerHTML = shortcode.content;
4706    var nodeToRemove = body.querySelector('img'); // if an image has parents, find the topmost node to remove
4707  
4708    while (nodeToRemove && nodeToRemove.parentNode && nodeToRemove.parentNode !== body) {
4709      nodeToRemove = nodeToRemove.parentNode;
4710    }
4711  
4712    if (nodeToRemove) {
4713      nodeToRemove.parentNode.removeChild(nodeToRemove);
4714    }
4715  
4716    return body.innerHTML.trim();
4717  }
4718  
4719  function getFirstAnchorAttributeFormHTML(html, attributeName) {
4720    var _document$implementat2 = document.implementation.createHTMLDocument(''),
4721        body = _document$implementat2.body;
4722  
4723    body.innerHTML = html;
4724    var firstElementChild = body.firstElementChild;
4725  
4726    if (firstElementChild && firstElementChild.nodeName === 'A') {
4727      return firstElementChild.getAttribute(attributeName) || undefined;
4728    }
4729  }
4730  
4731  var imageSchema = {
4732    img: {
4733      attributes: ['src', 'alt'],
4734      classes: ['alignleft', 'aligncenter', 'alignright', 'alignnone', /^wp-image-\d+$/]
4735    }
4736  };
4737  var schema = {
4738    figure: {
4739      require: ['img'],
4740      children: Object(objectSpread["a" /* default */])({}, imageSchema, {
4741        a: {
4742          attributes: ['href', 'rel', 'target'],
4743          children: imageSchema
4744        },
4745        figcaption: {
4746          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
4747        }
4748      })
4749    }
4750  };
4751  var image_transforms_transforms = {
4752    from: [{
4753      type: 'raw',
4754      isMatch: function isMatch(node) {
4755        return node.nodeName === 'FIGURE' && !!node.querySelector('img');
4756      },
4757      schema: schema,
4758      transform: function transform(node) {
4759        // Search both figure and image classes. Alignment could be
4760        // set on either. ID is set on the image.
4761        var className = node.className + ' ' + node.querySelector('img').className;
4762        var alignMatches = /(?:^|\s)align(left|center|right)(?:$|\s)/.exec(className);
4763        var align = alignMatches ? alignMatches[1] : undefined;
4764        var idMatches = /(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(className);
4765        var id = idMatches ? Number(idMatches[1]) : undefined;
4766        var anchorElement = node.querySelector('a');
4767        var linkDestination = anchorElement && anchorElement.href ? 'custom' : undefined;
4768        var href = anchorElement && anchorElement.href ? anchorElement.href : undefined;
4769        var rel = anchorElement && anchorElement.rel ? anchorElement.rel : undefined;
4770        var linkClass = anchorElement && anchorElement.className ? anchorElement.className : undefined;
4771        var attributes = Object(external_this_wp_blocks_["getBlockAttributes"])('core/image', node.outerHTML, {
4772          align: align,
4773          id: id,
4774          linkDestination: linkDestination,
4775          href: href,
4776          rel: rel,
4777          linkClass: linkClass
4778        });
4779        return Object(external_this_wp_blocks_["createBlock"])('core/image', attributes);
4780      }
4781    }, {
4782      type: 'files',
4783      isMatch: function isMatch(files) {
4784        return files.length === 1 && files[0].type.indexOf('image/') === 0;
4785      },
4786      transform: function transform(files) {
4787        var file = files[0]; // We don't need to upload the media directly here
4788        // It's already done as part of the `componentDidMount`
4789        // int the image block
4790  
4791        return Object(external_this_wp_blocks_["createBlock"])('core/image', {
4792          url: Object(external_this_wp_blob_["createBlobURL"])(file)
4793        });
4794      }
4795    }, {
4796      type: 'shortcode',
4797      tag: 'caption',
4798      attributes: {
4799        url: {
4800          type: 'string',
4801          source: 'attribute',
4802          attribute: 'src',
4803          selector: 'img'
4804        },
4805        alt: {
4806          type: 'string',
4807          source: 'attribute',
4808          attribute: 'alt',
4809          selector: 'img'
4810        },
4811        caption: {
4812          shortcode: stripFirstImage
4813        },
4814        href: {
4815          shortcode: function shortcode(attributes, _ref2) {
4816            var _shortcode = _ref2.shortcode;
4817            return getFirstAnchorAttributeFormHTML(_shortcode.content, 'href');
4818          }
4819        },
4820        rel: {
4821          shortcode: function shortcode(attributes, _ref3) {
4822            var _shortcode2 = _ref3.shortcode;
4823            return getFirstAnchorAttributeFormHTML(_shortcode2.content, 'rel');
4824          }
4825        },
4826        linkClass: {
4827          shortcode: function shortcode(attributes, _ref4) {
4828            var _shortcode3 = _ref4.shortcode;
4829            return getFirstAnchorAttributeFormHTML(_shortcode3.content, 'class');
4830          }
4831        },
4832        id: {
4833          type: 'number',
4834          shortcode: function shortcode(_ref5) {
4835            var id = _ref5.named.id;
4836  
4837            if (!id) {
4838              return;
4839            }
4840  
4841            return parseInt(id.replace('attachment_', ''), 10);
4842          }
4843        },
4844        align: {
4845          type: 'string',
4846          shortcode: function shortcode(_ref6) {
4847            var _ref6$named$align = _ref6.named.align,
4848                align = _ref6$named$align === void 0 ? 'alignnone' : _ref6$named$align;
4849            return align.replace('align', '');
4850          }
4851        }
4852      }
4853    }]
4854  };
4855  /* harmony default export */ var image_transforms = (image_transforms_transforms);
4856  
4857  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/image/index.js
4858  /**
4859   * WordPress dependencies
4860   */
4861  
4862  /**
4863   * Internal dependencies
4864   */
4865  
4866  
4867  
4868  
4869  var image_metadata = {
4870    name: "core/image",
4871    category: "common",
4872    attributes: {
4873      align: {
4874        type: "string"
4875      },
4876      url: {
4877        type: "string",
4878        source: "attribute",
4879        selector: "img",
4880        attribute: "src"
4881      },
4882      alt: {
4883        type: "string",
4884        source: "attribute",
4885        selector: "img",
4886        attribute: "alt",
4887        "default": ""
4888      },
4889      caption: {
4890        type: "string",
4891        source: "html",
4892        selector: "figcaption"
4893      },
4894      href: {
4895        type: "string",
4896        source: "attribute",
4897        selector: "figure > a",
4898        attribute: "href"
4899      },
4900      rel: {
4901        type: "string",
4902        source: "attribute",
4903        selector: "figure > a",
4904        attribute: "rel"
4905      },
4906      linkClass: {
4907        type: "string",
4908        source: "attribute",
4909        selector: "figure > a",
4910        attribute: "class"
4911      },
4912      id: {
4913        type: "number"
4914      },
4915      width: {
4916        type: "number"
4917      },
4918      height: {
4919        type: "number"
4920      },
4921      sizeSlug: {
4922        type: "string"
4923      },
4924      linkDestination: {
4925        type: "string",
4926        "default": "none"
4927      },
4928      linkTarget: {
4929        type: "string",
4930        source: "attribute",
4931        selector: "figure > a",
4932        attribute: "target"
4933      }
4934    }
4935  };
4936  
4937  
4938  var image_name = image_metadata.name;
4939  
4940  var image_settings = {
4941    title: Object(external_this_wp_i18n_["__"])('Image'),
4942    description: Object(external_this_wp_i18n_["__"])('Insert an image to make a visual statement.'),
4943    icon: image_icon,
4944    keywords: ['img', // "img" is not translated as it is intended to reflect the HTML <img> tag.
4945    Object(external_this_wp_i18n_["__"])('photo')],
4946    example: {
4947      attributes: {
4948        sizeSlug: 'large',
4949        url: 'https://s.w.org/images/core/5.3/MtBlanc1.jpg',
4950        caption: Object(external_this_wp_i18n_["__"])('Mont Blanc appears—still, snowy, and serene.')
4951      }
4952    },
4953    styles: [{
4954      name: 'default',
4955      label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
4956      isDefault: true
4957    }, {
4958      name: 'circle-mask',
4959      label: Object(external_this_wp_i18n_["_x"])('Circle Mask', 'block style')
4960    }],
4961    transforms: image_transforms,
4962    getEditWrapperProps: function getEditWrapperProps(attributes) {
4963      var align = attributes.align,
4964          width = attributes.width;
4965  
4966      if ('left' === align || 'center' === align || 'right' === align || 'wide' === align || 'full' === align) {
4967        return {
4968          'data-align': align,
4969          'data-resized': !!width
4970        };
4971      }
4972    },
4973    edit: image_edit,
4974    save: image_save_save,
4975    deprecated: image_deprecated
4976  };
4977  
4978  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/deprecated.js
4979  
4980  
4981  
4982  /**
4983   * External dependencies
4984   */
4985  
4986  /**
4987   * WordPress dependencies
4988   */
4989  
4990  
4991  var blockSupports = {
4992    className: false,
4993    anchor: true
4994  };
4995  var heading_deprecated_blockAttributes = {
4996    align: {
4997      type: 'string'
4998    },
4999    content: {
5000      type: 'string',
5001      source: 'html',
5002      selector: 'h1,h2,h3,h4,h5,h6',
5003      default: ''
5004    },
5005    level: {
5006      type: 'number',
5007      default: 2
5008    },
5009    placeholder: {
5010      type: 'string'
5011    },
5012    textColor: {
5013      type: 'string'
5014    },
5015    customTextColor: {
5016      type: 'string'
5017    }
5018  };
5019  var heading_deprecated_deprecated = [{
5020    attributes: heading_deprecated_blockAttributes,
5021    save: function save(_ref) {
5022      var _classnames;
5023  
5024      var attributes = _ref.attributes;
5025      var align = attributes.align,
5026          content = attributes.content,
5027          customTextColor = attributes.customTextColor,
5028          level = attributes.level,
5029          textColor = attributes.textColor;
5030      var tagName = 'h' + level;
5031      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
5032      var className = classnames_default()((_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), _classnames));
5033      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5034        className: className ? className : undefined,
5035        tagName: tagName,
5036        style: {
5037          color: textClass ? undefined : customTextColor
5038        },
5039        value: content
5040      });
5041    },
5042    supports: blockSupports
5043  }, {
5044    supports: blockSupports,
5045    attributes: heading_deprecated_blockAttributes,
5046    save: function save(_ref2) {
5047      var attributes = _ref2.attributes;
5048      var align = attributes.align,
5049          level = attributes.level,
5050          content = attributes.content,
5051          textColor = attributes.textColor,
5052          customTextColor = attributes.customTextColor;
5053      var tagName = 'h' + level;
5054      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
5055      var className = classnames_default()(Object(defineProperty["a" /* default */])({}, textClass, textClass));
5056      return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5057        className: className ? className : undefined,
5058        tagName: tagName,
5059        style: {
5060          textAlign: align,
5061          color: textClass ? undefined : customTextColor
5062        },
5063        value: content
5064      });
5065    }
5066  }];
5067  /* harmony default export */ var heading_deprecated = (heading_deprecated_deprecated);
5068  
5069  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-level-icon.js
5070  
5071  
5072  /**
5073   * WordPress dependencies
5074   */
5075  
5076  function HeadingLevelIcon(_ref) {
5077    var level = _ref.level;
5078    var levelToPath = {
5079      1: 'M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z',
5080      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',
5081      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',
5082      4: 'M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z',
5083      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',
5084      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'
5085    };
5086  
5087    if (!levelToPath.hasOwnProperty(level)) {
5088      return null;
5089    }
5090  
5091    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
5092      width: "20",
5093      height: "20",
5094      viewBox: "0 0 20 20",
5095      xmlns: "http://www.w3.org/2000/svg"
5096    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
5097      d: levelToPath[level]
5098    }));
5099  }
5100  
5101  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/heading-toolbar.js
5102  
5103  
5104  
5105  
5106  
5107  
5108  
5109  /**
5110   * External dependencies
5111   */
5112  
5113  /**
5114   * WordPress dependencies
5115   */
5116  
5117  
5118  
5119  
5120  /**
5121   * Internal dependencies
5122   */
5123  
5124  
5125  
5126  var heading_toolbar_HeadingToolbar =
5127  /*#__PURE__*/
5128  function (_Component) {
5129    Object(inherits["a" /* default */])(HeadingToolbar, _Component);
5130  
5131    function HeadingToolbar() {
5132      Object(classCallCheck["a" /* default */])(this, HeadingToolbar);
5133  
5134      return Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(HeadingToolbar).apply(this, arguments));
5135    }
5136  
5137    Object(createClass["a" /* default */])(HeadingToolbar, [{
5138      key: "createLevelControl",
5139      value: function createLevelControl(targetLevel, selectedLevel, onChange) {
5140        return {
5141          icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, {
5142            level: targetLevel
5143          }),
5144          // translators: %s: heading level e.g: "1", "2", "3"
5145          title: Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('Heading %d'), targetLevel),
5146          isActive: targetLevel === selectedLevel,
5147          onClick: function onClick() {
5148            return onChange(targetLevel);
5149          }
5150        };
5151      }
5152    }, {
5153      key: "render",
5154      value: function render() {
5155        var _this = this;
5156  
5157        var _this$props = this.props,
5158            _this$props$isCollaps = _this$props.isCollapsed,
5159            isCollapsed = _this$props$isCollaps === void 0 ? true : _this$props$isCollaps,
5160            minLevel = _this$props.minLevel,
5161            maxLevel = _this$props.maxLevel,
5162            selectedLevel = _this$props.selectedLevel,
5163            onChange = _this$props.onChange;
5164        return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Toolbar"], {
5165          isCollapsed: isCollapsed,
5166          icon: Object(external_this_wp_element_["createElement"])(HeadingLevelIcon, {
5167            level: selectedLevel
5168          }),
5169          controls: Object(external_lodash_["range"])(minLevel, maxLevel).map(function (index) {
5170            return _this.createLevelControl(index, selectedLevel, onChange);
5171          })
5172        });
5173      }
5174    }]);
5175  
5176    return HeadingToolbar;
5177  }(external_this_wp_element_["Component"]);
5178  
5179  /* harmony default export */ var heading_toolbar = (heading_toolbar_HeadingToolbar);
5180  
5181  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/edit.js
5182  
5183  
5184  
5185  
5186  /**
5187   * External dependencies
5188   */
5189  
5190  /**
5191   * Internal dependencies
5192   */
5193  
5194  
5195  /**
5196   * WordPress dependencies
5197   */
5198  
5199  
5200  
5201  
5202  
5203  
5204  
5205  var HeadingColorUI = Object(external_this_wp_element_["memo"])(function (_ref) {
5206    var textColorValue = _ref.textColorValue,
5207        setTextColor = _ref.setTextColor;
5208    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], {
5209      title: Object(external_this_wp_i18n_["__"])('Color Settings'),
5210      initialOpen: false,
5211      colorSettings: [{
5212        value: textColorValue,
5213        onChange: setTextColor,
5214        label: Object(external_this_wp_i18n_["__"])('Text Color')
5215      }]
5216    });
5217  });
5218  
5219  function HeadingEdit(_ref2) {
5220    var _classnames;
5221  
5222    var attributes = _ref2.attributes,
5223        setAttributes = _ref2.setAttributes,
5224        mergeBlocks = _ref2.mergeBlocks,
5225        onReplace = _ref2.onReplace,
5226        className = _ref2.className,
5227        textColor = _ref2.textColor,
5228        setTextColor = _ref2.setTextColor;
5229    var align = attributes.align,
5230        content = attributes.content,
5231        level = attributes.level,
5232        placeholder = attributes.placeholder;
5233    var tagName = 'h' + level;
5234    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"])(heading_toolbar, {
5235      minLevel: 2,
5236      maxLevel: 5,
5237      selectedLevel: level,
5238      onChange: function onChange(newLevel) {
5239        return setAttributes({
5240          level: newLevel
5241        });
5242      }
5243    }), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["AlignmentToolbar"], {
5244      value: align,
5245      onChange: function onChange(nextAlign) {
5246        setAttributes({
5247          align: nextAlign
5248        });
5249      }
5250    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
5251      title: Object(external_this_wp_i18n_["__"])('Heading Settings')
5252    }, Object(external_this_wp_element_["createElement"])("p", null, Object(external_this_wp_i18n_["__"])('Level')), Object(external_this_wp_element_["createElement"])(heading_toolbar, {
5253      isCollapsed: false,
5254      minLevel: 1,
5255      maxLevel: 7,
5256      selectedLevel: level,
5257      onChange: function onChange(newLevel) {
5258        return setAttributes({
5259          level: newLevel
5260        });
5261      }
5262    })), Object(external_this_wp_element_["createElement"])(HeadingColorUI, {
5263      setTextColor: setTextColor,
5264      textColorValue: textColor.color
5265    })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
5266      identifier: "content",
5267      wrapperClassName: "wp-block-heading",
5268      tagName: tagName,
5269      value: content,
5270      onChange: function onChange(value) {
5271        return setAttributes({
5272          content: value
5273        });
5274      },
5275      onMerge: mergeBlocks,
5276      onSplit: function onSplit(value) {
5277        if (!value) {
5278          return Object(external_this_wp_blocks_["createBlock"])('core/paragraph');
5279        }
5280  
5281        return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, attributes, {
5282          content: value
5283        }));
5284      },
5285      onReplace: onReplace,
5286      onRemove: function onRemove() {
5287        return onReplace([]);
5288      },
5289      className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "has-text-align-".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), _classnames)),
5290      placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Write heading…'),
5291      style: {
5292        color: textColor.color
5293      }
5294    }));
5295  }
5296  
5297  /* harmony default export */ var heading_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', {
5298    textColor: 'color'
5299  })])(HeadingEdit));
5300  
5301  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/save.js
5302  
5303  
5304  
5305  /**
5306   * External dependencies
5307   */
5308  
5309  /**
5310   * WordPress dependencies
5311   */
5312  
5313  
5314  function heading_save_save(_ref) {
5315    var _classnames;
5316  
5317    var attributes = _ref.attributes;
5318    var align = attributes.align,
5319        content = attributes.content,
5320        customTextColor = attributes.customTextColor,
5321        level = attributes.level,
5322        textColor = attributes.textColor;
5323    var tagName = 'h' + level;
5324    var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
5325    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));
5326    return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5327      className: className ? className : undefined,
5328      tagName: tagName,
5329      style: {
5330        color: textClass ? undefined : customTextColor
5331      },
5332      value: content
5333    });
5334  }
5335  
5336  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/shared.js
5337  /**
5338   * Given a node name string for a heading node, returns its numeric level.
5339   *
5340   * @param {string} nodeName Heading node name.
5341   *
5342   * @return {number} Heading level.
5343   */
5344  function getLevelFromHeadingNodeName(nodeName) {
5345    return Number(nodeName.substr(1));
5346  }
5347  
5348  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/transforms.js
5349  
5350  
5351  
5352  /**
5353   * WordPress dependencies
5354   */
5355  
5356  /**
5357   * Internal dependencies
5358   */
5359  
5360  
5361  var heading_transforms_transforms = {
5362    from: [{
5363      type: 'block',
5364      blocks: ['core/paragraph'],
5365      transform: function transform(_ref) {
5366        var content = _ref.content;
5367        return Object(external_this_wp_blocks_["createBlock"])('core/heading', {
5368          content: content
5369        });
5370      }
5371    }, {
5372      type: 'raw',
5373      selector: 'h1,h2,h3,h4,h5,h6',
5374      schema: {
5375        h1: {
5376          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5377        },
5378        h2: {
5379          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5380        },
5381        h3: {
5382          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5383        },
5384        h4: {
5385          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5386        },
5387        h5: {
5388          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5389        },
5390        h6: {
5391          children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5392        }
5393      },
5394      transform: function transform(node) {
5395        return Object(external_this_wp_blocks_["createBlock"])('core/heading', Object(objectSpread["a" /* default */])({}, Object(external_this_wp_blocks_["getBlockAttributes"])('core/heading', node.outerHTML), {
5396          level: getLevelFromHeadingNodeName(node.nodeName)
5397        }));
5398      }
5399    }].concat(Object(toConsumableArray["a" /* default */])([2, 3, 4, 5, 6].map(function (level) {
5400      return {
5401        type: 'prefix',
5402        prefix: Array(level + 1).join('#'),
5403        transform: function transform(content) {
5404          return Object(external_this_wp_blocks_["createBlock"])('core/heading', {
5405            level: level,
5406            content: content
5407          });
5408        }
5409      };
5410    }))),
5411    to: [{
5412      type: 'block',
5413      blocks: ['core/paragraph'],
5414      transform: function transform(_ref2) {
5415        var content = _ref2.content;
5416        return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
5417          content: content
5418        });
5419      }
5420    }]
5421  };
5422  /* harmony default export */ var heading_transforms = (heading_transforms_transforms);
5423  
5424  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/heading/index.js
5425  /**
5426   * WordPress dependencies
5427   */
5428  
5429  /**
5430   * Internal dependencies
5431   */
5432  
5433  
5434  
5435  var heading_metadata = {
5436    name: "core/heading",
5437    category: "common",
5438    attributes: {
5439      align: {
5440        type: "string"
5441      },
5442      content: {
5443        type: "string",
5444        source: "html",
5445        selector: "h1,h2,h3,h4,h5,h6",
5446        "default": ""
5447      },
5448      level: {
5449        type: "number",
5450        "default": 2
5451      },
5452      placeholder: {
5453        type: "string"
5454      },
5455      textColor: {
5456        type: "string"
5457      },
5458      customTextColor: {
5459        type: "string"
5460      }
5461    }
5462  };
5463  
5464  
5465  var heading_name = heading_metadata.name;
5466  
5467  var heading_settings = {
5468    title: Object(external_this_wp_i18n_["__"])('Heading'),
5469    description: Object(external_this_wp_i18n_["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'),
5470    icon: 'heading',
5471    keywords: [Object(external_this_wp_i18n_["__"])('title'), Object(external_this_wp_i18n_["__"])('subtitle')],
5472    supports: {
5473      className: false,
5474      anchor: true
5475    },
5476    example: {
5477      attributes: {
5478        content: Object(external_this_wp_i18n_["__"])('Code is Poetry'),
5479        level: 2
5480      }
5481    },
5482    transforms: heading_transforms,
5483    deprecated: heading_deprecated,
5484    merge: function merge(attributes, attributesToMerge) {
5485      return {
5486        content: (attributes.content || '') + (attributesToMerge.content || '')
5487      };
5488    },
5489    edit: heading_edit,
5490    save: heading_save_save
5491  };
5492  
5493  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/deprecated.js
5494  
5495  
5496  
5497  /**
5498   * External dependencies
5499   */
5500  
5501  /**
5502   * WordPress dependencies
5503   */
5504  
5505  
5506  var quote_deprecated_blockAttributes = {
5507    value: {
5508      type: 'string',
5509      source: 'html',
5510      selector: 'blockquote',
5511      multiline: 'p',
5512      default: ''
5513    },
5514    citation: {
5515      type: 'string',
5516      source: 'html',
5517      selector: 'cite',
5518      default: ''
5519    },
5520    align: {
5521      type: 'string'
5522    }
5523  };
5524  var quote_deprecated_deprecated = [{
5525    attributes: quote_deprecated_blockAttributes,
5526    save: function save(_ref) {
5527      var attributes = _ref.attributes;
5528      var align = attributes.align,
5529          value = attributes.value,
5530          citation = attributes.citation;
5531      return Object(external_this_wp_element_["createElement"])("blockquote", {
5532        style: {
5533          textAlign: align ? align : null
5534        }
5535      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5536        multiline: true,
5537        value: value
5538      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5539        tagName: "cite",
5540        value: citation
5541      }));
5542    }
5543  }, {
5544    attributes: Object(objectSpread["a" /* default */])({}, quote_deprecated_blockAttributes, {
5545      style: {
5546        type: 'number',
5547        default: 1
5548      }
5549    }),
5550    migrate: function migrate(attributes) {
5551      if (attributes.style === 2) {
5552        return Object(objectSpread["a" /* default */])({}, Object(external_lodash_["omit"])(attributes, ['style']), {
5553          className: attributes.className ? attributes.className + ' is-style-large' : 'is-style-large'
5554        });
5555      }
5556  
5557      return attributes;
5558    },
5559    save: function save(_ref2) {
5560      var attributes = _ref2.attributes;
5561      var align = attributes.align,
5562          value = attributes.value,
5563          citation = attributes.citation,
5564          style = attributes.style;
5565      return Object(external_this_wp_element_["createElement"])("blockquote", {
5566        className: style === 2 ? 'is-large' : '',
5567        style: {
5568          textAlign: align ? align : null
5569        }
5570      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5571        multiline: true,
5572        value: value
5573      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5574        tagName: "cite",
5575        value: citation
5576      }));
5577    }
5578  }, {
5579    attributes: Object(objectSpread["a" /* default */])({}, quote_deprecated_blockAttributes, {
5580      citation: {
5581        type: 'string',
5582        source: 'html',
5583        selector: 'footer',
5584        default: ''
5585      },
5586      style: {
5587        type: 'number',
5588        default: 1
5589      }
5590    }),
5591    save: function save(_ref3) {
5592      var attributes = _ref3.attributes;
5593      var align = attributes.align,
5594          value = attributes.value,
5595          citation = attributes.citation,
5596          style = attributes.style;
5597      return Object(external_this_wp_element_["createElement"])("blockquote", {
5598        className: "blocks-quote-style-".concat(style),
5599        style: {
5600          textAlign: align ? align : null
5601        }
5602      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5603        multiline: true,
5604        value: value
5605      }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5606        tagName: "footer",
5607        value: citation
5608      }));
5609    }
5610  }];
5611  /* harmony default export */ var quote_deprecated = (quote_deprecated_deprecated);
5612  
5613  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/edit.js
5614  
5615  
5616  
5617  
5618  /**
5619   * External dependencies
5620   */
5621  
5622  /**
5623   * WordPress dependencies
5624   */
5625  
5626  
5627  
5628  
5629  
5630  function QuoteEdit(_ref) {
5631    var attributes = _ref.attributes,
5632        setAttributes = _ref.setAttributes,
5633        isSelected = _ref.isSelected,
5634        mergeBlocks = _ref.mergeBlocks,
5635        onReplace = _ref.onReplace,
5636        className = _ref.className;
5637    var align = attributes.align,
5638        value = attributes.value,
5639        citation = attributes.citation;
5640    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"], {
5641      value: align,
5642      onChange: function onChange(nextAlign) {
5643        setAttributes({
5644          align: nextAlign
5645        });
5646      }
5647    })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BlockQuotation"], {
5648      className: classnames_default()(className, Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align))
5649    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
5650      identifier: "value",
5651      multiline: true,
5652      value: value,
5653      onChange: function onChange(nextValue) {
5654        return setAttributes({
5655          value: nextValue
5656        });
5657      },
5658      onMerge: mergeBlocks,
5659      onRemove: function onRemove(forward) {
5660        var hasEmptyCitation = !citation || citation.length === 0;
5661  
5662        if (!forward && hasEmptyCitation) {
5663          onReplace([]);
5664        }
5665      },
5666      placeholder: // translators: placeholder text used for the quote
5667      Object(external_this_wp_i18n_["__"])('Write quote…'),
5668      onReplace: onReplace,
5669      onSplit: function onSplit(piece) {
5670        return Object(external_this_wp_blocks_["createBlock"])('core/quote', Object(objectSpread["a" /* default */])({}, attributes, {
5671          value: piece
5672        }));
5673      },
5674      __unstableOnSplitMiddle: function __unstableOnSplitMiddle() {
5675        return Object(external_this_wp_blocks_["createBlock"])('core/paragraph');
5676      }
5677    }), (!external_this_wp_blockEditor_["RichText"].isEmpty(citation) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
5678      identifier: "citation",
5679      value: citation,
5680      onChange: function onChange(nextCitation) {
5681        return setAttributes({
5682          citation: nextCitation
5683        });
5684      },
5685      __unstableMobileNoFocusOnMount: true,
5686      placeholder: // translators: placeholder text used for the citation
5687      Object(external_this_wp_i18n_["__"])('Write citation…'),
5688      className: "wp-block-quote__citation"
5689    })));
5690  }
5691  
5692  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/icon.js
5693  
5694  
5695  /**
5696   * WordPress dependencies
5697   */
5698  
5699  /* harmony default export */ var quote_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
5700    viewBox: "0 0 24 24",
5701    xmlns: "http://www.w3.org/2000/svg"
5702  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
5703    fill: "none",
5704    d: "M0 0h24v24H0V0z"
5705  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
5706    d: "M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"
5707  })));
5708  
5709  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/save.js
5710  
5711  
5712  
5713  /**
5714   * External dependencies
5715   */
5716  
5717  /**
5718   * WordPress dependencies
5719   */
5720  
5721  
5722  function quote_save_save(_ref) {
5723    var attributes = _ref.attributes;
5724    var align = attributes.align,
5725        value = attributes.value,
5726        citation = attributes.citation;
5727    var className = classnames_default()(Object(defineProperty["a" /* default */])({}, "has-text-align-".concat(align), align));
5728    return Object(external_this_wp_element_["createElement"])("blockquote", {
5729      className: className
5730    }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5731      multiline: true,
5732      value: value
5733    }), !external_this_wp_blockEditor_["RichText"].isEmpty(citation) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
5734      tagName: "cite",
5735      value: citation
5736    }));
5737  }
5738  
5739  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
5740  var objectWithoutProperties = __webpack_require__(21);
5741  
5742  // EXTERNAL MODULE: external {"this":["wp","richText"]}
5743  var external_this_wp_richText_ = __webpack_require__(22);
5744  
5745  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/transforms.js
5746  
5747  
5748  
5749  
5750  /**
5751   * WordPress dependencies
5752   */
5753  
5754  
5755  var quote_transforms_transforms = {
5756    from: [{
5757      type: 'block',
5758      isMultiBlock: true,
5759      blocks: ['core/paragraph'],
5760      transform: function transform(attributes) {
5761        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
5762          value: Object(external_this_wp_richText_["toHTMLString"])({
5763            value: Object(external_this_wp_richText_["join"])(attributes.map(function (_ref) {
5764              var content = _ref.content;
5765              return Object(external_this_wp_richText_["create"])({
5766                html: content
5767              });
5768            }), "\u2028"),
5769            multilineTag: 'p'
5770          })
5771        });
5772      }
5773    }, {
5774      type: 'block',
5775      blocks: ['core/heading'],
5776      transform: function transform(_ref2) {
5777        var content = _ref2.content;
5778        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
5779          value: "<p>".concat(content, "</p>")
5780        });
5781      }
5782    }, {
5783      type: 'block',
5784      blocks: ['core/pullquote'],
5785      transform: function transform(_ref3) {
5786        var value = _ref3.value,
5787            citation = _ref3.citation;
5788        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
5789          value: value,
5790          citation: citation
5791        });
5792      }
5793    }, {
5794      type: 'prefix',
5795      prefix: '>',
5796      transform: function transform(content) {
5797        return Object(external_this_wp_blocks_["createBlock"])('core/quote', {
5798          value: "<p>".concat(content, "</p>")
5799        });
5800      }
5801    }, {
5802      type: 'raw',
5803      isMatch: function isMatch(node) {
5804        var isParagraphOrSingleCite = function () {
5805          var hasCitation = false;
5806          return function (child) {
5807            // Child is a paragraph.
5808            if (child.nodeName === 'P') {
5809              return true;
5810            } // Child is a cite and no other cite child exists before it.
5811  
5812  
5813            if (!hasCitation && child.nodeName === 'CITE') {
5814              hasCitation = true;
5815              return true;
5816            }
5817          };
5818        }();
5819  
5820        return node.nodeName === 'BLOCKQUOTE' && // The quote block can only handle multiline paragraph
5821        // content with an optional cite child.
5822        Array.from(node.childNodes).every(isParagraphOrSingleCite);
5823      },
5824      schema: {
5825        blockquote: {
5826          children: {
5827            p: {
5828              children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5829            },
5830            cite: {
5831              children: Object(external_this_wp_blocks_["getPhrasingContentSchema"])()
5832            }
5833          }
5834        }
5835      }
5836    }],
5837    to: [{
5838      type: 'block',
5839      blocks: ['core/paragraph'],
5840      transform: function transform(_ref4) {
5841        var value = _ref4.value,
5842            citation = _ref4.citation;
5843        var paragraphs = [];
5844  
5845        if (value && value !== '<p></p>') {
5846          paragraphs.push.apply(paragraphs, Object(toConsumableArray["a" /* default */])(Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({
5847            html: value,
5848            multilineTag: 'p'
5849          }), "\u2028").map(function (piece) {
5850            return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
5851              content: Object(external_this_wp_richText_["toHTMLString"])({
5852                value: piece
5853              })
5854            });
5855          })));
5856        }
5857  
5858        if (citation && citation !== '<p></p>') {
5859          paragraphs.push(Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
5860            content: citation
5861          }));
5862        }
5863  
5864        if (paragraphs.length === 0) {
5865          return Object(external_this_wp_blocks_["createBlock"])('core/paragraph', {
5866            content: ''
5867          });
5868        }
5869  
5870        return paragraphs;
5871      }
5872    }, {
5873      type: 'block',
5874      blocks: ['core/heading'],
5875      transform: function transform(_ref5) {
5876        var value = _ref5.value,
5877            citation = _ref5.citation,
5878            attrs = Object(objectWithoutProperties["a" /* default */])(_ref5, ["value", "citation"]);
5879  
5880        // If there is no quote content, use the citation as the
5881        // content of the resulting heading. A nonexistent citation
5882        // will result in an empty heading.
5883        if (value === '<p></p>') {
5884          return Object(external_this_wp_blocks_["createBlock"])('core/heading', {
5885            content: citation
5886          });
5887        }
5888  
5889        var pieces = Object(external_this_wp_richText_["split"])(Object(external_this_wp_richText_["create"])({
5890          html: value,
5891          multilineTag: 'p'
5892        }), "\u2028");
5893        var headingBlock = Object(external_this_wp_blocks_["createBlock"])('core/heading', {
5894          content: Object(external_this_wp_richText_["toHTMLString"])({
5895            value: pieces[0]
5896          })
5897        });
5898  
5899        if (!citation && pieces.length === 1) {
5900          return headingBlock;
5901        }
5902  
5903        var quotePieces = pieces.slice(1);
5904        var quoteBlock = Object(external_this_wp_blocks_["createBlock"])('core/quote', Object(objectSpread["a" /* default */])({}, attrs, {
5905          citation: citation,
5906          value: Object(external_this_wp_richText_["toHTMLString"])({
5907            value: quotePieces.length ? Object(external_this_wp_richText_["join"])(pieces.slice(1), "\u2028") : Object(external_this_wp_richText_["create"])(),
5908            multilineTag: 'p'
5909          })
5910        }));
5911        return [headingBlock, quoteBlock];
5912      }
5913    }, {
5914      type: 'block',
5915      blocks: ['core/pullquote'],
5916      transform: function transform(_ref6) {
5917        var value = _ref6.value,
5918            citation = _ref6.citation;
5919        return Object(external_this_wp_blocks_["createBlock"])('core/pullquote', {
5920          value: value,
5921          citation: citation
5922        });
5923      }
5924    }]
5925  };
5926  /* harmony default export */ var quote_transforms = (quote_transforms_transforms);
5927  
5928  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/quote/index.js
5929  
5930  
5931  /**
5932   * WordPress dependencies
5933   */
5934  
5935  /**
5936   * Internal dependencies
5937   */
5938  
5939  
5940  
5941  
5942  var quote_metadata = {
5943    name: "core/quote",
5944    category: "common",
5945    attributes: {
5946      value: {
5947        type: "string",
5948        source: "html",
5949        selector: "blockquote",
5950        multiline: "p",
5951        "default": ""
5952      },
5953      citation: {
5954        type: "string",
5955        source: "html",
5956        selector: "cite",
5957        "default": ""
5958      },
5959      align: {
5960        type: "string"
5961      }
5962    }
5963  };
5964  
5965  
5966  var quote_name = quote_metadata.name;
5967  
5968  var quote_settings = {
5969    title: Object(external_this_wp_i18n_["__"])('Quote'),
5970    description: Object(external_this_wp_i18n_["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),
5971    icon: quote_icon,
5972    keywords: [Object(external_this_wp_i18n_["__"])('blockquote'), Object(external_this_wp_i18n_["__"])('cite')],
5973    example: {
5974      attributes: {
5975        value: '<p>' + Object(external_this_wp_i18n_["__"])('In quoting others, we cite ourselves.') + '</p>',
5976        citation: 'Julio Cortázar',
5977        className: 'is-style-large'
5978      }
5979    },
5980    styles: [{
5981      name: 'default',
5982      label: Object(external_this_wp_i18n_["_x"])('Default', 'block style'),
5983      isDefault: true
5984    }, {
5985      name: 'large',
5986      label: Object(external_this_wp_i18n_["_x"])('Large', 'block style')
5987    }],
5988    transforms: quote_transforms,
5989    edit: QuoteEdit,
5990    save: quote_save_save,
5991    merge: function merge(attributes, _ref) {
5992      var value = _ref.value,
5993          citation = _ref.citation;
5994  
5995      // Quote citations cannot be merged. Pick the second one unless it's
5996      // empty.
5997      if (!citation) {
5998        citation = attributes.citation;
5999      }
6000  
6001      if (!value || value === '<p></p>') {
6002        return Object(objectSpread["a" /* default */])({}, attributes, {
6003          citation: citation
6004        });
6005      }
6006  
6007      return Object(objectSpread["a" /* default */])({}, attributes, {
6008        value: attributes.value + value,
6009        citation: citation
6010      });
6011    },
6012    deprecated: quote_deprecated
6013  };
6014  
6015  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/shared.js
6016  /**
6017   * External dependencies
6018   */
6019  
6020  function defaultColumnsNumber(attributes) {
6021    return Math.min(3, attributes.images.length);
6022  }
6023  var shared_pickRelevantMediaFiles = function pickRelevantMediaFiles(image) {
6024    var imageProps = Object(external_lodash_["pick"])(image, ['alt', 'id', 'link', 'caption']);
6025    imageProps.url = Object(external_lodash_["get"])(image, ['sizes', 'large', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'large', 'source_url']) || image.url;
6026    var fullUrl = Object(external_lodash_["get"])(image, ['sizes', 'full', 'url']) || Object(external_lodash_["get"])(image, ['media_details', 'sizes', 'full', 'source_url']);
6027  
6028    if (fullUrl) {
6029      imageProps.fullUrl = fullUrl;
6030    }
6031  
6032    return imageProps;
6033  };
6034  
6035  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/deprecated.js
6036  
6037  
6038  
6039  /**
6040   * External dependencies
6041   */
6042  
6043  
6044  /**
6045   * WordPress dependencies
6046   */
6047  
6048  
6049  /**
6050   * Internal dependencies
6051   */
6052  
6053  
6054  var gallery_deprecated_deprecated = [{
6055    attributes: {
6056      images: {
6057        type: 'array',
6058        default: [],
6059        source: 'query',
6060        selector: 'ul.wp-block-gallery .blocks-gallery-item',
6061        query: {
6062          url: {
6063            source: 'attribute',
6064            selector: 'img',
6065            attribute: 'src'
6066          },
6067          fullUrl: {
6068            source: 'attribute',
6069            selector: 'img',
6070            attribute: 'data-full-url'
6071          },
6072          alt: {
6073            source: 'attribute',
6074            selector: 'img',
6075            attribute: 'alt',
6076            default: ''
6077          },
6078          id: {
6079            source: 'attribute',
6080            selector: 'img',
6081            attribute: 'data-id'
6082          },
6083          link: {
6084            source: 'attribute',
6085            selector: 'img',
6086            attribute: 'data-link'
6087          },
6088          caption: {
6089            type: 'array',
6090            source: 'children',
6091            selector: 'figcaption'
6092          }
6093        }
6094      },
6095      ids: {
6096        type: 'array',
6097        default: []
6098      },
6099      columns: {
6100        type: 'number'
6101      },
6102      imageCrop: {
6103        type: 'boolean',
6104        default: true
6105      },
6106      linkTo: {
6107        type: 'string',
6108        default: 'none'
6109      }
6110    },
6111    save: function save(_ref) {
6112      var attributes = _ref.attributes;
6113      var images = attributes.images,
6114          _attributes$columns = attributes.columns,
6115          columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
6116          imageCrop = attributes.imageCrop,
6117          linkTo = attributes.linkTo;
6118      return Object(external_this_wp_element_["createElement"])("ul", {
6119        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
6120      }, images.map(function (image) {
6121        var href;
6122  
6123        switch (linkTo) {
6124          case 'media':
6125            href = image.fullUrl || image.url;
6126            break;
6127  
6128          case 'attachment':
6129            href = image.link;
6130            break;
6131        }
6132  
6133        var img = Object(external_this_wp_element_["createElement"])("img", {
6134          src: image.url,
6135          alt: image.alt,
6136          "data-id": image.id,
6137          "data-full-url": image.fullUrl,
6138          "data-link": image.link,
6139          className: image.id ? "wp-image-".concat(image.id) : null
6140        });
6141        return Object(external_this_wp_element_["createElement"])("li", {
6142          key: image.id || image.url,
6143          className: "blocks-gallery-item"
6144        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
6145          href: href
6146        }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6147          tagName: "figcaption",
6148          value: image.caption
6149        })));
6150      }));
6151    }
6152  }, {
6153    attributes: {
6154      images: {
6155        type: 'array',
6156        default: [],
6157        source: 'query',
6158        selector: 'ul.wp-block-gallery .blocks-gallery-item',
6159        query: {
6160          url: {
6161            source: 'attribute',
6162            selector: 'img',
6163            attribute: 'src'
6164          },
6165          alt: {
6166            source: 'attribute',
6167            selector: 'img',
6168            attribute: 'alt',
6169            default: ''
6170          },
6171          id: {
6172            source: 'attribute',
6173            selector: 'img',
6174            attribute: 'data-id'
6175          },
6176          link: {
6177            source: 'attribute',
6178            selector: 'img',
6179            attribute: 'data-link'
6180          },
6181          caption: {
6182            type: 'array',
6183            source: 'children',
6184            selector: 'figcaption'
6185          }
6186        }
6187      },
6188      columns: {
6189        type: 'number'
6190      },
6191      imageCrop: {
6192        type: 'boolean',
6193        default: true
6194      },
6195      linkTo: {
6196        type: 'string',
6197        default: 'none'
6198      }
6199    },
6200    isEligible: function isEligible(_ref2) {
6201      var images = _ref2.images,
6202          ids = _ref2.ids;
6203      return images && images.length > 0 && (!ids && images || ids && images && ids.length !== images.length || Object(external_lodash_["some"])(images, function (id, index) {
6204        if (!id && ids[index] !== null) {
6205          return true;
6206        }
6207  
6208        return parseInt(id, 10) !== ids[index];
6209      }));
6210    },
6211    migrate: function migrate(attributes) {
6212      return Object(objectSpread["a" /* default */])({}, attributes, {
6213        ids: Object(external_lodash_["map"])(attributes.images, function (_ref3) {
6214          var id = _ref3.id;
6215  
6216          if (!id) {
6217            return null;
6218          }
6219  
6220          return parseInt(id, 10);
6221        })
6222      });
6223    },
6224    save: function save(_ref4) {
6225      var attributes = _ref4.attributes;
6226      var images = attributes.images,
6227          _attributes$columns2 = attributes.columns,
6228          columns = _attributes$columns2 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns2,
6229          imageCrop = attributes.imageCrop,
6230          linkTo = attributes.linkTo;
6231      return Object(external_this_wp_element_["createElement"])("ul", {
6232        className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
6233      }, images.map(function (image) {
6234        var href;
6235  
6236        switch (linkTo) {
6237          case 'media':
6238            href = image.url;
6239            break;
6240  
6241          case 'attachment':
6242            href = image.link;
6243            break;
6244        }
6245  
6246        var img = Object(external_this_wp_element_["createElement"])("img", {
6247          src: image.url,
6248          alt: image.alt,
6249          "data-id": image.id,
6250          "data-link": image.link,
6251          className: image.id ? "wp-image-".concat(image.id) : null
6252        });
6253        return Object(external_this_wp_element_["createElement"])("li", {
6254          key: image.id || image.url,
6255          className: "blocks-gallery-item"
6256        }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
6257          href: href
6258        }, img) : img, image.caption && image.caption.length > 0 && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
6259          tagName: "figcaption",
6260          value: image.caption
6261        })));
6262      }));
6263    }
6264  }, {
6265    attributes: {
6266      images: {
6267        type: 'array',
6268        default: [],
6269        source: 'query',
6270        selector: 'div.wp-block-gallery figure.blocks-gallery-image img',
6271        query: {
6272          url: {
6273            source: 'attribute',
6274            attribute: 'src'
6275          },
6276          alt: {
6277            source: 'attribute',
6278            attribute: 'alt',
6279            default: ''
6280          },
6281          id: {
6282            source: 'attribute',
6283            attribute: 'data-id'
6284          }
6285        }
6286      },
6287      columns: {
6288        type: 'number'
6289      },
6290      imageCrop: {
6291        type: 'boolean',
6292        default: true
6293      },
6294      linkTo: {
6295        type: 'string',
6296        default: 'none'
6297      },
6298      align: {
6299        type: 'string',
6300        default: 'none'
6301      }
6302    },
6303    save: function save(_ref5) {
6304      var attributes = _ref5.attributes;
6305      var images = attributes.images,
6306          _attributes$columns3 = attributes.columns,
6307          columns = _attributes$columns3 === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns3,
6308          align = attributes.align,
6309          imageCrop = attributes.imageCrop,
6310          linkTo = attributes.linkTo;
6311      var className = classnames_default()("columns-".concat(columns), {
6312        alignnone: align === 'none',
6313        'is-cropped': imageCrop
6314      });
6315      return Object(external_this_wp_element_["createElement"])("div", {
6316        className: className
6317      }, images.map(function (image) {
6318        var href;
6319  
6320        switch (linkTo) {
6321          case 'media':
6322            href = image.url;
6323            break;
6324  
6325          case 'attachment':
6326            href = image.link;
6327            break;
6328        }
6329  
6330        var img = Object(external_this_wp_element_["createElement"])("img", {
6331          src: image.url,
6332          alt: image.alt,
6333          "data-id": image.id
6334        });
6335        return Object(external_this_wp_element_["createElement"])("figure", {
6336          key: image.id || image.url,
6337          className: "blocks-gallery-image"
6338        }, href ? Object(external_this_wp_element_["createElement"])("a", {
6339          href: href
6340        }, img) : img);
6341      }));
6342    }
6343  }];
6344  /* harmony default export */ var gallery_deprecated = (gallery_deprecated_deprecated);
6345  
6346  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/icons.js
6347  
6348  
6349  /**
6350   * WordPress dependencies
6351   */
6352  
6353  var icons_icon = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
6354    viewBox: "0 0 24 24",
6355    xmlns: "http://www.w3.org/2000/svg"
6356  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
6357    fill: "none",
6358    d: "M0 0h24v24H0V0z"
6359  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
6360    d: "M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"
6361  })));
6362  var leftArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
6363    width: "18",
6364    height: "18",
6365    viewBox: "0 0 18 18",
6366    xmlns: "http://www.w3.org/2000/svg"
6367  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
6368    d: "M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"
6369  }));
6370  var rightArrow = Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
6371    width: "18",
6372    height: "18",
6373    viewBox: "0 0 18 18",
6374    xmlns: "http://www.w3.org/2000/svg"
6375  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
6376    d: "M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"
6377  }));
6378  
6379  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/gallery-image.js
6380  
6381  
6382  
6383  
6384  
6385  
6386  
6387  
6388  /**
6389   * External dependencies
6390   */
6391  
6392  /**
6393   * WordPress dependencies
6394   */
6395  
6396  
6397  
6398  
6399  
6400  
6401  
6402  
6403  /**
6404   * Internal dependencies
6405   */
6406  
6407  
6408  
6409  var gallery_image_GalleryImage =
6410  /*#__PURE__*/
6411  function (_Component) {
6412    Object(inherits["a" /* default */])(GalleryImage, _Component);
6413  
6414    function GalleryImage() {
6415      var _this;
6416  
6417      Object(classCallCheck["a" /* default */])(this, GalleryImage);
6418  
6419      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryImage).apply(this, arguments));
6420      _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
6421      _this.onSelectCaption = _this.onSelectCaption.bind(Object(assertThisInitialized["a" /* default */])(_this));
6422      _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
6423      _this.bindContainer = _this.bindContainer.bind(Object(assertThisInitialized["a" /* default */])(_this));
6424      _this.state = {
6425        captionSelected: false
6426      };
6427      return _this;
6428    }
6429  
6430    Object(createClass["a" /* default */])(GalleryImage, [{
6431      key: "bindContainer",
6432      value: function bindContainer(ref) {
6433        this.container = ref;
6434      }
6435    }, {
6436      key: "onSelectCaption",
6437      value: function onSelectCaption() {
6438        if (!this.state.captionSelected) {
6439          this.setState({
6440            captionSelected: true
6441          });
6442        }
6443  
6444        if (!this.props.isSelected) {
6445          this.props.onSelect();
6446        }
6447      }
6448    }, {
6449      key: "onSelectImage",
6450      value: function onSelectImage() {
6451        if (!this.props.isSelected) {
6452          this.props.onSelect();
6453        }
6454  
6455        if (this.state.captionSelected) {
6456          this.setState({
6457            captionSelected: false
6458          });
6459        }
6460      }
6461    }, {
6462      key: "onRemoveImage",
6463      value: function onRemoveImage(event) {
6464        if (this.container === document.activeElement && this.props.isSelected && [external_this_wp_keycodes_["BACKSPACE"], external_this_wp_keycodes_["DELETE"]].indexOf(event.keyCode) !== -1) {
6465          event.stopPropagation();
6466          event.preventDefault();
6467          this.props.onRemove();
6468        }
6469      }
6470    }, {
6471      key: "componentDidUpdate",
6472      value: function componentDidUpdate(prevProps) {
6473        var _this$props = this.props,
6474            isSelected = _this$props.isSelected,
6475            image = _this$props.image,
6476            url = _this$props.url;
6477  
6478        if (image && !url) {
6479          this.props.setAttributes({
6480            url: image.source_url,
6481            alt: image.alt_text
6482          });
6483        } // unselect the caption so when the user selects other image and comeback
6484        // the caption is not immediately selected
6485  
6486  
6487        if (this.state.captionSelected && !isSelected && prevProps.isSelected) {
6488          this.setState({
6489            captionSelected: false
6490          });
6491        }
6492      }
6493    }, {
6494      key: "render",
6495      value: function render() {
6496        var _this$props2 = this.props,
6497            url = _this$props2.url,
6498            alt = _this$props2.alt,
6499            id = _this$props2.id,
6500            linkTo = _this$props2.linkTo,
6501            link = _this$props2.link,
6502            isFirstItem = _this$props2.isFirstItem,
6503            isLastItem = _this$props2.isLastItem,
6504            isSelected = _this$props2.isSelected,
6505            caption = _this$props2.caption,
6506            onRemove = _this$props2.onRemove,
6507            onMoveForward = _this$props2.onMoveForward,
6508            onMoveBackward = _this$props2.onMoveBackward,
6509            setAttributes = _this$props2.setAttributes,
6510            ariaLabel = _this$props2['aria-label'];
6511        var href;
6512  
6513        switch (linkTo) {
6514          case 'media':
6515            href = url;
6516            break;
6517  
6518          case 'attachment':
6519            href = link;
6520            break;
6521        }
6522  
6523        var img = // Disable reason: Image itself is not meant to be interactive, but should
6524        // direct image selection and unfocus caption fields.
6525  
6526        /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
6527        Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])("img", {
6528          src: url,
6529          alt: alt,
6530          "data-id": id,
6531          onClick: this.onSelectImage,
6532          onFocus: this.onSelectImage,
6533          onKeyDown: this.onRemoveImage,
6534          tabIndex: "0",
6535          "aria-label": ariaLabel,
6536          ref: this.bindContainer
6537        }), Object(external_this_wp_blob_["isBlobURL"])(url) && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Spinner"], null))
6538        /* eslint-enable jsx-a11y/no-noninteractive-element-interactions */
6539        ;
6540        var className = classnames_default()({
6541          'is-selected': isSelected,
6542          'is-transient': Object(external_this_wp_blob_["isBlobURL"])(url)
6543        });
6544        return Object(external_this_wp_element_["createElement"])("figure", {
6545          className: className
6546        }, href ? Object(external_this_wp_element_["createElement"])("a", {
6547          href: href
6548        }, img) : img, Object(external_this_wp_element_["createElement"])("div", {
6549          className: "block-library-gallery-item__move-menu"
6550        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
6551          icon: leftArrow,
6552          onClick: isFirstItem ? undefined : onMoveBackward,
6553          className: "blocks-gallery-item__move-backward",
6554          label: Object(external_this_wp_i18n_["__"])('Move image backward'),
6555          "aria-disabled": isFirstItem,
6556          disabled: !isSelected
6557        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
6558          icon: rightArrow,
6559          onClick: isLastItem ? undefined : onMoveForward,
6560          className: "blocks-gallery-item__move-forward",
6561          label: Object(external_this_wp_i18n_["__"])('Move image forward'),
6562          "aria-disabled": isLastItem,
6563          disabled: !isSelected
6564        })), Object(external_this_wp_element_["createElement"])("div", {
6565          className: "block-library-gallery-item__inline-menu"
6566        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
6567          icon: "no-alt",
6568          onClick: onRemove,
6569          className: "blocks-gallery-item__remove",
6570          label: Object(external_this_wp_i18n_["__"])('Remove image'),
6571          disabled: !isSelected
6572        })), (isSelected || caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
6573          tagName: "figcaption",
6574          placeholder: isSelected ? Object(external_this_wp_i18n_["__"])('Write caption…') : null,
6575          value: caption,
6576          isSelected: this.state.captionSelected,
6577          onChange: function onChange(newCaption) {
6578            return setAttributes({
6579              caption: newCaption
6580            });
6581          },
6582          unstableOnFocus: this.onSelectCaption,
6583          inlineToolbar: true
6584        }));
6585      }
6586    }]);
6587  
6588    return GalleryImage;
6589  }(external_this_wp_element_["Component"]);
6590  
6591  /* harmony default export */ var gallery_image = (Object(external_this_wp_data_["withSelect"])(function (select, ownProps) {
6592    var _select = select('core'),
6593        getMedia = _select.getMedia;
6594  
6595    var id = ownProps.id;
6596    return {
6597      image: id ? getMedia(id) : null
6598    };
6599  })(gallery_image_GalleryImage));
6600  
6601  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/edit.js
6602  
6603  
6604  
6605  
6606  
6607  
6608  
6609  
6610  
6611  
6612  
6613  /**
6614   * External dependencies
6615   */
6616  
6617  
6618  /**
6619   * WordPress dependencies
6620   */
6621  
6622  
6623  
6624  
6625  
6626  
6627  
6628  
6629  /**
6630   * Internal dependencies
6631   */
6632  
6633  
6634  
6635  
6636  var MAX_COLUMNS = 8;
6637  var linkOptions = [{
6638    value: 'attachment',
6639    label: Object(external_this_wp_i18n_["__"])('Attachment Page')
6640  }, {
6641    value: 'media',
6642    label: Object(external_this_wp_i18n_["__"])('Media File')
6643  }, {
6644    value: 'none',
6645    label: Object(external_this_wp_i18n_["__"])('None')
6646  }];
6647  var edit_ALLOWED_MEDIA_TYPES = ['image'];
6648  
6649  var edit_GalleryEdit =
6650  /*#__PURE__*/
6651  function (_Component) {
6652    Object(inherits["a" /* default */])(GalleryEdit, _Component);
6653  
6654    function GalleryEdit() {
6655      var _this;
6656  
6657      Object(classCallCheck["a" /* default */])(this, GalleryEdit);
6658  
6659      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(GalleryEdit).apply(this, arguments));
6660      _this.onSelectImage = _this.onSelectImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
6661      _this.onSelectImages = _this.onSelectImages.bind(Object(assertThisInitialized["a" /* default */])(_this));
6662      _this.setLinkTo = _this.setLinkTo.bind(Object(assertThisInitialized["a" /* default */])(_this));
6663      _this.setColumnsNumber = _this.setColumnsNumber.bind(Object(assertThisInitialized["a" /* default */])(_this));
6664      _this.toggleImageCrop = _this.toggleImageCrop.bind(Object(assertThisInitialized["a" /* default */])(_this));
6665      _this.onMove = _this.onMove.bind(Object(assertThisInitialized["a" /* default */])(_this));
6666      _this.onMoveForward = _this.onMoveForward.bind(Object(assertThisInitialized["a" /* default */])(_this));
6667      _this.onMoveBackward = _this.onMoveBackward.bind(Object(assertThisInitialized["a" /* default */])(_this));
6668      _this.onRemoveImage = _this.onRemoveImage.bind(Object(assertThisInitialized["a" /* default */])(_this));
6669      _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this));
6670      _this.setImageAttributes = _this.setImageAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this));
6671      _this.setAttributes = _this.setAttributes.bind(Object(assertThisInitialized["a" /* default */])(_this));
6672      _this.onFocusGalleryCaption = _this.onFocusGalleryCaption.bind(Object(assertThisInitialized["a" /* default */])(_this));
6673      _this.state = {
6674        selectedImage: null,
6675        attachmentCaptions: null
6676      };
6677      return _this;
6678    }
6679  
6680    Object(createClass["a" /* default */])(GalleryEdit, [{
6681      key: "setAttributes",
6682      value: function setAttributes(attributes) {
6683        if (attributes.ids) {
6684          throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');
6685        }
6686  
6687        if (attributes.images) {
6688          attributes = Object(objectSpread["a" /* default */])({}, attributes, {
6689            ids: Object(external_lodash_["map"])(attributes.images, 'id')
6690          });
6691        }
6692  
6693        this.props.setAttributes(attributes);
6694      }
6695    }, {
6696      key: "onSelectImage",
6697      value: function onSelectImage(index) {
6698        var _this2 = this;
6699  
6700        return function () {
6701          if (_this2.state.selectedImage !== index) {
6702            _this2.setState({
6703              selectedImage: index
6704            });
6705          }
6706        };
6707      }
6708    }, {
6709      key: "onMove",
6710      value: function onMove(oldIndex, newIndex) {
6711        var images = Object(toConsumableArray["a" /* default */])(this.props.attributes.images);
6712  
6713        images.splice(newIndex, 1, this.props.attributes.images[oldIndex]);
6714        images.splice(oldIndex, 1, this.props.attributes.images[newIndex]);
6715        this.setState({
6716          selectedImage: newIndex
6717        });
6718        this.setAttributes({
6719          images: images
6720        });
6721      }
6722    }, {
6723      key: "onMoveForward",
6724      value: function onMoveForward(oldIndex) {
6725        var _this3 = this;
6726  
6727        return function () {
6728          if (oldIndex === _this3.props.attributes.images.length - 1) {
6729            return;
6730          }
6731  
6732          _this3.onMove(oldIndex, oldIndex + 1);
6733        };
6734      }
6735    }, {
6736      key: "onMoveBackward",
6737      value: function onMoveBackward(oldIndex) {
6738        var _this4 = this;
6739  
6740        return function () {
6741          if (oldIndex === 0) {
6742            return;
6743          }
6744  
6745          _this4.onMove(oldIndex, oldIndex - 1);
6746        };
6747      }
6748    }, {
6749      key: "onRemoveImage",
6750      value: function onRemoveImage(index) {
6751        var _this5 = this;
6752  
6753        return function () {
6754          var images = Object(external_lodash_["filter"])(_this5.props.attributes.images, function (img, i) {
6755            return index !== i;
6756          });
6757          var columns = _this5.props.attributes.columns;
6758  
6759          _this5.setState({
6760            selectedImage: null
6761          });
6762  
6763          _this5.setAttributes({
6764            images: images,
6765            columns: columns ? Math.min(images.length, columns) : columns
6766          });
6767        };
6768      }
6769    }, {
6770      key: "selectCaption",
6771      value: function selectCaption(newImage, images, attachmentCaptions) {
6772        var currentImage = Object(external_lodash_["find"])(images, {
6773          id: newImage.id
6774        });
6775        var currentImageCaption = currentImage ? currentImage.caption : newImage.caption;
6776  
6777        if (!attachmentCaptions) {
6778          return currentImageCaption;
6779        }
6780  
6781        var attachment = Object(external_lodash_["find"])(attachmentCaptions, {
6782          id: newImage.id
6783        }); // if the attachment caption is updated
6784  
6785        if (attachment && attachment.caption !== newImage.caption) {
6786          return newImage.caption;
6787        }
6788  
6789        return currentImageCaption;
6790      }
6791    }, {
6792      key: "onSelectImages",
6793      value: function onSelectImages(newImages) {
6794        var _this6 = this;
6795  
6796        var _this$props$attribute = this.props.attributes,
6797            columns = _this$props$attribute.columns,
6798            images = _this$props$attribute.images;
6799        var attachmentCaptions = this.state.attachmentCaptions;
6800        this.setState({
6801          attachmentCaptions: newImages.map(function (newImage) {
6802            return {
6803              id: newImage.id,
6804              caption: newImage.caption
6805            };
6806          })
6807        });
6808        this.setAttributes({
6809          images: newImages.map(function (newImage) {
6810            return Object(objectSpread["a" /* default */])({}, shared_pickRelevantMediaFiles(newImage), {
6811              caption: _this6.selectCaption(newImage, images, attachmentCaptions)
6812            });
6813          }),
6814          columns: columns ? Math.min(newImages.length, columns) : columns
6815        });
6816      }
6817    }, {
6818      key: "onUploadError",
6819      value: function onUploadError(message) {
6820        var noticeOperations = this.props.noticeOperations;
6821        noticeOperations.removeAllNotices();
6822        noticeOperations.createErrorNotice(message);
6823      }
6824    }, {
6825      key: "setLinkTo",
6826      value: function setLinkTo(value) {
6827        this.setAttributes({
6828          linkTo: value
6829        });
6830      }
6831    }, {
6832      key: "setColumnsNumber",
6833      value: function setColumnsNumber(value) {
6834        this.setAttributes({
6835          columns: value
6836        });
6837      }
6838    }, {
6839      key: "toggleImageCrop",
6840      value: function toggleImageCrop() {
6841        this.setAttributes({
6842          imageCrop: !this.props.attributes.imageCrop
6843        });
6844      }
6845    }, {
6846      key: "getImageCropHelp",
6847      value: function getImageCropHelp(checked) {
6848        return checked ? Object(external_this_wp_i18n_["__"])('Thumbnails are cropped to align.') : Object(external_this_wp_i18n_["__"])('Thumbnails are not cropped.');
6849      }
6850    }, {
6851      key: "onFocusGalleryCaption",
6852      value: function onFocusGalleryCaption() {
6853        this.setState({
6854          selectedImage: null
6855        });
6856      }
6857    }, {
6858      key: "setImageAttributes",
6859      value: function setImageAttributes(index, attributes) {
6860        var images = this.props.attributes.images;
6861        var setAttributes = this.setAttributes;
6862  
6863        if (!images[index]) {
6864          return;
6865        }
6866  
6867        setAttributes({
6868          images: [].concat(Object(toConsumableArray["a" /* default */])(images.slice(0, index)), [Object(objectSpread["a" /* default */])({}, images[index], attributes)], Object(toConsumableArray["a" /* default */])(images.slice(index + 1)))
6869        });
6870      }
6871    }, {
6872      key: "componentDidMount",
6873      value: function componentDidMount() {
6874        var _this$props = this.props,
6875            attributes = _this$props.attributes,
6876            mediaUpload = _this$props.mediaUpload;
6877        var images = attributes.images;
6878  
6879        if (Object(external_lodash_["every"])(images, function (_ref) {
6880          var url = _ref.url;
6881          return Object(external_this_wp_blob_["isBlobURL"])(url);
6882        })) {
6883          var filesList = Object(external_lodash_["map"])(images, function (_ref2) {
6884            var url = _ref2.url;
6885            return Object(external_this_wp_blob_["getBlobByURL"])(url);
6886          });
6887          Object(external_lodash_["forEach"])(images, function (_ref3) {
6888            var url = _ref3.url;
6889            return Object(external_this_wp_blob_["revokeBlobURL"])(url);
6890          });
6891          mediaUpload({
6892            filesList: filesList,
6893            onFileChange: this.onSelectImages,
6894            allowedTypes: ['image']
6895          });
6896        }
6897      }
6898    }, {
6899      key: "componentDidUpdate",
6900      value: function componentDidUpdate(prevProps) {
6901        // Deselect images when deselecting the block
6902        if (!this.props.isSelected && prevProps.isSelected) {
6903          this.setState({
6904            selectedImage: null,
6905            captionSelected: false
6906          });
6907        }
6908      }
6909    }, {
6910      key: "render",
6911      value: function render() {
6912        var _classnames,
6913            _this7 = this;
6914  
6915        var _this$props2 = this.props,
6916            attributes = _this$props2.attributes,
6917            className = _this$props2.className,
6918            isSelected = _this$props2.isSelected,
6919            noticeUI = _this$props2.noticeUI,
6920            setAttributes = _this$props2.setAttributes;
6921        var align = attributes.align,
6922            _attributes$columns = attributes.columns,
6923            columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
6924            caption = attributes.caption,
6925            imageCrop = attributes.imageCrop,
6926            images = attributes.images,
6927            linkTo = attributes.linkTo;
6928        var hasImages = !!images.length;
6929        var hasImagesWithId = hasImages && Object(external_lodash_["some"])(images, function (_ref4) {
6930          var id = _ref4.id;
6931          return id;
6932        });
6933        var mediaPlaceholder = Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], {
6934          addToGallery: hasImagesWithId,
6935          isAppender: hasImages,
6936          className: className,
6937          dropZoneUIOnly: hasImages && !isSelected,
6938          icon: !hasImages && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
6939            icon: icons_icon
6940          }),
6941          labels: {
6942            title: !hasImages && Object(external_this_wp_i18n_["__"])('Gallery'),
6943            instructions: !hasImages && Object(external_this_wp_i18n_["__"])('Drag images, upload new ones or select files from your library.')
6944          },
6945          onSelect: this.onSelectImages,
6946          accept: "image/*",
6947          allowedTypes: edit_ALLOWED_MEDIA_TYPES,
6948          multiple: true,
6949          value: hasImagesWithId ? images : undefined,
6950          onError: this.onUploadError,
6951          notices: hasImages ? undefined : noticeUI
6952        });
6953  
6954        if (!hasImages) {
6955          return mediaPlaceholder;
6956        }
6957  
6958        var captionClassNames = classnames_default()('blocks-gallery-caption', {
6959          'screen-reader-text': !isSelected && external_this_wp_blockEditor_["RichText"].isEmpty(caption)
6960        });
6961        return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
6962          title: Object(external_this_wp_i18n_["__"])('Gallery Settings')
6963        }, images.length > 1 && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], {
6964          label: Object(external_this_wp_i18n_["__"])('Columns'),
6965          value: columns,
6966          onChange: this.setColumnsNumber,
6967          min: 1,
6968          max: Math.min(MAX_COLUMNS, images.length),
6969          required: true
6970        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
6971          label: Object(external_this_wp_i18n_["__"])('Crop Images'),
6972          checked: !!imageCrop,
6973          onChange: this.toggleImageCrop,
6974          help: this.getImageCropHelp
6975        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], {
6976          label: Object(external_this_wp_i18n_["__"])('Link To'),
6977          value: linkTo,
6978          onChange: this.setLinkTo,
6979          options: linkOptions
6980        }))), noticeUI, Object(external_this_wp_element_["createElement"])("figure", {
6981          className: classnames_default()(className, (_classnames = {}, Object(defineProperty["a" /* default */])(_classnames, "align".concat(align), align), Object(defineProperty["a" /* default */])(_classnames, "columns-".concat(columns), columns), Object(defineProperty["a" /* default */])(_classnames, 'is-cropped', imageCrop), _classnames))
6982        }, Object(external_this_wp_element_["createElement"])("ul", {
6983          className: "blocks-gallery-grid"
6984        }, images.map(function (img, index) {
6985          /* translators: %1$d is the order number of the image, %2$d is the total number of images. */
6986          var ariaLabel = Object(external_this_wp_i18n_["sprintf"])(Object(external_this_wp_i18n_["__"])('image %1$d of %2$d in gallery'), index + 1, images.length);
6987          return Object(external_this_wp_element_["createElement"])("li", {
6988            className: "blocks-gallery-item",
6989            key: img.id || img.url
6990          }, Object(external_this_wp_element_["createElement"])(gallery_image, {
6991            url: img.url,
6992            alt: img.alt,
6993            id: img.id,
6994            isFirstItem: index === 0,
6995            isLastItem: index + 1 === images.length,
6996            isSelected: isSelected && _this7.state.selectedImage === index,
6997            onMoveBackward: _this7.onMoveBackward(index),
6998            onMoveForward: _this7.onMoveForward(index),
6999            onRemove: _this7.onRemoveImage(index),
7000            onSelect: _this7.onSelectImage(index),
7001            setAttributes: function setAttributes(attrs) {
7002              return _this7.setImageAttributes(index, attrs);
7003            },
7004            caption: img.caption,
7005            "aria-label": ariaLabel
7006          }));
7007        })), mediaPlaceholder, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
7008          tagName: "figcaption",
7009          className: captionClassNames,
7010          placeholder: Object(external_this_wp_i18n_["__"])('Write gallery caption…'),
7011          value: caption,
7012          unstableOnFocus: this.onFocusGalleryCaption,
7013          onChange: function onChange(value) {
7014            return setAttributes({
7015              caption: value
7016            });
7017          },
7018          inlineToolbar: true
7019        })));
7020      }
7021    }]);
7022  
7023    return GalleryEdit;
7024  }(external_this_wp_element_["Component"]);
7025  
7026  /* harmony default export */ var gallery_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
7027    var _select = select('core/block-editor'),
7028        getSettings = _select.getSettings;
7029  
7030    var _getSettings = getSettings(),
7031        __experimentalMediaUpload = _getSettings.__experimentalMediaUpload;
7032  
7033    return {
7034      mediaUpload: __experimentalMediaUpload
7035    };
7036  }), external_this_wp_components_["withNotices"]])(edit_GalleryEdit));
7037  
7038  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/save.js
7039  
7040  
7041  /**
7042   * WordPress dependencies
7043   */
7044  
7045  /**
7046   * Internal dependencies
7047   */
7048  
7049  
7050  function gallery_save_save(_ref) {
7051    var attributes = _ref.attributes;
7052    var images = attributes.images,
7053        _attributes$columns = attributes.columns,
7054        columns = _attributes$columns === void 0 ? defaultColumnsNumber(attributes) : _attributes$columns,
7055        imageCrop = attributes.imageCrop,
7056        caption = attributes.caption,
7057        linkTo = attributes.linkTo;
7058    return Object(external_this_wp_element_["createElement"])("figure", {
7059      className: "columns-".concat(columns, " ").concat(imageCrop ? 'is-cropped' : '')
7060    }, Object(external_this_wp_element_["createElement"])("ul", {
7061      className: "blocks-gallery-grid"
7062    }, images.map(function (image) {
7063      var href;
7064  
7065      switch (linkTo) {
7066        case 'media':
7067          href = image.fullUrl || image.url;
7068          break;
7069  
7070        case 'attachment':
7071          href = image.link;
7072          break;
7073      }
7074  
7075      var img = Object(external_this_wp_element_["createElement"])("img", {
7076        src: image.url,
7077        alt: image.alt,
7078        "data-id": image.id,
7079        "data-full-url": image.fullUrl,
7080        "data-link": image.link,
7081        className: image.id ? "wp-image-".concat(image.id) : null
7082      });
7083      return Object(external_this_wp_element_["createElement"])("li", {
7084        key: image.id || image.url,
7085        className: "blocks-gallery-item"
7086      }, Object(external_this_wp_element_["createElement"])("figure", null, href ? Object(external_this_wp_element_["createElement"])("a", {
7087        href: href
7088      }, img) : img, !external_this_wp_blockEditor_["RichText"].isEmpty(image.caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7089        tagName: "figcaption",
7090        className: "blocks-gallery-item__caption",
7091        value: image.caption
7092      })));
7093    })), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7094      tagName: "figcaption",
7095      className: "blocks-gallery-caption",
7096      value: caption
7097    }));
7098  }
7099  
7100  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/transforms.js
7101  /**
7102   * External dependencies
7103   */
7104  
7105  /**
7106   * WordPress dependencies
7107   */
7108  
7109  
7110  
7111  /**
7112   * Internal dependencies
7113   */
7114  
7115  
7116  
7117  var parseShortcodeIds = function parseShortcodeIds(ids) {
7118    if (!ids) {
7119      return [];
7120    }
7121  
7122    return ids.split(',').map(function (id) {
7123      return parseInt(id, 10);
7124    });
7125  };
7126  
7127  var gallery_transforms_transforms = {
7128    from: [{
7129      type: 'block',
7130      isMultiBlock: true,
7131      blocks: ['core/image'],
7132      transform: function transform(attributes) {
7133        // Init the align attribute from the first item which may be either the placeholder or an image.
7134        var align = attributes[0].align; // Loop through all the images and check if they have the same align.
7135  
7136        align = Object(external_lodash_["every"])(attributes, ['align', align]) ? align : undefined;
7137        var validImages = Object(external_lodash_["filter"])(attributes, function (_ref) {
7138          var url = _ref.url;
7139          return url;
7140        });
7141        return Object(external_this_wp_blocks_["createBlock"])('core/gallery', {
7142          images: validImages.map(function (_ref2) {
7143            var id = _ref2.id,
7144                url = _ref2.url,
7145                alt = _ref2.alt,
7146                caption = _ref2.caption;
7147            return {
7148              id: id,
7149              url: url,
7150              alt: alt,
7151              caption: caption
7152            };
7153          }),
7154          ids: validImages.map(function (_ref3) {
7155            var id = _ref3.id;
7156            return id;
7157          }),
7158          align: align
7159        });
7160      }
7161    }, {
7162      type: 'shortcode',
7163      tag: 'gallery',
7164      attributes: {
7165        images: {
7166          type: 'array',
7167          shortcode: function shortcode(_ref4) {
7168            var ids = _ref4.named.ids;
7169            return parseShortcodeIds(ids).map(function (id) {
7170              return {
7171                id: id
7172              };
7173            });
7174          }
7175        },
7176        ids: {
7177          type: 'array',
7178          shortcode: function shortcode(_ref5) {
7179            var ids = _ref5.named.ids;
7180            return parseShortcodeIds(ids);
7181          }
7182        },
7183        columns: {
7184          type: 'number',
7185          shortcode: function shortcode(_ref6) {
7186            var _ref6$named$columns = _ref6.named.columns,
7187                columns = _ref6$named$columns === void 0 ? '3' : _ref6$named$columns;
7188            return parseInt(columns, 10);
7189          }
7190        },
7191        linkTo: {
7192          type: 'string',
7193          shortcode: function shortcode(_ref7) {
7194            var _ref7$named$link = _ref7.named.link,
7195                link = _ref7$named$link === void 0 ? 'attachment' : _ref7$named$link;
7196            return link === 'file' ? 'media' : link;
7197          }
7198        }
7199      }
7200    }, {
7201      // When created by drag and dropping multiple files on an insertion point
7202      type: 'files',
7203      isMatch: function isMatch(files) {
7204        return files.length !== 1 && Object(external_lodash_["every"])(files, function (file) {
7205          return file.type.indexOf('image/') === 0;
7206        });
7207      },
7208      transform: function transform(files) {
7209        var block = Object(external_this_wp_blocks_["createBlock"])('core/gallery', {
7210          images: files.map(function (file) {
7211            return shared_pickRelevantMediaFiles({
7212              url: Object(external_this_wp_blob_["createBlobURL"])(file)
7213            });
7214          })
7215        });
7216        return block;
7217      }
7218    }],
7219    to: [{
7220      type: 'block',
7221      blocks: ['core/image'],
7222      transform: function transform(_ref8) {
7223        var images = _ref8.images,
7224            align = _ref8.align;
7225  
7226        if (images.length > 0) {
7227          return images.map(function (_ref9) {
7228            var id = _ref9.id,
7229                url = _ref9.url,
7230                alt = _ref9.alt,
7231                caption = _ref9.caption;
7232            return Object(external_this_wp_blocks_["createBlock"])('core/image', {
7233              id: id,
7234              url: url,
7235              alt: alt,
7236              caption: caption,
7237              align: align
7238            });
7239          });
7240        }
7241  
7242        return Object(external_this_wp_blocks_["createBlock"])('core/image', {
7243          align: align
7244        });
7245      }
7246    }]
7247  };
7248  /* harmony default export */ var gallery_transforms = (gallery_transforms_transforms);
7249  
7250  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/gallery/index.js
7251  /**
7252   * WordPress dependencies
7253   */
7254  
7255  /**
7256   * Internal dependencies
7257   */
7258  
7259  
7260  
7261  
7262  var gallery_metadata = {
7263    name: "core/gallery",
7264    category: "common",
7265    attributes: {
7266      images: {
7267        type: "array",
7268        "default": [],
7269        source: "query",
7270        selector: ".blocks-gallery-item",
7271        query: {
7272          url: {
7273            source: "attribute",
7274            selector: "img",
7275            attribute: "src"
7276          },
7277          fullUrl: {
7278            source: "attribute",
7279            selector: "img",
7280            attribute: "data-full-url"
7281          },
7282          link: {
7283            source: "attribute",
7284            selector: "img",
7285            attribute: "data-link"
7286          },
7287          alt: {
7288            source: "attribute",
7289            selector: "img",
7290            attribute: "alt",
7291            "default": ""
7292          },
7293          id: {
7294            source: "attribute",
7295            selector: "img",
7296            attribute: "data-id"
7297          },
7298          caption: {
7299            type: "string",
7300            source: "html",
7301            selector: ".blocks-gallery-item__caption"
7302          }
7303        }
7304      },
7305      ids: {
7306        type: "array",
7307        "default": []
7308      },
7309      columns: {
7310        type: "number"
7311      },
7312      caption: {
7313        type: "string",
7314        source: "html",
7315        selector: ".blocks-gallery-caption"
7316      },
7317      imageCrop: {
7318        type: "boolean",
7319        "default": true
7320      },
7321      linkTo: {
7322        type: "string",
7323        "default": "none"
7324      }
7325    }
7326  };
7327  
7328  
7329  var gallery_name = gallery_metadata.name;
7330  
7331  var gallery_settings = {
7332    title: Object(external_this_wp_i18n_["__"])('Gallery'),
7333    description: Object(external_this_wp_i18n_["__"])('Display multiple images in a rich gallery.'),
7334    icon: icons_icon,
7335    keywords: [Object(external_this_wp_i18n_["__"])('images'), Object(external_this_wp_i18n_["__"])('photos')],
7336    example: {
7337      attributes: {
7338        columns: 2,
7339        images: [{
7340          url: 'https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg'
7341        }, {
7342          url: 'https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg'
7343        }]
7344      }
7345    },
7346    supports: {
7347      align: true
7348    },
7349    transforms: gallery_transforms,
7350    edit: gallery_edit,
7351    save: gallery_save_save,
7352    deprecated: gallery_deprecated
7353  };
7354  
7355  // EXTERNAL MODULE: external {"this":["wp","serverSideRender"]}
7356  var external_this_wp_serverSideRender_ = __webpack_require__(58);
7357  var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_);
7358  
7359  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js
7360  
7361  
7362  /**
7363   * WordPress dependencies
7364   */
7365  
7366  
7367  
7368  
7369  function ArchivesEdit(_ref) {
7370    var attributes = _ref.attributes,
7371        setAttributes = _ref.setAttributes;
7372    var showPostCounts = attributes.showPostCounts,
7373        displayAsDropdown = attributes.displayAsDropdown;
7374    return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
7375      title: Object(external_this_wp_i18n_["__"])('Archives Settings')
7376    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
7377      label: Object(external_this_wp_i18n_["__"])('Display as Dropdown'),
7378      checked: displayAsDropdown,
7379      onChange: function onChange() {
7380        return setAttributes({
7381          displayAsDropdown: !displayAsDropdown
7382        });
7383      }
7384    }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
7385      label: Object(external_this_wp_i18n_["__"])('Show Post Counts'),
7386      checked: showPostCounts,
7387      onChange: function onChange() {
7388        return setAttributes({
7389          showPostCounts: !showPostCounts
7390        });
7391      }
7392    }))), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_serverSideRender_default.a, {
7393      block: "core/archives",
7394      attributes: attributes
7395    })));
7396  }
7397  
7398  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/icon.js
7399  
7400  
7401  /**
7402   * WordPress dependencies
7403   */
7404  
7405  /* harmony default export */ var archives_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
7406    viewBox: "0 0 24 24",
7407    xmlns: "http://www.w3.org/2000/svg"
7408  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
7409    d: "M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"
7410  })));
7411  
7412  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/index.js
7413  /**
7414   * WordPress dependencies
7415   */
7416  
7417  /**
7418   * Internal dependencies
7419   */
7420  
7421  
7422  
7423  var archives_name = 'core/archives';
7424  var archives_settings = {
7425    title: Object(external_this_wp_i18n_["__"])('Archives'),
7426    description: Object(external_this_wp_i18n_["__"])('Display a monthly archive of your posts.'),
7427    icon: archives_icon,
7428    category: 'widgets',
7429    supports: {
7430      align: true,
7431      html: false
7432    },
7433    edit: ArchivesEdit
7434  };
7435  
7436  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/icon.js
7437  
7438  
7439  /**
7440   * WordPress dependencies
7441   */
7442  
7443  /* harmony default export */ var audio_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
7444    viewBox: "0 0 24 24",
7445    xmlns: "http://www.w3.org/2000/svg"
7446  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
7447    d: "M0,0h24v24H0V0z",
7448    fill: "none"
7449  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
7450    d: "m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"
7451  })));
7452  
7453  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js
7454  
7455  
7456  
7457  
7458  
7459  
7460  
7461  
7462  
7463  
7464  /**
7465   * WordPress dependencies
7466   */
7467  
7468  
7469  
7470  
7471  
7472  
7473  
7474  /**
7475   * Internal dependencies
7476   */
7477  
7478  
7479  /**
7480   * Internal dependencies
7481   */
7482  
7483  
7484  var audio_edit_ALLOWED_MEDIA_TYPES = ['audio'];
7485  
7486  var edit_AudioEdit =
7487  /*#__PURE__*/
7488  function (_Component) {
7489    Object(inherits["a" /* default */])(AudioEdit, _Component);
7490  
7491    function AudioEdit() {
7492      var _this;
7493  
7494      Object(classCallCheck["a" /* default */])(this, AudioEdit);
7495  
7496      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(AudioEdit).apply(this, arguments)); // edit component has its own src in the state so it can be edited
7497      // without setting the actual value outside of the edit UI
7498  
7499      _this.state = {
7500        editing: !_this.props.attributes.src
7501      };
7502      _this.toggleAttribute = _this.toggleAttribute.bind(Object(assertThisInitialized["a" /* default */])(_this));
7503      _this.onSelectURL = _this.onSelectURL.bind(Object(assertThisInitialized["a" /* default */])(_this));
7504      _this.onUploadError = _this.onUploadError.bind(Object(assertThisInitialized["a" /* default */])(_this));
7505      return _this;
7506    }
7507  
7508    Object(createClass["a" /* default */])(AudioEdit, [{
7509      key: "componentDidMount",
7510      value: function componentDidMount() {
7511        var _this2 = this;
7512  
7513        var _this$props = this.props,
7514            attributes = _this$props.attributes,
7515            mediaUpload = _this$props.mediaUpload,
7516            noticeOperations = _this$props.noticeOperations,
7517            setAttributes = _this$props.setAttributes;
7518        var id = attributes.id,
7519            _attributes$src = attributes.src,
7520            src = _attributes$src === void 0 ? '' : _attributes$src;
7521  
7522        if (!id && Object(external_this_wp_blob_["isBlobURL"])(src)) {
7523          var file = Object(external_this_wp_blob_["getBlobByURL"])(src);
7524  
7525          if (file) {
7526            mediaUpload({
7527              filesList: [file],
7528              onFileChange: function onFileChange(_ref) {
7529                var _ref2 = Object(slicedToArray["a" /* default */])(_ref, 1),
7530                    _ref2$ = _ref2[0],
7531                    mediaId = _ref2$.id,
7532                    url = _ref2$.url;
7533  
7534                setAttributes({
7535                  id: mediaId,
7536                  src: url
7537                });
7538              },
7539              onError: function onError(e) {
7540                setAttributes({
7541                  src: undefined,
7542                  id: undefined
7543                });
7544  
7545                _this2.setState({
7546                  editing: true
7547                });
7548  
7549                noticeOperations.createErrorNotice(e);
7550              },
7551              allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES
7552            });
7553          }
7554        }
7555      }
7556    }, {
7557      key: "toggleAttribute",
7558      value: function toggleAttribute(attribute) {
7559        var _this3 = this;
7560  
7561        return function (newValue) {
7562          _this3.props.setAttributes(Object(defineProperty["a" /* default */])({}, attribute, newValue));
7563        };
7564      }
7565    }, {
7566      key: "onSelectURL",
7567      value: function onSelectURL(newSrc) {
7568        var _this$props2 = this.props,
7569            attributes = _this$props2.attributes,
7570            setAttributes = _this$props2.setAttributes;
7571        var src = attributes.src; // Set the block's src from the edit component's state, and switch off
7572        // the editing UI.
7573  
7574        if (newSrc !== src) {
7575          // Check if there's an embed block that handles this URL.
7576          var embedBlock = util_createUpgradedEmbedBlock({
7577            attributes: {
7578              url: newSrc
7579            }
7580          });
7581  
7582          if (undefined !== embedBlock) {
7583            this.props.onReplace(embedBlock);
7584            return;
7585          }
7586  
7587          setAttributes({
7588            src: newSrc,
7589            id: undefined
7590          });
7591        }
7592  
7593        this.setState({
7594          editing: false
7595        });
7596      }
7597    }, {
7598      key: "onUploadError",
7599      value: function onUploadError(message) {
7600        var noticeOperations = this.props.noticeOperations;
7601        noticeOperations.removeAllNotices();
7602        noticeOperations.createErrorNotice(message);
7603      }
7604    }, {
7605      key: "getAutoplayHelp",
7606      value: function getAutoplayHelp(checked) {
7607        return checked ? Object(external_this_wp_i18n_["__"])('Note: Autoplaying audio may cause usability issues for some visitors.') : null;
7608      }
7609    }, {
7610      key: "render",
7611      value: function render() {
7612        var _this4 = this;
7613  
7614        var _this$props$attribute = this.props.attributes,
7615            autoplay = _this$props$attribute.autoplay,
7616            caption = _this$props$attribute.caption,
7617            loop = _this$props$attribute.loop,
7618            preload = _this$props$attribute.preload,
7619            src = _this$props$attribute.src;
7620        var _this$props3 = this.props,
7621            setAttributes = _this$props3.setAttributes,
7622            isSelected = _this$props3.isSelected,
7623            className = _this$props3.className,
7624            noticeUI = _this$props3.noticeUI;
7625        var editing = this.state.editing;
7626  
7627        var switchToEditing = function switchToEditing() {
7628          _this4.setState({
7629            editing: true
7630          });
7631        };
7632  
7633        var onSelectAudio = function onSelectAudio(media) {
7634          if (!media || !media.url) {
7635            // in this case there was an error and we should continue in the editing state
7636            // previous attributes should be removed because they may be temporary blob urls
7637            setAttributes({
7638              src: undefined,
7639              id: undefined
7640            });
7641            switchToEditing();
7642            return;
7643          } // sets the block's attribute and updates the edit component from the
7644          // selected media, then switches off the editing UI
7645  
7646  
7647          setAttributes({
7648            src: media.url,
7649            id: media.id
7650          });
7651  
7652          _this4.setState({
7653            src: media.url,
7654            editing: false
7655          });
7656        };
7657  
7658        if (editing) {
7659          return Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["MediaPlaceholder"], {
7660            icon: Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["BlockIcon"], {
7661              icon: audio_icon
7662            }),
7663            className: className,
7664            onSelect: onSelectAudio,
7665            onSelectURL: this.onSelectURL,
7666            accept: "audio/*",
7667            allowedTypes: audio_edit_ALLOWED_MEDIA_TYPES,
7668            value: this.props.attributes,
7669            notices: noticeUI,
7670            onError: this.onUploadError
7671          });
7672        }
7673  
7674        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_["Toolbar"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
7675          className: "components-icon-button components-toolbar__control",
7676          label: Object(external_this_wp_i18n_["__"])('Edit audio'),
7677          onClick: switchToEditing,
7678          icon: "edit"
7679        }))), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
7680          title: Object(external_this_wp_i18n_["__"])('Audio Settings')
7681        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
7682          label: Object(external_this_wp_i18n_["__"])('Autoplay'),
7683          onChange: this.toggleAttribute('autoplay'),
7684          checked: autoplay,
7685          help: this.getAutoplayHelp
7686        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
7687          label: Object(external_this_wp_i18n_["__"])('Loop'),
7688          onChange: this.toggleAttribute('loop'),
7689          checked: loop
7690        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SelectControl"], {
7691          label: Object(external_this_wp_i18n_["__"])('Preload'),
7692          value: undefined !== preload ? preload : 'none' // `undefined` is required for the preload attribute to be unset.
7693          ,
7694          onChange: function onChange(value) {
7695            return setAttributes({
7696              preload: 'none' !== value ? value : undefined
7697            });
7698          },
7699          options: [{
7700            value: 'auto',
7701            label: Object(external_this_wp_i18n_["__"])('Auto')
7702          }, {
7703            value: 'metadata',
7704            label: Object(external_this_wp_i18n_["__"])('Metadata')
7705          }, {
7706            value: 'none',
7707            label: Object(external_this_wp_i18n_["__"])('None')
7708          }]
7709        }))), Object(external_this_wp_element_["createElement"])("figure", {
7710          className: className
7711        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Disabled"], null, Object(external_this_wp_element_["createElement"])("audio", {
7712          controls: "controls",
7713          src: src
7714        })), (!external_this_wp_blockEditor_["RichText"].isEmpty(caption) || isSelected) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
7715          tagName: "figcaption",
7716          placeholder: Object(external_this_wp_i18n_["__"])('Write caption…'),
7717          value: caption,
7718          onChange: function onChange(value) {
7719            return setAttributes({
7720              caption: value
7721            });
7722          },
7723          inlineToolbar: true
7724        })));
7725      }
7726    }]);
7727  
7728    return AudioEdit;
7729  }(external_this_wp_element_["Component"]);
7730  
7731  /* harmony default export */ var audio_edit = (Object(external_this_wp_compose_["compose"])([Object(external_this_wp_data_["withSelect"])(function (select) {
7732    var _select = select('core/block-editor'),
7733        getSettings = _select.getSettings;
7734  
7735    var _getSettings = getSettings(),
7736        __experimentalMediaUpload = _getSettings.__experimentalMediaUpload;
7737  
7738    return {
7739      mediaUpload: __experimentalMediaUpload
7740    };
7741  }), external_this_wp_components_["withNotices"]])(edit_AudioEdit));
7742  
7743  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/save.js
7744  
7745  
7746  /**
7747   * WordPress dependencies
7748   */
7749  
7750  function audio_save_save(_ref) {
7751    var attributes = _ref.attributes;
7752    var autoplay = attributes.autoplay,
7753        caption = attributes.caption,
7754        loop = attributes.loop,
7755        preload = attributes.preload,
7756        src = attributes.src;
7757    return Object(external_this_wp_element_["createElement"])("figure", null, Object(external_this_wp_element_["createElement"])("audio", {
7758      controls: "controls",
7759      src: src,
7760      autoPlay: autoplay,
7761      loop: loop,
7762      preload: preload
7763    }), !external_this_wp_blockEditor_["RichText"].isEmpty(caption) && Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
7764      tagName: "figcaption",
7765      value: caption
7766    }));
7767  }
7768  
7769  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/transforms.js
7770  /**
7771   * WordPress dependencies
7772   */
7773  
7774  
7775  var audio_transforms_transforms = {
7776    from: [{
7777      type: 'files',
7778      isMatch: function isMatch(files) {
7779        return files.length === 1 && files[0].type.indexOf('audio/') === 0;
7780      },
7781      transform: function transform(files) {
7782        var file = files[0]; // We don't need to upload the media directly here
7783        // It's already done as part of the `componentDidMount`
7784        // in the audio block
7785  
7786        var block = Object(external_this_wp_blocks_["createBlock"])('core/audio', {
7787          src: Object(external_this_wp_blob_["createBlobURL"])(file)
7788        });
7789        return block;
7790      }
7791    }, {
7792      type: 'shortcode',
7793      tag: 'audio',
7794      attributes: {
7795        src: {
7796          type: 'string',
7797          shortcode: function shortcode(_ref) {
7798            var src = _ref.named.src;
7799            return src;
7800          }
7801        },
7802        loop: {
7803          type: 'string',
7804          shortcode: function shortcode(_ref2) {
7805            var loop = _ref2.named.loop;
7806            return loop;
7807          }
7808        },
7809        autoplay: {
7810          type: 'string',
7811          shortcode: function shortcode(_ref3) {
7812            var autoplay = _ref3.named.autoplay;
7813            return autoplay;
7814          }
7815        },
7816        preload: {
7817          type: 'string',
7818          shortcode: function shortcode(_ref4) {
7819            var preload = _ref4.named.preload;
7820            return preload;
7821          }
7822        }
7823      }
7824    }]
7825  };
7826  /* harmony default export */ var audio_transforms = (audio_transforms_transforms);
7827  
7828  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/index.js
7829  /**
7830   * WordPress dependencies
7831   */
7832  
7833  /**
7834   * Internal dependencies
7835   */
7836  
7837  
7838  
7839  var audio_metadata = {
7840    name: "core/audio",
7841    category: "common",
7842    attributes: {
7843      src: {
7844        type: "string",
7845        source: "attribute",
7846        selector: "audio",
7847        attribute: "src"
7848      },
7849      caption: {
7850        type: "string",
7851        source: "html",
7852        selector: "figcaption"
7853      },
7854      id: {
7855        type: "number"
7856      },
7857      autoplay: {
7858        type: "boolean",
7859        source: "attribute",
7860        selector: "audio",
7861        attribute: "autoplay"
7862      },
7863      loop: {
7864        type: "boolean",
7865        source: "attribute",
7866        selector: "audio",
7867        attribute: "loop"
7868      },
7869      preload: {
7870        type: "string",
7871        source: "attribute",
7872        selector: "audio",
7873        attribute: "preload"
7874      }
7875    }
7876  };
7877  
7878  
7879  var audio_name = audio_metadata.name;
7880  
7881  var audio_settings = {
7882    title: Object(external_this_wp_i18n_["__"])('Audio'),
7883    description: Object(external_this_wp_i18n_["__"])('Embed a simple audio player.'),
7884    icon: audio_icon,
7885    transforms: audio_transforms,
7886    supports: {
7887      align: true
7888    },
7889    edit: audio_edit,
7890    save: audio_save_save
7891  };
7892  
7893  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/deprecated.js
7894  
7895  
7896  
7897  
7898  /**
7899   * External dependencies
7900   */
7901  
7902  
7903  /**
7904   * WordPress dependencies
7905   */
7906  
7907  
7908  
7909  var deprecated_colorsMigration = function colorsMigration(attributes) {
7910    return Object(external_lodash_["omit"])(Object(objectSpread["a" /* default */])({}, attributes, {
7911      customTextColor: attributes.textColor && '#' === attributes.textColor[0] ? attributes.textColor : undefined,
7912      customBackgroundColor: attributes.color && '#' === attributes.color[0] ? attributes.color : undefined
7913    }), ['color', 'textColor']);
7914  };
7915  
7916  var button_deprecated_blockAttributes = {
7917    url: {
7918      type: 'string',
7919      source: 'attribute',
7920      selector: 'a',
7921      attribute: 'href'
7922    },
7923    title: {
7924      type: 'string',
7925      source: 'attribute',
7926      selector: 'a',
7927      attribute: 'title'
7928    },
7929    text: {
7930      type: 'string',
7931      source: 'html',
7932      selector: 'a'
7933    }
7934  };
7935  var button_deprecated_deprecated = [{
7936    attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, {
7937      align: {
7938        type: 'string',
7939        default: 'none'
7940      },
7941      backgroundColor: {
7942        type: 'string'
7943      },
7944      textColor: {
7945        type: 'string'
7946      },
7947      customBackgroundColor: {
7948        type: 'string'
7949      },
7950      customTextColor: {
7951        type: 'string'
7952      },
7953      linkTarget: {
7954        type: 'string',
7955        source: 'attribute',
7956        selector: 'a',
7957        attribute: 'target'
7958      },
7959      rel: {
7960        type: 'string',
7961        source: 'attribute',
7962        selector: 'a',
7963        attribute: 'rel'
7964      },
7965      placeholder: {
7966        type: 'string'
7967      }
7968    }),
7969    isEligible: function isEligible(attribute) {
7970      return attribute.className && attribute.className.includes('is-style-squared');
7971    },
7972    migrate: function migrate(attributes) {
7973      var newClassName = attributes.className;
7974  
7975      if (newClassName) {
7976        newClassName = newClassName.replace(/is-style-squared[\s]?/, '').trim();
7977      }
7978  
7979      return Object(objectSpread["a" /* default */])({}, attributes, {
7980        className: newClassName ? newClassName : undefined,
7981        borderRadius: 0
7982      });
7983    },
7984    save: function save(_ref) {
7985      var _classnames;
7986  
7987      var attributes = _ref.attributes;
7988      var backgroundColor = attributes.backgroundColor,
7989          customBackgroundColor = attributes.customBackgroundColor,
7990          customTextColor = attributes.customTextColor,
7991          linkTarget = attributes.linkTarget,
7992          rel = attributes.rel,
7993          text = attributes.text,
7994          textColor = attributes.textColor,
7995          title = attributes.title,
7996          url = attributes.url;
7997      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
7998      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
7999      var buttonClasses = classnames_default()('wp-block-button__link', (_classnames = {
8000        'has-text-color': textColor || customTextColor
8001      }, Object(defineProperty["a" /* default */])(_classnames, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames, backgroundClass, backgroundClass), _classnames));
8002      var buttonStyle = {
8003        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
8004        color: textClass ? undefined : customTextColor
8005      };
8006      return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
8007        tagName: "a",
8008        className: buttonClasses,
8009        href: url,
8010        title: title,
8011        style: buttonStyle,
8012        value: text,
8013        target: linkTarget,
8014        rel: rel
8015      }));
8016    }
8017  }, {
8018    attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, {
8019      align: {
8020        type: 'string',
8021        default: 'none'
8022      },
8023      backgroundColor: {
8024        type: 'string'
8025      },
8026      textColor: {
8027        type: 'string'
8028      },
8029      customBackgroundColor: {
8030        type: 'string'
8031      },
8032      customTextColor: {
8033        type: 'string'
8034      }
8035    }),
8036    save: function save(_ref2) {
8037      var _classnames2;
8038  
8039      var attributes = _ref2.attributes;
8040      var url = attributes.url,
8041          text = attributes.text,
8042          title = attributes.title,
8043          backgroundColor = attributes.backgroundColor,
8044          textColor = attributes.textColor,
8045          customBackgroundColor = attributes.customBackgroundColor,
8046          customTextColor = attributes.customTextColor;
8047      var textClass = Object(external_this_wp_blockEditor_["getColorClassName"])('color', textColor);
8048      var backgroundClass = Object(external_this_wp_blockEditor_["getColorClassName"])('background-color', backgroundColor);
8049      var buttonClasses = classnames_default()('wp-block-button__link', (_classnames2 = {
8050        'has-text-color': textColor || customTextColor
8051      }, Object(defineProperty["a" /* default */])(_classnames2, textClass, textClass), Object(defineProperty["a" /* default */])(_classnames2, 'has-background', backgroundColor || customBackgroundColor), Object(defineProperty["a" /* default */])(_classnames2, backgroundClass, backgroundClass), _classnames2));
8052      var buttonStyle = {
8053        backgroundColor: backgroundClass ? undefined : customBackgroundColor,
8054        color: textClass ? undefined : customTextColor
8055      };
8056      return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
8057        tagName: "a",
8058        className: buttonClasses,
8059        href: url,
8060        title: title,
8061        style: buttonStyle,
8062        value: text
8063      }));
8064    },
8065    migrate: deprecated_colorsMigration
8066  }, {
8067    attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, {
8068      color: {
8069        type: 'string'
8070      },
8071      textColor: {
8072        type: 'string'
8073      },
8074      align: {
8075        type: 'string',
8076        default: 'none'
8077      }
8078    }),
8079    save: function save(_ref3) {
8080      var attributes = _ref3.attributes;
8081      var url = attributes.url,
8082          text = attributes.text,
8083          title = attributes.title,
8084          align = attributes.align,
8085          color = attributes.color,
8086          textColor = attributes.textColor;
8087      var buttonStyle = {
8088        backgroundColor: color,
8089        color: textColor
8090      };
8091      var linkClass = 'wp-block-button__link';
8092      return Object(external_this_wp_element_["createElement"])("div", {
8093        className: "align".concat(align)
8094      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
8095        tagName: "a",
8096        className: linkClass,
8097        href: url,
8098        title: title,
8099        style: buttonStyle,
8100        value: text
8101      }));
8102    },
8103    migrate: deprecated_colorsMigration
8104  }, {
8105    attributes: Object(objectSpread["a" /* default */])({}, button_deprecated_blockAttributes, {
8106      color: {
8107        type: 'string'
8108      },
8109      textColor: {
8110        type: 'string'
8111      },
8112      align: {
8113        type: 'string',
8114        default: 'none'
8115      }
8116    }),
8117    save: function save(_ref4) {
8118      var attributes = _ref4.attributes;
8119      var url = attributes.url,
8120          text = attributes.text,
8121          title = attributes.title,
8122          align = attributes.align,
8123          color = attributes.color,
8124          textColor = attributes.textColor;
8125      return Object(external_this_wp_element_["createElement"])("div", {
8126        className: "align".concat(align),
8127        style: {
8128          backgroundColor: color
8129        }
8130      }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"].Content, {
8131        tagName: "a",
8132        href: url,
8133        title: title,
8134        style: {
8135          color: textColor
8136        },
8137        value: text
8138      }));
8139    },
8140    migrate: deprecated_colorsMigration
8141  }];
8142  /* harmony default export */ var button_deprecated = (button_deprecated_deprecated);
8143  
8144  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js
8145  
8146  
8147  
8148  
8149  
8150  
8151  
8152  
8153  
8154  /**
8155   * External dependencies
8156   */
8157  
8158  /**
8159   * WordPress dependencies
8160   */
8161  
8162  
8163  
8164  
8165  
8166  
8167  var edit_window = window,
8168      edit_getComputedStyle = edit_window.getComputedStyle;
8169  var edit_applyFallbackStyles = Object(external_this_wp_components_["withFallbackStyles"])(function (node, ownProps) {
8170    var textColor = ownProps.textColor,
8171        backgroundColor = ownProps.backgroundColor;
8172    var backgroundColorValue = backgroundColor && backgroundColor.color;
8173    var textColorValue = textColor && textColor.color; //avoid the use of querySelector if textColor color is known and verify if node is available.
8174  
8175    var textNode = !textColorValue && node ? node.querySelector('[contenteditable="true"]') : null;
8176    return {
8177      fallbackBackgroundColor: backgroundColorValue || !node ? undefined : edit_getComputedStyle(node).backgroundColor,
8178      fallbackTextColor: textColorValue || !textNode ? undefined : edit_getComputedStyle(textNode).color
8179    };
8180  });
8181  var edit_NEW_TAB_REL = 'noreferrer noopener';
8182  var MIN_BORDER_RADIUS_VALUE = 0;
8183  var MAX_BORDER_RADIUS_VALUE = 50;
8184  var INITIAL_BORDER_RADIUS_POSITION = 5;
8185  
8186  function BorderPanel(_ref) {
8187    var _ref$borderRadius = _ref.borderRadius,
8188        borderRadius = _ref$borderRadius === void 0 ? '' : _ref$borderRadius,
8189        setAttributes = _ref.setAttributes;
8190    var setBorderRadius = Object(external_this_wp_element_["useCallback"])(function (newBorderRadius) {
8191      setAttributes({
8192        borderRadius: newBorderRadius
8193      });
8194    }, [setAttributes]);
8195    return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
8196      title: Object(external_this_wp_i18n_["__"])('Border Settings')
8197    }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["RangeControl"], {
8198      value: borderRadius,
8199      label: Object(external_this_wp_i18n_["__"])('Border Radius'),
8200      min: MIN_BORDER_RADIUS_VALUE,
8201      max: MAX_BORDER_RADIUS_VALUE,
8202      initialPosition: INITIAL_BORDER_RADIUS_POSITION,
8203      allowReset: true,
8204      onChange: setBorderRadius
8205    }));
8206  }
8207  
8208  var edit_ButtonEdit =
8209  /*#__PURE__*/
8210  function (_Component) {
8211    Object(inherits["a" /* default */])(ButtonEdit, _Component);
8212  
8213    function ButtonEdit() {
8214      var _this;
8215  
8216      Object(classCallCheck["a" /* default */])(this, ButtonEdit);
8217  
8218      _this = Object(possibleConstructorReturn["a" /* default */])(this, Object(getPrototypeOf["a" /* default */])(ButtonEdit).apply(this, arguments));
8219      _this.nodeRef = null;
8220      _this.bindRef = _this.bindRef.bind(Object(assertThisInitialized["a" /* default */])(_this));
8221      _this.onSetLinkRel = _this.onSetLinkRel.bind(Object(assertThisInitialized["a" /* default */])(_this));
8222      _this.onToggleOpenInNewTab = _this.onToggleOpenInNewTab.bind(Object(assertThisInitialized["a" /* default */])(_this));
8223      return _this;
8224    }
8225  
8226    Object(createClass["a" /* default */])(ButtonEdit, [{
8227      key: "bindRef",
8228      value: function bindRef(node) {
8229        if (!node) {
8230          return;
8231        }
8232  
8233        this.nodeRef = node;
8234      }
8235    }, {
8236      key: "onSetLinkRel",
8237      value: function onSetLinkRel(value) {
8238        this.props.setAttributes({
8239          rel: value
8240        });
8241      }
8242    }, {
8243      key: "onToggleOpenInNewTab",
8244      value: function onToggleOpenInNewTab(value) {
8245        var rel = this.props.attributes.rel;
8246        var linkTarget = value ? '_blank' : undefined;
8247        var updatedRel = rel;
8248  
8249        if (linkTarget && !rel) {
8250          updatedRel = edit_NEW_TAB_REL;
8251        } else if (!linkTarget && rel === edit_NEW_TAB_REL) {
8252          updatedRel = undefined;
8253        }
8254  
8255        this.props.setAttributes({
8256          linkTarget: linkTarget,
8257          rel: updatedRel
8258        });
8259      }
8260    }, {
8261      key: "render",
8262      value: function render() {
8263        var _classnames;
8264  
8265        var _this$props = this.props,
8266            attributes = _this$props.attributes,
8267            backgroundColor = _this$props.backgroundColor,
8268            textColor = _this$props.textColor,
8269            setBackgroundColor = _this$props.setBackgroundColor,
8270            setTextColor = _this$props.setTextColor,
8271            fallbackBackgroundColor = _this$props.fallbackBackgroundColor,
8272            fallbackTextColor = _this$props.fallbackTextColor,
8273            setAttributes = _this$props.setAttributes,
8274            className = _this$props.className,
8275            instanceId = _this$props.instanceId,
8276            isSelected = _this$props.isSelected;
8277        var borderRadius = attributes.borderRadius,
8278            linkTarget = attributes.linkTarget,
8279            placeholder = attributes.placeholder,
8280            rel = attributes.rel,
8281            text = attributes.text,
8282            title = attributes.title,
8283            url = attributes.url;
8284        var linkId = "wp-block-button__inline-link-".concat(instanceId);
8285        return Object(external_this_wp_element_["createElement"])("div", {
8286          className: className,
8287          title: title,
8288          ref: this.bindRef
8289        }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["RichText"], {
8290          placeholder: placeholder || Object(external_this_wp_i18n_["__"])('Add text…'),
8291          value: text,
8292          onChange: function onChange(value) {
8293            return setAttributes({
8294              text: value
8295            });
8296          },
8297          withoutInteractiveFormatting: true,
8298          className: classnames_default()('wp-block-button__link', (_classnames = {
8299            'has-background': backgroundColor.color
8300          }, Object(defineProperty["a" /* default */])(_classnames, backgroundColor.class, backgroundColor.class), Object(defineProperty["a" /* default */])(_classnames, 'has-text-color', textColor.color), Object(defineProperty["a" /* default */])(_classnames, textColor.class, textColor.class), Object(defineProperty["a" /* default */])(_classnames, 'no-border-radius', borderRadius === 0), _classnames)),
8301          style: {
8302            backgroundColor: backgroundColor.color,
8303            color: textColor.color,
8304            borderRadius: borderRadius ? borderRadius + 'px' : undefined
8305          }
8306        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["BaseControl"], {
8307          label: Object(external_this_wp_i18n_["__"])('Link'),
8308          className: "wp-block-button__inline-link",
8309          id: linkId
8310        }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["URLInput"], {
8311          className: "wp-block-button__inline-link-input",
8312          value: url
8313          /* eslint-disable jsx-a11y/no-autofocus */
8314          // Disable Reason: The rule is meant to prevent enabling auto-focus, not disabling it.
8315          ,
8316          autoFocus: false
8317          /* eslint-enable jsx-a11y/no-autofocus */
8318          ,
8319          onChange: function onChange(value) {
8320            return setAttributes({
8321              url: value
8322            });
8323          },
8324          disableSuggestions: !isSelected,
8325          id: linkId,
8326          isFullWidth: true,
8327          hasBorder: true
8328        })), Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["InspectorControls"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["PanelColorSettings"], {
8329          title: Object(external_this_wp_i18n_["__"])('Color Settings'),
8330          colorSettings: [{
8331            value: backgroundColor.color,
8332            onChange: setBackgroundColor,
8333            label: Object(external_this_wp_i18n_["__"])('Background Color')
8334          }, {
8335            value: textColor.color,
8336            onChange: setTextColor,
8337            label: Object(external_this_wp_i18n_["__"])('Text Color')
8338          }]
8339        }, Object(external_this_wp_element_["createElement"])(external_this_wp_blockEditor_["ContrastChecker"], {
8340          // Text is considered large if font size is greater or equal to 18pt or 24px,
8341          // currently that's not the case for button.
8342          isLargeText: false,
8343          textColor: textColor.color,
8344          backgroundColor: backgroundColor.color,
8345          fallbackBackgroundColor: fallbackBackgroundColor,
8346          fallbackTextColor: fallbackTextColor
8347        })), Object(external_this_wp_element_["createElement"])(BorderPanel, {
8348          borderRadius: borderRadius,
8349          setAttributes: setAttributes
8350        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["PanelBody"], {
8351          title: Object(external_this_wp_i18n_["__"])('Link settings')
8352        }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToggleControl"], {
8353          label: Object(external_this_wp_i18n_["__"])('Open in new tab'),
8354          onChange: this.onToggleOpenInNewTab,
8355          checked: linkTarget === '_blank'
8356        }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["TextControl"], {
8357          label: Object(external_this_wp_i18n_["__"])('Link rel'),
8358          value: rel || '',
8359          onChange: this.onSetLinkRel
8360        }))));
8361      }
8362    }]);
8363  
8364    return ButtonEdit;
8365  }(external_this_wp_element_["Component"]);
8366  
8367  /* harmony default export */ var button_edit = (Object(external_this_wp_compose_["compose"])([external_this_wp_compose_["withInstanceId"], Object(external_this_wp_blockEditor_["withColors"])('backgroundColor', {
8368    textColor: 'color'
8369  }), edit_applyFallbackStyles])(edit_ButtonEdit));
8370  
8371  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/icon.js
8372  
8373  
8374  /**
8375   * WordPress dependencies
8376   */
8377  
8378  /* harmony default export */ var button_icon = (Object(external_this_wp_element_["createElement"])(external_this_wp_components_["SVG"], {
8379    viewBox: "0 0 24 24",
8380    xmlns: "http://www.w3.org/2000/svg"
8381  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
8382    fill: "none",
8383    d: "M0 0h24v24H0V0z"
8384  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["G"], null, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Path"], {
8385    d: "M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"
8386  }))));
8387  
8388  // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/save.js
8389  
8390  
8391  
8392  /**
8393   * External dependencies
8394   */
8395  
8396  /**