[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> edit-post.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["editPost"] =
   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 = "dSQ2");
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ "0dt7":
  91  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92  
  93  "use strict";
  94  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return STORE_NAME; });
  95  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return VIEW_AS_LINK_SELECTOR; });
  96  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return VIEW_AS_PREVIEW_LINK_SELECTOR; });
  97  /**
  98   * The identifier for the data store.
  99   *
 100   * @type {string}
 101   */
 102  const STORE_NAME = 'core/edit-post';
 103  /**
 104   * CSS selector string for the admin bar view post link anchor tag.
 105   *
 106   * @type {string}
 107   */
 108  
 109  const VIEW_AS_LINK_SELECTOR = '#wp-admin-bar-view a';
 110  /**
 111   * CSS selector string for the admin bar preview post link anchor tag.
 112   *
 113   * @type {string}
 114   */
 115  
 116  const VIEW_AS_PREVIEW_LINK_SELECTOR = '#wp-admin-bar-preview a';
 117  
 118  
 119  /***/ }),
 120  
 121  /***/ "1ZqX":
 122  /***/ (function(module, exports) {
 123  
 124  (function() { module.exports = window["wp"]["data"]; }());
 125  
 126  /***/ }),
 127  
 128  /***/ "4qRI":
 129  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 130  
 131  "use strict";
 132  function memoize(fn) {
 133    var cache = {};
 134    return function (arg) {
 135      if (cache[arg] === undefined) cache[arg] = fn(arg);
 136      return cache[arg];
 137    };
 138  }
 139  
 140  /* harmony default export */ __webpack_exports__["a"] = (memoize);
 141  
 142  
 143  /***/ }),
 144  
 145  /***/ "51Zz":
 146  /***/ (function(module, exports) {
 147  
 148  (function() { module.exports = window["wp"]["dataControls"]; }());
 149  
 150  /***/ }),
 151  
 152  /***/ "6aBm":
 153  /***/ (function(module, exports) {
 154  
 155  (function() { module.exports = window["wp"]["mediaUtils"]; }());
 156  
 157  /***/ }),
 158  
 159  /***/ "8oxB":
 160  /***/ (function(module, exports) {
 161  
 162  // shim for using process in browser
 163  var process = module.exports = {};
 164  
 165  // cached from whatever global is present so that test runners that stub it
 166  // don't break things.  But we need to wrap it in a try catch in case it is
 167  // wrapped in strict mode code which doesn't define any globals.  It's inside a
 168  // function because try/catches deoptimize in certain engines.
 169  
 170  var cachedSetTimeout;
 171  var cachedClearTimeout;
 172  
 173  function defaultSetTimout() {
 174      throw new Error('setTimeout has not been defined');
 175  }
 176  function defaultClearTimeout () {
 177      throw new Error('clearTimeout has not been defined');
 178  }
 179  (function () {
 180      try {
 181          if (typeof setTimeout === 'function') {
 182              cachedSetTimeout = setTimeout;
 183          } else {
 184              cachedSetTimeout = defaultSetTimout;
 185          }
 186      } catch (e) {
 187          cachedSetTimeout = defaultSetTimout;
 188      }
 189      try {
 190          if (typeof clearTimeout === 'function') {
 191              cachedClearTimeout = clearTimeout;
 192          } else {
 193              cachedClearTimeout = defaultClearTimeout;
 194          }
 195      } catch (e) {
 196          cachedClearTimeout = defaultClearTimeout;
 197      }
 198  } ())
 199  function runTimeout(fun) {
 200      if (cachedSetTimeout === setTimeout) {
 201          //normal enviroments in sane situations
 202          return setTimeout(fun, 0);
 203      }
 204      // if setTimeout wasn't available but was latter defined
 205      if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
 206          cachedSetTimeout = setTimeout;
 207          return setTimeout(fun, 0);
 208      }
 209      try {
 210          // when when somebody has screwed with setTimeout but no I.E. maddness
 211          return cachedSetTimeout(fun, 0);
 212      } catch(e){
 213          try {
 214              // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
 215              return cachedSetTimeout.call(null, fun, 0);
 216          } catch(e){
 217              // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
 218              return cachedSetTimeout.call(this, fun, 0);
 219          }
 220      }
 221  
 222  
 223  }
 224  function runClearTimeout(marker) {
 225      if (cachedClearTimeout === clearTimeout) {
 226          //normal enviroments in sane situations
 227          return clearTimeout(marker);
 228      }
 229      // if clearTimeout wasn't available but was latter defined
 230      if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
 231          cachedClearTimeout = clearTimeout;
 232          return clearTimeout(marker);
 233      }
 234      try {
 235          // when when somebody has screwed with setTimeout but no I.E. maddness
 236          return cachedClearTimeout(marker);
 237      } catch (e){
 238          try {
 239              // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
 240              return cachedClearTimeout.call(null, marker);
 241          } catch (e){
 242              // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
 243              // Some versions of I.E. have different rules for clearTimeout vs setTimeout
 244              return cachedClearTimeout.call(this, marker);
 245          }
 246      }
 247  
 248  
 249  
 250  }
 251  var queue = [];
 252  var draining = false;
 253  var currentQueue;
 254  var queueIndex = -1;
 255  
 256  function cleanUpNextTick() {
 257      if (!draining || !currentQueue) {
 258          return;
 259      }
 260      draining = false;
 261      if (currentQueue.length) {
 262          queue = currentQueue.concat(queue);
 263      } else {
 264          queueIndex = -1;
 265      }
 266      if (queue.length) {
 267          drainQueue();
 268      }
 269  }
 270  
 271  function drainQueue() {
 272      if (draining) {
 273          return;
 274      }
 275      var timeout = runTimeout(cleanUpNextTick);
 276      draining = true;
 277  
 278      var len = queue.length;
 279      while(len) {
 280          currentQueue = queue;
 281          queue = [];
 282          while (++queueIndex < len) {
 283              if (currentQueue) {
 284                  currentQueue[queueIndex].run();
 285              }
 286          }
 287          queueIndex = -1;
 288          len = queue.length;
 289      }
 290      currentQueue = null;
 291      draining = false;
 292      runClearTimeout(timeout);
 293  }
 294  
 295  process.nextTick = function (fun) {
 296      var args = new Array(arguments.length - 1);
 297      if (arguments.length > 1) {
 298          for (var i = 1; i < arguments.length; i++) {
 299              args[i - 1] = arguments[i];
 300          }
 301      }
 302      queue.push(new Item(fun, args));
 303      if (queue.length === 1 && !draining) {
 304          runTimeout(drainQueue);
 305      }
 306  };
 307  
 308  // v8 likes predictible objects
 309  function Item(fun, array) {
 310      this.fun = fun;
 311      this.array = array;
 312  }
 313  Item.prototype.run = function () {
 314      this.fun.apply(null, this.array);
 315  };
 316  process.title = 'browser';
 317  process.browser = true;
 318  process.env = {};
 319  process.argv = [];
 320  process.version = ''; // empty string to avoid regexp issues
 321  process.versions = {};
 322  
 323  function noop() {}
 324  
 325  process.on = noop;
 326  process.addListener = noop;
 327  process.once = noop;
 328  process.off = noop;
 329  process.removeListener = noop;
 330  process.removeAllListeners = noop;
 331  process.emit = noop;
 332  process.prependListener = noop;
 333  process.prependOnceListener = noop;
 334  
 335  process.listeners = function (name) { return [] }
 336  
 337  process.binding = function (name) {
 338      throw new Error('process.binding is not supported');
 339  };
 340  
 341  process.cwd = function () { return '/' };
 342  process.chdir = function (dir) {
 343      throw new Error('process.chdir is not supported');
 344  };
 345  process.umask = function() { return 0; };
 346  
 347  
 348  /***/ }),
 349  
 350  /***/ "9uj6":
 351  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 352  
 353  "use strict";
 354  __webpack_require__.r(__webpack_exports__);
 355  /* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4qRI");
 356  
 357  
 358  var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
 359  
 360  var index = Object(_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(function (prop) {
 361    return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
 362    /* o */
 363    && prop.charCodeAt(1) === 110
 364    /* n */
 365    && prop.charCodeAt(2) < 91;
 366  }
 367  /* Z+1 */
 368  );
 369  
 370  /* harmony default export */ __webpack_exports__["default"] = (index);
 371  
 372  
 373  /***/ }),
 374  
 375  /***/ "Cg8A":
 376  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 377  
 378  "use strict";
 379  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 380  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 381  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 382  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 383  
 384  
 385  /**
 386   * WordPress dependencies
 387   */
 388  
 389  const cog = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 390    xmlns: "http://www.w3.org/2000/svg",
 391    viewBox: "0 0 24 24"
 392  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 393    fillRule: "evenodd",
 394    d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",
 395    clipRule: "evenodd"
 396  }));
 397  /* harmony default export */ __webpack_exports__["a"] = (cog);
 398  
 399  
 400  /***/ }),
 401  
 402  /***/ "Civd":
 403  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 404  
 405  "use strict";
 406  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 407  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 408  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 409  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 410  
 411  
 412  /**
 413   * WordPress dependencies
 414   */
 415  
 416  const layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 417    xmlns: "http://www.w3.org/2000/svg",
 418    viewBox: "0 0 24 24"
 419  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 420    d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
 421  }));
 422  /* harmony default export */ __webpack_exports__["a"] = (layout);
 423  
 424  
 425  /***/ }),
 426  
 427  /***/ "GRId":
 428  /***/ (function(module, exports) {
 429  
 430  (function() { module.exports = window["wp"]["element"]; }());
 431  
 432  /***/ }),
 433  
 434  /***/ "HSyU":
 435  /***/ (function(module, exports) {
 436  
 437  (function() { module.exports = window["wp"]["blocks"]; }());
 438  
 439  /***/ }),
 440  
 441  /***/ "K+tz":
 442  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 443  
 444  "use strict";
 445  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 446  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 447  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 448  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 449  
 450  
 451  /**
 452   * WordPress dependencies
 453   */
 454  
 455  const external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 456    xmlns: "http://www.w3.org/2000/svg",
 457    viewBox: "0 0 24 24"
 458  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 459    d: "M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"
 460  }));
 461  /* harmony default export */ __webpack_exports__["a"] = (external);
 462  
 463  
 464  /***/ }),
 465  
 466  /***/ "K9lf":
 467  /***/ (function(module, exports) {
 468  
 469  (function() { module.exports = window["wp"]["compose"]; }());
 470  
 471  /***/ }),
 472  
 473  /***/ "KEfo":
 474  /***/ (function(module, exports) {
 475  
 476  (function() { module.exports = window["wp"]["viewport"]; }());
 477  
 478  /***/ }),
 479  
 480  /***/ "Mmq9":
 481  /***/ (function(module, exports) {
 482  
 483  (function() { module.exports = window["wp"]["url"]; }());
 484  
 485  /***/ }),
 486  
 487  /***/ "NWDH":
 488  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 489  
 490  "use strict";
 491  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 492  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 493  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 494  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 495  
 496  
 497  /**
 498   * WordPress dependencies
 499   */
 500  
 501  const chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 502    viewBox: "0 0 24 24",
 503    xmlns: "http://www.w3.org/2000/svg"
 504  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 505    d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
 506  }));
 507  /* harmony default export */ __webpack_exports__["a"] = (chevronDown);
 508  
 509  
 510  /***/ }),
 511  
 512  /***/ "OzlF":
 513  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 514  
 515  "use strict";
 516  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 517  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 518  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 519  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 520  
 521  
 522  /**
 523   * WordPress dependencies
 524   */
 525  
 526  const listView = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 527    viewBox: "0 0 24 24",
 528    xmlns: "http://www.w3.org/2000/svg"
 529  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 530    d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
 531  }));
 532  /* harmony default export */ __webpack_exports__["a"] = (listView);
 533  
 534  
 535  /***/ }),
 536  
 537  /***/ "Q4Sy":
 538  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 539  
 540  "use strict";
 541  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 542  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 543  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 544  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 545  
 546  
 547  /**
 548   * WordPress dependencies
 549   */
 550  
 551  const plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 552    xmlns: "http://www.w3.org/2000/svg",
 553    viewBox: "0 0 24 24"
 554  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 555    d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
 556  }));
 557  /* harmony default export */ __webpack_exports__["a"] = (plus);
 558  
 559  
 560  /***/ }),
 561  
 562  /***/ "QyPg":
 563  /***/ (function(module, exports) {
 564  
 565  (function() { module.exports = window["wp"]["blockLibrary"]; }());
 566  
 567  /***/ }),
 568  
 569  /***/ "RMJe":
 570  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 571  
 572  "use strict";
 573  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 574  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 575  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 576  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 577  
 578  
 579  /**
 580   * WordPress dependencies
 581   */
 582  
 583  const check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 584    xmlns: "http://www.w3.org/2000/svg",
 585    viewBox: "0 0 24 24"
 586  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 587    d: "M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"
 588  }));
 589  /* harmony default export */ __webpack_exports__["a"] = (check);
 590  
 591  
 592  /***/ }),
 593  
 594  /***/ "RxS6":
 595  /***/ (function(module, exports) {
 596  
 597  (function() { module.exports = window["wp"]["keycodes"]; }());
 598  
 599  /***/ }),
 600  
 601  /***/ "T40v":
 602  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 603  
 604  "use strict";
 605  
 606  // EXPORTS
 607  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ store; });
 608  
 609  // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
 610  var actions_namespaceObject = {};
 611  __webpack_require__.r(actions_namespaceObject);
 612  __webpack_require__.d(actions_namespaceObject, "openGeneralSidebar", function() { return openGeneralSidebar; });
 613  __webpack_require__.d(actions_namespaceObject, "closeGeneralSidebar", function() { return closeGeneralSidebar; });
 614  __webpack_require__.d(actions_namespaceObject, "openModal", function() { return openModal; });
 615  __webpack_require__.d(actions_namespaceObject, "closeModal", function() { return closeModal; });
 616  __webpack_require__.d(actions_namespaceObject, "openPublishSidebar", function() { return openPublishSidebar; });
 617  __webpack_require__.d(actions_namespaceObject, "closePublishSidebar", function() { return closePublishSidebar; });
 618  __webpack_require__.d(actions_namespaceObject, "togglePublishSidebar", function() { return togglePublishSidebar; });
 619  __webpack_require__.d(actions_namespaceObject, "toggleEditorPanelEnabled", function() { return toggleEditorPanelEnabled; });
 620  __webpack_require__.d(actions_namespaceObject, "toggleEditorPanelOpened", function() { return toggleEditorPanelOpened; });
 621  __webpack_require__.d(actions_namespaceObject, "removeEditorPanel", function() { return removeEditorPanel; });
 622  __webpack_require__.d(actions_namespaceObject, "toggleFeature", function() { return toggleFeature; });
 623  __webpack_require__.d(actions_namespaceObject, "switchEditorMode", function() { return switchEditorMode; });
 624  __webpack_require__.d(actions_namespaceObject, "togglePinnedPluginItem", function() { return togglePinnedPluginItem; });
 625  __webpack_require__.d(actions_namespaceObject, "hideBlockTypes", function() { return hideBlockTypes; });
 626  __webpack_require__.d(actions_namespaceObject, "updatePreferredStyleVariations", function() { return updatePreferredStyleVariations; });
 627  __webpack_require__.d(actions_namespaceObject, "__experimentalUpdateLocalAutosaveInterval", function() { return __experimentalUpdateLocalAutosaveInterval; });
 628  __webpack_require__.d(actions_namespaceObject, "showBlockTypes", function() { return showBlockTypes; });
 629  __webpack_require__.d(actions_namespaceObject, "setAvailableMetaBoxesPerLocation", function() { return setAvailableMetaBoxesPerLocation; });
 630  __webpack_require__.d(actions_namespaceObject, "requestMetaBoxUpdates", function() { return requestMetaBoxUpdates; });
 631  __webpack_require__.d(actions_namespaceObject, "metaBoxUpdatesSuccess", function() { return metaBoxUpdatesSuccess; });
 632  __webpack_require__.d(actions_namespaceObject, "__experimentalSetPreviewDeviceType", function() { return __experimentalSetPreviewDeviceType; });
 633  __webpack_require__.d(actions_namespaceObject, "setIsInserterOpened", function() { return setIsInserterOpened; });
 634  __webpack_require__.d(actions_namespaceObject, "setIsListViewOpened", function() { return setIsListViewOpened; });
 635  __webpack_require__.d(actions_namespaceObject, "setIsEditingTemplate", function() { return setIsEditingTemplate; });
 636  __webpack_require__.d(actions_namespaceObject, "__unstableSwitchToTemplateMode", function() { return __unstableSwitchToTemplateMode; });
 637  __webpack_require__.d(actions_namespaceObject, "initializeMetaBoxes", function() { return initializeMetaBoxes; });
 638  
 639  // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
 640  var selectors_namespaceObject = {};
 641  __webpack_require__.r(selectors_namespaceObject);
 642  __webpack_require__.d(selectors_namespaceObject, "getEditorMode", function() { return getEditorMode; });
 643  __webpack_require__.d(selectors_namespaceObject, "isEditorSidebarOpened", function() { return isEditorSidebarOpened; });
 644  __webpack_require__.d(selectors_namespaceObject, "isPluginSidebarOpened", function() { return isPluginSidebarOpened; });
 645  __webpack_require__.d(selectors_namespaceObject, "getActiveGeneralSidebarName", function() { return getActiveGeneralSidebarName; });
 646  __webpack_require__.d(selectors_namespaceObject, "getPreferences", function() { return getPreferences; });
 647  __webpack_require__.d(selectors_namespaceObject, "getPreference", function() { return getPreference; });
 648  __webpack_require__.d(selectors_namespaceObject, "isPublishSidebarOpened", function() { return isPublishSidebarOpened; });
 649  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelRemoved", function() { return isEditorPanelRemoved; });
 650  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelEnabled", function() { return isEditorPanelEnabled; });
 651  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelOpened", function() { return isEditorPanelOpened; });
 652  __webpack_require__.d(selectors_namespaceObject, "isModalActive", function() { return isModalActive; });
 653  __webpack_require__.d(selectors_namespaceObject, "isFeatureActive", function() { return isFeatureActive; });
 654  __webpack_require__.d(selectors_namespaceObject, "isPluginItemPinned", function() { return isPluginItemPinned; });
 655  __webpack_require__.d(selectors_namespaceObject, "getActiveMetaBoxLocations", function() { return getActiveMetaBoxLocations; });
 656  __webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationVisible", function() { return isMetaBoxLocationVisible; });
 657  __webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationActive", function() { return isMetaBoxLocationActive; });
 658  __webpack_require__.d(selectors_namespaceObject, "getMetaBoxesPerLocation", function() { return getMetaBoxesPerLocation; });
 659  __webpack_require__.d(selectors_namespaceObject, "getAllMetaBoxes", function() { return getAllMetaBoxes; });
 660  __webpack_require__.d(selectors_namespaceObject, "hasMetaBoxes", function() { return selectors_hasMetaBoxes; });
 661  __webpack_require__.d(selectors_namespaceObject, "isSavingMetaBoxes", function() { return selectors_isSavingMetaBoxes; });
 662  __webpack_require__.d(selectors_namespaceObject, "__experimentalGetPreviewDeviceType", function() { return __experimentalGetPreviewDeviceType; });
 663  __webpack_require__.d(selectors_namespaceObject, "isInserterOpened", function() { return isInserterOpened; });
 664  __webpack_require__.d(selectors_namespaceObject, "__experimentalGetInsertionPoint", function() { return __experimentalGetInsertionPoint; });
 665  __webpack_require__.d(selectors_namespaceObject, "isListViewOpened", function() { return isListViewOpened; });
 666  __webpack_require__.d(selectors_namespaceObject, "isEditingTemplate", function() { return selectors_isEditingTemplate; });
 667  __webpack_require__.d(selectors_namespaceObject, "areMetaBoxesInitialized", function() { return areMetaBoxesInitialized; });
 668  __webpack_require__.d(selectors_namespaceObject, "getEditedPostTemplate", function() { return getEditedPostTemplate; });
 669  
 670  // EXTERNAL MODULE: external ["wp","data"]
 671  var external_wp_data_ = __webpack_require__("1ZqX");
 672  
 673  // EXTERNAL MODULE: external ["wp","dataControls"]
 674  var external_wp_dataControls_ = __webpack_require__("51Zz");
 675  
 676  // EXTERNAL MODULE: external "lodash"
 677  var external_lodash_ = __webpack_require__("YLtl");
 678  
 679  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/defaults.js
 680  const PREFERENCES_DEFAULTS = {
 681    editorMode: 'visual',
 682    panels: {
 683      'post-status': {
 684        opened: true
 685      }
 686    },
 687    features: {
 688      fixedToolbar: false,
 689      welcomeGuide: true,
 690      fullscreenMode: true,
 691      showIconLabels: false,
 692      themeStyles: true,
 693      showBlockBreadcrumbs: true,
 694      welcomeGuideTemplate: true
 695    },
 696    hiddenBlockTypes: [],
 697    preferredStyleVariations: {},
 698    localAutosaveInterval: 15
 699  };
 700  
 701  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js
 702  /**
 703   * External dependencies
 704   */
 705  
 706  /**
 707   * WordPress dependencies
 708   */
 709  
 710  
 711  /**
 712   * Internal dependencies
 713   */
 714  
 715  
 716  /**
 717   * Higher-order reducer creator which provides the given initial state for the
 718   * original reducer.
 719   *
 720   * @param {*} initialState Initial state to provide to reducer.
 721   *
 722   * @return {Function} Higher-order reducer.
 723   */
 724  
 725  const createWithInitialState = initialState => reducer => {
 726    return (state = initialState, action) => reducer(state, action);
 727  };
 728  /**
 729   * Reducer returning the user preferences.
 730   *
 731   * @param {Object}  state                           Current state.
 732   * @param {string}  state.mode                      Current editor mode, either
 733   *                                                  "visual" or "text".
 734   * @param {boolean} state.isGeneralSidebarDismissed Whether general sidebar is
 735   *                                                  dismissed. False by default
 736   *                                                  or when closing general
 737   *                                                  sidebar, true when opening
 738   *                                                  sidebar.
 739   * @param {boolean} state.isSidebarOpened           Whether the sidebar is
 740   *                                                  opened or closed.
 741   * @param {Object}  state.panels                    The state of the different
 742   *                                                  sidebar panels.
 743   * @param {Object}  action                          Dispatched action.
 744   *
 745   * @return {Object} Updated state.
 746   */
 747  
 748  
 749  const preferences = Object(external_lodash_["flow"])([external_wp_data_["combineReducers"], createWithInitialState(PREFERENCES_DEFAULTS)])({
 750    panels(state, action) {
 751      switch (action.type) {
 752        case 'TOGGLE_PANEL_ENABLED':
 753          {
 754            const {
 755              panelName
 756            } = action;
 757            return { ...state,
 758              [panelName]: { ...state[panelName],
 759                enabled: !Object(external_lodash_["get"])(state, [panelName, 'enabled'], true)
 760              }
 761            };
 762          }
 763  
 764        case 'TOGGLE_PANEL_OPENED':
 765          {
 766            const {
 767              panelName
 768            } = action;
 769            const isOpen = state[panelName] === true || Object(external_lodash_["get"])(state, [panelName, 'opened'], false);
 770            return { ...state,
 771              [panelName]: { ...state[panelName],
 772                opened: !isOpen
 773              }
 774            };
 775          }
 776      }
 777  
 778      return state;
 779    },
 780  
 781    features(state, action) {
 782      if (action.type === 'TOGGLE_FEATURE') {
 783        return { ...state,
 784          [action.feature]: !state[action.feature]
 785        };
 786      }
 787  
 788      return state;
 789    },
 790  
 791    editorMode(state, action) {
 792      if (action.type === 'SWITCH_MODE') {
 793        return action.mode;
 794      }
 795  
 796      return state;
 797    },
 798  
 799    hiddenBlockTypes(state, action) {
 800      switch (action.type) {
 801        case 'SHOW_BLOCK_TYPES':
 802          return Object(external_lodash_["without"])(state, ...action.blockNames);
 803  
 804        case 'HIDE_BLOCK_TYPES':
 805          return Object(external_lodash_["union"])(state, action.blockNames);
 806      }
 807  
 808      return state;
 809    },
 810  
 811    preferredStyleVariations(state, action) {
 812      switch (action.type) {
 813        case 'UPDATE_PREFERRED_STYLE_VARIATIONS':
 814          {
 815            if (!action.blockName) {
 816              return state;
 817            }
 818  
 819            if (!action.blockStyle) {
 820              return Object(external_lodash_["omit"])(state, [action.blockName]);
 821            }
 822  
 823            return { ...state,
 824              [action.blockName]: action.blockStyle
 825            };
 826          }
 827      }
 828  
 829      return state;
 830    },
 831  
 832    localAutosaveInterval(state, action) {
 833      switch (action.type) {
 834        case 'UPDATE_LOCAL_AUTOSAVE_INTERVAL':
 835          return action.interval;
 836      }
 837  
 838      return state;
 839    }
 840  
 841  });
 842  /**
 843   * Reducer storing the list of all programmatically removed panels.
 844   *
 845   * @param {Array}  state  Current state.
 846   * @param {Object} action Action object.
 847   *
 848   * @return {Array} Updated state.
 849   */
 850  
 851  function removedPanels(state = [], action) {
 852    switch (action.type) {
 853      case 'REMOVE_PANEL':
 854        if (!Object(external_lodash_["includes"])(state, action.panelName)) {
 855          return [...state, action.panelName];
 856        }
 857  
 858    }
 859  
 860    return state;
 861  }
 862  /**
 863   * Reducer for storing the name of the open modal, or null if no modal is open.
 864   *
 865   * @param {Object} state  Previous state.
 866   * @param {Object} action Action object containing the `name` of the modal
 867   *
 868   * @return {Object} Updated state
 869   */
 870  
 871  function activeModal(state = null, action) {
 872    switch (action.type) {
 873      case 'OPEN_MODAL':
 874        return action.name;
 875  
 876      case 'CLOSE_MODAL':
 877        return null;
 878    }
 879  
 880    return state;
 881  }
 882  function publishSidebarActive(state = false, action) {
 883    switch (action.type) {
 884      case 'OPEN_PUBLISH_SIDEBAR':
 885        return true;
 886  
 887      case 'CLOSE_PUBLISH_SIDEBAR':
 888        return false;
 889  
 890      case 'TOGGLE_PUBLISH_SIDEBAR':
 891        return !state;
 892    }
 893  
 894    return state;
 895  }
 896  /**
 897   * Reducer keeping track of the meta boxes isSaving state.
 898   * A "true" value means the meta boxes saving request is in-flight.
 899   *
 900   *
 901   * @param {boolean}  state   Previous state.
 902   * @param {Object}   action  Action Object.
 903   *
 904   * @return {Object} Updated state.
 905   */
 906  
 907  function isSavingMetaBoxes(state = false, action) {
 908    switch (action.type) {
 909      case 'REQUEST_META_BOX_UPDATES':
 910        return true;
 911  
 912      case 'META_BOX_UPDATES_SUCCESS':
 913        return false;
 914  
 915      default:
 916        return state;
 917    }
 918  }
 919  /**
 920   * Reducer keeping track of the meta boxes per location.
 921   *
 922   * @param {boolean}  state   Previous state.
 923   * @param {Object}   action  Action Object.
 924   *
 925   * @return {Object} Updated state.
 926   */
 927  
 928  function metaBoxLocations(state = {}, action) {
 929    switch (action.type) {
 930      case 'SET_META_BOXES_PER_LOCATIONS':
 931        return action.metaBoxesPerLocation;
 932    }
 933  
 934    return state;
 935  }
 936  /**
 937   * Reducer returning the editing canvas device type.
 938   *
 939   * @param {Object} state  Current state.
 940   * @param {Object} action Dispatched action.
 941   *
 942   * @return {Object} Updated state.
 943   */
 944  
 945  function deviceType(state = 'Desktop', action) {
 946    switch (action.type) {
 947      case 'SET_PREVIEW_DEVICE_TYPE':
 948        return action.deviceType;
 949    }
 950  
 951    return state;
 952  }
 953  /**
 954   * Reducer to set the block inserter panel open or closed.
 955   *
 956   * Note: this reducer interacts with the list view panel reducer
 957   * to make sure that only one of the two panels is open at the same time.
 958   *
 959   * @param {Object} state Current state.
 960   * @param {Object} action Dispatched action.
 961   */
 962  
 963  function blockInserterPanel(state = false, action) {
 964    switch (action.type) {
 965      case 'SET_IS_LIST_VIEW_OPENED':
 966        return action.isOpen ? false : state;
 967  
 968      case 'SET_IS_INSERTER_OPENED':
 969        return action.value;
 970    }
 971  
 972    return state;
 973  }
 974  /**
 975   * Reducer to set the list view panel open or closed.
 976   *
 977   * Note: this reducer interacts with the inserter panel reducer
 978   * to make sure that only one of the two panels is open at the same time.
 979   *
 980   * @param {Object} state Current state.
 981   * @param {Object} action Dispatched action.
 982   */
 983  
 984  function listViewPanel(state = false, action) {
 985    switch (action.type) {
 986      case 'SET_IS_INSERTER_OPENED':
 987        return action.value ? false : state;
 988  
 989      case 'SET_IS_LIST_VIEW_OPENED':
 990        return action.isOpen;
 991    }
 992  
 993    return state;
 994  }
 995  /**
 996   * Reducer tracking whether the inserter is open.
 997   *
 998   * @param {boolean} state
 999   * @param {Object}  action
1000   */
1001  
1002  function isEditingTemplate(state = false, action) {
1003    switch (action.type) {
1004      case 'SET_IS_EDITING_TEMPLATE':
1005        return action.value;
1006    }
1007  
1008    return state;
1009  }
1010  /**
1011   * Reducer tracking whether meta boxes are initialized.
1012   *
1013   * @param {boolean} state
1014   * @param {Object}  action
1015   *
1016   * @return {boolean} Updated state.
1017   */
1018  
1019  
1020  function metaBoxesInitialized(state = false, action) {
1021    switch (action.type) {
1022      case 'META_BOXES_INITIALIZED':
1023        return true;
1024    }
1025  
1026    return state;
1027  }
1028  
1029  const metaBoxes = Object(external_wp_data_["combineReducers"])({
1030    isSaving: isSavingMetaBoxes,
1031    locations: metaBoxLocations,
1032    initialized: metaBoxesInitialized
1033  });
1034  /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
1035    activeModal,
1036    metaBoxes,
1037    preferences,
1038    publishSidebarActive,
1039    removedPanels,
1040    deviceType,
1041    blockInserterPanel,
1042    listViewPanel,
1043    isEditingTemplate
1044  }));
1045  
1046  // EXTERNAL MODULE: external ["wp","i18n"]
1047  var external_wp_i18n_ = __webpack_require__("l3Sj");
1048  
1049  // EXTERNAL MODULE: ./node_modules/@wordpress/interface/build-module/index.js + 15 modules
1050  var build_module = __webpack_require__("U60i");
1051  
1052  // EXTERNAL MODULE: external ["wp","a11y"]
1053  var external_wp_a11y_ = __webpack_require__("gdqT");
1054  
1055  // EXTERNAL MODULE: external ["wp","notices"]
1056  var external_wp_notices_ = __webpack_require__("onLe");
1057  
1058  // EXTERNAL MODULE: external ["wp","coreData"]
1059  var external_wp_coreData_ = __webpack_require__("jZUy");
1060  
1061  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js
1062  /**
1063   * Function returning the current Meta Boxes DOM Node in the editor
1064   * whether the meta box area is opened or not.
1065   * If the MetaBox Area is visible returns it, and returns the original container instead.
1066   *
1067   * @param   {string} location Meta Box location.
1068   * @return {string}          HTML content.
1069   */
1070  const getMetaBoxContainer = location => {
1071    const area = document.querySelector(`.edit-post-meta-boxes-area.is-$location} .metabox-location-$location}`);
1072  
1073    if (area) {
1074      return area;
1075    }
1076  
1077    return document.querySelector('#metaboxes .metabox-location-' + location);
1078  };
1079  
1080  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
1081  /**
1082   * External dependencies
1083   */
1084  
1085  /**
1086   * WordPress dependencies
1087   */
1088  
1089  
1090  
1091  
1092  
1093  
1094  
1095  
1096  /**
1097   * Internal dependencies
1098   */
1099  
1100  
1101  
1102  /**
1103   * Returns an action object used in signalling that the user opened an editor sidebar.
1104   *
1105   * @param {?string} name Sidebar name to be opened.
1106   *
1107   * @yield {Object} Action object.
1108   */
1109  
1110  function* openGeneralSidebar(name) {
1111    yield external_wp_data_["controls"].dispatch(build_module["g" /* store */].name, 'enableComplementaryArea', store.name, name);
1112  }
1113  /**
1114   * Returns an action object signalling that the user closed the sidebar.
1115   *
1116   * @yield {Object} Action object.
1117   */
1118  
1119  function* closeGeneralSidebar() {
1120    yield external_wp_data_["controls"].dispatch(build_module["g" /* store */].name, 'disableComplementaryArea', store.name);
1121  }
1122  /**
1123   * Returns an action object used in signalling that the user opened a modal.
1124   *
1125   * @param {string} name A string that uniquely identifies the modal.
1126   *
1127   * @return {Object} Action object.
1128   */
1129  
1130  function openModal(name) {
1131    return {
1132      type: 'OPEN_MODAL',
1133      name
1134    };
1135  }
1136  /**
1137   * Returns an action object signalling that the user closed a modal.
1138   *
1139   * @return {Object} Action object.
1140   */
1141  
1142  function closeModal() {
1143    return {
1144      type: 'CLOSE_MODAL'
1145    };
1146  }
1147  /**
1148   * Returns an action object used in signalling that the user opened the publish
1149   * sidebar.
1150   *
1151   * @return {Object} Action object
1152   */
1153  
1154  function openPublishSidebar() {
1155    return {
1156      type: 'OPEN_PUBLISH_SIDEBAR'
1157    };
1158  }
1159  /**
1160   * Returns an action object used in signalling that the user closed the
1161   * publish sidebar.
1162   *
1163   * @return {Object} Action object.
1164   */
1165  
1166  function closePublishSidebar() {
1167    return {
1168      type: 'CLOSE_PUBLISH_SIDEBAR'
1169    };
1170  }
1171  /**
1172   * Returns an action object used in signalling that the user toggles the publish sidebar.
1173   *
1174   * @return {Object} Action object
1175   */
1176  
1177  function togglePublishSidebar() {
1178    return {
1179      type: 'TOGGLE_PUBLISH_SIDEBAR'
1180    };
1181  }
1182  /**
1183   * Returns an action object used to enable or disable a panel in the editor.
1184   *
1185   * @param {string} panelName A string that identifies the panel to enable or disable.
1186   *
1187   * @return {Object} Action object.
1188   */
1189  
1190  function toggleEditorPanelEnabled(panelName) {
1191    return {
1192      type: 'TOGGLE_PANEL_ENABLED',
1193      panelName
1194    };
1195  }
1196  /**
1197   * Returns an action object used to open or close a panel in the editor.
1198   *
1199   * @param {string} panelName A string that identifies the panel to open or close.
1200   *
1201   * @return {Object} Action object.
1202   */
1203  
1204  function toggleEditorPanelOpened(panelName) {
1205    return {
1206      type: 'TOGGLE_PANEL_OPENED',
1207      panelName
1208    };
1209  }
1210  /**
1211   * Returns an action object used to remove a panel from the editor.
1212   *
1213   * @param {string} panelName A string that identifies the panel to remove.
1214   *
1215   * @return {Object} Action object.
1216   */
1217  
1218  function removeEditorPanel(panelName) {
1219    return {
1220      type: 'REMOVE_PANEL',
1221      panelName
1222    };
1223  }
1224  /**
1225   * Returns an action object used to toggle a feature flag.
1226   *
1227   * @param {string} feature Feature name.
1228   *
1229   * @return {Object} Action object.
1230   */
1231  
1232  function toggleFeature(feature) {
1233    return {
1234      type: 'TOGGLE_FEATURE',
1235      feature
1236    };
1237  }
1238  function* switchEditorMode(mode) {
1239    yield {
1240      type: 'SWITCH_MODE',
1241      mode
1242    }; // Unselect blocks when we switch to the code editor.
1243  
1244    if (mode !== 'visual') {
1245      yield external_wp_data_["controls"].dispatch('core/block-editor', 'clearSelectedBlock');
1246    }
1247  
1248    const message = mode === 'visual' ? Object(external_wp_i18n_["__"])('Visual editor selected') : Object(external_wp_i18n_["__"])('Code editor selected');
1249    Object(external_wp_a11y_["speak"])(message, 'assertive');
1250  }
1251  /**
1252   * Returns an action object used to toggle a plugin name flag.
1253   *
1254   * @param {string} pluginName Plugin name.
1255   *
1256   * @return {Object} Action object.
1257   */
1258  
1259  function togglePinnedPluginItem(pluginName) {
1260    return {
1261      type: 'TOGGLE_PINNED_PLUGIN_ITEM',
1262      pluginName
1263    };
1264  }
1265  /**
1266   * Returns an action object used in signalling that block types by the given
1267   * name(s) should be hidden.
1268   *
1269   * @param {string[]} blockNames Names of block types to hide.
1270   *
1271   * @return {Object} Action object.
1272   */
1273  
1274  function hideBlockTypes(blockNames) {
1275    return {
1276      type: 'HIDE_BLOCK_TYPES',
1277      blockNames: Object(external_lodash_["castArray"])(blockNames)
1278    };
1279  }
1280  /**
1281   * Returns an action object used in signaling that a style should be auto-applied when a block is created.
1282   *
1283   * @param {string}  blockName  Name of the block.
1284   * @param {?string} blockStyle Name of the style that should be auto applied. If undefined, the "auto apply" setting of the block is removed.
1285   *
1286   * @return {Object} Action object.
1287   */
1288  
1289  function updatePreferredStyleVariations(blockName, blockStyle) {
1290    return {
1291      type: 'UPDATE_PREFERRED_STYLE_VARIATIONS',
1292      blockName,
1293      blockStyle
1294    };
1295  }
1296  /**
1297   * Returns an action object used in signalling that the editor should attempt
1298   * to locally autosave the current post every `interval` seconds.
1299   *
1300   * @param {number} interval The new interval, in seconds.
1301   * @return {Object} Action object.
1302   */
1303  
1304  function __experimentalUpdateLocalAutosaveInterval(interval) {
1305    return {
1306      type: 'UPDATE_LOCAL_AUTOSAVE_INTERVAL',
1307      interval
1308    };
1309  }
1310  /**
1311   * Returns an action object used in signalling that block types by the given
1312   * name(s) should be shown.
1313   *
1314   * @param {string[]} blockNames Names of block types to show.
1315   *
1316   * @return {Object} Action object.
1317   */
1318  
1319  function showBlockTypes(blockNames) {
1320    return {
1321      type: 'SHOW_BLOCK_TYPES',
1322      blockNames: Object(external_lodash_["castArray"])(blockNames)
1323    };
1324  }
1325  /**
1326   * Returns an action object used in signaling
1327   * what Meta boxes are available in which location.
1328   *
1329   * @param {Object} metaBoxesPerLocation Meta boxes per location.
1330   *
1331   * @yield {Object} Action object.
1332   */
1333  
1334  function* setAvailableMetaBoxesPerLocation(metaBoxesPerLocation) {
1335    yield {
1336      type: 'SET_META_BOXES_PER_LOCATIONS',
1337      metaBoxesPerLocation
1338    };
1339  }
1340  /**
1341   * Returns an action object used to request meta box update.
1342   *
1343   * @yield {Object} Action object.
1344   */
1345  
1346  function* requestMetaBoxUpdates() {
1347    yield {
1348      type: 'REQUEST_META_BOX_UPDATES'
1349    }; // Saves the wp_editor fields
1350  
1351    if (window.tinyMCE) {
1352      window.tinyMCE.triggerSave();
1353    } // Additional data needed for backward compatibility.
1354    // If we do not provide this data, the post will be overridden with the default values.
1355  
1356  
1357    const post = yield external_wp_data_["controls"].select('core/editor', 'getCurrentPost');
1358    const additionalData = [post.comment_status ? ['comment_status', post.comment_status] : false, post.ping_status ? ['ping_status', post.ping_status] : false, post.sticky ? ['sticky', post.sticky] : false, post.author ? ['post_author', post.author] : false].filter(Boolean); // We gather all the metaboxes locations data and the base form data
1359  
1360    const baseFormData = new window.FormData(document.querySelector('.metabox-base-form'));
1361    const activeMetaBoxLocations = yield external_wp_data_["controls"].select(store.name, 'getActiveMetaBoxLocations');
1362    const formDataToMerge = [baseFormData, ...activeMetaBoxLocations.map(location => new window.FormData(getMetaBoxContainer(location)))]; // Merge all form data objects into a single one.
1363  
1364    const formData = Object(external_lodash_["reduce"])(formDataToMerge, (memo, currentFormData) => {
1365      for (const [key, value] of currentFormData) {
1366        memo.append(key, value);
1367      }
1368  
1369      return memo;
1370    }, new window.FormData());
1371    additionalData.forEach(([key, value]) => formData.append(key, value)); // Save the metaboxes
1372  
1373    yield Object(external_wp_dataControls_["apiFetch"])({
1374      url: window._wpMetaBoxUrl,
1375      method: 'POST',
1376      body: formData,
1377      parse: false
1378    });
1379    yield external_wp_data_["controls"].dispatch(store.name, 'metaBoxUpdatesSuccess');
1380  }
1381  /**
1382   * Returns an action object used signal a successful meta box update.
1383   *
1384   * @return {Object} Action object.
1385   */
1386  
1387  function metaBoxUpdatesSuccess() {
1388    return {
1389      type: 'META_BOX_UPDATES_SUCCESS'
1390    };
1391  }
1392  /**
1393   * Returns an action object used to toggle the width of the editing canvas.
1394   *
1395   * @param {string} deviceType
1396   *
1397   * @return {Object} Action object.
1398   */
1399  
1400  function __experimentalSetPreviewDeviceType(deviceType) {
1401    return {
1402      type: 'SET_PREVIEW_DEVICE_TYPE',
1403      deviceType
1404    };
1405  }
1406  /**
1407   * Returns an action object used to open/close the inserter.
1408   *
1409   * @param {boolean|Object} value                Whether the inserter should be
1410   *                                              opened (true) or closed (false).
1411   *                                              To specify an insertion point,
1412   *                                              use an object.
1413   * @param {string}         value.rootClientId   The root client ID to insert at.
1414   * @param {number}         value.insertionIndex The index to insert at.
1415   *
1416   * @return {Object} Action object.
1417   */
1418  
1419  function setIsInserterOpened(value) {
1420    return {
1421      type: 'SET_IS_INSERTER_OPENED',
1422      value
1423    };
1424  }
1425  /**
1426   * Returns an action object used to open/close the list view.
1427   *
1428   * @param {boolean} isOpen A boolean representing whether the list view should be opened or closed.
1429   * @return {Object} Action object.
1430   */
1431  
1432  function setIsListViewOpened(isOpen) {
1433    return {
1434      type: 'SET_IS_LIST_VIEW_OPENED',
1435      isOpen
1436    };
1437  }
1438  /**
1439   * Returns an action object used to switch to template editing.
1440   *
1441   * @param {boolean} value Is editing template.
1442   * @return {Object} Action object.
1443   */
1444  
1445  function setIsEditingTemplate(value) {
1446    return {
1447      type: 'SET_IS_EDITING_TEMPLATE',
1448      value
1449    };
1450  }
1451  /**
1452   * Potentially create a block based template and switches to the template mode.
1453   *
1454   * @param {Object?} template template to create and assign before switching.
1455   */
1456  
1457  function* __unstableSwitchToTemplateMode(template) {
1458    if (!!template) {
1459      const savedTemplate = yield external_wp_data_["controls"].dispatch(external_wp_coreData_["store"], 'saveEntityRecord', 'postType', 'wp_template', template);
1460      const post = yield external_wp_data_["controls"].select('core/editor', 'getCurrentPost');
1461      yield external_wp_data_["controls"].dispatch(external_wp_coreData_["store"], 'editEntityRecord', 'postType', post.type, post.id, {
1462        template: savedTemplate.slug
1463      });
1464    }
1465  
1466    yield setIsEditingTemplate(true);
1467    const isWelcomeGuideActive = yield external_wp_data_["controls"].select('core/edit-post', 'isFeatureActive', 'welcomeGuideTemplate');
1468  
1469    if (!isWelcomeGuideActive) {
1470      const message = !!template ? Object(external_wp_i18n_["__"])("Custom template created. You're in template mode now.") : Object(external_wp_i18n_["__"])('Editing template. Changes made here affect all posts and pages that use the template.');
1471      yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createSuccessNotice', message, {
1472        type: 'snackbar'
1473      });
1474    }
1475  }
1476  let actions_metaBoxesInitialized = false;
1477  /**
1478   * Initializes WordPress `postboxes` script and the logic for saving meta boxes.
1479   */
1480  
1481  function* initializeMetaBoxes() {
1482    const isEditorReady = yield external_wp_data_["controls"].select('core/editor', '__unstableIsEditorReady');
1483  
1484    if (!isEditorReady) {
1485      return;
1486    }
1487  
1488    const postType = yield external_wp_data_["controls"].select('core/editor', 'getCurrentPostType'); // Only initialize once.
1489  
1490    if (actions_metaBoxesInitialized) {
1491      return;
1492    }
1493  
1494    if (window.postboxes.page !== postType) {
1495      window.postboxes.add_postbox_toggles(postType);
1496    }
1497  
1498    actions_metaBoxesInitialized = true;
1499    let wasSavingPost = yield external_wp_data_["controls"].select('core/editor', 'isSavingPost');
1500    let wasAutosavingPost = yield external_wp_data_["controls"].select('core/editor', 'isAutosavingPost');
1501    const hasMetaBoxes = yield external_wp_data_["controls"].select(store, 'hasMetaBoxes'); // Save metaboxes when performing a full save on the post.
1502  
1503    Object(external_wp_data_["subscribe"])(() => {
1504      const isSavingPost = Object(external_wp_data_["select"])('core/editor').isSavingPost();
1505      const isAutosavingPost = Object(external_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes on save completion, except for autosaves that are not a post preview.
1506      //
1507      // Meta boxes are initialized once at page load. It is not necessary to
1508      // account for updates on each state change.
1509      //
1510      // See: https://github.com/WordPress/WordPress/blob/5.1.1/wp-admin/includes/post.php#L2307-L2309
1511  
1512      const shouldTriggerMetaboxesSave = hasMetaBoxes && wasSavingPost && !isSavingPost && !wasAutosavingPost; // Save current state for next inspection.
1513  
1514      wasSavingPost = isSavingPost;
1515      wasAutosavingPost = isAutosavingPost;
1516  
1517      if (shouldTriggerMetaboxesSave) {
1518        Object(external_wp_data_["dispatch"])(store).requestMetaBoxUpdates();
1519      }
1520    });
1521    return {
1522      type: 'META_BOXES_INITIALIZED'
1523    };
1524  }
1525  
1526  // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
1527  var rememo = __webpack_require__("pPDe");
1528  
1529  // EXTERNAL MODULE: external ["wp","editor"]
1530  var external_wp_editor_ = __webpack_require__("jSdM");
1531  
1532  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
1533  /**
1534   * External dependencies
1535   */
1536  
1537  
1538  /**
1539   * WordPress dependencies
1540   */
1541  
1542  
1543  
1544  
1545  
1546  /**
1547   * Returns the current editing mode.
1548   *
1549   * @param {Object} state Global application state.
1550   *
1551   * @return {string} Editing mode.
1552   */
1553  
1554  function getEditorMode(state) {
1555    return getPreference(state, 'editorMode', 'visual');
1556  }
1557  /**
1558   * Returns true if the editor sidebar is opened.
1559   *
1560   * @param {Object} state Global application state
1561   *
1562   * @return {boolean} Whether the editor sidebar is opened.
1563   */
1564  
1565  const isEditorSidebarOpened = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1566    const activeGeneralSidebar = select(build_module["g" /* store */]).getActiveComplementaryArea('core/edit-post');
1567    return Object(external_lodash_["includes"])(['edit-post/document', 'edit-post/block'], activeGeneralSidebar);
1568  });
1569  /**
1570   * Returns true if the plugin sidebar is opened.
1571   *
1572   * @param {Object} state Global application state
1573   * @return {boolean}     Whether the plugin sidebar is opened.
1574   */
1575  
1576  const isPluginSidebarOpened = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1577    const activeGeneralSidebar = select(build_module["g" /* store */]).getActiveComplementaryArea('core/edit-post');
1578    return !!activeGeneralSidebar && !Object(external_lodash_["includes"])(['edit-post/document', 'edit-post/block'], activeGeneralSidebar);
1579  });
1580  /**
1581   * Returns the current active general sidebar name, or null if there is no
1582   * general sidebar active. The active general sidebar is a unique name to
1583   * identify either an editor or plugin sidebar.
1584   *
1585   * Examples:
1586   *
1587   *  - `edit-post/document`
1588   *  - `my-plugin/insert-image-sidebar`
1589   *
1590   * @param {Object} state Global application state.
1591   *
1592   * @return {?string} Active general sidebar name.
1593   */
1594  
1595  const getActiveGeneralSidebarName = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1596    return select(build_module["g" /* store */]).getActiveComplementaryArea('core/edit-post');
1597  });
1598  /**
1599   * Returns the preferences (these preferences are persisted locally).
1600   *
1601   * @param {Object} state Global application state.
1602   *
1603   * @return {Object} Preferences Object.
1604   */
1605  
1606  function getPreferences(state) {
1607    return state.preferences;
1608  }
1609  /**
1610   *
1611   * @param {Object} state         Global application state.
1612   * @param {string} preferenceKey Preference Key.
1613   * @param {*}      defaultValue  Default Value.
1614   *
1615   * @return {*} Preference Value.
1616   */
1617  
1618  function getPreference(state, preferenceKey, defaultValue) {
1619    const preferences = getPreferences(state);
1620    const value = preferences[preferenceKey];
1621    return value === undefined ? defaultValue : value;
1622  }
1623  /**
1624   * Returns true if the publish sidebar is opened.
1625   *
1626   * @param {Object} state Global application state
1627   *
1628   * @return {boolean} Whether the publish sidebar is open.
1629   */
1630  
1631  function isPublishSidebarOpened(state) {
1632    return state.publishSidebarActive;
1633  }
1634  /**
1635   * Returns true if the given panel was programmatically removed, or false otherwise.
1636   * All panels are not removed by default.
1637   *
1638   * @param {Object} state     Global application state.
1639   * @param {string} panelName A string that identifies the panel.
1640   *
1641   * @return {boolean} Whether or not the panel is removed.
1642   */
1643  
1644  function isEditorPanelRemoved(state, panelName) {
1645    return Object(external_lodash_["includes"])(state.removedPanels, panelName);
1646  }
1647  /**
1648   * Returns true if the given panel is enabled, or false otherwise. Panels are
1649   * enabled by default.
1650   *
1651   * @param {Object} state     Global application state.
1652   * @param {string} panelName A string that identifies the panel.
1653   *
1654   * @return {boolean} Whether or not the panel is enabled.
1655   */
1656  
1657  function isEditorPanelEnabled(state, panelName) {
1658    const panels = getPreference(state, 'panels');
1659    return !isEditorPanelRemoved(state, panelName) && Object(external_lodash_["get"])(panels, [panelName, 'enabled'], true);
1660  }
1661  /**
1662   * Returns true if the given panel is open, or false otherwise. Panels are
1663   * closed by default.
1664   *
1665   * @param  {Object}  state     Global application state.
1666   * @param  {string}  panelName A string that identifies the panel.
1667   *
1668   * @return {boolean} Whether or not the panel is open.
1669   */
1670  
1671  function isEditorPanelOpened(state, panelName) {
1672    const panels = getPreference(state, 'panels');
1673    return Object(external_lodash_["get"])(panels, [panelName]) === true || Object(external_lodash_["get"])(panels, [panelName, 'opened']) === true;
1674  }
1675  /**
1676   * Returns true if a modal is active, or false otherwise.
1677   *
1678   * @param  {Object}  state        Global application state.
1679   * @param  {string}  modalName A string that uniquely identifies the modal.
1680   *
1681   * @return {boolean} Whether the modal is active.
1682   */
1683  
1684  function isModalActive(state, modalName) {
1685    return state.activeModal === modalName;
1686  }
1687  /**
1688   * Returns whether the given feature is enabled or not.
1689   *
1690   * @param {Object} state   Global application state.
1691   * @param {string} feature Feature slug.
1692   *
1693   * @return {boolean} Is active.
1694   */
1695  
1696  function isFeatureActive(state, feature) {
1697    return Object(external_lodash_["get"])(state.preferences.features, [feature], false);
1698  }
1699  /**
1700   * Returns true if the plugin item is pinned to the header.
1701   * When the value is not set it defaults to true.
1702   *
1703   * @param  {Object}  state      Global application state.
1704   * @param  {string}  pluginName Plugin item name.
1705   *
1706   * @return {boolean} Whether the plugin item is pinned.
1707   */
1708  
1709  const isPluginItemPinned = Object(external_wp_data_["createRegistrySelector"])(select => pluginName => {
1710    return select(build_module["g" /* store */]).isItemPinned('core/edit-post', pluginName);
1711  });
1712  /**
1713   * Returns an array of active meta box locations.
1714   *
1715   * @param {Object} state Post editor state.
1716   *
1717   * @return {string[]} Active meta box locations.
1718   */
1719  
1720  const getActiveMetaBoxLocations = Object(rememo["a" /* default */])(state => {
1721    return Object.keys(state.metaBoxes.locations).filter(location => isMetaBoxLocationActive(state, location));
1722  }, state => [state.metaBoxes.locations]);
1723  /**
1724   * Returns true if a metabox location is active and visible
1725   *
1726   * @param {Object} state    Post editor state.
1727   * @param {string} location Meta box location to test.
1728   *
1729   * @return {boolean} Whether the meta box location is active and visible.
1730   */
1731  
1732  function isMetaBoxLocationVisible(state, location) {
1733    return isMetaBoxLocationActive(state, location) && Object(external_lodash_["some"])(getMetaBoxesPerLocation(state, location), ({
1734      id
1735    }) => {
1736      return isEditorPanelEnabled(state, `meta-box-$id}`);
1737    });
1738  }
1739  /**
1740   * Returns true if there is an active meta box in the given location, or false
1741   * otherwise.
1742   *
1743   * @param {Object} state    Post editor state.
1744   * @param {string} location Meta box location to test.
1745   *
1746   * @return {boolean} Whether the meta box location is active.
1747   */
1748  
1749  function isMetaBoxLocationActive(state, location) {
1750    const metaBoxes = getMetaBoxesPerLocation(state, location);
1751    return !!metaBoxes && metaBoxes.length !== 0;
1752  }
1753  /**
1754   * Returns the list of all the available meta boxes for a given location.
1755   *
1756   * @param {Object} state    Global application state.
1757   * @param {string} location Meta box location to test.
1758   *
1759   * @return {?Array} List of meta boxes.
1760   */
1761  
1762  function getMetaBoxesPerLocation(state, location) {
1763    return state.metaBoxes.locations[location];
1764  }
1765  /**
1766   * Returns the list of all the available meta boxes.
1767   *
1768   * @param {Object} state Global application state.
1769   *
1770   * @return {Array} List of meta boxes.
1771   */
1772  
1773  const getAllMetaBoxes = Object(rememo["a" /* default */])(state => {
1774    return Object(external_lodash_["flatten"])(Object(external_lodash_["values"])(state.metaBoxes.locations));
1775  }, state => [state.metaBoxes.locations]);
1776  /**
1777   * Returns true if the post is using Meta Boxes
1778   *
1779   * @param  {Object} state Global application state
1780   *
1781   * @return {boolean} Whether there are metaboxes or not.
1782   */
1783  
1784  function selectors_hasMetaBoxes(state) {
1785    return getActiveMetaBoxLocations(state).length > 0;
1786  }
1787  /**
1788   * Returns true if the Meta Boxes are being saved.
1789   *
1790   * @param   {Object}  state Global application state.
1791   *
1792   * @return {boolean} Whether the metaboxes are being saved.
1793   */
1794  
1795  function selectors_isSavingMetaBoxes(state) {
1796    return state.metaBoxes.isSaving;
1797  }
1798  /**
1799   * Returns the current editing canvas device type.
1800   *
1801   * @param {Object} state Global application state.
1802   *
1803   * @return {string} Device type.
1804   */
1805  
1806  function __experimentalGetPreviewDeviceType(state) {
1807    return state.deviceType;
1808  }
1809  /**
1810   * Returns true if the inserter is opened.
1811   *
1812   * @param  {Object}  state Global application state.
1813   *
1814   * @return {boolean} Whether the inserter is opened.
1815   */
1816  
1817  function isInserterOpened(state) {
1818    return !!state.blockInserterPanel;
1819  }
1820  /**
1821   * Get the insertion point for the inserter.
1822   *
1823   * @param {Object} state Global application state.
1824   *
1825   * @return {Object} The root client ID and index to insert at.
1826   */
1827  
1828  function __experimentalGetInsertionPoint(state) {
1829    const {
1830      rootClientId,
1831      insertionIndex
1832    } = state.blockInserterPanel;
1833    return {
1834      rootClientId,
1835      insertionIndex
1836    };
1837  }
1838  /**
1839   * Returns true if the list view is opened.
1840   *
1841   * @param  {Object}  state Global application state.
1842   *
1843   * @return {boolean} Whether the list view is opened.
1844   */
1845  
1846  function isListViewOpened(state) {
1847    return state.listViewPanel;
1848  }
1849  /**
1850   * Returns true if the template editing mode is enabled.
1851   *
1852   * @param  {Object}  state Global application state.
1853   *
1854   * @return {boolean} Whether we're editing the template.
1855   */
1856  
1857  function selectors_isEditingTemplate(state) {
1858    return state.isEditingTemplate;
1859  }
1860  /**
1861   * Returns true if meta boxes are initialized.
1862   *
1863   * @param {Object} state Global application state.
1864   *
1865   * @return {boolean} Whether meta boxes are initialized.
1866   */
1867  
1868  function areMetaBoxesInitialized(state) {
1869    return state.metaBoxes.initialized;
1870  }
1871  /**
1872   * Retrieves the template of the currently edited post.
1873   *
1874   * @return {Object?} Post Template.
1875   */
1876  
1877  const getEditedPostTemplate = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1878    const currentTemplate = select(external_wp_editor_["store"]).getEditedPostAttribute('template');
1879  
1880    if (currentTemplate) {
1881      var _select$getEntityReco;
1882  
1883      const templateWithSameSlug = (_select$getEntityReco = select(external_wp_coreData_["store"]).getEntityRecords('postType', 'wp_template')) === null || _select$getEntityReco === void 0 ? void 0 : _select$getEntityReco.find(template => template.slug === currentTemplate);
1884  
1885      if (!templateWithSameSlug) {
1886        return templateWithSameSlug;
1887      }
1888  
1889      return select(external_wp_coreData_["store"]).getEditedEntityRecord('postType', 'wp_template', templateWithSameSlug.id);
1890    }
1891  
1892    const post = select(external_wp_editor_["store"]).getCurrentPost();
1893  
1894    if (post.link && post.status !== 'auto-draft') {
1895      return select(external_wp_coreData_["store"]).__experimentalGetTemplateForLink(post.link);
1896    }
1897  
1898    return null;
1899  });
1900  
1901  // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js
1902  var constants = __webpack_require__("0dt7");
1903  
1904  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js
1905  /**
1906   * WordPress dependencies
1907   */
1908  
1909  
1910  /**
1911   * Internal dependencies
1912   */
1913  
1914  
1915  
1916  
1917  
1918  const storeConfig = {
1919    reducer: reducer,
1920    actions: actions_namespaceObject,
1921    selectors: selectors_namespaceObject,
1922    controls: external_wp_dataControls_["controls"],
1923    persist: ['preferences']
1924  };
1925  /**
1926   * Store definition for the edit post namespace.
1927   *
1928   * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
1929   *
1930   * @type {Object}
1931   */
1932  
1933  const store = Object(external_wp_data_["createReduxStore"])(constants["a" /* STORE_NAME */], storeConfig); // Ideally we use register instead of register store.
1934  
1935  Object(external_wp_data_["registerStore"])(constants["a" /* STORE_NAME */], storeConfig);
1936  
1937  
1938  /***/ }),
1939  
1940  /***/ "TSYQ":
1941  /***/ (function(module, exports, __webpack_require__) {
1942  
1943  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1944    Copyright (c) 2018 Jed Watson.
1945    Licensed under the MIT License (MIT), see
1946    http://jedwatson.github.io/classnames
1947  */
1948  /* global define */
1949  
1950  (function () {
1951      'use strict';
1952  
1953      var hasOwn = {}.hasOwnProperty;
1954  
1955  	function classNames() {
1956          var classes = [];
1957  
1958          for (var i = 0; i < arguments.length; i++) {
1959              var arg = arguments[i];
1960              if (!arg) continue;
1961  
1962              var argType = typeof arg;
1963  
1964              if (argType === 'string' || argType === 'number') {
1965                  classes.push(arg);
1966              } else if (Array.isArray(arg)) {
1967                  if (arg.length) {
1968                      var inner = classNames.apply(null, arg);
1969                      if (inner) {
1970                          classes.push(inner);
1971                      }
1972                  }
1973              } else if (argType === 'object') {
1974                  if (arg.toString === Object.prototype.toString) {
1975                      for (var key in arg) {
1976                          if (hasOwn.call(arg, key) && arg[key]) {
1977                              classes.push(key);
1978                          }
1979                      }
1980                  } else {
1981                      classes.push(arg.toString());
1982                  }
1983              }
1984          }
1985  
1986          return classes.join(' ');
1987      }
1988  
1989      if ( true && module.exports) {
1990          classNames.default = classNames;
1991          module.exports = classNames;
1992      } else if (true) {
1993          // register as 'classnames', consistent with npm package name
1994          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
1995              return classNames;
1996          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
1997                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1998      } else {}
1999  }());
2000  
2001  
2002  /***/ }),
2003  
2004  /***/ "Tqx9":
2005  /***/ (function(module, exports) {
2006  
2007  (function() { module.exports = window["wp"]["primitives"]; }());
2008  
2009  /***/ }),
2010  
2011  /***/ "TvNi":
2012  /***/ (function(module, exports) {
2013  
2014  (function() { module.exports = window["wp"]["plugins"]; }());
2015  
2016  /***/ }),
2017  
2018  /***/ "U60i":
2019  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2020  
2021  "use strict";
2022  
2023  // EXPORTS
2024  __webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ store; });
2025  __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ complementary_area; });
2026  __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ ComplementaryAreaMoreMenuItem; });
2027  __webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ fullscreen_mode; });
2028  __webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ interface_skeleton; });
2029  __webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ pinned_items; });
2030  __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ action_item; });
2031  
2032  // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
2033  var actions_namespaceObject = {};
2034  __webpack_require__.r(actions_namespaceObject);
2035  __webpack_require__.d(actions_namespaceObject, "enableComplementaryArea", function() { return actions_enableComplementaryArea; });
2036  __webpack_require__.d(actions_namespaceObject, "disableComplementaryArea", function() { return actions_disableComplementaryArea; });
2037  __webpack_require__.d(actions_namespaceObject, "pinItem", function() { return actions_pinItem; });
2038  __webpack_require__.d(actions_namespaceObject, "unpinItem", function() { return actions_unpinItem; });
2039  
2040  // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
2041  var selectors_namespaceObject = {};
2042  __webpack_require__.r(selectors_namespaceObject);
2043  __webpack_require__.d(selectors_namespaceObject, "getActiveComplementaryArea", function() { return selectors_getActiveComplementaryArea; });
2044  __webpack_require__.d(selectors_namespaceObject, "isItemPinned", function() { return selectors_isItemPinned; });
2045  
2046  // EXTERNAL MODULE: external ["wp","data"]
2047  var external_wp_data_ = __webpack_require__("1ZqX");
2048  
2049  // EXTERNAL MODULE: external "lodash"
2050  var external_lodash_ = __webpack_require__("YLtl");
2051  
2052  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
2053  /**
2054   * External dependencies
2055   */
2056  
2057  /**
2058   * WordPress dependencies
2059   */
2060  
2061  
2062  /**
2063   * Reducer to keep tract of the active area per scope.
2064   *
2065   * @param {boolean} state           Previous state.
2066   * @param {Object}  action          Action object.
2067   * @param {string}  action.type     Action type.
2068   * @param {string}  action.itemType Type of item.
2069   * @param {string}  action.scope    Item scope.
2070   * @param {string}  action.item     Item name.
2071   *
2072   * @return {Object} Updated state.
2073   */
2074  
2075  function singleEnableItems(state = {}, {
2076    type,
2077    itemType,
2078    scope,
2079    item
2080  }) {
2081    if (type !== 'SET_SINGLE_ENABLE_ITEM' || !itemType || !scope) {
2082      return state;
2083    }
2084  
2085    return { ...state,
2086      [itemType]: { ...state[itemType],
2087        [scope]: item || null
2088      }
2089    };
2090  }
2091  /**
2092   * Reducer keeping track of the "pinned" items per scope.
2093   *
2094   * @param {boolean} state           Previous state.
2095   * @param {Object}  action          Action object.
2096   * @param {string}  action.type     Action type.
2097   * @param {string}  action.itemType Type of item.
2098   * @param {string}  action.scope    Item scope.
2099   * @param {string}  action.item     Item name.
2100   * @param {boolean} action.isEnable Whether the item is pinned.
2101   *
2102   * @return {Object} Updated state.
2103   */
2104  
2105  function multipleEnableItems(state = {}, {
2106    type,
2107    itemType,
2108    scope,
2109    item,
2110    isEnable
2111  }) {
2112    if (type !== 'SET_MULTIPLE_ENABLE_ITEM' || !itemType || !scope || !item || Object(external_lodash_["get"])(state, [itemType, scope, item]) === isEnable) {
2113      return state;
2114    }
2115  
2116    const currentTypeState = state[itemType] || {};
2117    const currentScopeState = currentTypeState[scope] || {};
2118    return { ...state,
2119      [itemType]: { ...currentTypeState,
2120        [scope]: { ...currentScopeState,
2121          [item]: isEnable || false
2122        }
2123      }
2124    };
2125  }
2126  const enableItems = Object(external_wp_data_["combineReducers"])({
2127    singleEnableItems,
2128    multipleEnableItems
2129  });
2130  /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
2131    enableItems
2132  }));
2133  
2134  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
2135  /**
2136   * Returns an action object used in signalling that an active area should be changed.
2137   *
2138   * @param {string} itemType Type of item.
2139   * @param {string} scope    Item scope.
2140   * @param {string} item     Item identifier.
2141   *
2142   * @return {Object} Action object.
2143   */
2144  function setSingleEnableItem(itemType, scope, item) {
2145    return {
2146      type: 'SET_SINGLE_ENABLE_ITEM',
2147      itemType,
2148      scope,
2149      item
2150    };
2151  }
2152  /**
2153   * Returns an action object used in signalling that a complementary item should be enabled.
2154   *
2155   * @param {string} scope Complementary area scope.
2156   * @param {string} area  Area identifier.
2157   *
2158   * @return {Object} Action object.
2159   */
2160  
2161  
2162  function actions_enableComplementaryArea(scope, area) {
2163    return setSingleEnableItem('complementaryArea', scope, area);
2164  }
2165  /**
2166   * Returns an action object used in signalling that the complementary area of a given scope should be disabled.
2167   *
2168   * @param {string} scope Complementary area scope.
2169   *
2170   * @return {Object} Action object.
2171   */
2172  
2173  function actions_disableComplementaryArea(scope) {
2174    return setSingleEnableItem('complementaryArea', scope, undefined);
2175  }
2176  /**
2177   * Returns an action object to make an area enabled/disabled.
2178   *
2179   * @param {string}  itemType Type of item.
2180   * @param {string}  scope    Item scope.
2181   * @param {string}  item     Item identifier.
2182   * @param {boolean} isEnable Boolean indicating if an area should be pinned or not.
2183   *
2184   * @return {Object} Action object.
2185   */
2186  
2187  function setMultipleEnableItem(itemType, scope, item, isEnable) {
2188    return {
2189      type: 'SET_MULTIPLE_ENABLE_ITEM',
2190      itemType,
2191      scope,
2192      item,
2193      isEnable
2194    };
2195  }
2196  /**
2197   * Returns an action object used in signalling that an item should be pinned.
2198   *
2199   * @param {string} scope  Item scope.
2200   * @param {string} itemId Item identifier.
2201   *
2202   * @return {Object} Action object.
2203   */
2204  
2205  
2206  function actions_pinItem(scope, itemId) {
2207    return setMultipleEnableItem('pinnedItems', scope, itemId, true);
2208  }
2209  /**
2210   * Returns an action object used in signalling that an item should be unpinned.
2211   *
2212   * @param {string} scope  Item scope.
2213   * @param {string} itemId Item identifier.
2214   *
2215   * @return {Object} Action object.
2216   */
2217  
2218  function actions_unpinItem(scope, itemId) {
2219    return setMultipleEnableItem('pinnedItems', scope, itemId, false);
2220  }
2221  
2222  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
2223  /**
2224   * External dependencies
2225   */
2226  
2227  /**
2228   * Returns the item that is enabled in a given scope.
2229   *
2230   * @param {Object} state    Global application state.
2231   * @param {string} itemType Type of item.
2232   * @param {string} scope    Item scope.
2233   *
2234   * @return {?string|null} The item that is enabled in the passed scope and type.
2235   */
2236  
2237  function getSingleEnableItem(state, itemType, scope) {
2238    return Object(external_lodash_["get"])(state.enableItems.singleEnableItems, [itemType, scope]);
2239  }
2240  /**
2241   * Returns the complementary area that is active in a given scope.
2242   *
2243   * @param {Object} state    Global application state.
2244   * @param {string} scope    Item scope.
2245   *
2246   * @return {string} The complementary area that is active in the given scope.
2247   */
2248  
2249  
2250  function selectors_getActiveComplementaryArea(state, scope) {
2251    return getSingleEnableItem(state, 'complementaryArea', scope);
2252  }
2253  /**
2254   * Returns a boolean indicating if an item is enabled or not in a given scope.
2255   *
2256   * @param {Object} state    Global application state.
2257   * @param {string} itemType Type of item.
2258   * @param {string} scope    Scope.
2259   * @param {string} item     Item to check.
2260   *
2261   * @return {boolean|undefined} True if the item is enabled, false otherwise if the item is explicitly disabled, and undefined if there is no information for that item.
2262   */
2263  
2264  function isMultipleEnabledItemEnabled(state, itemType, scope, item) {
2265    return Object(external_lodash_["get"])(state.enableItems.multipleEnableItems, [itemType, scope, item]);
2266  }
2267  /**
2268   * Returns a boolean indicating if an item is pinned or not.
2269   *
2270   * @param {Object} state    Global application state.
2271   * @param {string} scope    Scope.
2272   * @param {string} item     Item to check.
2273   *
2274   * @return {boolean} True if the item is pinned and false otherwise.
2275   */
2276  
2277  
2278  function selectors_isItemPinned(state, scope, item) {
2279    return isMultipleEnabledItemEnabled(state, 'pinnedItems', scope, item) !== false;
2280  }
2281  
2282  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
2283  /**
2284   * The identifier for the data store.
2285   *
2286   * @type {string}
2287   */
2288  const STORE_NAME = 'core/interface';
2289  
2290  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
2291  /**
2292   * WordPress dependencies
2293   */
2294  
2295  /**
2296   * Internal dependencies
2297   */
2298  
2299  
2300  
2301  
2302  
2303  /**
2304   * Store definition for the interface namespace.
2305   *
2306   * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
2307   *
2308   * @type {Object}
2309   */
2310  
2311  const store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, {
2312    reducer: reducer,
2313    actions: actions_namespaceObject,
2314    selectors: selectors_namespaceObject,
2315    persist: ['enableItems']
2316  }); // Once we build a more generic persistence plugin that works across types of stores
2317  // we'd be able to replace this with a register call.
2318  
2319  Object(external_wp_data_["registerStore"])(STORE_NAME, {
2320    reducer: reducer,
2321    actions: actions_namespaceObject,
2322    selectors: selectors_namespaceObject,
2323    persist: ['enableItems']
2324  });
2325  
2326  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2327  var esm_extends = __webpack_require__("wx14");
2328  
2329  // EXTERNAL MODULE: external ["wp","element"]
2330  var external_wp_element_ = __webpack_require__("GRId");
2331  
2332  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2333  var classnames = __webpack_require__("TSYQ");
2334  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2335  
2336  // EXTERNAL MODULE: external ["wp","components"]
2337  var external_wp_components_ = __webpack_require__("tI+e");
2338  
2339  // EXTERNAL MODULE: external ["wp","i18n"]
2340  var external_wp_i18n_ = __webpack_require__("l3Sj");
2341  
2342  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
2343  var check = __webpack_require__("RMJe");
2344  
2345  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
2346  var star_filled = __webpack_require__("URob");
2347  
2348  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
2349  var star_empty = __webpack_require__("Xxwi");
2350  
2351  // EXTERNAL MODULE: external ["wp","viewport"]
2352  var external_wp_viewport_ = __webpack_require__("KEfo");
2353  
2354  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
2355  var close_small = __webpack_require__("bWcr");
2356  
2357  // EXTERNAL MODULE: external ["wp","plugins"]
2358  var external_wp_plugins_ = __webpack_require__("TvNi");
2359  
2360  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
2361  /**
2362   * WordPress dependencies
2363   */
2364  
2365  /* harmony default export */ var complementary_area_context = (Object(external_wp_plugins_["withPluginContext"])((context, ownProps) => {
2366    return {
2367      icon: ownProps.icon || context.icon,
2368      identifier: ownProps.identifier || `$context.name}/$ownProps.name}`
2369    };
2370  }));
2371  
2372  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
2373  
2374  
2375  
2376  /**
2377   * External dependencies
2378   */
2379  
2380  /**
2381   * WordPress dependencies
2382   */
2383  
2384  
2385  
2386  /**
2387   * Internal dependencies
2388   */
2389  
2390  
2391  
2392  
2393  function ComplementaryAreaToggle({
2394    as = external_wp_components_["Button"],
2395    scope,
2396    identifier,
2397    icon,
2398    selectedIcon,
2399    ...props
2400  }) {
2401    const ComponentToUse = as;
2402    const isSelected = Object(external_wp_data_["useSelect"])(select => select(store).getActiveComplementaryArea(scope) === identifier, [identifier]);
2403    const {
2404      enableComplementaryArea,
2405      disableComplementaryArea
2406    } = Object(external_wp_data_["useDispatch"])(store);
2407    return Object(external_wp_element_["createElement"])(ComponentToUse, Object(esm_extends["a" /* default */])({
2408      icon: selectedIcon && isSelected ? selectedIcon : icon,
2409      onClick: () => {
2410        if (isSelected) {
2411          disableComplementaryArea(scope);
2412        } else {
2413          enableComplementaryArea(scope, identifier);
2414        }
2415      }
2416    }, Object(external_lodash_["omit"])(props, ['name'])));
2417  }
2418  
2419  /* harmony default export */ var complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
2420  
2421  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
2422  
2423  
2424  
2425  /**
2426   * External dependencies
2427   */
2428  
2429  /**
2430   * WordPress dependencies
2431   */
2432  
2433  
2434  /**
2435   * Internal dependencies
2436   */
2437  
2438  
2439  
2440  const ComplementaryAreaHeader = ({
2441    smallScreenTitle,
2442    children,
2443    className,
2444    toggleButtonProps
2445  }) => {
2446    const toggleButton = Object(external_wp_element_["createElement"])(complementary_area_toggle, Object(esm_extends["a" /* default */])({
2447      icon: close_small["a" /* default */]
2448    }, toggleButtonProps));
2449    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
2450      className: "components-panel__header interface-complementary-area-header__small"
2451    }, smallScreenTitle && Object(external_wp_element_["createElement"])("span", {
2452      className: "interface-complementary-area-header__small-title"
2453    }, smallScreenTitle), toggleButton), Object(external_wp_element_["createElement"])("div", {
2454      className: classnames_default()('components-panel__header', 'interface-complementary-area-header', className),
2455      tabIndex: -1
2456    }, children, toggleButton));
2457  };
2458  
2459  /* harmony default export */ var complementary_area_header = (ComplementaryAreaHeader);
2460  
2461  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
2462  
2463  
2464  
2465  /**
2466   * External dependencies
2467   */
2468  
2469  /**
2470   * WordPress dependencies
2471   */
2472  
2473  
2474  
2475  
2476  function ActionItemSlot({
2477    name,
2478    as: Component = external_wp_components_["ButtonGroup"],
2479    fillProps = {},
2480    bubblesVirtually,
2481    ...props
2482  }) {
2483    return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], {
2484      name: name,
2485      bubblesVirtually: bubblesVirtually,
2486      fillProps: fillProps
2487    }, fills => {
2488      if (Object(external_lodash_["isEmpty"])(external_wp_element_["Children"].toArray(fills))) {
2489        return null;
2490      } // Special handling exists for backward compatibility.
2491      // It ensures that menu items created by plugin authors aren't
2492      // duplicated with automatically injected menu items coming
2493      // from pinnable plugin sidebars.
2494      // @see https://github.com/WordPress/gutenberg/issues/14457
2495  
2496  
2497      const initializedByPlugins = [];
2498      external_wp_element_["Children"].forEach(fills, ({
2499        props: {
2500          __unstableExplicitMenuItem,
2501          __unstableTarget
2502        }
2503      }) => {
2504        if (__unstableTarget && __unstableExplicitMenuItem) {
2505          initializedByPlugins.push(__unstableTarget);
2506        }
2507      });
2508      const children = external_wp_element_["Children"].map(fills, child => {
2509        if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
2510          return null;
2511        }
2512  
2513        return child;
2514      });
2515      return Object(external_wp_element_["createElement"])(Component, props, children);
2516    });
2517  }
2518  
2519  function ActionItem({
2520    name,
2521    as: Component = external_wp_components_["Button"],
2522    onClick,
2523    ...props
2524  }) {
2525    return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], {
2526      name: name
2527    }, ({
2528      onClick: fpOnClick
2529    }) => {
2530      return Object(external_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({
2531        onClick: onClick || fpOnClick ? (...args) => {
2532          (onClick || external_lodash_["noop"])(...args);
2533          (fpOnClick || external_lodash_["noop"])(...args);
2534        } : undefined
2535      }, props));
2536    });
2537  }
2538  
2539  ActionItem.Slot = ActionItemSlot;
2540  /* harmony default export */ var action_item = (ActionItem);
2541  
2542  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
2543  
2544  
2545  
2546  /**
2547   * External dependencies
2548   */
2549  
2550  /**
2551   * WordPress dependencies
2552   */
2553  
2554  
2555  
2556  /**
2557   * Internal dependencies
2558   */
2559  
2560  
2561  
2562  
2563  const PluginsMenuItem = props => // Menu item is marked with unstable prop for backward compatibility.
2564  // They are removed so they don't leak to DOM elements.
2565  // @see https://github.com/WordPress/gutenberg/issues/14457
2566  Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], Object(external_lodash_["omit"])(props, ['__unstableExplicitMenuItem', '__unstableTarget']));
2567  
2568  function ComplementaryAreaMoreMenuItem({
2569    scope,
2570    target,
2571    __unstableExplicitMenuItem,
2572    ...props
2573  }) {
2574    return Object(external_wp_element_["createElement"])(complementary_area_toggle, Object(esm_extends["a" /* default */])({
2575      as: toggleProps => {
2576        return Object(external_wp_element_["createElement"])(action_item, Object(esm_extends["a" /* default */])({
2577          __unstableExplicitMenuItem: __unstableExplicitMenuItem,
2578          __unstableTarget: `$scope}/$target}`,
2579          as: PluginsMenuItem,
2580          name: `$scope}/plugin-more-menu`
2581        }, toggleProps));
2582      },
2583      role: "menuitemcheckbox",
2584      selectedIcon: check["a" /* default */],
2585      name: target,
2586      scope: scope
2587    }, props));
2588  }
2589  
2590  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
2591  
2592  
2593  
2594  /**
2595   * External dependencies
2596   */
2597  
2598  
2599  /**
2600   * WordPress dependencies
2601   */
2602  
2603  
2604  
2605  function PinnedItems({
2606    scope,
2607    ...props
2608  }) {
2609    return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], Object(esm_extends["a" /* default */])({
2610      name: `PinnedItems/$scope}`
2611    }, props));
2612  }
2613  
2614  function PinnedItemsSlot({
2615    scope,
2616    className,
2617    ...props
2618  }) {
2619    return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], Object(esm_extends["a" /* default */])({
2620      name: `PinnedItems/$scope}`
2621    }, props), fills => !Object(external_lodash_["isEmpty"])(fills) && Object(external_wp_element_["createElement"])("div", {
2622      className: classnames_default()(className, 'interface-pinned-items')
2623    }, fills));
2624  }
2625  
2626  PinnedItems.Slot = PinnedItemsSlot;
2627  /* harmony default export */ var pinned_items = (PinnedItems);
2628  
2629  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
2630  
2631  
2632  
2633  /**
2634   * External dependencies
2635   */
2636  
2637  /**
2638   * WordPress dependencies
2639   */
2640  
2641  
2642  
2643  
2644  
2645  
2646  
2647  /**
2648   * Internal dependencies
2649   */
2650  
2651  
2652  
2653  
2654  
2655  
2656  
2657  
2658  function ComplementaryAreaSlot({
2659    scope,
2660    ...props
2661  }) {
2662    return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], Object(esm_extends["a" /* default */])({
2663      name: `ComplementaryArea/$scope}`
2664    }, props));
2665  }
2666  
2667  function ComplementaryAreaFill({
2668    scope,
2669    children,
2670    className
2671  }) {
2672    return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], {
2673      name: `ComplementaryArea/$scope}`
2674    }, Object(external_wp_element_["createElement"])("div", {
2675      className: className
2676    }, children));
2677  }
2678  
2679  function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
2680    const previousIsSmall = Object(external_wp_element_["useRef"])(false);
2681    const shouldOpenWhenNotSmall = Object(external_wp_element_["useRef"])(false);
2682    const {
2683      enableComplementaryArea,
2684      disableComplementaryArea
2685    } = Object(external_wp_data_["useDispatch"])(store);
2686    Object(external_wp_element_["useEffect"])(() => {
2687      // If the complementary area is active and the editor is switching from a big to a small window size.
2688      if (isActive && isSmall && !previousIsSmall.current) {
2689        // Disable the complementary area.
2690        disableComplementaryArea(scope); // Flag the complementary area to be reopened when the window size goes from small to big.
2691  
2692        shouldOpenWhenNotSmall.current = true;
2693      } else if ( // If there is a flag indicating the complementary area should be enabled when we go from small to big window size
2694      // and we are going from a small to big window size.
2695      shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) {
2696        // Remove the flag indicating the complementary area should be enabled.
2697        shouldOpenWhenNotSmall.current = false; // Enable the complementary area.
2698  
2699        enableComplementaryArea(scope, identifier);
2700      } else if ( // If the flag is indicating the current complementary should be reopened but another complementary area becomes active,
2701      // remove the flag.
2702      shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) {
2703        shouldOpenWhenNotSmall.current = false;
2704      }
2705  
2706      if (isSmall !== previousIsSmall.current) {
2707        previousIsSmall.current = isSmall;
2708      }
2709    }, [isActive, isSmall, scope, identifier, activeArea]);
2710  }
2711  
2712  function ComplementaryArea({
2713    children,
2714    className,
2715    closeLabel = Object(external_wp_i18n_["__"])('Close plugin'),
2716    identifier,
2717    header,
2718    headerClassName,
2719    icon,
2720    isPinnable = true,
2721    panelClassName,
2722    scope,
2723    name,
2724    smallScreenTitle,
2725    title,
2726    toggleShortcut,
2727    isActiveByDefault,
2728    showIconLabels = false
2729  }) {
2730    const {
2731      isActive,
2732      isPinned,
2733      activeArea,
2734      isSmall,
2735      isLarge
2736    } = Object(external_wp_data_["useSelect"])(select => {
2737      const {
2738        getActiveComplementaryArea,
2739        isItemPinned
2740      } = select(store);
2741  
2742      const _activeArea = getActiveComplementaryArea(scope);
2743  
2744      return {
2745        isActive: _activeArea === identifier,
2746        isPinned: isItemPinned(scope, identifier),
2747        activeArea: _activeArea,
2748        isSmall: select(external_wp_viewport_["store"]).isViewportMatch('< medium'),
2749        isLarge: select(external_wp_viewport_["store"]).isViewportMatch('large')
2750      };
2751    }, [identifier, scope]);
2752    useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall);
2753    const {
2754      enableComplementaryArea,
2755      disableComplementaryArea,
2756      pinItem,
2757      unpinItem
2758    } = Object(external_wp_data_["useDispatch"])(store);
2759    Object(external_wp_element_["useEffect"])(() => {
2760      if (isActiveByDefault && activeArea === undefined && !isSmall) {
2761        enableComplementaryArea(scope, identifier);
2762      }
2763    }, [activeArea, isActiveByDefault, scope, identifier, isSmall]);
2764    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isPinnable && Object(external_wp_element_["createElement"])(pinned_items, {
2765      scope: scope
2766    }, isPinned && Object(external_wp_element_["createElement"])(complementary_area_toggle, {
2767      scope: scope,
2768      identifier: identifier,
2769      isPressed: isActive && (!showIconLabels || isLarge),
2770      "aria-expanded": isActive,
2771      label: title,
2772      icon: showIconLabels ? check["a" /* default */] : icon,
2773      showTooltip: !showIconLabels,
2774      isTertiary: showIconLabels
2775    })), name && isPinnable && Object(external_wp_element_["createElement"])(ComplementaryAreaMoreMenuItem, {
2776      target: name,
2777      scope: scope,
2778      icon: icon
2779    }, title), isActive && Object(external_wp_element_["createElement"])(ComplementaryAreaFill, {
2780      className: classnames_default()('interface-complementary-area', className),
2781      scope: scope
2782    }, Object(external_wp_element_["createElement"])(complementary_area_header, {
2783      className: headerClassName,
2784      closeLabel: closeLabel,
2785      onClose: () => disableComplementaryArea(scope),
2786      smallScreenTitle: smallScreenTitle,
2787      toggleButtonProps: {
2788        label: closeLabel,
2789        shortcut: toggleShortcut,
2790        scope,
2791        identifier
2792      }
2793    }, header || Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("strong", null, title), isPinnable && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
2794      className: "interface-complementary-area__pin-unpin-item",
2795      icon: isPinned ? star_filled["a" /* default */] : star_empty["a" /* default */],
2796      label: isPinned ? Object(external_wp_i18n_["__"])('Unpin from toolbar') : Object(external_wp_i18n_["__"])('Pin to toolbar'),
2797      onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
2798      isPressed: isPinned,
2799      "aria-expanded": isPinned
2800    }))), Object(external_wp_element_["createElement"])(external_wp_components_["Panel"], {
2801      className: panelClassName
2802    }, children)));
2803  }
2804  
2805  const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
2806  ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
2807  /* harmony default export */ var complementary_area = (ComplementaryAreaWrapped);
2808  
2809  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/fullscreen-mode/index.js
2810  /**
2811   * WordPress dependencies
2812   */
2813  
2814  class fullscreen_mode_FullscreenMode extends external_wp_element_["Component"] {
2815    componentDidMount() {
2816      this.isSticky = false;
2817      this.sync(); // `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes
2818      // `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled
2819      // even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as
2820      // a consequence of the FullscreenMode setup
2821  
2822      if (document.body.classList.contains('sticky-menu')) {
2823        this.isSticky = true;
2824        document.body.classList.remove('sticky-menu');
2825      }
2826    }
2827  
2828    componentWillUnmount() {
2829      if (this.isSticky) {
2830        document.body.classList.add('sticky-menu');
2831      }
2832  
2833      if (this.props.isActive) {
2834        document.body.classList.remove('is-fullscreen-mode');
2835      }
2836    }
2837  
2838    componentDidUpdate(prevProps) {
2839      if (this.props.isActive !== prevProps.isActive) {
2840        this.sync();
2841      }
2842    }
2843  
2844    sync() {
2845      const {
2846        isActive
2847      } = this.props;
2848  
2849      if (isActive) {
2850        document.body.classList.add('is-fullscreen-mode');
2851      } else {
2852        document.body.classList.remove('is-fullscreen-mode');
2853      }
2854    }
2855  
2856    render() {
2857      return null;
2858    }
2859  
2860  }
2861  /* harmony default export */ var fullscreen_mode = (fullscreen_mode_FullscreenMode);
2862  
2863  // EXTERNAL MODULE: external ["wp","compose"]
2864  var external_wp_compose_ = __webpack_require__("K9lf");
2865  
2866  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
2867  
2868  
2869  /**
2870   * External dependencies
2871   */
2872  
2873  /**
2874   * WordPress dependencies
2875   */
2876  
2877  /**
2878   * WordPress dependencies
2879   */
2880  
2881  
2882  
2883  
2884  
2885  
2886  function useHTMLClass(className) {
2887    Object(external_wp_element_["useEffect"])(() => {
2888      const element = document && document.querySelector(`html:not(.$className})`);
2889  
2890      if (!element) {
2891        return;
2892      }
2893  
2894      element.classList.toggle(className);
2895      return () => {
2896        element.classList.toggle(className);
2897      };
2898    }, [className]);
2899  }
2900  
2901  function InterfaceSkeleton({
2902    footer,
2903    header,
2904    sidebar,
2905    secondarySidebar,
2906    notices,
2907    content,
2908    drawer,
2909    actions,
2910    labels,
2911    className,
2912    shortcuts
2913  }, ref) {
2914    const fallbackRef = Object(external_wp_element_["useRef"])();
2915    const regionsClassName = Object(external_wp_components_["__unstableUseNavigateRegions"])(fallbackRef, shortcuts);
2916    useHTMLClass('interface-interface-skeleton__html-container');
2917    const defaultLabels = {
2918      /* translators: accessibility text for the nav bar landmark region. */
2919      drawer: Object(external_wp_i18n_["__"])('Drawer'),
2920  
2921      /* translators: accessibility text for the top bar landmark region. */
2922      header: Object(external_wp_i18n_["__"])('Header'),
2923  
2924      /* translators: accessibility text for the content landmark region. */
2925      body: Object(external_wp_i18n_["__"])('Content'),
2926  
2927      /* translators: accessibility text for the secondary sidebar landmark region. */
2928      secondarySidebar: Object(external_wp_i18n_["__"])('Block Library'),
2929  
2930      /* translators: accessibility text for the settings landmark region. */
2931      sidebar: Object(external_wp_i18n_["__"])('Settings'),
2932  
2933      /* translators: accessibility text for the publish landmark region. */
2934      actions: Object(external_wp_i18n_["__"])('Publish'),
2935  
2936      /* translators: accessibility text for the footer landmark region. */
2937      footer: Object(external_wp_i18n_["__"])('Footer')
2938    };
2939    const mergedLabels = { ...defaultLabels,
2940      ...labels
2941    };
2942    return Object(external_wp_element_["createElement"])("div", {
2943      ref: Object(external_wp_compose_["useMergeRefs"])([ref, fallbackRef]),
2944      className: classnames_default()(className, 'interface-interface-skeleton', regionsClassName, !!footer && 'has-footer')
2945    }, !!drawer && Object(external_wp_element_["createElement"])("div", {
2946      className: "interface-interface-skeleton__drawer",
2947      role: "region",
2948      "aria-label": mergedLabels.drawer
2949    }, drawer), Object(external_wp_element_["createElement"])("div", {
2950      className: "interface-interface-skeleton__editor"
2951    }, !!header && Object(external_wp_element_["createElement"])("div", {
2952      className: "interface-interface-skeleton__header",
2953      role: "region",
2954      "aria-label": mergedLabels.header,
2955      tabIndex: "-1"
2956    }, header), Object(external_wp_element_["createElement"])("div", {
2957      className: "interface-interface-skeleton__body"
2958    }, !!secondarySidebar && Object(external_wp_element_["createElement"])("div", {
2959      className: "interface-interface-skeleton__secondary-sidebar",
2960      role: "region",
2961      "aria-label": mergedLabels.secondarySidebar,
2962      tabIndex: "-1"
2963    }, secondarySidebar), !!notices && Object(external_wp_element_["createElement"])("div", {
2964      className: "interface-interface-skeleton__notices"
2965    }, notices), Object(external_wp_element_["createElement"])("div", {
2966      className: "interface-interface-skeleton__content",
2967      role: "region",
2968      "aria-label": mergedLabels.body,
2969      tabIndex: "-1"
2970    }, content), !!sidebar && Object(external_wp_element_["createElement"])("div", {
2971      className: "interface-interface-skeleton__sidebar",
2972      role: "region",
2973      "aria-label": mergedLabels.sidebar,
2974      tabIndex: "-1"
2975    }, sidebar), !!actions && Object(external_wp_element_["createElement"])("div", {
2976      className: "interface-interface-skeleton__actions",
2977      role: "region",
2978      "aria-label": mergedLabels.actions,
2979      tabIndex: "-1"
2980    }, actions))), !!footer && Object(external_wp_element_["createElement"])("div", {
2981      className: "interface-interface-skeleton__footer",
2982      role: "region",
2983      "aria-label": mergedLabels.footer,
2984      tabIndex: "-1"
2985    }, footer));
2986  }
2987  
2988  /* harmony default export */ var interface_skeleton = (Object(external_wp_element_["forwardRef"])(InterfaceSkeleton));
2989  
2990  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
2991  
2992  
2993  
2994  
2995  
2996  
2997  
2998  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
2999  
3000  
3001  
3002  
3003  /***/ }),
3004  
3005  /***/ "URob":
3006  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3007  
3008  "use strict";
3009  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3010  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3011  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3012  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3013  
3014  
3015  /**
3016   * WordPress dependencies
3017   */
3018  
3019  const starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3020    xmlns: "http://www.w3.org/2000/svg",
3021    viewBox: "0 0 24 24"
3022  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3023    d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
3024  }));
3025  /* harmony default export */ __webpack_exports__["a"] = (starFilled);
3026  
3027  
3028  /***/ }),
3029  
3030  /***/ "VKE3":
3031  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3032  
3033  "use strict";
3034  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3035  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3036  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3037  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3038  
3039  
3040  /**
3041   * WordPress dependencies
3042   */
3043  
3044  const moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3045    xmlns: "http://www.w3.org/2000/svg",
3046    viewBox: "0 0 24 24"
3047  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3048    d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
3049  }));
3050  /* harmony default export */ __webpack_exports__["a"] = (moreVertical);
3051  
3052  
3053  /***/ }),
3054  
3055  /***/ "Xxwi":
3056  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3057  
3058  "use strict";
3059  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3060  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3061  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3062  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3063  
3064  
3065  /**
3066   * WordPress dependencies
3067   */
3068  
3069  const starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3070    xmlns: "http://www.w3.org/2000/svg",
3071    viewBox: "0 0 24 24"
3072  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3073    fillRule: "evenodd",
3074    d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
3075    clipRule: "evenodd"
3076  }));
3077  /* harmony default export */ __webpack_exports__["a"] = (starEmpty);
3078  
3079  
3080  /***/ }),
3081  
3082  /***/ "Y5n4":
3083  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3084  
3085  "use strict";
3086  
3087  // EXPORTS
3088  __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ enable_custom_fields; });
3089  __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ enable_panel; });
3090  __webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ enable_plugin_document_setting_panel; });
3091  __webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ enable_publish_sidebar; });
3092  __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ enable_feature; });
3093  
3094  // EXTERNAL MODULE: external ["wp","element"]
3095  var external_wp_element_ = __webpack_require__("GRId");
3096  
3097  // EXTERNAL MODULE: external ["wp","i18n"]
3098  var external_wp_i18n_ = __webpack_require__("l3Sj");
3099  
3100  // EXTERNAL MODULE: external ["wp","components"]
3101  var external_wp_components_ = __webpack_require__("tI+e");
3102  
3103  // EXTERNAL MODULE: external ["wp","data"]
3104  var external_wp_data_ = __webpack_require__("1ZqX");
3105  
3106  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/base.js
3107  
3108  
3109  /**
3110   * WordPress dependencies
3111   */
3112  
3113  
3114  function BaseOption({
3115    help,
3116    label,
3117    isChecked,
3118    onChange,
3119    children
3120  }) {
3121    return Object(external_wp_element_["createElement"])("div", {
3122      className: "edit-post-preferences-modal__option"
3123    }, Object(external_wp_element_["createElement"])(external_wp_components_["ToggleControl"], {
3124      help: help,
3125      label: label,
3126      checked: isChecked,
3127      onChange: onChange
3128    }), children);
3129  }
3130  
3131  /* harmony default export */ var base = (BaseOption);
3132  
3133  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-custom-fields.js
3134  
3135  
3136  /**
3137   * WordPress dependencies
3138   */
3139  
3140  
3141  
3142  
3143  /**
3144   * Internal dependencies
3145   */
3146  
3147  
3148  function CustomFieldsConfirmation({
3149    willEnable
3150  }) {
3151    const [isReloading, setIsReloading] = Object(external_wp_element_["useState"])(false);
3152    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("p", {
3153      className: "edit-post-preferences-modal__custom-fields-confirmation-message"
3154    }, Object(external_wp_i18n_["__"])('A page reload is required for this change. Make sure your content is saved before reloading.')), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3155      className: "edit-post-preferences-modal__custom-fields-confirmation-button",
3156      isSecondary: true,
3157      isBusy: isReloading,
3158      disabled: isReloading,
3159      onClick: () => {
3160        setIsReloading(true);
3161        document.getElementById('toggle-custom-fields-form').submit();
3162      }
3163    }, willEnable ? Object(external_wp_i18n_["__"])('Enable & Reload') : Object(external_wp_i18n_["__"])('Disable & Reload')));
3164  }
3165  function EnableCustomFieldsOption({
3166    label,
3167    areCustomFieldsEnabled
3168  }) {
3169    const [isChecked, setIsChecked] = Object(external_wp_element_["useState"])(areCustomFieldsEnabled);
3170    return Object(external_wp_element_["createElement"])(base, {
3171      label: label,
3172      isChecked: isChecked,
3173      onChange: setIsChecked
3174    }, isChecked !== areCustomFieldsEnabled && Object(external_wp_element_["createElement"])(CustomFieldsConfirmation, {
3175      willEnable: isChecked
3176    }));
3177  }
3178  /* harmony default export */ var enable_custom_fields = (Object(external_wp_data_["withSelect"])(select => ({
3179    areCustomFieldsEnabled: !!select('core/editor').getEditorSettings().enableCustomFields
3180  }))(EnableCustomFieldsOption));
3181  
3182  // EXTERNAL MODULE: external ["wp","compose"]
3183  var external_wp_compose_ = __webpack_require__("K9lf");
3184  
3185  // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js + 5 modules
3186  var store = __webpack_require__("T40v");
3187  
3188  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-panel.js
3189  /**
3190   * WordPress dependencies
3191   */
3192  
3193  
3194  /**
3195   * Internal dependencies
3196   */
3197  
3198  
3199  
3200  /* harmony default export */ var enable_panel = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])((select, {
3201    panelName
3202  }) => {
3203    const {
3204      isEditorPanelEnabled,
3205      isEditorPanelRemoved
3206    } = select(store["a" /* store */]);
3207    return {
3208      isRemoved: isEditorPanelRemoved(panelName),
3209      isChecked: isEditorPanelEnabled(panelName)
3210    };
3211  }), Object(external_wp_compose_["ifCondition"])(({
3212    isRemoved
3213  }) => !isRemoved), Object(external_wp_data_["withDispatch"])((dispatch, {
3214    panelName
3215  }) => ({
3216    onChange: () => dispatch(store["a" /* store */]).toggleEditorPanelEnabled(panelName)
3217  })))(base));
3218  
3219  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js
3220  
3221  
3222  /**
3223   * WordPress dependencies
3224   */
3225  
3226  /**
3227   * Internal dependencies
3228   */
3229  
3230  
3231  const {
3232    Fill,
3233    Slot
3234  } = Object(external_wp_components_["createSlotFill"])('EnablePluginDocumentSettingPanelOption');
3235  
3236  const EnablePluginDocumentSettingPanelOption = ({
3237    label,
3238    panelName
3239  }) => Object(external_wp_element_["createElement"])(Fill, null, Object(external_wp_element_["createElement"])(enable_panel, {
3240    label: label,
3241    panelName: panelName
3242  }));
3243  
3244  EnablePluginDocumentSettingPanelOption.Slot = Slot;
3245  /* harmony default export */ var enable_plugin_document_setting_panel = (EnablePluginDocumentSettingPanelOption);
3246  
3247  // EXTERNAL MODULE: external ["wp","viewport"]
3248  var external_wp_viewport_ = __webpack_require__("KEfo");
3249  
3250  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-publish-sidebar.js
3251  /**
3252   * WordPress dependencies
3253   */
3254  
3255  
3256  
3257  /**
3258   * Internal dependencies
3259   */
3260  
3261  
3262  /* harmony default export */ var enable_publish_sidebar = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])(select => ({
3263    isChecked: select('core/editor').isPublishSidebarEnabled()
3264  })), Object(external_wp_data_["withDispatch"])(dispatch => {
3265    const {
3266      enablePublishSidebar,
3267      disablePublishSidebar
3268    } = dispatch('core/editor');
3269    return {
3270      onChange: isEnabled => isEnabled ? enablePublishSidebar() : disablePublishSidebar()
3271    };
3272  }), // In < medium viewports we override this option and always show the publish sidebar.
3273  // See the edit-post's header component for the specific logic.
3274  Object(external_wp_viewport_["ifViewportMatches"])('medium'))(base));
3275  
3276  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-feature.js
3277  /**
3278   * WordPress dependencies
3279   */
3280  
3281  
3282  /**
3283   * Internal dependencies
3284   */
3285  
3286  
3287  
3288  /* harmony default export */ var enable_feature = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])((select, {
3289    featureName
3290  }) => {
3291    const {
3292      isFeatureActive
3293    } = select(store["a" /* store */]);
3294    return {
3295      isChecked: isFeatureActive(featureName)
3296    };
3297  }), Object(external_wp_data_["withDispatch"])((dispatch, {
3298    featureName
3299  }) => ({
3300    onChange: () => dispatch(store["a" /* store */]).toggleFeature(featureName)
3301  })))(base));
3302  
3303  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/index.js
3304  
3305  
3306  
3307  
3308  
3309  
3310  
3311  /***/ }),
3312  
3313  /***/ "YLtl":
3314  /***/ (function(module, exports) {
3315  
3316  (function() { module.exports = window["lodash"]; }());
3317  
3318  /***/ }),
3319  
3320  /***/ "Z23Y":
3321  /***/ (function(module, exports) {
3322  
3323  (function() { module.exports = window["wp"]["warning"]; }());
3324  
3325  /***/ }),
3326  
3327  /***/ "axFQ":
3328  /***/ (function(module, exports) {
3329  
3330  (function() { module.exports = window["wp"]["blockEditor"]; }());
3331  
3332  /***/ }),
3333  
3334  /***/ "bWcr":
3335  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3336  
3337  "use strict";
3338  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3339  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3340  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3341  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3342  
3343  
3344  /**
3345   * WordPress dependencies
3346   */
3347  
3348  const closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3349    xmlns: "http://www.w3.org/2000/svg",
3350    viewBox: "0 0 24 24"
3351  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3352    d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
3353  }));
3354  /* harmony default export */ __webpack_exports__["a"] = (closeSmall);
3355  
3356  
3357  /***/ }),
3358  
3359  /***/ "cDcd":
3360  /***/ (function(module, exports) {
3361  
3362  (function() { module.exports = window["React"]; }());
3363  
3364  /***/ }),
3365  
3366  /***/ "cjQ8":
3367  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3368  
3369  "use strict";
3370  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3371  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3372  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3373  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3374  
3375  
3376  /**
3377   * WordPress dependencies
3378   */
3379  
3380  const arrowLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3381    xmlns: "http://www.w3.org/2000/svg",
3382    viewBox: "0 0 24 24"
3383  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3384    d: "M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"
3385  }));
3386  /* harmony default export */ __webpack_exports__["a"] = (arrowLeft);
3387  
3388  
3389  /***/ }),
3390  
3391  /***/ "dSQ2":
3392  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3393  
3394  "use strict";
3395  // ESM COMPAT FLAG
3396  __webpack_require__.r(__webpack_exports__);
3397  
3398  // EXPORTS
3399  __webpack_require__.d(__webpack_exports__, "reinitializeEditor", function() { return /* binding */ reinitializeEditor; });
3400  __webpack_require__.d(__webpack_exports__, "initializeEditor", function() { return /* binding */ initializeEditor; });
3401  __webpack_require__.d(__webpack_exports__, "PluginBlockSettingsMenuItem", function() { return /* reexport */ plugin_block_settings_menu_item; });
3402  __webpack_require__.d(__webpack_exports__, "PluginDocumentSettingPanel", function() { return /* reexport */ plugin_document_setting_panel["a" /* default */]; });
3403  __webpack_require__.d(__webpack_exports__, "PluginMoreMenuItem", function() { return /* reexport */ plugin_more_menu_item; });
3404  __webpack_require__.d(__webpack_exports__, "PluginPostPublishPanel", function() { return /* reexport */ plugin_post_publish_panel; });
3405  __webpack_require__.d(__webpack_exports__, "PluginPostStatusInfo", function() { return /* reexport */ plugin_post_status_info; });
3406  __webpack_require__.d(__webpack_exports__, "PluginPrePublishPanel", function() { return /* reexport */ plugin_pre_publish_panel; });
3407  __webpack_require__.d(__webpack_exports__, "PluginSidebar", function() { return /* reexport */ PluginSidebarEditPost; });
3408  __webpack_require__.d(__webpack_exports__, "PluginSidebarMoreMenuItem", function() { return /* reexport */ PluginSidebarMoreMenuItem; });
3409  __webpack_require__.d(__webpack_exports__, "__experimentalFullscreenModeClose", function() { return /* reexport */ fullscreen_mode_close; });
3410  __webpack_require__.d(__webpack_exports__, "__experimentalMainDashboardButton", function() { return /* reexport */ main_dashboard_button; });
3411  __webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store["a" /* store */]; });
3412  
3413  // EXTERNAL MODULE: external ["wp","element"]
3414  var external_wp_element_ = __webpack_require__("GRId");
3415  
3416  // EXTERNAL MODULE: external ["wp","coreData"]
3417  var external_wp_coreData_ = __webpack_require__("jZUy");
3418  
3419  // EXTERNAL MODULE: external ["wp","blockEditor"]
3420  var external_wp_blockEditor_ = __webpack_require__("axFQ");
3421  
3422  // EXTERNAL MODULE: external ["wp","editor"]
3423  var external_wp_editor_ = __webpack_require__("jSdM");
3424  
3425  // EXTERNAL MODULE: external ["wp","blockLibrary"]
3426  var external_wp_blockLibrary_ = __webpack_require__("QyPg");
3427  
3428  // EXTERNAL MODULE: external ["wp","hooks"]
3429  var external_wp_hooks_ = __webpack_require__("g56x");
3430  
3431  // EXTERNAL MODULE: external ["wp","mediaUtils"]
3432  var external_wp_mediaUtils_ = __webpack_require__("6aBm");
3433  
3434  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js
3435  /**
3436   * WordPress dependencies
3437   */
3438  
3439  
3440  
3441  const replaceMediaUpload = () => external_wp_mediaUtils_["MediaUpload"];
3442  
3443  Object(external_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-post/replace-media-upload', replaceMediaUpload);
3444  
3445  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
3446  var esm_extends = __webpack_require__("wx14");
3447  
3448  // EXTERNAL MODULE: external "lodash"
3449  var external_lodash_ = __webpack_require__("YLtl");
3450  
3451  // EXTERNAL MODULE: external ["wp","blocks"]
3452  var external_wp_blocks_ = __webpack_require__("HSyU");
3453  
3454  // EXTERNAL MODULE: external ["wp","components"]
3455  var external_wp_components_ = __webpack_require__("tI+e");
3456  
3457  // EXTERNAL MODULE: external ["wp","data"]
3458  var external_wp_data_ = __webpack_require__("1ZqX");
3459  
3460  // EXTERNAL MODULE: external ["wp","i18n"]
3461  var external_wp_i18n_ = __webpack_require__("l3Sj");
3462  
3463  // EXTERNAL MODULE: external ["wp","compose"]
3464  var external_wp_compose_ = __webpack_require__("K9lf");
3465  
3466  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js
3467  
3468  
3469  
3470  /**
3471   * External dependencies
3472   */
3473  
3474  /**
3475   * WordPress dependencies
3476   */
3477  
3478  
3479  
3480  
3481  
3482  
3483  
3484  
3485  const enhance = Object(external_wp_compose_["compose"])(
3486  /**
3487   * For blocks whose block type doesn't support `multiple`, provides the
3488   * wrapped component with `originalBlockClientId` -- a reference to the
3489   * first block of the same type in the content -- if and only if that
3490   * "original" block is not the current one. Thus, an inexisting
3491   * `originalBlockClientId` prop signals that the block is valid.
3492   *
3493   * @param {WPComponent} WrappedBlockEdit A filtered BlockEdit instance.
3494   *
3495   * @return {WPComponent} Enhanced component with merged state data props.
3496   */
3497  Object(external_wp_data_["withSelect"])((select, block) => {
3498    const multiple = Object(external_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true); // For block types with `multiple` support, there is no "original
3499    // block" to be found in the content, as the block itself is valid.
3500  
3501    if (multiple) {
3502      return {};
3503    } // Otherwise, only pass `originalBlockClientId` if it refers to a different
3504    // block from the current one.
3505  
3506  
3507    const blocks = select(external_wp_blockEditor_["store"]).getBlocks();
3508    const firstOfSameType = Object(external_lodash_["find"])(blocks, ({
3509      name
3510    }) => block.name === name);
3511    const isInvalid = firstOfSameType && firstOfSameType.clientId !== block.clientId;
3512    return {
3513      originalBlockClientId: isInvalid && firstOfSameType.clientId
3514    };
3515  }), Object(external_wp_data_["withDispatch"])((dispatch, {
3516    originalBlockClientId
3517  }) => ({
3518    selectFirst: () => dispatch(external_wp_blockEditor_["store"]).selectBlock(originalBlockClientId)
3519  })));
3520  const withMultipleValidation = Object(external_wp_compose_["createHigherOrderComponent"])(BlockEdit => {
3521    return enhance(({
3522      originalBlockClientId,
3523      selectFirst,
3524      ...props
3525    }) => {
3526      if (!originalBlockClientId) {
3527        return Object(external_wp_element_["createElement"])(BlockEdit, props);
3528      }
3529  
3530      const blockType = Object(external_wp_blocks_["getBlockType"])(props.name);
3531      const outboundType = getOutboundType(props.name);
3532      return [Object(external_wp_element_["createElement"])("div", {
3533        key: "invalid-preview",
3534        style: {
3535          minHeight: '60px'
3536        }
3537      }, Object(external_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({
3538        key: "block-edit"
3539      }, props))), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["Warning"], {
3540        key: "multiple-use-warning",
3541        actions: [Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3542          key: "find-original",
3543          isSecondary: true,
3544          onClick: selectFirst
3545        }, Object(external_wp_i18n_["__"])('Find original')), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3546          key: "remove",
3547          isSecondary: true,
3548          onClick: () => props.onReplace([])
3549        }, Object(external_wp_i18n_["__"])('Remove')), outboundType && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3550          key: "transform",
3551          isSecondary: true,
3552          onClick: () => props.onReplace(Object(external_wp_blocks_["createBlock"])(outboundType.name, props.attributes))
3553        }, Object(external_wp_i18n_["__"])('Transform into:'), " ", outboundType.title)]
3554      }, Object(external_wp_element_["createElement"])("strong", null, blockType.title, ": "), Object(external_wp_i18n_["__"])('This block can only be used once.'))];
3555    });
3556  }, 'withMultipleValidation');
3557  /**
3558   * Given a base block name, returns the default block type to which to offer
3559   * transforms.
3560   *
3561   * @param {string} blockName Base block name.
3562   *
3563   * @return {?Object} The chosen default block type.
3564   */
3565  
3566  function getOutboundType(blockName) {
3567    // Grab the first outbound transform
3568    const transform = Object(external_wp_blocks_["findTransform"])(Object(external_wp_blocks_["getBlockTransforms"])('to', blockName), ({
3569      type,
3570      blocks
3571    }) => type === 'block' && blocks.length === 1 // What about when .length > 1?
3572    );
3573  
3574    if (!transform) {
3575      return null;
3576    }
3577  
3578    return Object(external_wp_blocks_["getBlockType"])(transform.blocks[0]);
3579  }
3580  
3581  Object(external_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post/validate-multiple-use/with-multiple-validation', withMultipleValidation);
3582  
3583  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/index.js
3584  /**
3585   * Internal dependencies
3586   */
3587  
3588  
3589  
3590  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
3591  var external = __webpack_require__("K+tz");
3592  
3593  // EXTERNAL MODULE: external ["wp","plugins"]
3594  var external_wp_plugins_ = __webpack_require__("TvNi");
3595  
3596  // EXTERNAL MODULE: external ["wp","url"]
3597  var external_wp_url_ = __webpack_require__("Mmq9");
3598  
3599  // EXTERNAL MODULE: external ["wp","notices"]
3600  var external_wp_notices_ = __webpack_require__("onLe");
3601  
3602  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js
3603  
3604  
3605  /**
3606   * WordPress dependencies
3607   */
3608  
3609  
3610  
3611  
3612  
3613  
3614  function CopyContentMenuItem() {
3615    const {
3616      createNotice
3617    } = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]);
3618    const getText = Object(external_wp_data_["useSelect"])(select => () => select(external_wp_editor_["store"]).getEditedPostAttribute('content'), []);
3619  
3620    function onSuccess() {
3621      createNotice('info', Object(external_wp_i18n_["__"])('All content copied.'), {
3622        isDismissible: true,
3623        type: 'snackbar'
3624      });
3625    }
3626  
3627    const ref = Object(external_wp_compose_["useCopyToClipboard"])(getText, onSuccess);
3628    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3629      ref: ref
3630    }, Object(external_wp_i18n_["__"])('Copy all content'));
3631  }
3632  
3633  // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js + 5 modules
3634  var store = __webpack_require__("T40v");
3635  
3636  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/manage-blocks-menu-item/index.js
3637  
3638  
3639  /**
3640   * WordPress dependencies
3641   */
3642  
3643  
3644  
3645  /**
3646   * Internal dependencies
3647   */
3648  
3649  
3650  function ManageBlocksMenuItem({
3651    openModal
3652  }) {
3653    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3654      onClick: () => {
3655        openModal('edit-post/manage-blocks');
3656      }
3657    }, Object(external_wp_i18n_["__"])('Block Manager'));
3658  }
3659  /* harmony default export */ var manage_blocks_menu_item = (Object(external_wp_data_["withDispatch"])(dispatch => {
3660    const {
3661      openModal
3662    } = dispatch(store["a" /* store */]);
3663    return {
3664      openModal
3665    };
3666  })(ManageBlocksMenuItem));
3667  
3668  // EXTERNAL MODULE: external ["wp","keycodes"]
3669  var external_wp_keycodes_ = __webpack_require__("RxS6");
3670  
3671  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js
3672  
3673  
3674  /**
3675   * WordPress dependencies
3676   */
3677  
3678  
3679  
3680  
3681  /**
3682   * Internal dependencies
3683   */
3684  
3685  
3686  function KeyboardShortcutsHelpMenuItem({
3687    openModal
3688  }) {
3689    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3690      onClick: () => {
3691        openModal('edit-post/keyboard-shortcut-help');
3692      },
3693      shortcut: external_wp_keycodes_["displayShortcut"].access('h')
3694    }, Object(external_wp_i18n_["__"])('Keyboard shortcuts'));
3695  }
3696  /* harmony default export */ var keyboard_shortcuts_help_menu_item = (Object(external_wp_data_["withDispatch"])(dispatch => {
3697    const {
3698      openModal
3699    } = dispatch(store["a" /* store */]);
3700    return {
3701      openModal
3702    };
3703  })(KeyboardShortcutsHelpMenuItem));
3704  
3705  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js
3706  
3707  
3708  /**
3709   * External dependencies
3710   */
3711  
3712  /**
3713   * WordPress dependencies
3714   */
3715  
3716  
3717  
3718  const {
3719    Fill: ToolsMoreMenuGroup,
3720    Slot
3721  } = Object(external_wp_components_["createSlotFill"])('ToolsMoreMenuGroup');
3722  
3723  ToolsMoreMenuGroup.Slot = ({
3724    fillProps
3725  }) => Object(external_wp_element_["createElement"])(Slot, {
3726    fillProps: fillProps
3727  }, fills => !Object(external_lodash_["isEmpty"])(fills) && Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
3728    label: Object(external_wp_i18n_["__"])('Tools')
3729  }, fills));
3730  
3731  /* harmony default export */ var tools_more_menu_group = (ToolsMoreMenuGroup);
3732  
3733  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/welcome-guide-menu-item/index.js
3734  
3735  
3736  /**
3737   * WordPress dependencies
3738   */
3739  
3740  
3741  
3742  /**
3743   * Internal dependencies
3744   */
3745  
3746  
3747  function WelcomeGuideMenuItem() {
3748    const isTemplateMode = Object(external_wp_data_["useSelect"])(select => select(store["a" /* store */]).isEditingTemplate(), []);
3749    const {
3750      toggleFeature
3751    } = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
3752    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3753      onClick: () => toggleFeature(isTemplateMode ? 'welcomeGuideTemplate' : 'welcomeGuide')
3754    }, Object(external_wp_i18n_["__"])('Welcome Guide'));
3755  }
3756  
3757  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/index.js
3758  
3759  
3760  /**
3761   * WordPress dependencies
3762   */
3763  
3764  
3765  
3766  
3767  
3768  /**
3769   * Internal dependencies
3770   */
3771  
3772  
3773  
3774  
3775  
3776  
3777  Object(external_wp_plugins_["registerPlugin"])('edit-post', {
3778    render() {
3779      return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(tools_more_menu_group, null, ({
3780        onClose
3781      }) => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(manage_blocks_menu_item, {
3782        onSelect: onClose
3783      }), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3784        role: "menuitem",
3785        href: Object(external_wp_url_["addQueryArgs"])('edit.php', {
3786          post_type: 'wp_block'
3787        })
3788      }, Object(external_wp_i18n_["__"])('Manage Reusable blocks')), Object(external_wp_element_["createElement"])(keyboard_shortcuts_help_menu_item, {
3789        onSelect: onClose
3790      }), Object(external_wp_element_["createElement"])(WelcomeGuideMenuItem, null), Object(external_wp_element_["createElement"])(CopyContentMenuItem, null), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3791        role: "menuitem",
3792        icon: external["a" /* default */],
3793        href: Object(external_wp_i18n_["__"])('https://wordpress.org/support/article/wordpress-editor/'),
3794        target: "_blank",
3795        rel: "noopener noreferrer"
3796      }, Object(external_wp_i18n_["__"])('Help'), Object(external_wp_element_["createElement"])(external_wp_components_["VisuallyHidden"], {
3797        as: "span"
3798      },
3799      /* translators: accessibility text */
3800      Object(external_wp_i18n_["__"])('(opens in a new tab)'))))));
3801    }
3802  
3803  });
3804  
3805  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/prevent-event-discovery.js
3806  /* harmony default export */ var prevent_event_discovery = ({
3807    't a l e s o f g u t e n b e r g': event => {
3808      const {
3809        ownerDocument
3810      } = event.target;
3811  
3812      if (!ownerDocument.activeElement.classList.contains('edit-post-visual-editor') && ownerDocument.activeElement !== ownerDocument.body) {
3813        return;
3814      }
3815  
3816      event.preventDefault();
3817      window.wp.data.dispatch('core/block-editor').insertBlock(window.wp.blocks.createBlock('core/paragraph', {
3818        content: '🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️'
3819      }));
3820    }
3821  });
3822  
3823  // EXTERNAL MODULE: ./node_modules/classnames/index.js
3824  var classnames = __webpack_require__("TSYQ");
3825  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
3826  
3827  // EXTERNAL MODULE: ./node_modules/@wordpress/interface/build-module/index.js + 15 modules
3828  var build_module = __webpack_require__("U60i");
3829  
3830  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
3831  var external_wp_keyboardShortcuts_ = __webpack_require__("hF7m");
3832  
3833  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js
3834  
3835  
3836  /**
3837   * WordPress dependencies
3838   */
3839  
3840  
3841  
3842  
3843  
3844  
3845  /**
3846   * Internal dependencies
3847   */
3848  
3849  
3850  
3851  function TextEditor({
3852    onExit,
3853    isRichEditingEnabled
3854  }) {
3855    return Object(external_wp_element_["createElement"])("div", {
3856      className: "edit-post-text-editor"
3857    }, isRichEditingEnabled && Object(external_wp_element_["createElement"])("div", {
3858      className: "edit-post-text-editor__toolbar"
3859    }, Object(external_wp_element_["createElement"])("h2", null, Object(external_wp_i18n_["__"])('Editing code')), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3860      isTertiary: true,
3861      onClick: onExit,
3862      shortcut: external_wp_keycodes_["displayShortcut"].secondary('m')
3863    }, Object(external_wp_i18n_["__"])('Exit code editor')), Object(external_wp_element_["createElement"])(external_wp_editor_["TextEditorGlobalKeyboardShortcuts"], null)), Object(external_wp_element_["createElement"])("div", {
3864      className: "edit-post-text-editor__body"
3865    }, Object(external_wp_element_["createElement"])(external_wp_editor_["PostTitle"], null), Object(external_wp_element_["createElement"])(external_wp_editor_["PostTextEditor"], null)));
3866  }
3867  
3868  /* harmony default export */ var text_editor = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])(select => ({
3869    isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled
3870  })), Object(external_wp_data_["withDispatch"])(dispatch => {
3871    return {
3872      onExit() {
3873        dispatch(store["a" /* store */]).switchEditorMode('visual');
3874      }
3875  
3876    };
3877  }))(TextEditor));
3878  
3879  // CONCATENATED MODULE: ./node_modules/framer-motion/node_modules/tslib/tslib.es6.js
3880  /*! *****************************************************************************

3881  Copyright (c) Microsoft Corporation.

3882  

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

3884  purpose with or without fee is hereby granted.

3885  

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

3887  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

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

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

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

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

3892  PERFORMANCE OF THIS SOFTWARE.

3893  ***************************************************************************** */
3894  /* global Reflect, Promise */

3895  
3896  var extendStatics = function(d, b) {
3897      extendStatics = Object.setPrototypeOf ||
3898          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3899          function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3900      return extendStatics(d, b);
3901  };
3902  
3903  function __extends(d, b) {
3904      if (typeof b !== "function" && b !== null)
3905          throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3906      extendStatics(d, b);
3907      function __() { this.constructor = d; }
3908      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3909  }
3910  
3911  var __assign = function() {
3912      __assign = Object.assign || function __assign(t) {
3913          for (var s, i = 1, n = arguments.length; i < n; i++) {
3914              s = arguments[i];
3915              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3916          }
3917          return t;
3918      }
3919      return __assign.apply(this, arguments);
3920  }
3921  
3922  function __rest(s, e) {
3923      var t = {};
3924      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3925          t[p] = s[p];
3926      if (s != null && typeof Object.getOwnPropertySymbols === "function")
3927          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3928              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3929                  t[p[i]] = s[p[i]];
3930          }
3931      return t;
3932  }
3933  
3934  function __decorate(decorators, target, key, desc) {
3935      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3936      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3937      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3938      return c > 3 && r && Object.defineProperty(target, key, r), r;
3939  }
3940  
3941  function __param(paramIndex, decorator) {
3942      return function (target, key) { decorator(target, key, paramIndex); }
3943  }
3944  
3945  function __metadata(metadataKey, metadataValue) {
3946      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
3947  }
3948  
3949  function __awaiter(thisArg, _arguments, P, generator) {
3950      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3951      return new (P || (P = Promise))(function (resolve, reject) {
3952          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3953          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3954          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3955          step((generator = generator.apply(thisArg, _arguments || [])).next());
3956      });
3957  }
3958  
3959  function __generator(thisArg, body) {
3960      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3961      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3962      function verb(n) { return function (v) { return step([n, v]); }; }
3963      function step(op) {
3964          if (f) throw new TypeError("Generator is already executing.");
3965          while (_) try {
3966              if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
3967              if (y = 0, t) op = [op[0] & 2, t.value];
3968              switch (op[0]) {
3969                  case 0: case 1: t = op; break;
3970                  case 4: _.label++; return { value: op[1], done: false };
3971                  case 5: _.label++; y = op[1]; op = [0]; continue;
3972                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
3973                  default:
3974                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3975                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3976                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3977                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3978                      if (t[2]) _.ops.pop();
3979                      _.trys.pop(); continue;
3980              }
3981              op = body.call(thisArg, _);
3982          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3983          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3984      }
3985  }
3986  
3987  var __createBinding = Object.create ? (function(o, m, k, k2) {
3988      if (k2 === undefined) k2 = k;
3989      Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3990  }) : (function(o, m, k, k2) {
3991      if (k2 === undefined) k2 = k;
3992      o[k2] = m[k];
3993  });
3994  
3995  function __exportStar(m, o) {
3996      for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
3997  }
3998  
3999  function __values(o) {
4000      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4001      if (m) return m.call(o);
4002      if (o && typeof o.length === "number") return {
4003          next: function () {
4004              if (o && i >= o.length) o = void 0;
4005              return { value: o && o[i++], done: !o };
4006          }
4007      };
4008      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
4009  }
4010  
4011  function __read(o, n) {
4012      var m = typeof Symbol === "function" && o[Symbol.iterator];
4013      if (!m) return o;
4014      var i = m.call(o), r, ar = [], e;
4015      try {
4016          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
4017      }
4018      catch (error) { e = { error: error }; }
4019      finally {
4020          try {
4021              if (r && !r.done && (m = i["return"])) m.call(i);
4022          }
4023          finally { if (e) throw e.error; }
4024      }
4025      return ar;
4026  }
4027  
4028  /** @deprecated */

4029  function __spread() {
4030      for (var ar = [], i = 0; i < arguments.length; i++)
4031          ar = ar.concat(__read(arguments[i]));
4032      return ar;
4033  }
4034  
4035  /** @deprecated */

4036  function __spreadArrays() {
4037      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4038      for (var r = Array(s), k = 0, i = 0; i < il; i++)
4039          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
4040              r[k] = a[j];
4041      return r;
4042  }
4043  
4044  function __spreadArray(to, from, pack) {
4045      if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4046          if (ar || !(i in from)) {
4047              if (!ar) ar = Array.prototype.slice.call(from, 0, i);
4048              ar[i] = from[i];
4049          }
4050      }
4051      return to.concat(ar || Array.prototype.slice.call(from));
4052  }
4053  
4054  function __await(v) {
4055      return this instanceof __await ? (this.v = v, this) : new __await(v);
4056  }
4057  
4058  function __asyncGenerator(thisArg, _arguments, generator) {
4059      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
4060      var g = generator.apply(thisArg, _arguments || []), i, q = [];
4061      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
4062      function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
4063      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
4064      function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
4065      function fulfill(value) { resume("next", value); }
4066      function reject(value) { resume("throw", value); }
4067      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
4068  }
4069  
4070  function __asyncDelegator(o) {
4071      var i, p;
4072      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
4073      function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
4074  }
4075  
4076  function __asyncValues(o) {
4077      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
4078      var m = o[Symbol.asyncIterator], i;
4079      return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
4080      function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
4081      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
4082  }
4083  
4084  function __makeTemplateObject(cooked, raw) {
4085      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4086      return cooked;
4087  };
4088  
4089  var __setModuleDefault = Object.create ? (function(o, v) {
4090      Object.defineProperty(o, "default", { enumerable: true, value: v });
4091  }) : function(o, v) {
4092      o["default"] = v;
4093  };
4094  
4095  function __importStar(mod) {
4096      if (mod && mod.__esModule) return mod;
4097      var result = {};
4098      if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4099      __setModuleDefault(result, mod);
4100      return result;
4101  }
4102  
4103  function __importDefault(mod) {
4104      return (mod && mod.__esModule) ? mod : { default: mod };
4105  }
4106  
4107  function __classPrivateFieldGet(receiver, state, kind, f) {
4108      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4109      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4110      return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
4111  }
4112  
4113  function __classPrivateFieldSet(receiver, state, value, kind, f) {
4114      if (kind === "m") throw new TypeError("Private method is not writable");
4115      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4116      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4117      return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
4118  }
4119  
4120  // EXTERNAL MODULE: external "React"
4121  var external_React_ = __webpack_require__("cDcd");
4122  var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
4123  
4124  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/definitions.js
4125  var createDefinition = function (propNames) { return ({
4126      isEnabled: function (props) { return propNames.some(function (name) { return !!props[name]; }); },
4127  }); };
4128  var featureDefinitions = {
4129      measureLayout: createDefinition([
4130          "layout",
4131          "layoutId",
4132          "drag",
4133          "_layoutResetTransform",
4134      ]),
4135      animation: createDefinition([
4136          "animate",
4137          "exit",
4138          "variants",
4139          "whileHover",
4140          "whileTap",
4141          "whileFocus",
4142          "whileDrag",
4143      ]),
4144      exit: createDefinition(["exit"]),
4145      drag: createDefinition(["drag", "dragControls"]),
4146      focus: createDefinition(["whileFocus"]),
4147      hover: createDefinition(["whileHover", "onHoverStart", "onHoverEnd"]),
4148      tap: createDefinition(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
4149      pan: createDefinition([
4150          "onPan",
4151          "onPanStart",
4152          "onPanSessionStart",
4153          "onPanEnd",
4154      ]),
4155      layoutAnimation: createDefinition(["layout", "layoutId"]),
4156  };
4157  function loadFeatures(features) {
4158      for (var key in features) {
4159          var Component = features[key];
4160          if (Component !== null)
4161              featureDefinitions[key].Component = Component;
4162      }
4163  }
4164  
4165  
4166  
4167  // CONCATENATED MODULE: ./node_modules/hey-listen/dist/hey-listen.es.js
4168  var warning = function () { };
4169  var invariant = function () { };
4170  if (false) {}
4171  
4172  
4173  
4174  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LazyContext.js
4175  
4176  
4177  var LazyContext = Object(external_React_["createContext"])({ strict: false });
4178  
4179  
4180  
4181  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/use-features.js
4182  
4183  
4184  
4185  
4186  
4187  
4188  
4189  var featureNames = Object.keys(featureDefinitions);
4190  var numFeatures = featureNames.length;
4191  /**
4192   * Load features via renderless components based on the provided MotionProps.
4193   */
4194  function useFeatures(props, visualElement, preloadedFeatures) {
4195      var features = [];
4196      var lazyContext = Object(external_React_["useContext"])(LazyContext);
4197      if (!visualElement)
4198          return null;
4199      /**
4200       * If we're in development mode, check to make sure we're not rendering a motion component
4201       * as a child of LazyMotion, as this will break the file-size benefits of using it.
4202       */
4203      if (false) {}
4204      for (var i = 0; i < numFeatures; i++) {
4205          var name_1 = featureNames[i];
4206          var _a = featureDefinitions[name_1], isEnabled = _a.isEnabled, Component = _a.Component;
4207          /**
4208           * It might be possible in the future to use this moment to
4209           * dynamically request functionality. In initial tests this
4210           * was producing a lot of duplication amongst bundles.
4211           */
4212          if (isEnabled(props) && Component) {
4213              features.push(external_React_["createElement"](Component, __assign({ key: name_1 }, props, { visualElement: visualElement })));
4214          }
4215      }
4216      return features;
4217  }
4218  
4219  
4220  
4221  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionConfigContext.js
4222  
4223  
4224  /**
4225   * @public
4226   */
4227  var MotionConfigContext = Object(external_React_["createContext"])({
4228      transformPagePoint: function (p) { return p; },
4229      isStatic: false,
4230  });
4231  
4232  
4233  
4234  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/index.js
4235  
4236  
4237  var MotionContext = Object(external_React_["createContext"])({});
4238  function useVisualElementContext() {
4239      return Object(external_React_["useContext"])(MotionContext).visualElement;
4240  }
4241  
4242  
4243  
4244  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/PresenceContext.js
4245  
4246  
4247  /**
4248   * @public
4249   */
4250  var PresenceContext = Object(external_React_["createContext"])(null);
4251  
4252  
4253  
4254  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-constant.js
4255  
4256  
4257  /**
4258   * Creates a constant value over the lifecycle of a component.
4259   *
4260   * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer
4261   * a guarantee that it won't re-run for performance reasons later on. By using `useConstant`
4262   * you can ensure that initialisers don't execute twice or more.
4263   */
4264  function useConstant(init) {
4265      var ref = Object(external_React_["useRef"])(null);
4266      if (ref.current === null) {
4267          ref.current = init();
4268      }
4269      return ref.current;
4270  }
4271  
4272  
4273  
4274  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js
4275  
4276  
4277  
4278  
4279  /**
4280   * When a component is the child of `AnimatePresence`, it can use `usePresence`
4281   * to access information about whether it's still present in the React tree.
4282   *
4283   * ```jsx
4284   * import { usePresence } from "framer-motion"
4285   *
4286   * export const Component = () => {
4287   *   const [isPresent, safeToRemove] = usePresence()
4288   *
4289   *   useEffect(() => {
4290   *     !isPresent && setTimeout(safeToRemove, 1000)
4291   *   }, [isPresent])
4292   *
4293   *   return <div />
4294   * }
4295   * ```
4296   *
4297   * If `isPresent` is `false`, it means that a component has been removed the tree, but
4298   * `AnimatePresence` won't really remove it until `safeToRemove` has been called.
4299   *
4300   * @public
4301   */
4302  function usePresence() {
4303      var context = Object(external_React_["useContext"])(PresenceContext);
4304      if (context === null)
4305          return [true, null];
4306      var isPresent = context.isPresent, onExitComplete = context.onExitComplete, register = context.register;
4307      // It's safe to call the following hooks conditionally (after an early return) because the context will always
4308      // either be null or non-null for the lifespan of the component.
4309      // Replace with useOpaqueId when released in React
4310      var id = useUniqueId();
4311      Object(external_React_["useEffect"])(function () { return register(id); }, []);
4312      var safeToRemove = function () { return onExitComplete === null || onExitComplete === void 0 ? void 0 : onExitComplete(id); };
4313      return !isPresent && onExitComplete ? [false, safeToRemove] : [true];
4314  }
4315  /**
4316   * Similar to `usePresence`, except `useIsPresent` simply returns whether or not the component is present.
4317   * There is no `safeToRemove` function.
4318   *
4319   * ```jsx
4320   * import { useIsPresent } from "framer-motion"
4321   *
4322   * export const Component = () => {
4323   *   const isPresent = useIsPresent()
4324   *
4325   *   useEffect(() => {
4326   *     !isPresent && console.log("I've been removed!")
4327   *   }, [isPresent])
4328   *
4329   *   return <div />
4330   * }
4331   * ```
4332   *
4333   * @public
4334   */
4335  function useIsPresent() {
4336      return use_presence_isPresent(Object(external_React_["useContext"])(PresenceContext));
4337  }
4338  function use_presence_isPresent(context) {
4339      return context === null ? true : context.isPresent;
4340  }
4341  var counter = 0;
4342  var incrementId = function () { return counter++; };
4343  var useUniqueId = function () { return useConstant(incrementId); };
4344  
4345  
4346  
4347  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LayoutGroupContext.js
4348  
4349  
4350  /**
4351   * @internal
4352   */
4353  var LayoutGroupContext = Object(external_React_["createContext"])(null);
4354  
4355  
4356  
4357  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-browser.js
4358  var isBrowser = typeof window !== "undefined";
4359  
4360  
4361  
4362  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js
4363  
4364  
4365  
4366  var useIsomorphicLayoutEffect = isBrowser ? external_React_["useLayoutEffect"] : external_React_["useEffect"];
4367  
4368  
4369  
4370  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js
4371  
4372  
4373  
4374  
4375  
4376  
4377  
4378  
4379  
4380  
4381  function useLayoutId(_a) {
4382      var layoutId = _a.layoutId;
4383      var layoutGroupId = Object(external_React_["useContext"])(LayoutGroupContext);
4384      return layoutGroupId && layoutId !== undefined
4385          ? layoutGroupId + "-" + layoutId
4386          : layoutId;
4387  }
4388  function useVisualElement(Component, visualState, props, createVisualElement) {
4389      var config = Object(external_React_["useContext"])(MotionConfigContext);
4390      var lazyContext = Object(external_React_["useContext"])(LazyContext);
4391      var parent = useVisualElementContext();
4392      var presenceContext = Object(external_React_["useContext"])(PresenceContext);
4393      var layoutId = useLayoutId(props);
4394      var visualElementRef = Object(external_React_["useRef"])(undefined);
4395      /**
4396       * If we haven't preloaded a renderer, check to see if we have one lazy-loaded
4397       */
4398      if (!createVisualElement)
4399          createVisualElement = lazyContext.renderer;
4400      if (!visualElementRef.current && createVisualElement) {
4401          visualElementRef.current = createVisualElement(Component, {
4402              visualState: visualState,
4403              parent: parent,
4404              props: __assign(__assign({}, props), { layoutId: layoutId }),
4405              presenceId: presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.id,
4406              blockInitialAnimation: (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.initial) === false,
4407          });
4408      }
4409      var visualElement = visualElementRef.current;
4410      useIsomorphicLayoutEffect(function () {
4411          if (!visualElement)
4412              return;
4413          visualElement.setProps(__assign(__assign(__assign({}, config), props), { layoutId: layoutId }));
4414          visualElement.isPresent = use_presence_isPresent(presenceContext);
4415          visualElement.isPresenceRoot =
4416              !parent || parent.presenceId !== (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.id);
4417          /**
4418           * Fire a render to ensure the latest state is reflected on-screen.
4419           */
4420          visualElement.syncRender();
4421      });
4422      Object(external_React_["useEffect"])(function () {
4423          var _a;
4424          if (!visualElement)
4425              return;
4426          /**
4427           * In a future refactor we can replace the features-as-components and
4428           * have this loop through them all firing "effect" listeners
4429           */
4430          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.animateChanges();
4431      });
4432      useIsomorphicLayoutEffect(function () { return function () { return visualElement === null || visualElement === void 0 ? void 0 : visualElement.notifyUnmount(); }; }, []);
4433      return visualElement;
4434  }
4435  
4436  
4437  
4438  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-ref-object.js
4439  function isRefObject(ref) {
4440      return (typeof ref === "object" &&
4441          Object.prototype.hasOwnProperty.call(ref, "current"));
4442  }
4443  
4444  
4445  
4446  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js
4447  
4448  
4449  
4450  /**
4451   * Creates a ref function that, when called, hydrates the provided
4452   * external ref and VisualElement.
4453   */
4454  function useMotionRef(visualState, visualElement, externalRef) {
4455      return Object(external_React_["useCallback"])(function (instance) {
4456          var _a;
4457          instance && ((_a = visualState.mount) === null || _a === void 0 ? void 0 : _a.call(visualState, instance));
4458          if (visualElement) {
4459              instance
4460                  ? visualElement.mount(instance)
4461                  : visualElement.unmount();
4462          }
4463          if (externalRef) {
4464              if (typeof externalRef === "function") {
4465                  externalRef(instance);
4466              }
4467              else if (isRefObject(externalRef)) {
4468                  externalRef.current = instance;
4469              }
4470          }
4471      }, 
4472      /**
4473       * Only pass a new ref callback to React if we've received a visual element
4474       * factory. Otherwise we'll be mounting/remounting every time externalRef
4475       * or other dependencies change.
4476       */
4477      [visualElement]);
4478  }
4479  
4480  
4481  
4482  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/variants.js
4483  /**
4484   * Decides if the supplied variable is an array of variant labels
4485   */
4486  function isVariantLabels(v) {
4487      return Array.isArray(v);
4488  }
4489  /**
4490   * Decides if the supplied variable is variant label
4491   */
4492  function isVariantLabel(v) {
4493      return typeof v === "string" || isVariantLabels(v);
4494  }
4495  /**
4496   * Creates an object containing the latest state of every MotionValue on a VisualElement
4497   */
4498  function getCurrent(visualElement) {
4499      var current = {};
4500      visualElement.forEachValue(function (value, key) { return (current[key] = value.get()); });
4501      return current;
4502  }
4503  /**
4504   * Creates an object containing the latest velocity of every MotionValue on a VisualElement
4505   */
4506  function getVelocity(visualElement) {
4507      var velocity = {};
4508      visualElement.forEachValue(function (value, key) { return (velocity[key] = value.getVelocity()); });
4509      return velocity;
4510  }
4511  function resolveVariantFromProps(props, definition, custom, currentValues, currentVelocity) {
4512      var _a;
4513      if (currentValues === void 0) { currentValues = {}; }
4514      if (currentVelocity === void 0) { currentVelocity = {}; }
4515      if (typeof definition === "string") {
4516          definition = (_a = props.variants) === null || _a === void 0 ? void 0 : _a[definition];
4517      }
4518      return typeof definition === "function"
4519          ? definition(custom !== null && custom !== void 0 ? custom : props.custom, currentValues, currentVelocity)
4520          : definition;
4521  }
4522  function resolveVariant(visualElement, definition, custom) {
4523      var props = visualElement.getProps();
4524      return resolveVariantFromProps(props, definition, custom !== null && custom !== void 0 ? custom : props.custom, getCurrent(visualElement), getVelocity(visualElement));
4525  }
4526  function checkIfControllingVariants(props) {
4527      var _a;
4528      return (typeof ((_a = props.animate) === null || _a === void 0 ? void 0 : _a.start) === "function" ||
4529          isVariantLabel(props.initial) ||
4530          isVariantLabel(props.animate) ||
4531          isVariantLabel(props.whileHover) ||
4532          isVariantLabel(props.whileDrag) ||
4533          isVariantLabel(props.whileTap) ||
4534          isVariantLabel(props.whileFocus) ||
4535          isVariantLabel(props.exit));
4536  }
4537  function checkIfVariantNode(props) {
4538      return Boolean(checkIfControllingVariants(props) || props.variants);
4539  }
4540  
4541  
4542  
4543  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/utils.js
4544  
4545  
4546  function getCurrentTreeVariants(props, context) {
4547      if (checkIfControllingVariants(props)) {
4548          var initial = props.initial, animate = props.animate;
4549          return {
4550              initial: initial === false || isVariantLabel(initial)
4551                  ? initial
4552                  : undefined,
4553              animate: isVariantLabel(animate) ? animate : undefined,
4554          };
4555      }
4556      return props.inherit !== false ? context : {};
4557  }
4558  
4559  
4560  
4561  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/create.js
4562  
4563  
4564  
4565  
4566  function useCreateMotionContext(props, isStatic) {
4567      var _a = getCurrentTreeVariants(props, Object(external_React_["useContext"])(MotionContext)), initial = _a.initial, animate = _a.animate;
4568      return Object(external_React_["useMemo"])(function () { return ({ initial: initial, animate: animate }); }, 
4569      /**
4570       * Only break memoisation in static mode
4571       */
4572      isStatic
4573          ? [
4574              variantLabelsAsDependency(initial),
4575              variantLabelsAsDependency(animate),
4576          ]
4577          : []);
4578  }
4579  function variantLabelsAsDependency(prop) {
4580      return Array.isArray(prop) ? prop.join(" ") : prop;
4581  }
4582  
4583  
4584  
4585  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/index.js
4586  
4587  
4588  
4589  
4590  
4591  
4592  
4593  
4594  
4595  
4596  
4597  /**
4598   * Create a `motion` component.
4599   *
4600   * This function accepts a Component argument, which can be either a string (ie "div"
4601   * for `motion.div`), or an actual React component.
4602   *
4603   * Alongside this is a config option which provides a way of rendering the provided
4604   * component "offline", or outside the React render cycle.
4605   *
4606   * @internal
4607   */
4608  function createMotionComponent(_a) {
4609      var preloadedFeatures = _a.preloadedFeatures, createVisualElement = _a.createVisualElement, useRender = _a.useRender, useVisualState = _a.useVisualState, Component = _a.Component;
4610      preloadedFeatures && loadFeatures(preloadedFeatures);
4611      function MotionComponent(props, externalRef) {
4612          /**
4613           * If we're rendering in a static environment, we only visually update the component
4614           * as a result of a React-rerender rather than interactions or animations. This
4615           * means we don't need to load additional memory structures like VisualElement,
4616           * or any gesture/animation features.
4617           */
4618          var isStatic = Object(external_React_["useContext"])(MotionConfigContext).isStatic;
4619          var features = null;
4620          /**
4621           * Create the tree context. This is memoized and will only trigger renders
4622           * when the current tree variant changes in static mode.
4623           */
4624          var context = useCreateMotionContext(props, isStatic);
4625          /**
4626           *
4627           */
4628          var visualState = useVisualState(props, isStatic);
4629          if (!isStatic && isBrowser) {
4630              /**
4631               * Create a VisualElement for this component. A VisualElement provides a common
4632               * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as
4633               * providing a way of rendering to these APIs outside of the React render loop
4634               * for more performant animations and interactions
4635               */
4636              context.visualElement = useVisualElement(Component, visualState, props, createVisualElement);
4637              /**
4638               * Load Motion gesture and animation features. These are rendered as renderless
4639               * components so each feature can optionally make use of React lifecycle methods.
4640               *
4641               * TODO: The intention is to move these away from a React-centric to a
4642               * VisualElement-centric lifecycle scheme.
4643               */
4644              features = useFeatures(props, context.visualElement, preloadedFeatures);
4645          }
4646          /**
4647           * The mount order and hierarchy is specific to ensure our element ref
4648           * is hydrated by the time features fire their effects.
4649           */
4650          return (external_React_["createElement"](external_React_["Fragment"], null,
4651              external_React_["createElement"](MotionContext.Provider, { value: context }, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic)),
4652              features));
4653      }
4654      return Object(external_React_["forwardRef"])(MotionComponent);
4655  }
4656  
4657  
4658  
4659  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/motion-proxy.js
4660  
4661  
4662  /**
4663   * Convert any React component into a `motion` component. The provided component
4664   * **must** use `React.forwardRef` to the underlying DOM component you want to animate.
4665   *
4666   * ```jsx
4667   * const Component = React.forwardRef((props, ref) => {
4668   *   return <div ref={ref} />
4669   * })
4670   *
4671   * const MotionComponent = motion(Component)
4672   * ```
4673   *
4674   * @public
4675   */
4676  function createMotionProxy(createConfig) {
4677      function custom(Component, customMotionComponentConfig) {
4678          if (customMotionComponentConfig === void 0) { customMotionComponentConfig = {}; }
4679          return createMotionComponent(createConfig(Component, customMotionComponentConfig));
4680      }
4681      /**
4682       * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.
4683       * Rather than generating them anew every render.
4684       */
4685      var componentCache = new Map();
4686      return new Proxy(custom, {
4687          /**
4688           * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
4689           * The prop name is passed through as `key` and we can use that to generate a `motion`
4690           * DOM component with that name.
4691           */
4692          get: function (_target, key) {
4693              /**
4694               * If this element doesn't exist in the component cache, create it and cache.
4695               */
4696              if (!componentCache.has(key)) {
4697                  componentCache.set(key, custom(key));
4698              }
4699              return componentCache.get(key);
4700          },
4701      });
4702  }
4703  
4704  
4705  
4706  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js
4707  /**
4708   * We keep these listed seperately as we use the lowercase tag names as part
4709   * of the runtime bundle to detect SVG components
4710   */
4711  var lowercaseSVGElements = [
4712      "animate",
4713      "circle",
4714      "defs",
4715      "desc",
4716      "ellipse",
4717      "g",
4718      "image",
4719      "line",
4720      "filter",
4721      "marker",
4722      "mask",
4723      "metadata",
4724      "path",
4725      "pattern",
4726      "polygon",
4727      "polyline",
4728      "rect",
4729      "stop",
4730      "svg",
4731      "switch",
4732      "symbol",
4733      "text",
4734      "tspan",
4735      "use",
4736      "view",
4737  ];
4738  
4739  
4740  
4741  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js
4742  
4743  
4744  function isSVGComponent(Component) {
4745      if (
4746      /**
4747       * If it's not a string, it's a custom React component. Currently we only support
4748       * HTML custom React components.
4749       */
4750      typeof Component !== "string" ||
4751          /**
4752           * If it contains a dash, the element is a custom HTML webcomponent.
4753           */
4754          Component.includes("-")) {
4755          return false;
4756      }
4757      else if (
4758      /**
4759       * If it's in our list of lowercase SVG tags, it's an SVG component
4760       */
4761      lowercaseSVGElements.indexOf(Component) > -1 ||
4762          /**
4763           * If it contains a capital letter, it's an SVG component
4764           */
4765          /[A-Z]/.test(Component)) {
4766          return true;
4767      }
4768      return false;
4769  }
4770  
4771  
4772  
4773  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/projection/scale-correction.js
4774  var valueScaleCorrection = {};
4775  /**
4776   * @internal
4777   */
4778  function addScaleCorrection(correctors) {
4779      for (var key in correctors) {
4780          valueScaleCorrection[key] = correctors[key];
4781      }
4782  }
4783  
4784  
4785  
4786  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/transform.js
4787  /**
4788   * A list of all transformable axes. We'll use this list to generated a version
4789   * of each axes for each transform.
4790   */
4791  var transformAxes = ["", "X", "Y", "Z"];
4792  /**
4793   * An ordered array of each transformable value. By default, transform values
4794   * will be sorted to this order.
4795   */
4796  var transform_order = ["translate", "scale", "rotate", "skew"];
4797  /**
4798   * Generate a list of every possible transform key.
4799   */
4800  var transformProps = ["transformPerspective", "x", "y", "z"];
4801  transform_order.forEach(function (operationKey) {
4802      return transformAxes.forEach(function (axesKey) {
4803          return transformProps.push(operationKey + axesKey);
4804      });
4805  });
4806  /**
4807   * A function to use with Array.sort to sort transform keys by their default order.
4808   */
4809  function sortTransformProps(a, b) {
4810      return transformProps.indexOf(a) - transformProps.indexOf(b);
4811  }
4812  /**
4813   * A quick lookup for transform props.
4814   */
4815  var transformPropSet = new Set(transformProps);
4816  function isTransformProp(key) {
4817      return transformPropSet.has(key);
4818  }
4819  /**
4820   * A quick lookup for transform origin props
4821   */
4822  var transformOriginProps = new Set(["originX", "originY", "originZ"]);
4823  function isTransformOriginProp(key) {
4824      return transformOriginProps.has(key);
4825  }
4826  
4827  
4828  
4829  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js
4830  
4831  
4832  
4833  function isForcedMotionValue(key, _a) {
4834      var layout = _a.layout, layoutId = _a.layoutId;
4835      return (isTransformProp(key) ||
4836          isTransformOriginProp(key) ||
4837          ((layout || layoutId !== undefined) &&
4838              (!!valueScaleCorrection[key] || key === "opacity")));
4839  }
4840  
4841  
4842  
4843  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/utils/is-motion-value.js
4844  var isMotionValue = function (value) {
4845      return value !== null && typeof value === "object" && value.getVelocity;
4846  };
4847  
4848  
4849  
4850  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/build-transform.js
4851  
4852  
4853  var translateAlias = {
4854      x: "translateX",
4855      y: "translateY",
4856      z: "translateZ",
4857      transformPerspective: "perspective",
4858  };
4859  /**
4860   * Build a CSS transform style from individual x/y/scale etc properties.
4861   *
4862   * This outputs with a default order of transforms/scales/rotations, this can be customised by
4863   * providing a transformTemplate function.
4864   */
4865  function buildTransform(_a, _b, transformIsDefault, transformTemplate) {
4866      var transform = _a.transform, transformKeys = _a.transformKeys;
4867      var _c = _b.enableHardwareAcceleration, enableHardwareAcceleration = _c === void 0 ? true : _c, _d = _b.allowTransformNone, allowTransformNone = _d === void 0 ? true : _d;
4868      // The transform string we're going to build into.
4869      var transformString = "";
4870      // Transform keys into their default order - this will determine the output order.
4871      transformKeys.sort(sortTransformProps);
4872      // Track whether the defined transform has a defined z so we don't add a
4873      // second to enable hardware acceleration
4874      var transformHasZ = false;
4875      // Loop over each transform and build them into transformString
4876      var numTransformKeys = transformKeys.length;
4877      for (var i = 0; i < numTransformKeys; i++) {
4878          var key = transformKeys[i];
4879          transformString += (translateAlias[key] || key) + "(" + transform[key] + ") ";
4880          if (key === "z")
4881              transformHasZ = true;
4882      }
4883      if (!transformHasZ && enableHardwareAcceleration) {
4884          transformString += "translateZ(0)";
4885      }
4886      else {
4887          transformString = transformString.trim();
4888      }
4889      // If we have a custom `transform` template, pass our transform values and
4890      // generated transformString to that before returning
4891      if (transformTemplate) {
4892          transformString = transformTemplate(transform, transformIsDefault ? "" : transformString);
4893      }
4894      else if (allowTransformNone && transformIsDefault) {
4895          transformString = "none";
4896      }
4897      return transformString;
4898  }
4899  /**
4900   * Build a transformOrigin style. Uses the same defaults as the browser for
4901   * undefined origins.
4902   */
4903  function buildTransformOrigin(_a) {
4904      var _b = _a.originX, originX = _b === void 0 ? "50%" : _b, _c = _a.originY, originY = _c === void 0 ? "50%" : _c, _d = _a.originZ, originZ = _d === void 0 ? 0 : _d;
4905      return originX + " " + originY + " " + originZ;
4906  }
4907  
4908  
4909  
4910  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js
4911  /**
4912   * Returns true if the provided key is a CSS variable
4913   */
4914  function isCSSVariable(key) {
4915      return key.startsWith("--");
4916  }
4917  
4918  
4919  
4920  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js
4921  /**
4922   * Provided a value and a ValueType, returns the value as that value type.
4923   */
4924  var getValueAsType = function (value, type) {
4925      return type && typeof value === "number"
4926          ? type.transform(value)
4927          : value;
4928  };
4929  
4930  
4931  
4932  // CONCATENATED MODULE: ./node_modules/style-value-types/node_modules/tslib/tslib.es6.js
4933  /*! *****************************************************************************

4934  Copyright (c) Microsoft Corporation.

4935  

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

4937  purpose with or without fee is hereby granted.

4938  

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

4940  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

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

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

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

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

4945  PERFORMANCE OF THIS SOFTWARE.

4946  ***************************************************************************** */
4947  /* global Reflect, Promise */

4948  
4949  var tslib_es6_extendStatics = function(d, b) {
4950      tslib_es6_extendStatics = Object.setPrototypeOf ||
4951          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4952          function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4953      return tslib_es6_extendStatics(d, b);
4954  };
4955  
4956  function tslib_es6_extends(d, b) {
4957      if (typeof b !== "function" && b !== null)
4958          throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4959      tslib_es6_extendStatics(d, b);
4960      function __() { this.constructor = d; }
4961      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4962  }
4963  
4964  var tslib_es6_assign = function() {
4965      tslib_es6_assign = Object.assign || function __assign(t) {
4966          for (var s, i = 1, n = arguments.length; i < n; i++) {
4967              s = arguments[i];
4968              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4969          }
4970          return t;
4971      }
4972      return tslib_es6_assign.apply(this, arguments);
4973  }
4974  
4975  function tslib_es6_rest(s, e) {
4976      var t = {};
4977      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4978          t[p] = s[p];
4979      if (s != null && typeof Object.getOwnPropertySymbols === "function")
4980          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4981              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4982                  t[p[i]] = s[p[i]];
4983          }
4984      return t;
4985  }
4986  
4987  function tslib_es6_decorate(decorators, target, key, desc) {
4988      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4989      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4990      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4991      return c > 3 && r && Object.defineProperty(target, key, r), r;
4992  }
4993  
4994  function tslib_es6_param(paramIndex, decorator) {
4995      return function (target, key) { decorator(target, key, paramIndex); }
4996  }
4997  
4998  function tslib_es6_metadata(metadataKey, metadataValue) {
4999      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
5000  }
5001  
5002  function tslib_es6_awaiter(thisArg, _arguments, P, generator) {
5003      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5004      return new (P || (P = Promise))(function (resolve, reject) {
5005          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5006          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5007          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
5008          step((generator = generator.apply(thisArg, _arguments || [])).next());
5009      });
5010  }
5011  
5012  function tslib_es6_generator(thisArg, body) {
5013      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
5014      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5015      function verb(n) { return function (v) { return step([n, v]); }; }
5016      function step(op) {
5017          if (f) throw new TypeError("Generator is already executing.");
5018          while (_) try {
5019              if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
5020              if (y = 0, t) op = [op[0] & 2, t.value];
5021              switch (op[0]) {
5022                  case 0: case 1: t = op; break;
5023                  case 4: _.label++; return { value: op[1], done: false };
5024                  case 5: _.label++; y = op[1]; op = [0]; continue;
5025                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
5026                  default:
5027                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
5028                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
5029                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
5030                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
5031                      if (t[2]) _.ops.pop();
5032                      _.trys.pop(); continue;
5033              }
5034              op = body.call(thisArg, _);
5035          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
5036          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5037      }
5038  }
5039  
5040  var tslib_es6_createBinding = Object.create ? (function(o, m, k, k2) {
5041      if (k2 === undefined) k2 = k;
5042      Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5043  }) : (function(o, m, k, k2) {
5044      if (k2 === undefined) k2 = k;
5045      o[k2] = m[k];
5046  });
5047  
5048  function tslib_es6_exportStar(m, o) {
5049      for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) tslib_es6_createBinding(o, m, p);
5050  }
5051  
5052  function tslib_es6_values(o) {
5053      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5054      if (m) return m.call(o);
5055      if (o && typeof o.length === "number") return {
5056          next: function () {
5057              if (o && i >= o.length) o = void 0;
5058              return { value: o && o[i++], done: !o };
5059          }
5060      };
5061      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5062  }
5063  
5064  function tslib_es6_read(o, n) {
5065      var m = typeof Symbol === "function" && o[Symbol.iterator];
5066      if (!m) return o;
5067      var i = m.call(o), r, ar = [], e;
5068      try {
5069          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5070      }
5071      catch (error) { e = { error: error }; }
5072      finally {
5073          try {
5074              if (r && !r.done && (m = i["return"])) m.call(i);
5075          }
5076          finally { if (e) throw e.error; }
5077      }
5078      return ar;
5079  }
5080  
5081  /** @deprecated */

5082  function tslib_es6_spread() {
5083      for (var ar = [], i = 0; i < arguments.length; i++)
5084          ar = ar.concat(tslib_es6_read(arguments[i]));
5085      return ar;
5086  }
5087  
5088  /** @deprecated */

5089  function tslib_es6_spreadArrays() {
5090      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
5091      for (var r = Array(s), k = 0, i = 0; i < il; i++)
5092          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
5093              r[k] = a[j];
5094      return r;
5095  }
5096  
5097  function tslib_es6_spreadArray(to, from, pack) {
5098      if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5099          if (ar || !(i in from)) {
5100              if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5101              ar[i] = from[i];
5102          }
5103      }
5104      return to.concat(ar || Array.prototype.slice.call(from));
5105  }
5106  
5107  function tslib_es6_await(v) {
5108      return this instanceof tslib_es6_await ? (this.v = v, this) : new tslib_es6_await(v);
5109  }
5110  
5111  function tslib_es6_asyncGenerator(thisArg, _arguments, generator) {
5112      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5113      var g = generator.apply(thisArg, _arguments || []), i, q = [];
5114      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
5115      function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
5116      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
5117      function step(r) { r.value instanceof tslib_es6_await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
5118      function fulfill(value) { resume("next", value); }
5119      function reject(value) { resume("throw", value); }
5120      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
5121  }
5122  
5123  function tslib_es6_asyncDelegator(o) {
5124      var i, p;
5125      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
5126      function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: tslib_es6_await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
5127  }
5128  
5129  function tslib_es6_asyncValues(o) {
5130      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5131      var m = o[Symbol.asyncIterator], i;
5132      return m ? m.call(o) : (o = typeof tslib_es6_values === "function" ? tslib_es6_values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
5133      function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
5134      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
5135  }
5136  
5137  function tslib_es6_makeTemplateObject(cooked, raw) {
5138      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5139      return cooked;
5140  };
5141  
5142  var tslib_es6_setModuleDefault = Object.create ? (function(o, v) {
5143      Object.defineProperty(o, "default", { enumerable: true, value: v });
5144  }) : function(o, v) {
5145      o["default"] = v;
5146  };
5147  
5148  function tslib_es6_importStar(mod) {
5149      if (mod && mod.__esModule) return mod;
5150      var result = {};
5151      if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) tslib_es6_createBinding(result, mod, k);
5152      tslib_es6_setModuleDefault(result, mod);
5153      return result;
5154  }
5155  
5156  function tslib_es6_importDefault(mod) {
5157      return (mod && mod.__esModule) ? mod : { default: mod };
5158  }
5159  
5160  function tslib_es6_classPrivateFieldGet(receiver, state, kind, f) {
5161      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5162      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5163      return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5164  }
5165  
5166  function tslib_es6_classPrivateFieldSet(receiver, state, value, kind, f) {
5167      if (kind === "m") throw new TypeError("Private method is not writable");
5168      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5169      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5170      return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5171  }
5172  
5173  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/utils.js
5174  var clamp = function (min, max) { return function (v) {
5175      return Math.max(Math.min(v, max), min);
5176  }; };
5177  var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
5178  var floatRegex = /(-)?([\d]*\.?[\d])+/g;
5179  var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
5180  var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
5181  function isString(v) {
5182      return typeof v === 'string';
5183  }
5184  
5185  
5186  
5187  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/numbers/units.js
5188  
5189  
5190  
5191  var createUnitType = function (unit) { return ({
5192      test: function (v) {
5193          return isString(v) && v.endsWith(unit) && v.split(' ').length === 1;
5194      },
5195      parse: parseFloat,
5196      transform: function (v) { return "" + v + unit; },
5197  }); };
5198  var degrees = createUnitType('deg');
5199  var percent = createUnitType('%');
5200  var px = createUnitType('px');
5201  var vh = createUnitType('vh');
5202  var vw = createUnitType('vw');
5203  var progressPercentage = tslib_es6_assign(tslib_es6_assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
5204  
5205  
5206  
5207  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/numbers/index.js
5208  
5209  
5210  
5211  var numbers_number = {
5212      test: function (v) { return typeof v === 'number'; },
5213      parse: parseFloat,
5214      transform: function (v) { return v; },
5215  };
5216  var numbers_alpha = tslib_es6_assign(tslib_es6_assign({}, numbers_number), { transform: clamp(0, 1) });
5217  var numbers_scale = tslib_es6_assign(tslib_es6_assign({}, numbers_number), { default: 1 });
5218  
5219  
5220  
5221  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js
5222  
5223  
5224  
5225  var type_int_int = __assign(__assign({}, numbers_number), { transform: Math.round });
5226  
5227  
5228  
5229  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/number.js
5230  
5231  
5232  
5233  var numberValueTypes = {
5234      // Border props
5235      borderWidth: px,
5236      borderTopWidth: px,
5237      borderRightWidth: px,
5238      borderBottomWidth: px,
5239      borderLeftWidth: px,
5240      borderRadius: px,
5241      radius: px,
5242      borderTopLeftRadius: px,
5243      borderTopRightRadius: px,
5244      borderBottomRightRadius: px,
5245      borderBottomLeftRadius: px,
5246      // Positioning props
5247      width: px,
5248      maxWidth: px,
5249      height: px,
5250      maxHeight: px,
5251      size: px,
5252      top: px,
5253      right: px,
5254      bottom: px,
5255      left: px,
5256      // Spacing props
5257      padding: px,
5258      paddingTop: px,
5259      paddingRight: px,
5260      paddingBottom: px,
5261      paddingLeft: px,
5262      margin: px,
5263      marginTop: px,
5264      marginRight: px,
5265      marginBottom: px,
5266      marginLeft: px,
5267      // Transform props
5268      rotate: degrees,
5269      rotateX: degrees,
5270      rotateY: degrees,
5271      rotateZ: degrees,
5272      scale: numbers_scale,
5273      scaleX: numbers_scale,
5274      scaleY: numbers_scale,
5275      scaleZ: numbers_scale,
5276      skew: degrees,
5277      skewX: degrees,
5278      skewY: degrees,
5279      distance: px,
5280      translateX: px,
5281      translateY: px,
5282      translateZ: px,
5283      x: px,
5284      y: px,
5285      z: px,
5286      perspective: px,
5287      transformPerspective: px,
5288      opacity: numbers_alpha,
5289      originX: progressPercentage,
5290      originY: progressPercentage,
5291      originZ: px,
5292      // Misc
5293      zIndex: type_int_int,
5294      // SVG
5295      fillOpacity: numbers_alpha,
5296      strokeOpacity: numbers_alpha,
5297      numOctaves: type_int_int,
5298  };
5299  
5300  
5301  
5302  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/build-styles.js
5303  
5304  
5305  
5306  
5307  
5308  
5309  
5310  function buildHTMLStyles(state, latestValues, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin) {
5311      var _a;
5312      var style = state.style, vars = state.vars, transform = state.transform, transformKeys = state.transformKeys, transformOrigin = state.transformOrigin;
5313      // Empty the transformKeys array. As we're throwing out refs to its items
5314      // this might not be as cheap as suspected. Maybe using the array as a buffer
5315      // with a manual incrementation would be better.
5316      transformKeys.length = 0;
5317      // Track whether we encounter any transform or transformOrigin values.
5318      var hasTransform = false;
5319      var hasTransformOrigin = false;
5320      // Does the calculated transform essentially equal "none"?
5321      var transformIsNone = true;
5322      /**
5323       * Loop over all our latest animated values and decide whether to handle them
5324       * as a style or CSS variable.
5325       *
5326       * Transforms and transform origins are kept seperately for further processing.
5327       */
5328      for (var key in latestValues) {
5329          var value = latestValues[key];
5330          /**
5331           * If this is a CSS variable we don't do any further processing.
5332           */
5333          if (isCSSVariable(key)) {
5334              vars[key] = value;
5335              continue;
5336          }
5337          // Convert the value to its default value type, ie 0 -> "0px"
5338          var valueType = numberValueTypes[key];
5339          var valueAsType = getValueAsType(value, valueType);
5340          if (isTransformProp(key)) {
5341              // If this is a transform, flag to enable further transform processing
5342              hasTransform = true;
5343              transform[key] = valueAsType;
5344              transformKeys.push(key);
5345              // If we already know we have a non-default transform, early return
5346              if (!transformIsNone)
5347                  continue;
5348              // Otherwise check to see if this is a default transform
5349              if (value !== ((_a = valueType.default) !== null && _a !== void 0 ? _a : 0))
5350                  transformIsNone = false;
5351          }
5352          else if (isTransformOriginProp(key)) {
5353              transformOrigin[key] = valueAsType;
5354              // If this is a transform origin, flag and enable further transform-origin processing
5355              hasTransformOrigin = true;
5356          }
5357          else {
5358              /**
5359               * If layout projection is on, and we need to perform scale correction for this
5360               * value type, perform it.
5361               */
5362              if ((projection === null || projection === void 0 ? void 0 : projection.isHydrated) &&
5363                  (layoutState === null || layoutState === void 0 ? void 0 : layoutState.isHydrated) &&
5364                  valueScaleCorrection[key]) {
5365                  var correctedValue = valueScaleCorrection[key].process(value, layoutState, projection);
5366                  /**
5367                   * Scale-correctable values can define a number of other values to break
5368                   * down into. For instance borderRadius needs applying to borderBottomLeftRadius etc
5369                   */
5370                  var applyTo = valueScaleCorrection[key].applyTo;
5371                  if (applyTo) {
5372                      var num = applyTo.length;
5373                      for (var i = 0; i < num; i++) {
5374                          style[applyTo[i]] = correctedValue;
5375                      }
5376                  }
5377                  else {
5378                      style[key] = correctedValue;
5379                  }
5380              }
5381              else {
5382                  style[key] = valueAsType;
5383              }
5384          }
5385      }
5386      if (layoutState &&
5387          projection &&
5388          buildProjectionTransform &&
5389          buildProjectionTransformOrigin) {
5390          style.transform = buildProjectionTransform(layoutState.deltaFinal, layoutState.treeScale, hasTransform ? transform : undefined);
5391          if (transformTemplate) {
5392              style.transform = transformTemplate(transform, style.transform);
5393          }
5394          style.transformOrigin = buildProjectionTransformOrigin(layoutState);
5395      }
5396      else {
5397          if (hasTransform) {
5398              style.transform = buildTransform(state, options, transformIsNone, transformTemplate);
5399          }
5400          if (hasTransformOrigin) {
5401              style.transformOrigin = buildTransformOrigin(transformOrigin);
5402          }
5403      }
5404  }
5405  
5406  
5407  
5408  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js
5409  var createHtmlRenderState = function () { return ({
5410      style: {},
5411      transform: {},
5412      transformKeys: [],
5413      transformOrigin: {},
5414      vars: {},
5415  }); };
5416  
5417  
5418  
5419  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/use-props.js
5420  
5421  
5422  
5423  
5424  
5425  
5426  
5427  function copyRawValuesOnly(target, source, props) {
5428      for (var key in source) {
5429          if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {
5430              target[key] = source[key];
5431          }
5432      }
5433  }
5434  function useInitialMotionValues(_a, visualState, isStatic) {
5435      var transformTemplate = _a.transformTemplate;
5436      return Object(external_React_["useMemo"])(function () {
5437          var state = createHtmlRenderState();
5438          buildHTMLStyles(state, visualState, undefined, undefined, { enableHardwareAcceleration: !isStatic }, transformTemplate);
5439          var vars = state.vars, style = state.style;
5440          return __assign(__assign({}, vars), style);
5441      }, [visualState]);
5442  }
5443  function useStyle(props, visualState, isStatic) {
5444      var styleProp = props.style || {};
5445      var style = {};
5446      /**
5447       * Copy non-Motion Values straight into style
5448       */
5449      copyRawValuesOnly(style, styleProp, props);
5450      Object.assign(style, useInitialMotionValues(props, visualState, isStatic));
5451      if (props.transformValues) {
5452          style = props.transformValues(style);
5453      }
5454      return style;
5455  }
5456  function useHTMLProps(props, visualState, isStatic) {
5457      // The `any` isn't ideal but it is the type of createElement props argument
5458      var htmlProps = {};
5459      var style = useStyle(props, visualState, isStatic);
5460      if (Boolean(props.drag)) {
5461          // Disable the ghost element when a user drags
5462          htmlProps.draggable = false;
5463          // Disable text selection
5464          style.userSelect = style.WebkitUserSelect = style.WebkitTouchCallout =
5465              "none";
5466          // Disable scrolling on the draggable direction
5467          style.touchAction =
5468              props.drag === true
5469                  ? "none"
5470                  : "pan-" + (props.drag === "x" ? "y" : "x");
5471      }
5472      htmlProps.style = style;
5473      return htmlProps;
5474  }
5475  
5476  
5477  
5478  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/valid-prop.js
5479  /**
5480   * A list of all valid MotionProps.
5481   *
5482   * @internalremarks
5483   * This doesn't throw if a `MotionProp` name is missing - it should.
5484   */
5485  var validMotionProps = new Set([
5486      "initial",
5487      "animate",
5488      "exit",
5489      "style",
5490      "variants",
5491      "transition",
5492      "transformTemplate",
5493      "transformValues",
5494      "custom",
5495      "inherit",
5496      "layout",
5497      "layoutId",
5498      "_layoutResetTransform",
5499      "onLayoutAnimationComplete",
5500      "onViewportBoxUpdate",
5501      "onLayoutMeasure",
5502      "onBeforeLayoutMeasure",
5503      "onAnimationStart",
5504      "onAnimationComplete",
5505      "onUpdate",
5506      "onDragStart",
5507      "onDrag",
5508      "onDragEnd",
5509      "onMeasureDragConstraints",
5510      "onDirectionLock",
5511      "onDragTransitionEnd",
5512      "drag",
5513      "dragControls",
5514      "dragListener",
5515      "dragConstraints",
5516      "dragDirectionLock",
5517      "_dragX",
5518      "_dragY",
5519      "dragElastic",
5520      "dragMomentum",
5521      "dragPropagation",
5522      "dragTransition",
5523      "whileDrag",
5524      "onPan",
5525      "onPanStart",
5526      "onPanEnd",
5527      "onPanSessionStart",
5528      "onTap",
5529      "onTapStart",
5530      "onTapCancel",
5531      "onHoverStart",
5532      "onHoverEnd",
5533      "whileFocus",
5534      "whileTap",
5535      "whileHover",
5536  ]);
5537  /**
5538   * Check whether a prop name is a valid `MotionProp` key.
5539   *
5540   * @param key - Name of the property to check
5541   * @returns `true` is key is a valid `MotionProp`.
5542   *
5543   * @public
5544   */
5545  function isValidMotionProp(key) {
5546      return validMotionProps.has(key);
5547  }
5548  
5549  
5550  
5551  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js
5552  
5553  
5554  var shouldForward = function (key) { return !isValidMotionProp(key); };
5555  /**
5556   * Emotion and Styled Components both allow users to pass through arbitrary props to their components
5557   * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which
5558   * of these should be passed to the underlying DOM node.
5559   *
5560   * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props
5561   * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props
5562   * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of
5563   * `@emotion/is-prop-valid`, however to fix this problem we need to use it.
5564   *
5565   * By making it an optionalDependency we can offer this functionality only in the situations where it's
5566   * actually required.
5567   */
5568  try {
5569      var emotionIsPropValid_1 = __webpack_require__("9uj6").default;
5570      shouldForward = function (key) {
5571          // Handle events explicitly as Emotion validates them all as true
5572          if (key.startsWith("on")) {
5573              return !isValidMotionProp(key);
5574          }
5575          else {
5576              return emotionIsPropValid_1(key);
5577          }
5578      };
5579  }
5580  catch (_a) {
5581      // We don't need to actually do anything here - the fallback is the existing `isPropValid`.
5582  }
5583  function filterProps(props, isDom, forwardMotionProps) {
5584      var filteredProps = {};
5585      for (var key in props) {
5586          if (shouldForward(key) ||
5587              (forwardMotionProps === true && isValidMotionProp(key)) ||
5588              (!isDom && !isValidMotionProp(key))) {
5589              filteredProps[key] = props[key];
5590          }
5591      }
5592      return filteredProps;
5593  }
5594  
5595  
5596  
5597  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js
5598  
5599  
5600  function calcOrigin(origin, offset, size) {
5601      return typeof origin === "string"
5602          ? origin
5603          : px.transform(offset + size * origin);
5604  }
5605  /**
5606   * The SVG transform origin defaults are different to CSS and is less intuitive,
5607   * so we use the measured dimensions of the SVG to reconcile these.
5608   */
5609  function calcSVGTransformOrigin(dimensions, originX, originY) {
5610      var pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);
5611      var pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);
5612      return pxOriginX + " " + pxOriginY;
5613  }
5614  
5615  
5616  
5617  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/path.js
5618  
5619  
5620  // Convert a progress 0-1 to a pixels value based on the provided length
5621  var progressToPixels = function (progress, length) {
5622      return px.transform(progress * length);
5623  };
5624  var dashKeys = {
5625      offset: "stroke-dashoffset",
5626      array: "stroke-dasharray",
5627  };
5628  var camelKeys = {
5629      offset: "strokeDashoffset",
5630      array: "strokeDasharray",
5631  };
5632  /**
5633   * Build SVG path properties. Uses the path's measured length to convert
5634   * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset
5635   * and stroke-dasharray attributes.
5636   *
5637   * This function is mutative to reduce per-frame GC.
5638   */
5639  function buildSVGPath(attrs, totalLength, length, spacing, offset, useDashCase) {
5640      if (spacing === void 0) { spacing = 1; }
5641      if (offset === void 0) { offset = 0; }
5642      if (useDashCase === void 0) { useDashCase = true; }
5643      // We use dash case when setting attributes directly to the DOM node and camel case
5644      // when defining props on a React component.
5645      var keys = useDashCase ? dashKeys : camelKeys;
5646      // Build the dash offset
5647      attrs[keys.offset] = progressToPixels(-offset, totalLength);
5648      // Build the dash array
5649      var pathLength = progressToPixels(length, totalLength);
5650      var pathSpacing = progressToPixels(spacing, totalLength);
5651      attrs[keys.array] = pathLength + " " + pathSpacing;
5652  }
5653  
5654  
5655  
5656  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js
5657  
5658  
5659  
5660  
5661  
5662  /**
5663   * Build SVG visual attrbutes, like cx and style.transform
5664   */
5665  function buildSVGAttrs(state, _a, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin) {
5666      var attrX = _a.attrX, attrY = _a.attrY, originX = _a.originX, originY = _a.originY, pathLength = _a.pathLength, _b = _a.pathSpacing, pathSpacing = _b === void 0 ? 1 : _b, _c = _a.pathOffset, pathOffset = _c === void 0 ? 0 : _c, 
5667      // This is object creation, which we try to avoid per-frame.
5668      latest = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
5669      buildHTMLStyles(state, latest, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin);
5670      state.attrs = state.style;
5671      state.style = {};
5672      var attrs = state.attrs, style = state.style, dimensions = state.dimensions, totalPathLength = state.totalPathLength;
5673      /**
5674       * However, we apply transforms as CSS transforms. So if we detect a transform we take it from attrs
5675       * and copy it into style.
5676       */
5677      if (attrs.transform) {
5678          if (dimensions)
5679              style.transform = attrs.transform;
5680          delete attrs.transform;
5681      }
5682      // Parse transformOrigin
5683      if (dimensions &&
5684          (originX !== undefined || originY !== undefined || style.transform)) {
5685          style.transformOrigin = calcSVGTransformOrigin(dimensions, originX !== undefined ? originX : 0.5, originY !== undefined ? originY : 0.5);
5686      }
5687      // Treat x/y not as shortcuts but as actual attributes
5688      if (attrX !== undefined)
5689          attrs.x = attrX;
5690      if (attrY !== undefined)
5691          attrs.y = attrY;
5692      // Build SVG path if one has been measured
5693      if (totalPathLength !== undefined && pathLength !== undefined) {
5694          buildSVGPath(attrs, totalPathLength, pathLength, pathSpacing, pathOffset, false);
5695      }
5696  }
5697  
5698  
5699  
5700  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js
5701  
5702  
5703  
5704  var createSvgRenderState = function () { return (__assign(__assign({}, createHtmlRenderState()), { attrs: {} })); };
5705  
5706  
5707  
5708  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/use-props.js
5709  
5710  
5711  
5712  
5713  
5714  
5715  function useSVGProps(props, visualState) {
5716      var visualProps = Object(external_React_["useMemo"])(function () {
5717          var state = createSvgRenderState();
5718          buildSVGAttrs(state, visualState, undefined, undefined, { enableHardwareAcceleration: false }, props.transformTemplate);
5719          return __assign(__assign({}, state.attrs), { style: __assign({}, state.style) });
5720      }, [visualState]);
5721      if (props.style) {
5722          var rawStyles = {};
5723          copyRawValuesOnly(rawStyles, props.style, props);
5724          visualProps.style = __assign(__assign({}, rawStyles), visualProps.style);
5725      }
5726      return visualProps;
5727  }
5728  
5729  
5730  
5731  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/use-render.js
5732  
5733  
5734  
5735  
5736  
5737  
5738  
5739  function createUseRender(forwardMotionProps) {
5740      if (forwardMotionProps === void 0) { forwardMotionProps = false; }
5741      var useRender = function (Component, props, ref, _a, isStatic) {
5742          var latestValues = _a.latestValues;
5743          var useVisualProps = isSVGComponent(Component)
5744              ? useSVGProps
5745              : useHTMLProps;
5746          var visualProps = useVisualProps(props, latestValues, isStatic);
5747          var filteredProps = filterProps(props, typeof Component === "string", forwardMotionProps);
5748          var elementProps = __assign(__assign(__assign({}, filteredProps), visualProps), { ref: ref });
5749          return Object(external_React_["createElement"])(Component, elementProps);
5750      };
5751      return useRender;
5752  }
5753  
5754  
5755  
5756  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js
5757  var CAMEL_CASE_PATTERN = /([a-z])([A-Z])/g;
5758  var REPLACE_TEMPLATE = "$1-$2";
5759  /**
5760   * Convert camelCase to dash-case properties.
5761   */
5762  var camelToDash = function (str) {
5763      return str.replace(CAMEL_CASE_PATTERN, REPLACE_TEMPLATE).toLowerCase();
5764  };
5765  
5766  
5767  
5768  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/render.js
5769  function renderHTML(element, _a) {
5770      var style = _a.style, vars = _a.vars;
5771      // Directly assign style into the Element's style prop. In tests Object.assign is the
5772      // fastest way to assign styles.
5773      Object.assign(element.style, style);
5774      // Loop over any CSS variables and assign those.
5775      for (var key in vars) {
5776          element.style.setProperty(key, vars[key]);
5777      }
5778  }
5779  
5780  
5781  
5782  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js
5783  /**
5784   * A set of attribute names that are always read/written as camel case.
5785   */
5786  var camelCaseAttributes = new Set([
5787      "baseFrequency",
5788      "diffuseConstant",
5789      "kernelMatrix",
5790      "kernelUnitLength",
5791      "keySplines",
5792      "keyTimes",
5793      "limitingConeAngle",
5794      "markerHeight",
5795      "markerWidth",
5796      "numOctaves",
5797      "targetX",
5798      "targetY",
5799      "surfaceScale",
5800      "specularConstant",
5801      "specularExponent",
5802      "stdDeviation",
5803      "tableValues",
5804      "viewBox",
5805      "gradientTransform",
5806  ]);
5807  
5808  
5809  
5810  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/render.js
5811  
5812  
5813  
5814  
5815  function renderSVG(element, renderState) {
5816      renderHTML(element, renderState);
5817      for (var key in renderState.attrs) {
5818          element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);
5819      }
5820  }
5821  
5822  
5823  
5824  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js
5825  
5826  
5827  
5828  function scrape_motion_values_scrapeMotionValuesFromProps(props) {
5829      var style = props.style;
5830      var newValues = {};
5831      for (var key in style) {
5832          if (isMotionValue(style[key]) || isForcedMotionValue(key, props)) {
5833              newValues[key] = style[key];
5834          }
5835      }
5836      return newValues;
5837  }
5838  
5839  
5840  
5841  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js
5842  
5843  
5844  
5845  function utils_scrape_motion_values_scrapeMotionValuesFromProps(props) {
5846      var newValues = scrape_motion_values_scrapeMotionValuesFromProps(props);
5847      for (var key in props) {
5848          if (isMotionValue(props[key])) {
5849              var targetKey = key === "x" || key === "y" ? "attr" + key.toUpperCase() : key;
5850              newValues[targetKey] = props[key];
5851          }
5852      }
5853      return newValues;
5854  }
5855  
5856  
5857  
5858  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js
5859  function isAnimationControls(v) {
5860      return typeof v === "object" && typeof v.start === "function";
5861  }
5862  
5863  
5864  
5865  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js
5866  var isKeyframesTarget = function (v) {
5867      return Array.isArray(v);
5868  };
5869  
5870  
5871  
5872  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/resolve-value.js
5873  
5874  
5875  var isCustomValue = function (v) {
5876      return Boolean(v && typeof v === "object" && v.mix && v.toValue);
5877  };
5878  var resolveFinalValueInKeyframes = function (v) {
5879      // TODO maybe throw if v.length - 1 is placeholder token?
5880      return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;
5881  };
5882  
5883  
5884  
5885  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js
5886  
5887  
5888  
5889  /**
5890   * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
5891   *
5892   * TODO: Remove and move to library
5893   *
5894   * @internal
5895   */
5896  function resolveMotionValue(value) {
5897      var unwrappedValue = isMotionValue(value) ? value.get() : value;
5898      return isCustomValue(unwrappedValue)
5899          ? unwrappedValue.toValue()
5900          : unwrappedValue;
5901  }
5902  
5903  
5904  
5905  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js
5906  
5907  
5908  
5909  
5910  
5911  
5912  
5913  
5914  
5915  function makeState(_a, props, context, presenceContext) {
5916      var scrapeMotionValuesFromProps = _a.scrapeMotionValuesFromProps, createRenderState = _a.createRenderState, onMount = _a.onMount;
5917      var state = {
5918          latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),
5919          renderState: createRenderState(),
5920      };
5921      if (onMount) {
5922          state.mount = function (instance) { return onMount(props, instance, state); };
5923      }
5924      return state;
5925  }
5926  var makeUseVisualState = function (config) { return function (props, isStatic) {
5927      var context = Object(external_React_["useContext"])(MotionContext);
5928      var presenceContext = Object(external_React_["useContext"])(PresenceContext);
5929      return isStatic
5930          ? makeState(config, props, context, presenceContext)
5931          : useConstant(function () { return makeState(config, props, context, presenceContext); });
5932  }; };
5933  function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
5934      var values = {};
5935      var blockInitialAnimation = (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.initial) === false;
5936      var motionValues = scrapeMotionValues(props);
5937      for (var key in motionValues) {
5938          values[key] = resolveMotionValue(motionValues[key]);
5939      }
5940      var initial = props.initial, animate = props.animate;
5941      var isControllingVariants = checkIfControllingVariants(props);
5942      var isVariantNode = checkIfVariantNode(props);
5943      if (context &&
5944          isVariantNode &&
5945          !isControllingVariants &&
5946          props.inherit !== false) {
5947          initial !== null && initial !== void 0 ? initial : (initial = context.initial);
5948          animate !== null && animate !== void 0 ? animate : (animate = context.animate);
5949      }
5950      var variantToSet = blockInitialAnimation || initial === false ? animate : initial;
5951      if (variantToSet &&
5952          typeof variantToSet !== "boolean" &&
5953          !isAnimationControls(variantToSet)) {
5954          var list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];
5955          list.forEach(function (definition) {
5956              var resolved = resolveVariantFromProps(props, definition);
5957              if (!resolved)
5958                  return;
5959              var transitionEnd = resolved.transitionEnd; resolved.transition; var target = __rest(resolved, ["transitionEnd", "transition"]);
5960              for (var key in target)
5961                  values[key] = target[key];
5962              for (var key in transitionEnd)
5963                  values[key] = transitionEnd[key];
5964          });
5965      }
5966      return values;
5967  }
5968  
5969  
5970  
5971  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/config-motion.js
5972  
5973  
5974  
5975  
5976  
5977  
5978  var svgMotionConfig = {
5979      useVisualState: makeUseVisualState({
5980          scrapeMotionValuesFromProps: utils_scrape_motion_values_scrapeMotionValuesFromProps,
5981          createRenderState: createSvgRenderState,
5982          onMount: function (props, instance, _a) {
5983              var renderState = _a.renderState, latestValues = _a.latestValues;
5984              try {
5985                  renderState.dimensions =
5986                      typeof instance.getBBox ===
5987                          "function"
5988                          ? instance.getBBox()
5989                          : instance.getBoundingClientRect();
5990              }
5991              catch (e) {
5992                  // Most likely trying to measure an unrendered element under Firefox
5993                  renderState.dimensions = {
5994                      x: 0,
5995                      y: 0,
5996                      width: 0,
5997                      height: 0,
5998                  };
5999              }
6000              if (isPath(instance)) {
6001                  renderState.totalPathLength = instance.getTotalLength();
6002              }
6003              buildSVGAttrs(renderState, latestValues, undefined, undefined, { enableHardwareAcceleration: false }, props.transformTemplate);
6004              // TODO: Replace with direct assignment
6005              renderSVG(instance, renderState);
6006          },
6007      }),
6008  };
6009  function isPath(element) {
6010      return element.tagName === "path";
6011  }
6012  
6013  
6014  
6015  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/config-motion.js
6016  
6017  
6018  
6019  
6020  var htmlMotionConfig = {
6021      useVisualState: makeUseVisualState({
6022          scrapeMotionValuesFromProps: scrape_motion_values_scrapeMotionValuesFromProps,
6023          createRenderState: createHtmlRenderState,
6024      }),
6025  };
6026  
6027  
6028  
6029  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/create-config.js
6030  
6031  
6032  
6033  
6034  
6035  
6036  function createDomMotionConfig(Component, _a, preloadedFeatures, createVisualElement) {
6037      var _b = _a.forwardMotionProps, forwardMotionProps = _b === void 0 ? false : _b;
6038      var baseConfig = isSVGComponent(Component)
6039          ? svgMotionConfig
6040          : htmlMotionConfig;
6041      return __assign(__assign({}, baseConfig), { preloadedFeatures: preloadedFeatures, useRender: createUseRender(forwardMotionProps), createVisualElement: createVisualElement,
6042          Component: Component });
6043  }
6044  
6045  
6046  
6047  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/types.js
6048  var AnimationType;
6049  (function (AnimationType) {
6050      AnimationType["Animate"] = "animate";
6051      AnimationType["Hover"] = "whileHover";
6052      AnimationType["Tap"] = "whileTap";
6053      AnimationType["Drag"] = "whileDrag";
6054      AnimationType["Focus"] = "whileFocus";
6055      AnimationType["Exit"] = "exit";
6056  })(AnimationType || (AnimationType = {}));
6057  
6058  
6059  
6060  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/use-dom-event.js
6061  
6062  
6063  function addDomEvent(target, eventName, handler, options) {
6064      target.addEventListener(eventName, handler, options);
6065      return function () { return target.removeEventListener(eventName, handler, options); };
6066  }
6067  /**
6068   * Attaches an event listener directly to the provided DOM element.
6069   *
6070   * Bypassing React's event system can be desirable, for instance when attaching non-passive
6071   * event handlers.
6072   *
6073   * ```jsx
6074   * const ref = useRef(null)
6075   *
6076   * useDomEvent(ref, 'wheel', onWheel, { passive: false })
6077   *
6078   * return <div ref={ref} />
6079   * ```
6080   *
6081   * @param ref - React.RefObject that's been provided to the element you want to bind the listener to.
6082   * @param eventName - Name of the event you want listen for.
6083   * @param handler - Function to fire when receiving the event.
6084   * @param options - Options to pass to `Event.addEventListener`.
6085   *
6086   * @public
6087   */
6088  function useDomEvent(ref, eventName, handler, options) {
6089      Object(external_React_["useEffect"])(function () {
6090          var element = ref.current;
6091          if (handler && element) {
6092              return addDomEvent(element, eventName, handler, options);
6093          }
6094      }, [ref, eventName, handler, options]);
6095  }
6096  
6097  
6098  
6099  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/use-focus-gesture.js
6100  
6101  
6102  
6103  /**
6104   *
6105   * @param props
6106   * @param ref
6107   * @internal
6108   */
6109  function useFocusGesture(_a) {
6110      var whileFocus = _a.whileFocus, visualElement = _a.visualElement;
6111      var onFocus = function () {
6112          var _a;
6113          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Focus, true);
6114      };
6115      var onBlur = function () {
6116          var _a;
6117          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Focus, false);
6118      };
6119      useDomEvent(visualElement, "focus", whileFocus ? onFocus : undefined);
6120      useDomEvent(visualElement, "blur", whileFocus ? onBlur : undefined);
6121  }
6122  
6123  
6124  
6125  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/utils/event-type.js
6126  function isMouseEvent(event) {
6127      // PointerEvent inherits from MouseEvent so we can't use a straight instanceof check.
6128      if (typeof PointerEvent !== "undefined" && event instanceof PointerEvent) {
6129          return !!(event.pointerType === "mouse");
6130      }
6131      return event instanceof MouseEvent;
6132  }
6133  function isTouchEvent(event) {
6134      var hasTouches = !!event.touches;
6135      return hasTouches;
6136  }
6137  
6138  
6139  
6140  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/event-info.js
6141  
6142  
6143  /**
6144   * Filters out events not attached to the primary pointer (currently left mouse button)
6145   * @param eventHandler
6146   */
6147  function filterPrimaryPointer(eventHandler) {
6148      return function (event) {
6149          var isMouseEvent = event instanceof MouseEvent;
6150          var isPrimaryPointer = !isMouseEvent ||
6151              (isMouseEvent && event.button === 0);
6152          if (isPrimaryPointer) {
6153              eventHandler(event);
6154          }
6155      };
6156  }
6157  var defaultPagePoint = { pageX: 0, pageY: 0 };
6158  function pointFromTouch(e, pointType) {
6159      if (pointType === void 0) { pointType = "page"; }
6160      var primaryTouch = e.touches[0] || e.changedTouches[0];
6161      var point = primaryTouch || defaultPagePoint;
6162      return {
6163          x: point[pointType + "X"],
6164          y: point[pointType + "Y"],
6165      };
6166  }
6167  function pointFromMouse(point, pointType) {
6168      if (pointType === void 0) { pointType = "page"; }
6169      return {
6170          x: point[pointType + "X"],
6171          y: point[pointType + "Y"],
6172      };
6173  }
6174  function extractEventInfo(event, pointType) {
6175      if (pointType === void 0) { pointType = "page"; }
6176      return {
6177          point: isTouchEvent(event)
6178              ? pointFromTouch(event, pointType)
6179              : pointFromMouse(event, pointType),
6180      };
6181  }
6182  function getViewportPointFromEvent(event) {
6183      return extractEventInfo(event, "client");
6184  }
6185  var wrapHandler = function (handler, shouldFilterPrimaryPointer) {
6186      if (shouldFilterPrimaryPointer === void 0) { shouldFilterPrimaryPointer = false; }
6187      var listener = function (event) {
6188          return handler(event, extractEventInfo(event));
6189      };
6190      return shouldFilterPrimaryPointer
6191          ? filterPrimaryPointer(listener)
6192          : listener;
6193  };
6194  
6195  
6196  
6197  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/utils.js
6198  
6199  
6200  // We check for event support via functions in case they've been mocked by a testing suite.
6201  var supportsPointerEvents = function () {
6202      return isBrowser && window.onpointerdown === null;
6203  };
6204  var supportsTouchEvents = function () {
6205      return isBrowser && window.ontouchstart === null;
6206  };
6207  var supportsMouseEvents = function () {
6208      return isBrowser && window.onmousedown === null;
6209  };
6210  
6211  
6212  
6213  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/use-pointer-event.js
6214  
6215  
6216  
6217  
6218  var mouseEventNames = {
6219      pointerdown: "mousedown",
6220      pointermove: "mousemove",
6221      pointerup: "mouseup",
6222      pointercancel: "mousecancel",
6223      pointerover: "mouseover",
6224      pointerout: "mouseout",
6225      pointerenter: "mouseenter",
6226      pointerleave: "mouseleave",
6227  };
6228  var touchEventNames = {
6229      pointerdown: "touchstart",
6230      pointermove: "touchmove",
6231      pointerup: "touchend",
6232      pointercancel: "touchcancel",
6233  };
6234  function getPointerEventName(name) {
6235      if (supportsPointerEvents()) {
6236          return name;
6237      }
6238      else if (supportsTouchEvents()) {
6239          return touchEventNames[name];
6240      }
6241      else if (supportsMouseEvents()) {
6242          return mouseEventNames[name];
6243      }
6244      return name;
6245  }
6246  function addPointerEvent(target, eventName, handler, options) {
6247      return addDomEvent(target, getPointerEventName(eventName), wrapHandler(handler, eventName === "pointerdown"), options);
6248  }
6249  function usePointerEvent(ref, eventName, handler, options) {
6250      return useDomEvent(ref, getPointerEventName(eventName), handler && wrapHandler(handler, eventName === "pointerdown"), options);
6251  }
6252  
6253  
6254  
6255  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/drag/utils/lock.js
6256  function createLock(name) {
6257      var lock = null;
6258      return function () {
6259          var openLock = function () {
6260              lock = null;
6261          };
6262          if (lock === null) {
6263              lock = name;
6264              return openLock;
6265          }
6266          return false;
6267      };
6268  }
6269  var globalHorizontalLock = createLock("dragHorizontal");
6270  var globalVerticalLock = createLock("dragVertical");
6271  function getGlobalLock(drag) {
6272      var lock = false;
6273      if (drag === "y") {
6274          lock = globalVerticalLock();
6275      }
6276      else if (drag === "x") {
6277          lock = globalHorizontalLock();
6278      }
6279      else {
6280          var openHorizontal_1 = globalHorizontalLock();
6281          var openVertical_1 = globalVerticalLock();
6282          if (openHorizontal_1 && openVertical_1) {
6283              lock = function () {
6284                  openHorizontal_1();
6285                  openVertical_1();
6286              };
6287          }
6288          else {
6289              // Release the locks because we don't use them
6290              if (openHorizontal_1)
6291                  openHorizontal_1();
6292              if (openVertical_1)
6293                  openVertical_1();
6294          }
6295      }
6296      return lock;
6297  }
6298  function isDragActive() {
6299      // Check the gesture lock - if we get it, it means no drag gesture is active
6300      // and we can safely fire the tap gesture.
6301      var openGestureLock = getGlobalLock(true);
6302      if (!openGestureLock)
6303          return true;
6304      openGestureLock();
6305      return false;
6306  }
6307  
6308  
6309  
6310  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/use-hover-gesture.js
6311  
6312  
6313  
6314  
6315  
6316  function createHoverEvent(visualElement, isActive, callback) {
6317      return function (event, info) {
6318          var _a;
6319          if (!isMouseEvent(event) || isDragActive())
6320              return;
6321          callback === null || callback === void 0 ? void 0 : callback(event, info);
6322          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Hover, isActive);
6323      };
6324  }
6325  function useHoverGesture(_a) {
6326      var onHoverStart = _a.onHoverStart, onHoverEnd = _a.onHoverEnd, whileHover = _a.whileHover, visualElement = _a.visualElement;
6327      usePointerEvent(visualElement, "pointerenter", onHoverStart || whileHover
6328          ? createHoverEvent(visualElement, true, onHoverStart)
6329          : undefined);
6330      usePointerEvent(visualElement, "pointerleave", onHoverEnd || whileHover
6331          ? createHoverEvent(visualElement, false, onHoverEnd)
6332          : undefined);
6333  }
6334  
6335  
6336  
6337  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.js
6338  /**
6339   * Recursively traverse up the tree to check whether the provided child node
6340   * is the parent or a descendant of it.
6341   *
6342   * @param parent - Element to find
6343   * @param child - Element to test against parent
6344   */
6345  var isNodeOrChild = function (parent, child) {
6346      if (!child) {
6347          return false;
6348      }
6349      else if (parent === child) {
6350          return true;
6351      }
6352      else {
6353          return isNodeOrChild(parent, child.parentElement);
6354      }
6355  };
6356  
6357  
6358  
6359  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-unmount-effect.js
6360  
6361  
6362  function useUnmountEffect(callback) {
6363      return Object(external_React_["useEffect"])(function () { return function () { return callback(); }; }, []);
6364  }
6365  
6366  
6367  
6368  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/pipe.js
6369  var combineFunctions = function (a, b) { return function (v) { return b(a(v)); }; };
6370  var pipe = function () {
6371      var transformers = [];
6372      for (var _i = 0; _i < arguments.length; _i++) {
6373          transformers[_i] = arguments[_i];
6374      }
6375      return transformers.reduce(combineFunctions);
6376  };
6377  
6378  
6379  
6380  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/use-tap-gesture.js
6381  
6382  
6383  
6384  
6385  
6386  
6387  
6388  
6389  /**
6390   * @param handlers -
6391   * @internal
6392   */
6393  function useTapGesture(_a) {
6394      var onTap = _a.onTap, onTapStart = _a.onTapStart, onTapCancel = _a.onTapCancel, whileTap = _a.whileTap, visualElement = _a.visualElement;
6395      var hasPressListeners = onTap || onTapStart || onTapCancel || whileTap;
6396      var isPressing = Object(external_React_["useRef"])(false);
6397      var cancelPointerEndListeners = Object(external_React_["useRef"])(null);
6398      function removePointerEndListener() {
6399          var _a;
6400          (_a = cancelPointerEndListeners.current) === null || _a === void 0 ? void 0 : _a.call(cancelPointerEndListeners);
6401          cancelPointerEndListeners.current = null;
6402      }
6403      function checkPointerEnd() {
6404          var _a;
6405          removePointerEndListener();
6406          isPressing.current = false;
6407          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Tap, false);
6408          return !isDragActive();
6409      }
6410      function onPointerUp(event, info) {
6411          if (!checkPointerEnd())
6412              return;
6413          /**
6414           * We only count this as a tap gesture if the event.target is the same
6415           * as, or a child of, this component's element
6416           */
6417          !isNodeOrChild(visualElement.getInstance(), event.target)
6418              ? onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event, info)
6419              : onTap === null || onTap === void 0 ? void 0 : onTap(event, info);
6420      }
6421      function onPointerCancel(event, info) {
6422          if (!checkPointerEnd())
6423              return;
6424          onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event, info);
6425      }
6426      function onPointerDown(event, info) {
6427          var _a;
6428          removePointerEndListener();
6429          if (isPressing.current)
6430              return;
6431          isPressing.current = true;
6432          cancelPointerEndListeners.current = pipe(addPointerEvent(window, "pointerup", onPointerUp), addPointerEvent(window, "pointercancel", onPointerCancel));
6433          onTapStart === null || onTapStart === void 0 ? void 0 : onTapStart(event, info);
6434          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Tap, true);
6435      }
6436      usePointerEvent(visualElement, "pointerdown", hasPressListeners ? onPointerDown : undefined);
6437      useUnmountEffect(removePointerEndListener);
6438  }
6439  
6440  
6441  
6442  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/make-renderless-component.js
6443  var makeRenderlessComponent = function (hook) { return function (props) {
6444      hook(props);
6445      return null;
6446  }; };
6447  
6448  
6449  
6450  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/gestures.js
6451  
6452  
6453  
6454  
6455  
6456  var gestureAnimations = {
6457      tap: makeRenderlessComponent(useTapGesture),
6458      focus: makeRenderlessComponent(useFocusGesture),
6459      hover: makeRenderlessComponent(useHoverGesture),
6460  };
6461  
6462  
6463  
6464  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/shallow-compare.js
6465  function shallowCompare(next, prev) {
6466      if (!Array.isArray(prev))
6467          return false;
6468      var prevLength = prev.length;
6469      if (prevLength !== next.length)
6470          return false;
6471      for (var i = 0; i < prevLength; i++) {
6472          if (prev[i] !== next[i])
6473              return false;
6474      }
6475      return true;
6476  }
6477  
6478  
6479  
6480  // CONCATENATED MODULE: ./node_modules/popmotion/node_modules/tslib/tslib.es6.js
6481  /*! *****************************************************************************

6482  Copyright (c) Microsoft Corporation.

6483  

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

6485  purpose with or without fee is hereby granted.

6486  

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

6488  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

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

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

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

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

6493  PERFORMANCE OF THIS SOFTWARE.

6494  ***************************************************************************** */
6495  /* global Reflect, Promise */

6496  
6497  var tslib_tslib_es6_extendStatics = function(d, b) {
6498      tslib_tslib_es6_extendStatics = Object.setPrototypeOf ||
6499          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6500          function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6501      return tslib_tslib_es6_extendStatics(d, b);
6502  };
6503  
6504  function tslib_tslib_es6_extends(d, b) {
6505      if (typeof b !== "function" && b !== null)
6506          throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
6507      tslib_tslib_es6_extendStatics(d, b);
6508      function __() { this.constructor = d; }
6509      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6510  }
6511  
6512  var tslib_tslib_es6_assign = function() {
6513      tslib_tslib_es6_assign = Object.assign || function __assign(t) {
6514          for (var s, i = 1, n = arguments.length; i < n; i++) {
6515              s = arguments[i];
6516              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6517          }
6518          return t;
6519      }
6520      return tslib_tslib_es6_assign.apply(this, arguments);
6521  }
6522  
6523  function tslib_tslib_es6_rest(s, e) {
6524      var t = {};
6525      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
6526          t[p] = s[p];
6527      if (s != null && typeof Object.getOwnPropertySymbols === "function")
6528          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6529              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
6530                  t[p[i]] = s[p[i]];
6531          }
6532      return t;
6533  }
6534  
6535  function tslib_tslib_es6_decorate(decorators, target, key, desc) {
6536      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6537      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6538      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6539      return c > 3 && r && Object.defineProperty(target, key, r), r;
6540  }
6541  
6542  function tslib_tslib_es6_param(paramIndex, decorator) {
6543      return function (target, key) { decorator(target, key, paramIndex); }
6544  }
6545  
6546  function tslib_tslib_es6_metadata(metadataKey, metadataValue) {
6547      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
6548  }
6549  
6550  function tslib_tslib_es6_awaiter(thisArg, _arguments, P, generator) {
6551      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6552      return new (P || (P = Promise))(function (resolve, reject) {
6553          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6554          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6555          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
6556          step((generator = generator.apply(thisArg, _arguments || [])).next());
6557      });
6558  }
6559  
6560  function tslib_tslib_es6_generator(thisArg, body) {
6561      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
6562      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
6563      function verb(n) { return function (v) { return step([n, v]); }; }
6564      function step(op) {
6565          if (f) throw new TypeError("Generator is already executing.");
6566          while (_) try {
6567              if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
6568              if (y = 0, t) op = [op[0] & 2, t.value];
6569              switch (op[0]) {
6570                  case 0: case 1: t = op; break;
6571                  case 4: _.label++; return { value: op[1], done: false };
6572                  case 5: _.label++; y = op[1]; op = [0]; continue;
6573                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
6574                  default:
6575                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
6576                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
6577                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
6578                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
6579                      if (t[2]) _.ops.pop();
6580                      _.trys.pop(); continue;
6581              }
6582              op = body.call(thisArg, _);
6583          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
6584          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
6585      }
6586  }
6587  
6588  var tslib_tslib_es6_createBinding = Object.create ? (function(o, m, k, k2) {
6589      if (k2 === undefined) k2 = k;
6590      Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6591  }) : (function(o, m, k, k2) {
6592      if (k2 === undefined) k2 = k;
6593      o[k2] = m[k];
6594  });
6595  
6596  function tslib_tslib_es6_exportStar(m, o) {
6597      for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) tslib_tslib_es6_createBinding(o, m, p);
6598  }
6599  
6600  function tslib_tslib_es6_values(o) {
6601      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
6602      if (m) return m.call(o);
6603      if (o && typeof o.length === "number") return {
6604          next: function () {
6605              if (o && i >= o.length) o = void 0;
6606              return { value: o && o[i++], done: !o };
6607          }
6608      };
6609      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
6610  }
6611  
6612  function tslib_tslib_es6_read(o, n) {
6613      var m = typeof Symbol === "function" && o[Symbol.iterator];
6614      if (!m) return o;
6615      var i = m.call(o), r, ar = [], e;
6616      try {
6617          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
6618      }
6619      catch (error) { e = { error: error }; }
6620      finally {
6621          try {
6622              if (r && !r.done && (m = i["return"])) m.call(i);
6623          }
6624          finally { if (e) throw e.error; }
6625      }
6626      return ar;
6627  }
6628  
6629  /** @deprecated */

6630  function tslib_tslib_es6_spread() {
6631      for (var ar = [], i = 0; i < arguments.length; i++)
6632          ar = ar.concat(tslib_tslib_es6_read(arguments[i]));
6633      return ar;
6634  }
6635  
6636  /** @deprecated */

6637  function tslib_tslib_es6_spreadArrays() {
6638      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
6639      for (var r = Array(s), k = 0, i = 0; i < il; i++)
6640          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6641              r[k] = a[j];
6642      return r;
6643  }
6644  
6645  function tslib_tslib_es6_spreadArray(to, from, pack) {
6646      if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
6647          if (ar || !(i in from)) {
6648              if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6649              ar[i] = from[i];
6650          }
6651      }
6652      return to.concat(ar || Array.prototype.slice.call(from));
6653  }
6654  
6655  function tslib_tslib_es6_await(v) {
6656      return this instanceof tslib_tslib_es6_await ? (this.v = v, this) : new tslib_tslib_es6_await(v);
6657  }
6658  
6659  function tslib_tslib_es6_asyncGenerator(thisArg, _arguments, generator) {
6660      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6661      var g = generator.apply(thisArg, _arguments || []), i, q = [];
6662      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
6663      function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
6664      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
6665      function step(r) { r.value instanceof tslib_tslib_es6_await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
6666      function fulfill(value) { resume("next", value); }
6667      function reject(value) { resume("throw", value); }
6668      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
6669  }
6670  
6671  function tslib_tslib_es6_asyncDelegator(o) {
6672      var i, p;
6673      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
6674      function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: tslib_tslib_es6_await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
6675  }
6676  
6677  function tslib_tslib_es6_asyncValues(o) {
6678      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6679      var m = o[Symbol.asyncIterator], i;
6680      return m ? m.call(o) : (o = typeof tslib_tslib_es6_values === "function" ? tslib_tslib_es6_values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
6681      function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
6682      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
6683  }
6684  
6685  function tslib_tslib_es6_makeTemplateObject(cooked, raw) {
6686      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
6687      return cooked;
6688  };
6689  
6690  var tslib_tslib_es6_setModuleDefault = Object.create ? (function(o, v) {
6691      Object.defineProperty(o, "default", { enumerable: true, value: v });
6692  }) : function(o, v) {
6693      o["default"] = v;
6694  };
6695  
6696  function tslib_tslib_es6_importStar(mod) {
6697      if (mod && mod.__esModule) return mod;
6698      var result = {};
6699      if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) tslib_tslib_es6_createBinding(result, mod, k);
6700      tslib_tslib_es6_setModuleDefault(result, mod);
6701      return result;
6702  }
6703  
6704  function tslib_tslib_es6_importDefault(mod) {
6705      return (mod && mod.__esModule) ? mod : { default: mod };
6706  }
6707  
6708  function tslib_tslib_es6_classPrivateFieldGet(receiver, state, kind, f) {
6709      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
6710      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
6711      return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6712  }
6713  
6714  function tslib_tslib_es6_classPrivateFieldSet(receiver, state, value, kind, f) {
6715      if (kind === "m") throw new TypeError("Private method is not writable");
6716      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
6717      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6718      return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6719  }
6720  
6721  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/clamp.js
6722  var clamp_clamp = function (min, max, v) {
6723      return Math.min(Math.max(v, min), max);
6724  };
6725  
6726  
6727  
6728  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/utils/find-spring.js
6729  
6730  
6731  
6732  var safeMin = 0.001;
6733  var minDuration = 0.01;
6734  var maxDuration = 10.0;
6735  var minDamping = 0.05;
6736  var maxDamping = 1;
6737  function findSpring(_a) {
6738      var _b = _a.duration, duration = _b === void 0 ? 800 : _b, _c = _a.bounce, bounce = _c === void 0 ? 0.25 : _c, _d = _a.velocity, velocity = _d === void 0 ? 0 : _d, _e = _a.mass, mass = _e === void 0 ? 1 : _e;
6739      var envelope;
6740      var derivative;
6741      warning(duration <= maxDuration * 1000, "Spring duration must be 10 seconds or less");
6742      var dampingRatio = 1 - bounce;
6743      dampingRatio = clamp_clamp(minDamping, maxDamping, dampingRatio);
6744      duration = clamp_clamp(minDuration, maxDuration, duration / 1000);
6745      if (dampingRatio < 1) {
6746          envelope = function (undampedFreq) {
6747              var exponentialDecay = undampedFreq * dampingRatio;
6748              var delta = exponentialDecay * duration;
6749              var a = exponentialDecay - velocity;
6750              var b = calcAngularFreq(undampedFreq, dampingRatio);
6751              var c = Math.exp(-delta);
6752              return safeMin - (a / b) * c;
6753          };
6754          derivative = function (undampedFreq) {
6755              var exponentialDecay = undampedFreq * dampingRatio;
6756              var delta = exponentialDecay * duration;
6757              var d = delta * velocity + velocity;
6758              var e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;
6759              var f = Math.exp(-delta);
6760              var g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);
6761              var factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;
6762              return (factor * ((d - e) * f)) / g;
6763          };
6764      }
6765      else {
6766          envelope = function (undampedFreq) {
6767              var a = Math.exp(-undampedFreq * duration);
6768              var b = (undampedFreq - velocity) * duration + 1;
6769              return -safeMin + a * b;
6770          };
6771          derivative = function (undampedFreq) {
6772              var a = Math.exp(-undampedFreq * duration);
6773              var b = (velocity - undampedFreq) * (duration * duration);
6774              return a * b;
6775          };
6776      }
6777      var initialGuess = 5 / duration;
6778      var undampedFreq = approximateRoot(envelope, derivative, initialGuess);
6779      duration = duration * 1000;
6780      if (isNaN(undampedFreq)) {
6781          return {
6782              stiffness: 100,
6783              damping: 10,
6784              duration: duration,
6785          };
6786      }
6787      else {
6788          var stiffness = Math.pow(undampedFreq, 2) * mass;
6789          return {
6790              stiffness: stiffness,
6791              damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),
6792              duration: duration,
6793          };
6794      }
6795  }
6796  var rootIterations = 12;
6797  function approximateRoot(envelope, derivative, initialGuess) {
6798      var result = initialGuess;
6799      for (var i = 1; i < rootIterations; i++) {
6800          result = result - envelope(result) / derivative(result);
6801      }
6802      return result;
6803  }
6804  function calcAngularFreq(undampedFreq, dampingRatio) {
6805      return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
6806  }
6807  
6808  
6809  
6810  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/generators/spring.js
6811  
6812  
6813  
6814  var durationKeys = ["duration", "bounce"];
6815  var physicsKeys = ["stiffness", "damping", "mass"];
6816  function isSpringType(options, keys) {
6817      return keys.some(function (key) { return options[key] !== undefined; });
6818  }
6819  function getSpringOptions(options) {
6820      var springOptions = tslib_tslib_es6_assign({ velocity: 0.0, stiffness: 100, damping: 10, mass: 1.0, isResolvedFromDuration: false }, options);
6821      if (!isSpringType(options, physicsKeys) &&
6822          isSpringType(options, durationKeys)) {
6823          var derived = findSpring(options);
6824          springOptions = tslib_tslib_es6_assign(tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, springOptions), derived), { velocity: 0.0, mass: 1.0 });
6825          springOptions.isResolvedFromDuration = true;
6826      }
6827      return springOptions;
6828  }
6829  function spring(_a) {
6830      var _b = _a.from, from = _b === void 0 ? 0.0 : _b, _c = _a.to, to = _c === void 0 ? 1.0 : _c, _d = _a.restSpeed, restSpeed = _d === void 0 ? 2 : _d, restDelta = _a.restDelta, options = tslib_tslib_es6_rest(_a, ["from", "to", "restSpeed", "restDelta"]);
6831      var state = { done: false, value: from };
6832      var _e = getSpringOptions(options), stiffness = _e.stiffness, damping = _e.damping, mass = _e.mass, velocity = _e.velocity, duration = _e.duration, isResolvedFromDuration = _e.isResolvedFromDuration;
6833      var resolveSpring = zero;
6834      var resolveVelocity = zero;
6835      function createSpring() {
6836          var initialVelocity = velocity ? -(velocity / 1000) : 0.0;
6837          var initialDelta = to - from;
6838          var dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));
6839          var undampedAngularFreq = Math.sqrt(stiffness / mass) / 1000;
6840          restDelta !== null && restDelta !== void 0 ? restDelta : (restDelta = Math.abs(to - from) <= 1 ? 0.01 : 0.4);
6841          if (dampingRatio < 1) {
6842              var angularFreq_1 = calcAngularFreq(undampedAngularFreq, dampingRatio);
6843              resolveSpring = function (t) {
6844                  var envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
6845                  return (to -
6846                      envelope *
6847                          (((initialVelocity +
6848                              dampingRatio * undampedAngularFreq * initialDelta) /
6849                              angularFreq_1) *
6850                              Math.sin(angularFreq_1 * t) +
6851                              initialDelta * Math.cos(angularFreq_1 * t)));
6852              };
6853              resolveVelocity = function (t) {
6854                  var envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
6855                  return (dampingRatio *
6856                      undampedAngularFreq *
6857                      envelope *
6858                      ((Math.sin(angularFreq_1 * t) *
6859                          (initialVelocity +
6860                              dampingRatio *
6861                                  undampedAngularFreq *
6862                                  initialDelta)) /
6863                          angularFreq_1 +
6864                          initialDelta * Math.cos(angularFreq_1 * t)) -
6865                      envelope *
6866                          (Math.cos(angularFreq_1 * t) *
6867                              (initialVelocity +
6868                                  dampingRatio *
6869                                      undampedAngularFreq *
6870                                      initialDelta) -
6871                              angularFreq_1 *
6872                                  initialDelta *
6873                                  Math.sin(angularFreq_1 * t)));
6874              };
6875          }
6876          else if (dampingRatio === 1) {
6877              resolveSpring = function (t) {
6878                  return to -
6879                      Math.exp(-undampedAngularFreq * t) *
6880                          (initialDelta +
6881                              (initialVelocity + undampedAngularFreq * initialDelta) *
6882                                  t);
6883              };
6884          }
6885          else {
6886              var dampedAngularFreq_1 = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);
6887              resolveSpring = function (t) {
6888                  var envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
6889                  var freqForT = Math.min(dampedAngularFreq_1 * t, 300);
6890                  return (to -
6891                      (envelope *
6892                          ((initialVelocity +
6893                              dampingRatio * undampedAngularFreq * initialDelta) *
6894                              Math.sinh(freqForT) +
6895                              dampedAngularFreq_1 *
6896                                  initialDelta *
6897                                  Math.cosh(freqForT))) /
6898                          dampedAngularFreq_1);
6899              };
6900          }
6901      }
6902      createSpring();
6903      return {
6904          next: function (t) {
6905              var current = resolveSpring(t);
6906              if (!isResolvedFromDuration) {
6907                  var currentVelocity = resolveVelocity(t) * 1000;
6908                  var isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;
6909                  var isBelowDisplacementThreshold = Math.abs(to - current) <= restDelta;
6910                  state.done =
6911                      isBelowVelocityThreshold && isBelowDisplacementThreshold;
6912              }
6913              else {
6914                  state.done = t >= duration;
6915              }
6916              state.value = state.done ? to : current;
6917              return state;
6918          },
6919          flipTarget: function () {
6920              var _a;
6921              velocity = -velocity;
6922              _a = [to, from], from = _a[0], to = _a[1];
6923              createSpring();
6924          },
6925      };
6926  }
6927  spring.needsInterpolation = function (a, b) {
6928      return typeof a === "string" || typeof b === "string";
6929  };
6930  var zero = function (_t) { return 0; };
6931  
6932  
6933  
6934  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/progress.js
6935  var progress_progress = function (from, to, value) {
6936      var toFromDifference = to - from;
6937      return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
6938  };
6939  
6940  
6941  
6942  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/mix.js
6943  var mix = function (from, to, progress) {
6944      return -progress * from + progress * to + from;
6945  };
6946  
6947  
6948  
6949  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/utils.js
6950  
6951  
6952  var isColorString = function (type, testProp) { return function (v) {
6953      return Boolean((isString(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
6954          (testProp && Object.prototype.hasOwnProperty.call(v, testProp)));
6955  }; };
6956  var splitColor = function (aName, bName, cName) { return function (v) {
6957      var _a;
6958      if (!isString(v))
6959          return v;
6960      var _b = v.match(floatRegex), a = _b[0], b = _b[1], c = _b[2], alpha = _b[3];
6961      return _a = {},
6962          _a[aName] = parseFloat(a),
6963          _a[bName] = parseFloat(b),
6964          _a[cName] = parseFloat(c),
6965          _a.alpha = alpha !== undefined ? parseFloat(alpha) : 1,
6966          _a;
6967  }; };
6968  
6969  
6970  
6971  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/rgba.js
6972  
6973  
6974  
6975  
6976  
6977  var clampRgbUnit = clamp(0, 255);
6978  var rgbUnit = tslib_es6_assign(tslib_es6_assign({}, numbers_number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
6979  var rgba = {
6980      test: isColorString('rgb', 'red'),
6981      parse: splitColor('red', 'green', 'blue'),
6982      transform: function (_a) {
6983          var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
6984          return 'rgba(' +
6985              rgbUnit.transform(red) +
6986              ', ' +
6987              rgbUnit.transform(green) +
6988              ', ' +
6989              rgbUnit.transform(blue) +
6990              ', ' +
6991              sanitize(numbers_alpha.transform(alpha$1)) +
6992              ')';
6993      },
6994  };
6995  
6996  
6997  
6998  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/hex.js
6999  
7000  
7001  
7002  function parseHex(v) {
7003      var r = '';
7004      var g = '';
7005      var b = '';
7006      var a = '';
7007      if (v.length > 5) {
7008          r = v.substr(1, 2);
7009          g = v.substr(3, 2);
7010          b = v.substr(5, 2);
7011          a = v.substr(7, 2);
7012      }
7013      else {
7014          r = v.substr(1, 1);
7015          g = v.substr(2, 1);
7016          b = v.substr(3, 1);
7017          a = v.substr(4, 1);
7018          r += r;
7019          g += g;
7020          b += b;
7021          a += a;
7022      }
7023      return {
7024          red: parseInt(r, 16),
7025          green: parseInt(g, 16),
7026          blue: parseInt(b, 16),
7027          alpha: a ? parseInt(a, 16) / 255 : 1,
7028      };
7029  }
7030  var hex = {
7031      test: isColorString('#'),
7032      parse: parseHex,
7033      transform: rgba.transform,
7034  };
7035  
7036  
7037  
7038  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/hsla.js
7039  
7040  
7041  
7042  
7043  
7044  var hsla = {
7045      test: isColorString('hsl', 'hue'),
7046      parse: splitColor('hue', 'saturation', 'lightness'),
7047      transform: function (_a) {
7048          var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
7049          return ('hsla(' +
7050              Math.round(hue) +
7051              ', ' +
7052              percent.transform(sanitize(saturation)) +
7053              ', ' +
7054              percent.transform(sanitize(lightness)) +
7055              ', ' +
7056              sanitize(numbers_alpha.transform(alpha$1)) +
7057              ')');
7058      },
7059  };
7060  
7061  
7062  
7063  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/mix-color.js
7064  
7065  
7066  
7067  
7068  
7069  var mixLinearColor = function (from, to, v) {
7070      var fromExpo = from * from;
7071      var toExpo = to * to;
7072      return Math.sqrt(Math.max(0, v * (toExpo - fromExpo) + fromExpo));
7073  };
7074  var colorTypes = [hex, rgba, hsla];
7075  var getColorType = function (v) {
7076      return colorTypes.find(function (type) { return type.test(v); });
7077  };
7078  var notAnimatable = function (color) {
7079      return "'" + color + "' is not an animatable color. Use the equivalent color code instead.";
7080  };
7081  var mixColor = function (from, to) {
7082      var fromColorType = getColorType(from);
7083      var toColorType = getColorType(to);
7084      invariant(!!fromColorType, notAnimatable(from));
7085      invariant(!!toColorType, notAnimatable(to));
7086      invariant(fromColorType.transform === toColorType.transform, "Both colors must be hex/RGBA, OR both must be HSLA.");
7087      var fromColor = fromColorType.parse(from);
7088      var toColor = toColorType.parse(to);
7089      var blended = tslib_tslib_es6_assign({}, fromColor);
7090      var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
7091      return function (v) {
7092          for (var key in blended) {
7093              if (key !== "alpha") {
7094                  blended[key] = mixFunc(fromColor[key], toColor[key], v);
7095              }
7096          }
7097          blended.alpha = mix(fromColor.alpha, toColor.alpha, v);
7098          return fromColorType.transform(blended);
7099      };
7100  };
7101  
7102  
7103  
7104  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/index.js
7105  
7106  
7107  
7108  
7109  
7110  var color = {
7111      test: function (v) { return rgba.test(v) || hex.test(v) || hsla.test(v); },
7112      parse: function (v) {
7113          if (rgba.test(v)) {
7114              return rgba.parse(v);
7115          }
7116          else if (hsla.test(v)) {
7117              return hsla.parse(v);
7118          }
7119          else {
7120              return hex.parse(v);
7121          }
7122      },
7123      transform: function (v) {
7124          return isString(v)
7125              ? v
7126              : v.hasOwnProperty('red')
7127                  ? rgba.transform(v)
7128                  : hsla.transform(v);
7129      },
7130  };
7131  
7132  
7133  
7134  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/complex/index.js
7135  
7136  
7137  
7138  
7139  var colorToken = '$c}';
7140  var numberToken = '$n}';
7141  function test(v) {
7142      var _a, _b, _c, _d;
7143      return (isNaN(v) &&
7144          isString(v) &&
7145          ((_b = (_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = v.match(colorRegex)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0);
7146  }
7147  function analyse(v) {
7148      var values = [];
7149      var numColors = 0;
7150      var colors = v.match(colorRegex);
7151      if (colors) {
7152          numColors = colors.length;
7153          v = v.replace(colorRegex, colorToken);
7154          values.push.apply(values, colors.map(color.parse));
7155      }
7156      var numbers = v.match(floatRegex);
7157      if (numbers) {
7158          v = v.replace(floatRegex, numberToken);
7159          values.push.apply(values, numbers.map(numbers_number.parse));
7160      }
7161      return { values: values, numColors: numColors, tokenised: v };
7162  }
7163  function parse(v) {
7164      return analyse(v).values;
7165  }
7166  function createTransformer(v) {
7167      var _a = analyse(v), values = _a.values, numColors = _a.numColors, tokenised = _a.tokenised;
7168      var numValues = values.length;
7169      return function (v) {
7170          var output = tokenised;
7171          for (var i = 0; i < numValues; i++) {
7172              output = output.replace(i < numColors ? colorToken : numberToken, i < numColors ? color.transform(v[i]) : sanitize(v[i]));
7173          }
7174          return output;
7175      };
7176  }
7177  var convertNumbersToZero = function (v) {
7178      return typeof v === 'number' ? 0 : v;
7179  };
7180  function getAnimatableNone(v) {
7181      var parsed = parse(v);
7182      var transformer = createTransformer(v);
7183      return transformer(parsed.map(convertNumbersToZero));
7184  }
7185  var complex = { test: test, parse: parse, createTransformer: createTransformer, getAnimatableNone: getAnimatableNone };
7186  
7187  
7188  
7189  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/inc.js
7190  var zeroPoint = {
7191      x: 0,
7192      y: 0,
7193      z: 0
7194  };
7195  var isNum = function (v) { return typeof v === 'number'; };
7196  
7197  
7198  
7199  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/mix-complex.js
7200  
7201  
7202  
7203  
7204  
7205  
7206  
7207  
7208  function getMixer(origin, target) {
7209      if (isNum(origin)) {
7210          return function (v) { return mix(origin, target, v); };
7211      }
7212      else if (color.test(origin)) {
7213          return mixColor(origin, target);
7214      }
7215      else {
7216          return mixComplex(origin, target);
7217      }
7218  }
7219  var mixArray = function (from, to) {
7220      var output = tslib_tslib_es6_spreadArray([], from);
7221      var numValues = output.length;
7222      var blendValue = from.map(function (fromThis, i) { return getMixer(fromThis, to[i]); });
7223      return function (v) {
7224          for (var i = 0; i < numValues; i++) {
7225              output[i] = blendValue[i](v);
7226          }
7227          return output;
7228      };
7229  };
7230  var mixObject = function (origin, target) {
7231      var output = tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, origin), target);
7232      var blendValue = {};
7233      for (var key in output) {
7234          if (origin[key] !== undefined && target[key] !== undefined) {
7235              blendValue[key] = getMixer(origin[key], target[key]);
7236          }
7237      }
7238      return function (v) {
7239          for (var key in blendValue) {
7240              output[key] = blendValue[key](v);
7241          }
7242          return output;
7243      };
7244  };
7245  function mix_complex_analyse(value) {
7246      var parsed = complex.parse(value);
7247      var numValues = parsed.length;
7248      var numNumbers = 0;
7249      var numRGB = 0;
7250      var numHSL = 0;
7251      for (var i = 0; i < numValues; i++) {
7252          if (numNumbers || typeof parsed[i] === "number") {
7253              numNumbers++;
7254          }
7255          else {
7256              if (parsed[i].hue !== undefined) {
7257                  numHSL++;
7258              }
7259              else {
7260                  numRGB++;
7261              }
7262          }
7263      }
7264      return { parsed: parsed, numNumbers: numNumbers, numRGB: numRGB, numHSL: numHSL };
7265  }
7266  var mixComplex = function (origin, target) {
7267      var template = complex.createTransformer(target);
7268      var originStats = mix_complex_analyse(origin);
7269      var targetStats = mix_complex_analyse(target);
7270      invariant(originStats.numHSL === targetStats.numHSL &&
7271          originStats.numRGB === targetStats.numRGB &&
7272          originStats.numNumbers >= targetStats.numNumbers, "Complex values '" + origin + "' and '" + target + "' too different to mix. Ensure all colors are of the same type.");
7273      return pipe(mixArray(originStats.parsed, targetStats.parsed), template);
7274  };
7275  
7276  
7277  
7278  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/interpolate.js
7279  
7280  
7281  
7282  
7283  
7284  
7285  
7286  
7287  
7288  var mixNumber = function (from, to) { return function (p) { return mix(from, to, p); }; };
7289  function detectMixerFactory(v) {
7290      if (typeof v === 'number') {
7291          return mixNumber;
7292      }
7293      else if (typeof v === 'string') {
7294          if (color.test(v)) {
7295              return mixColor;
7296          }
7297          else {
7298              return mixComplex;
7299          }
7300      }
7301      else if (Array.isArray(v)) {
7302          return mixArray;
7303      }
7304      else if (typeof v === 'object') {
7305          return mixObject;
7306      }
7307  }
7308  function createMixers(output, ease, customMixer) {
7309      var mixers = [];
7310      var mixerFactory = customMixer || detectMixerFactory(output[0]);
7311      var numMixers = output.length - 1;
7312      for (var i = 0; i < numMixers; i++) {
7313          var mixer = mixerFactory(output[i], output[i + 1]);
7314          if (ease) {
7315              var easingFunction = Array.isArray(ease) ? ease[i] : ease;
7316              mixer = pipe(easingFunction, mixer);
7317          }
7318          mixers.push(mixer);
7319      }
7320      return mixers;
7321  }
7322  function fastInterpolate(_a, _b) {
7323      var from = _a[0], to = _a[1];
7324      var mixer = _b[0];
7325      return function (v) { return mixer(progress_progress(from, to, v)); };
7326  }
7327  function slowInterpolate(input, mixers) {
7328      var inputLength = input.length;
7329      var lastInputIndex = inputLength - 1;
7330      return function (v) {
7331          var mixerIndex = 0;
7332          var foundMixerIndex = false;
7333          if (v <= input[0]) {
7334              foundMixerIndex = true;
7335          }
7336          else if (v >= input[lastInputIndex]) {
7337              mixerIndex = lastInputIndex - 1;
7338              foundMixerIndex = true;
7339          }
7340          if (!foundMixerIndex) {
7341              var i = 1;
7342              for (; i < inputLength; i++) {
7343                  if (input[i] > v || i === lastInputIndex) {
7344                      break;
7345                  }
7346              }
7347              mixerIndex = i - 1;
7348          }
7349          var progressInRange = progress_progress(input[mixerIndex], input[mixerIndex + 1], v);
7350          return mixers[mixerIndex](progressInRange);
7351      };
7352  }
7353  function interpolate(input, output, _a) {
7354      var _b = _a === void 0 ? {} : _a, _c = _b.clamp, isClamp = _c === void 0 ? true : _c, ease = _b.ease, mixer = _b.mixer;
7355      var inputLength = input.length;
7356      invariant(inputLength === output.length, 'Both input and output ranges must be the same length');
7357      invariant(!ease || !Array.isArray(ease) || ease.length === inputLength - 1, 'Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values.');
7358      if (input[0] > input[inputLength - 1]) {
7359          input = [].concat(input);
7360          output = [].concat(output);
7361          input.reverse();
7362          output.reverse();
7363      }
7364      var mixers = createMixers(output, ease, mixer);
7365      var interpolator = inputLength === 2
7366          ? fastInterpolate(input, mixers)
7367          : slowInterpolate(input, mixers);
7368      return isClamp
7369          ? function (v) { return interpolator(clamp_clamp(input[0], input[inputLength - 1], v)); }
7370          : interpolator;
7371  }
7372  
7373  
7374  
7375  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/easing/utils.js
7376  var reverseEasing = function (easing) { return function (p) { return 1 - easing(1 - p); }; };
7377  var mirrorEasing = function (easing) { return function (p) {
7378      return p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
7379  }; };
7380  var createExpoIn = function (power) { return function (p) { return Math.pow(p, power); }; };
7381  var createBackIn = function (power) { return function (p) {
7382      return p * p * ((power + 1) * p - power);
7383  }; };
7384  var createAnticipate = function (power) {
7385      var backEasing = createBackIn(power);
7386      return function (p) {
7387          return (p *= 2) < 1
7388              ? 0.5 * backEasing(p)
7389              : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
7390      };
7391  };
7392  
7393  
7394  
7395  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/easing/index.js
7396  
7397  
7398  var DEFAULT_OVERSHOOT_STRENGTH = 1.525;
7399  var BOUNCE_FIRST_THRESHOLD = 4.0 / 11.0;
7400  var BOUNCE_SECOND_THRESHOLD = 8.0 / 11.0;
7401  var BOUNCE_THIRD_THRESHOLD = 9.0 / 10.0;
7402  var linear = function (p) { return p; };
7403  var easeIn = createExpoIn(2);
7404  var easeOut = reverseEasing(easeIn);
7405  var easeInOut = mirrorEasing(easeIn);
7406  var circIn = function (p) { return 1 - Math.sin(Math.acos(p)); };
7407  var circOut = reverseEasing(circIn);
7408  var circInOut = mirrorEasing(circOut);
7409  var backIn = createBackIn(DEFAULT_OVERSHOOT_STRENGTH);
7410  var backOut = reverseEasing(backIn);
7411  var backInOut = mirrorEasing(backIn);
7412  var anticipate = createAnticipate(DEFAULT_OVERSHOOT_STRENGTH);
7413  var ca = 4356.0 / 361.0;
7414  var cb = 35442.0 / 1805.0;
7415  var cc = 16061.0 / 1805.0;
7416  var bounceOut = function (p) {
7417      if (p === 1 || p === 0)
7418          return p;
7419      var p2 = p * p;
7420      return p < BOUNCE_FIRST_THRESHOLD
7421          ? 7.5625 * p2
7422          : p < BOUNCE_SECOND_THRESHOLD
7423              ? 9.075 * p2 - 9.9 * p + 3.4
7424              : p < BOUNCE_THIRD_THRESHOLD
7425                  ? ca * p2 - cb * p + cc
7426                  : 10.8 * p * p - 20.52 * p + 10.72;
7427  };
7428  var bounceIn = reverseEasing(bounceOut);
7429  var bounceInOut = function (p) {
7430      return p < 0.5
7431          ? 0.5 * (1.0 - bounceOut(1.0 - p * 2.0))
7432          : 0.5 * bounceOut(p * 2.0 - 1.0) + 0.5;
7433  };
7434  
7435  
7436  
7437  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/generators/keyframes.js
7438  
7439  
7440  
7441  function defaultEasing(values, easing) {
7442      return values.map(function () { return easing || easeInOut; }).splice(0, values.length - 1);
7443  }
7444  function defaultOffset(values) {
7445      var numValues = values.length;
7446      return values.map(function (_value, i) {
7447          return i !== 0 ? i / (numValues - 1) : 0;
7448      });
7449  }
7450  function convertOffsetToTimes(offset, duration) {
7451      return offset.map(function (o) { return o * duration; });
7452  }
7453  function keyframes(_a) {
7454      var _b = _a.from, from = _b === void 0 ? 0 : _b, _c = _a.to, to = _c === void 0 ? 1 : _c, ease = _a.ease, offset = _a.offset, _d = _a.duration, duration = _d === void 0 ? 300 : _d;
7455      var state = { done: false, value: from };
7456      var values = Array.isArray(to) ? to : [from, to];
7457      var times = convertOffsetToTimes(offset && offset.length === values.length
7458          ? offset
7459          : defaultOffset(values), duration);
7460      function createInterpolator() {
7461          return interpolate(times, values, {
7462              ease: Array.isArray(ease) ? ease : defaultEasing(values, ease),
7463          });
7464      }
7465      var interpolator = createInterpolator();
7466      return {
7467          next: function (t) {
7468              state.value = interpolator(t);
7469              state.done = t >= duration;
7470              return state;
7471          },
7472          flipTarget: function () {
7473              values.reverse();
7474              interpolator = createInterpolator();
7475          },
7476      };
7477  }
7478  
7479  
7480  
7481  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/generators/decay.js
7482  function decay(_a) {
7483      var _b = _a.velocity, velocity = _b === void 0 ? 0 : _b, _c = _a.from, from = _c === void 0 ? 0 : _c, _d = _a.power, power = _d === void 0 ? 0.8 : _d, _e = _a.timeConstant, timeConstant = _e === void 0 ? 350 : _e, _f = _a.restDelta, restDelta = _f === void 0 ? 0.5 : _f, modifyTarget = _a.modifyTarget;
7484      var state = { done: false, value: from };
7485      var amplitude = power * velocity;
7486      var ideal = from + amplitude;
7487      var target = modifyTarget === undefined ? ideal : modifyTarget(ideal);
7488      if (target !== ideal)
7489          amplitude = target - from;
7490      return {
7491          next: function (t) {
7492              var delta = -amplitude * Math.exp(-t / timeConstant);
7493              state.done = !(delta > restDelta || delta < -restDelta);
7494              state.value = state.done ? target : target + delta;
7495              return state;
7496          },
7497          flipTarget: function () { },
7498      };
7499  }
7500  
7501  
7502  
7503  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/utils/detect-animation-from-options.js
7504  
7505  
7506  
7507  
7508  var types = { keyframes: keyframes, spring: spring, decay: decay };
7509  function detectAnimationFromOptions(config) {
7510      if (Array.isArray(config.to)) {
7511          return keyframes;
7512      }
7513      else if (types[config.type]) {
7514          return types[config.type];
7515      }
7516      var keys = new Set(Object.keys(config));
7517      if (keys.has("ease") ||
7518          (keys.has("duration") && !keys.has("dampingRatio"))) {
7519          return keyframes;
7520      }
7521      else if (keys.has("dampingRatio") ||
7522          keys.has("stiffness") ||
7523          keys.has("mass") ||
7524          keys.has("damping") ||
7525          keys.has("restSpeed") ||
7526          keys.has("restDelta")) {
7527          return spring;
7528      }
7529      return keyframes;
7530  }
7531  
7532  
7533  
7534  // CONCATENATED MODULE: ./node_modules/framesync/dist/es/on-next-frame.js
7535  var defaultTimestep = (1 / 60) * 1000;
7536  var getCurrentTime = typeof performance !== "undefined"
7537      ? function () { return performance.now(); }
7538      : function () { return Date.now(); };
7539  var onNextFrame = typeof window !== "undefined"
7540      ? function (callback) {
7541          return window.requestAnimationFrame(callback);
7542      }
7543      : function (callback) {
7544          return setTimeout(function () { return callback(getCurrentTime()); }, defaultTimestep);
7545      };
7546  
7547  
7548  
7549  // CONCATENATED MODULE: ./node_modules/framesync/dist/es/create-render-step.js
7550  function createRenderStep(runNextFrame) {
7551      var toRun = [];
7552      var toRunNextFrame = [];
7553      var numToRun = 0;
7554      var isProcessing = false;
7555      var toKeepAlive = new WeakSet();
7556      var step = {
7557          schedule: function (callback, keepAlive, immediate) {
7558              if (keepAlive === void 0) { keepAlive = false; }
7559              if (immediate === void 0) { immediate = false; }
7560              var addToCurrentFrame = immediate && isProcessing;
7561              var buffer = addToCurrentFrame ? toRun : toRunNextFrame;
7562              if (keepAlive)
7563                  toKeepAlive.add(callback);
7564              if (buffer.indexOf(callback) === -1) {
7565                  buffer.push(callback);
7566                  if (addToCurrentFrame && isProcessing)
7567                      numToRun = toRun.length;
7568              }
7569              return callback;
7570          },
7571          cancel: function (callback) {
7572              var index = toRunNextFrame.indexOf(callback);
7573              if (index !== -1)
7574                  toRunNextFrame.splice(index, 1);
7575              toKeepAlive.delete(callback);
7576          },
7577          process: function (frameData) {
7578              var _a;
7579              isProcessing = true;
7580              _a = [toRunNextFrame, toRun], toRun = _a[0], toRunNextFrame = _a[1];
7581              toRunNextFrame.length = 0;
7582              numToRun = toRun.length;
7583              if (numToRun) {
7584                  for (var i = 0; i < numToRun; i++) {
7585                      var callback = toRun[i];
7586                      callback(frameData);
7587                      if (toKeepAlive.has(callback)) {
7588                          step.schedule(callback);
7589                          runNextFrame();
7590                      }
7591                  }
7592              }
7593              isProcessing = false;
7594          },
7595      };
7596      return step;
7597  }
7598  
7599  
7600  
7601  // CONCATENATED MODULE: ./node_modules/framesync/dist/es/index.js
7602  
7603  
7604  
7605  var maxElapsed = 40;
7606  var useDefaultElapsed = true;
7607  var runNextFrame = false;
7608  var isProcessing = false;
7609  var es_frame = {
7610      delta: 0,
7611      timestamp: 0
7612  };
7613  var stepsOrder = ["read", "update", "preRender", "render", "postRender"];
7614  var steps = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7615      acc[key] = createRenderStep(function () {
7616          return runNextFrame = true;
7617      });
7618      return acc;
7619  }, {});
7620  var sync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7621      var step = steps[key];
7622      acc[key] = function (process, keepAlive, immediate) {
7623          if (keepAlive === void 0) {
7624              keepAlive = false;
7625          }
7626          if (immediate === void 0) {
7627              immediate = false;
7628          }
7629          if (!runNextFrame) startLoop();
7630          return step.schedule(process, keepAlive, immediate);
7631      };
7632      return acc;
7633  }, {});
7634  var cancelSync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7635      acc[key] = steps[key].cancel;
7636      return acc;
7637  }, {});
7638  var flushSync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7639      acc[key] = function () {
7640          return steps[key].process(es_frame);
7641      };
7642      return acc;
7643  }, {});
7644  var processStep = function (stepId) {
7645      return steps[stepId].process(es_frame);
7646  };
7647  var processFrame = function (timestamp) {
7648      runNextFrame = false;
7649      es_frame.delta = useDefaultElapsed ? defaultTimestep : Math.max(Math.min(timestamp - es_frame.timestamp, maxElapsed), 1);
7650      es_frame.timestamp = timestamp;
7651      isProcessing = true;
7652      stepsOrder.forEach(processStep);
7653      isProcessing = false;
7654      if (runNextFrame) {
7655          useDefaultElapsed = false;
7656          onNextFrame(processFrame);
7657      }
7658  };
7659  var startLoop = function () {
7660      runNextFrame = true;
7661      useDefaultElapsed = true;
7662      if (!isProcessing) onNextFrame(processFrame);
7663  };
7664  var getFrameData = function () {
7665      return es_frame;
7666  };
7667  
7668  /* harmony default export */ var es = (sync);
7669  
7670  
7671  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/utils/elapsed.js
7672  function loopElapsed(elapsed, duration, delay) {
7673      if (delay === void 0) { delay = 0; }
7674      return elapsed - duration - delay;
7675  }
7676  function reverseElapsed(elapsed, duration, delay, isForwardPlayback) {
7677      if (delay === void 0) { delay = 0; }
7678      if (isForwardPlayback === void 0) { isForwardPlayback = true; }
7679      return isForwardPlayback
7680          ? loopElapsed(duration + -elapsed, duration, delay)
7681          : duration - (elapsed - duration) + delay;
7682  }
7683  function hasRepeatDelayElapsed(elapsed, duration, delay, isForwardPlayback) {
7684      return isForwardPlayback ? elapsed >= duration + delay : elapsed <= -delay;
7685  }
7686  
7687  
7688  
7689  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/index.js
7690  
7691  
7692  
7693  
7694  
7695  
7696  var framesync = function (update) {
7697      var passTimestamp = function (_a) {
7698          var delta = _a.delta;
7699          return update(delta);
7700      };
7701      return {
7702          start: function () { return es.update(passTimestamp, true); },
7703          stop: function () { return cancelSync.update(passTimestamp); },
7704      };
7705  };
7706  function animations_animate(_a) {
7707      var _b, _c;
7708      var from = _a.from, _d = _a.autoplay, autoplay = _d === void 0 ? true : _d, _e = _a.driver, driver = _e === void 0 ? framesync : _e, _f = _a.elapsed, elapsed = _f === void 0 ? 0 : _f, _g = _a.repeat, repeatMax = _g === void 0 ? 0 : _g, _h = _a.repeatType, repeatType = _h === void 0 ? "loop" : _h, _j = _a.repeatDelay, repeatDelay = _j === void 0 ? 0 : _j, onPlay = _a.onPlay, onStop = _a.onStop, onComplete = _a.onComplete, onRepeat = _a.onRepeat, onUpdate = _a.onUpdate, options = tslib_tslib_es6_rest(_a, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
7709      var to = options.to;
7710      var driverControls;
7711      var repeatCount = 0;
7712      var computedDuration = options.duration;
7713      var latest;
7714      var isComplete = false;
7715      var isForwardPlayback = true;
7716      var interpolateFromNumber;
7717      var animator = detectAnimationFromOptions(options);
7718      if ((_c = (_b = animator).needsInterpolation) === null || _c === void 0 ? void 0 : _c.call(_b, from, to)) {
7719          interpolateFromNumber = interpolate([0, 100], [from, to], {
7720              clamp: false,
7721          });
7722          from = 0;
7723          to = 100;
7724      }
7725      var animation = animator(tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, options), { from: from, to: to }));
7726      function repeat() {
7727          repeatCount++;
7728          if (repeatType === "reverse") {
7729              isForwardPlayback = repeatCount % 2 === 0;
7730              elapsed = reverseElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback);
7731          }
7732          else {
7733              elapsed = loopElapsed(elapsed, computedDuration, repeatDelay);
7734              if (repeatType === "mirror")
7735                  animation.flipTarget();
7736          }
7737          isComplete = false;
7738          onRepeat && onRepeat();
7739      }
7740      function complete() {
7741          driverControls.stop();
7742          onComplete && onComplete();
7743      }
7744      function update(delta) {
7745          if (!isForwardPlayback)
7746              delta = -delta;
7747          elapsed += delta;
7748          if (!isComplete) {
7749              var state = animation.next(Math.max(0, elapsed));
7750              latest = state.value;
7751              if (interpolateFromNumber)
7752                  latest = interpolateFromNumber(latest);
7753              isComplete = isForwardPlayback ? state.done : elapsed <= 0;
7754          }
7755          onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(latest);
7756          if (isComplete) {
7757              if (repeatCount === 0)
7758                  computedDuration !== null && computedDuration !== void 0 ? computedDuration : (computedDuration = elapsed);
7759              if (repeatCount < repeatMax) {
7760                  hasRepeatDelayElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback) && repeat();
7761              }
7762              else {
7763                  complete();
7764              }
7765          }
7766      }
7767      function play() {
7768          onPlay === null || onPlay === void 0 ? void 0 : onPlay();
7769          driverControls = driver(update);
7770          driverControls.start();
7771      }
7772      autoplay && play();
7773      return {
7774          stop: function () {
7775              onStop === null || onStop === void 0 ? void 0 : onStop();
7776              driverControls.stop();
7777          },
7778      };
7779  }
7780  
7781  
7782  
7783  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/velocity-per-second.js
7784  function velocityPerSecond(velocity, frameDuration) {
7785      return frameDuration ? velocity * (1000 / frameDuration) : 0;
7786  }
7787  
7788  
7789  
7790  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/inertia.js
7791  
7792  
7793  
7794  
7795  
7796  function inertia_inertia(_a) {
7797      var _b = _a.from, from = _b === void 0 ? 0 : _b, _c = _a.velocity, velocity = _c === void 0 ? 0 : _c, min = _a.min, max = _a.max, _d = _a.power, power = _d === void 0 ? 0.8 : _d, _e = _a.timeConstant, timeConstant = _e === void 0 ? 750 : _e, _f = _a.bounceStiffness, bounceStiffness = _f === void 0 ? 500 : _f, _g = _a.bounceDamping, bounceDamping = _g === void 0 ? 10 : _g, _h = _a.restDelta, restDelta = _h === void 0 ? 1 : _h, modifyTarget = _a.modifyTarget, driver = _a.driver, onUpdate = _a.onUpdate, onComplete = _a.onComplete;
7798      var currentAnimation;
7799      function isOutOfBounds(v) {
7800          return (min !== undefined && v < min) || (max !== undefined && v > max);
7801      }
7802      function boundaryNearest(v) {
7803          if (min === undefined)
7804              return max;
7805          if (max === undefined)
7806              return min;
7807          return Math.abs(min - v) < Math.abs(max - v) ? min : max;
7808      }
7809      function startAnimation(options) {
7810          currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop();
7811          currentAnimation = animations_animate(tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, options), { driver: driver, onUpdate: function (v) {
7812                  var _a;
7813                  onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(v);
7814                  (_a = options.onUpdate) === null || _a === void 0 ? void 0 : _a.call(options, v);
7815              }, onComplete: onComplete }));
7816      }
7817      function startSpring(options) {
7818          startAnimation(tslib_tslib_es6_assign({ type: "spring", stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta }, options));
7819      }
7820      if (isOutOfBounds(from)) {
7821          startSpring({ from: from, velocity: velocity, to: boundaryNearest(from) });
7822      }
7823      else {
7824          var target = power * velocity + from;
7825          if (typeof modifyTarget !== "undefined")
7826              target = modifyTarget(target);
7827          var boundary_1 = boundaryNearest(target);
7828          var heading_1 = boundary_1 === min ? -1 : 1;
7829          var prev_1;
7830          var current_1;
7831          var checkBoundary = function (v) {
7832              prev_1 = current_1;
7833              current_1 = v;
7834              velocity = velocityPerSecond(v - prev_1, getFrameData().delta);
7835              if ((heading_1 === 1 && v > boundary_1) ||
7836                  (heading_1 === -1 && v < boundary_1)) {
7837                  startSpring({ from: v, to: boundary_1, velocity: velocity });
7838              }
7839          };
7840          startAnimation({
7841              type: "decay",
7842              from: from,
7843              velocity: velocity,
7844              timeConstant: timeConstant,
7845              power: power,
7846              restDelta: restDelta,
7847              modifyTarget: modifyTarget,
7848              onUpdate: isOutOfBounds(target) ? checkBoundary : undefined,
7849          });
7850      }
7851      return {
7852          stop: function () { return currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop(); },
7853      };
7854  }
7855  
7856  
7857  
7858  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/time-conversion.js
7859  /**
7860   * Converts seconds to milliseconds
7861   *
7862   * @param seconds - Time in seconds.
7863   * @return milliseconds - Converted time in milliseconds.
7864   */
7865  var secondsToMilliseconds = function (seconds) { return seconds * 1000; };
7866  
7867  
7868  
7869  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/easing/cubic-bezier.js
7870  
7871  
7872  var cubic_bezier_a = function (a1, a2) { return 1.0 - 3.0 * a2 + 3.0 * a1; };
7873  var cubic_bezier_b = function (a1, a2) { return 3.0 * a2 - 6.0 * a1; };
7874  var cubic_bezier_c = function (a1) { return 3.0 * a1; };
7875  var calcBezier = function (t, a1, a2) {
7876      return ((cubic_bezier_a(a1, a2) * t + cubic_bezier_b(a1, a2)) * t + cubic_bezier_c(a1)) * t;
7877  };
7878  var getSlope = function (t, a1, a2) {
7879      return 3.0 * cubic_bezier_a(a1, a2) * t * t + 2.0 * cubic_bezier_b(a1, a2) * t + cubic_bezier_c(a1);
7880  };
7881  var subdivisionPrecision = 0.0000001;
7882  var subdivisionMaxIterations = 10;
7883  function binarySubdivide(aX, aA, aB, mX1, mX2) {
7884      var currentX;
7885      var currentT;
7886      var i = 0;
7887      do {
7888          currentT = aA + (aB - aA) / 2.0;
7889          currentX = calcBezier(currentT, mX1, mX2) - aX;
7890          if (currentX > 0.0) {
7891              aB = currentT;
7892          }
7893          else {
7894              aA = currentT;
7895          }
7896      } while (Math.abs(currentX) > subdivisionPrecision &&
7897          ++i < subdivisionMaxIterations);
7898      return currentT;
7899  }
7900  var newtonIterations = 8;
7901  var newtonMinSlope = 0.001;
7902  function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {
7903      for (var i = 0; i < newtonIterations; ++i) {
7904          var currentSlope = getSlope(aGuessT, mX1, mX2);
7905          if (currentSlope === 0.0) {
7906              return aGuessT;
7907          }
7908          var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
7909          aGuessT -= currentX / currentSlope;
7910      }
7911      return aGuessT;
7912  }
7913  var kSplineTableSize = 11;
7914  var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);
7915  function cubicBezier(mX1, mY1, mX2, mY2) {
7916      if (mX1 === mY1 && mX2 === mY2)
7917          return linear;
7918      var sampleValues = new Float32Array(kSplineTableSize);
7919      for (var i = 0; i < kSplineTableSize; ++i) {
7920          sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
7921      }
7922      function getTForX(aX) {
7923          var intervalStart = 0.0;
7924          var currentSample = 1;
7925          var lastSample = kSplineTableSize - 1;
7926          for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {
7927              intervalStart += kSampleStepSize;
7928          }
7929          --currentSample;
7930          var dist = (aX - sampleValues[currentSample]) /
7931              (sampleValues[currentSample + 1] - sampleValues[currentSample]);
7932          var guessForT = intervalStart + dist * kSampleStepSize;
7933          var initialSlope = getSlope(guessForT, mX1, mX2);
7934          if (initialSlope >= newtonMinSlope) {
7935              return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
7936          }
7937          else if (initialSlope === 0.0) {
7938              return guessForT;
7939          }
7940          else {
7941              return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);
7942          }
7943      }
7944      return function (t) {
7945          return t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
7946      };
7947  }
7948  
7949  
7950  
7951  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/easing.js
7952  
7953  
7954  
7955  
7956  var easingLookup = {
7957      linear: linear,
7958      easeIn: easeIn,
7959      easeInOut: easeInOut,
7960      easeOut: easeOut,
7961      circIn: circIn,
7962      circInOut: circInOut,
7963      circOut: circOut,
7964      backIn: backIn,
7965      backInOut: backInOut,
7966      backOut: backOut,
7967      anticipate: anticipate,
7968      bounceIn: bounceIn,
7969      bounceInOut: bounceInOut,
7970      bounceOut: bounceOut,
7971  };
7972  var easingDefinitionToFunction = function (definition) {
7973      if (Array.isArray(definition)) {
7974          // If cubic bezier definition, create bezier curve
7975          invariant(definition.length === 4, "Cubic bezier arrays must contain four numerical values.");
7976          var _a = __read(definition, 4), x1 = _a[0], y1 = _a[1], x2 = _a[2], y2 = _a[3];
7977          return cubicBezier(x1, y1, x2, y2);
7978      }
7979      else if (typeof definition === "string") {
7980          // Else lookup from table
7981          invariant(easingLookup[definition] !== undefined, "Invalid easing type '" + definition + "'");
7982          return easingLookup[definition];
7983      }
7984      return definition;
7985  };
7986  var isEasingArray = function (ease) {
7987      return Array.isArray(ease) && typeof ease[0] !== "number";
7988  };
7989  
7990  
7991  
7992  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animatable.js
7993  
7994  
7995  /**
7